umbrello/umbrello
widgetbase.cpp
Go to the documentation of this file.
540 For the next three *color attributes, there was a mixup of american and english spelling for "color".
555 usesDiagramUseFillColor = qElement.attribute("usesdiagramusefillcolor", usesDiagramUseFillColor);
643 void WidgetBase::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void setUsesDiagramFillColor(bool state)
Set state if diagram fill color is used.
Definition: widgetbase.cpp:382
bool m_usesDiagramTextColor
true by default, false if the colors have been explicitly set for this widget.
Definition: widgetbase.h:180
Definition: widgetbase.h:51
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual bool showPropertiesPagedDialog(int page=0, bool assoc=false)
This method is called if you wish to see the properties of a UMLObject.
Definition: umlobject.cpp:120
void setStartedCut()
Called by the view or any of its children when they start a cut operation.
Definition: umlscene.cpp:3382
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:113
Definition: widgetbase.h:48
static QString toString(MenuType menu)
Convert enum MenuType to string.
Definition: listpopupmenu.cpp:1986
Definition: widgetbase.h:44
UMLDoc * umlDoc() const
This is shortcut method for UMLApp::app()->document().
Definition: widgetbase.cpp:103
void slotEditCut()
Put the marked text/object into the clipboard and remove it from the document.
Definition: uml.cpp:1441
void setUsesDiagramTextColor(bool state)
Set state if diagram text color is used.
Definition: widgetbase.cpp:338
Definition: listpopupmenu.h:162
void addObject(UMLObject *object)
Add an object to the application, and update the view.
Definition: umlscene.cpp:4032
Definition: listpopupmenu.h:213
virtual void showPropertiesDialog()
A virtual method for the widget to display a property dialog box.
Definition: widgetbase.cpp:452
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: widgetbase.cpp:643
bool usesDiagramUseFillColor() const
Returns state of diagram use fill color is used.
Definition: widgetbase.cpp:392
Definition: listpopupmenu.h:163
UMLScene * umlScene() const
Deliver a pointer to the connected UMLView (needed esp.
Definition: widgetbase.cpp:93
virtual void setUMLObject(UMLObject *obj)
Sets the UMLObject to represent.
Definition: widgetbase.cpp:123
Definition: listpopupmenu.h:157
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Reimplemented to show appropriate context menu.
Definition: widgetbase.cpp:651
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
A virtual method to save the properties of this widget into a QDomElement i.e xml.
Definition: widgetbase.cpp:467
void selectionUseFillColor(bool useFC)
Set the useFillColor variable to all selected widgets.
Definition: umlscene.cpp:1318
Definition: listpopupmenu.h:184
Definition: listpopupmenu.h:193
const Settings::OptionState & optionState() const
Returns the options being used.
Definition: umlscene.cpp:400
virtual bool loadFromXMI(QDomElement &qElement)
A virtual method to load the properties of this widget from a QDomElement into this widget...
Definition: widgetbase.cpp:507
Definition: widgetbase.h:47
void selectionSetFillColor(const QColor &color)
Set the fill color for all the currently selected items.
Definition: umlscene.cpp:1372
Definition: listpopupmenu.h:211
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:197
static ListPopupMenu * menuFromAction(QAction *action)
Convenience method to extract the ListPopupMenu pointer stored in QAction objects belonging to ListPo...
Definition: listpopupmenu.cpp:1245
Definition: widgetbase.h:59
QString documentation() const
Used by some child classes to get documentation.
Definition: widgetbase.cpp:157
Definition: optionstate.h:141
void setName(const QString &strName)
Sets the name in the corresponding UMLObject.
Definition: widgetbase.cpp:210
#define ENUM_NAME(o, e, v)
In a Q_OBJECT class define any enum as Q_ENUMS.
Definition: debug_utils.h:114
void handleRename()
Handle the ListPopupMenu::mt_Rename case of the slotMenuSelection.
Definition: floatingtextwidget.cpp:373
static QString toString(WidgetType wt)
Helper function for debug output.
Definition: widgetbase.cpp:873
Definition: widgetbase.h:49
Definition: listpopupmenu.h:185
Definition: widgetbase.h:46
bool usesDiagramTextColor() const
Returns state if diagram text color is used.
Definition: widgetbase.cpp:328
virtual void slotMenuSelection(QAction *trigger)
This is usually called synchronously after menu.exec() and trigger's parent is always the ListPopupMe...
Definition: widgetbase.cpp:724
void setDocumentation(const QString &doc)
Used by some child classes to set documentation.
Definition: widgetbase.cpp:182
Definition: listpopupmenu.h:212
Definition: listpopupmenu.h:161
Definition: widgetbase.h:60
QRectF rect() const
return drawing rectangle of widget in local coordinates
Definition: widgetbase.cpp:600
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
WidgetBase * ownerWidget() const
Utility method to fetch owner of the menu.
Definition: listpopupmenu.cpp:1923
void deleteSelection()
Delete the selected widgets list and the widgets in it.
Definition: umlscene.cpp:1442
void selectionSetLineColor(const QColor &color)
Set the line color for all the currently selected items.
Definition: umlscene.cpp:1338
virtual UMLObject * clone() const =0
void setUsesDiagramLineWidth(bool state)
Set state of diagram line width is used.
Definition: widgetbase.cpp:422
bool usesDiagramLineWidth() const
Returns state of diagram line width is used.
Definition: widgetbase.cpp:412
void selectionToggleShow(int sel)
Toggles the show setting sel of all selected items.
Definition: umlscene.cpp:1386
WidgetBase(UMLScene *scene, WidgetType type=wt_UMLWidget)
Creates a WidgetBase object.
Definition: widgetbase.cpp:33
Uml::ID::Type m_nId
This ID is only used when the widget does not have a corresponding UMLObject (i.e.
Definition: widgetbase.h:165
virtual void setupContextMenuActions(ListPopupMenu &menu)
Definition: widgetbase.cpp:687
virtual void setFont(const QFont &font)
Set the font used to display text inside this widget.
Definition: widgetbase.cpp:443
void setUsesDiagramUseFillColor(bool state)
Set state of diagram use fill color is used.
Definition: widgetbase.cpp:402
void setActionEnabled(MenuType idx, bool value)
Enables the action item.
Definition: listpopupmenu.cpp:1954
Definition: basictypes.h:77
Definition: widgetbase.h:50
Definition: listpopupmenu.h:156
Definition: listpopupmenu.h:190
bool usesDiagramLineColor() const
Returns state of diagram line color is used.
Definition: widgetbase.cpp:352
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
void setUsesDiagramLineColor(bool state)
Set state of diagram line color is used.
Definition: widgetbase.cpp:362
Definition: widgetbase.h:45
void viewCodeDocument(UMLClassifier *classifier)
Call the code viewing assistant on a given UMLClassifier.
Definition: uml.cpp:2089
Definition: widgetbase.h:54
void setRect(const QRectF &rect)
set widget rectangle in item coordinates
Definition: widgetbase.cpp:608
void refactor(UMLClassifier *classifier)
Call the refactoring assistant on a classifier.
Definition: uml.cpp:2120
Definition: widgetbase.h:52
bool m_useFillColor
flag indicates if the UMLWidget uses the Diagram FillColour
Definition: widgetbase.h:173
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:159
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
Definition: widgetbase.h:61
UMLWidget * getFirstMultiSelectedWidget() const
Return pointer to the first selected widget (for multi-selection)
Definition: umlscene.cpp:954
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
bool usesDiagramFillColor() const
Returns state of diagram fill color is used.
Definition: widgetbase.cpp:372
bool hasDocumentation()
Returns state of documentation for the widget.
Definition: widgetbase.cpp:169
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.