[Uml-devel] [Bug 89980] allow to configure default colors for individual shapes

Oliver Kellogg okellogg at users.sourceforge.net
Wed Oct 20 12:02:21 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=89980        




------- Additional Comments From okellogg users sourceforge net  2004-10-20 20:56 -------
Stefan Seefeld wrote:
> I'm just wondering how best to implement the inheritance of
> default parameters when shapes are instantiated.

For more info, see UMLWidget::init (which is called by nearly
all widget constructors)
  ...
  const Settings::OptionState& optionState = m_pView->getOptionState();
  m_FillColour = optionState.uiState.fillColor;
  m_LineColour = optionState.uiState.lineColor;
  m_LineWidth  = optionState.uiState.lineWidth;
  m_Font       = optionState.uiState.font;
  ...

So it's much like you said, each widget's presentation attributes
are initialized from the global settings and can then be overridden
individually.




More information about the umbrello-devel mailing list