umbrello/umbrello
statewidget.cpp
Go to the documentation of this file.
60 void StateWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: statewidget.h:52
virtual bool loadFromXMI(QDomElement &qElement)
Loads a "statewidget" XMI element.
Definition: statewidget.cpp:442
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: statewidget.cpp:60
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1565
bool renameActivity(const QString &activity, const QString &newName)
Renames the given activity.
Definition: statewidget.cpp:354
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:87
Definition: umlwidget.h:220
Definition: listpopupmenu.h:157
void updateDocumentation(bool clear=false, bool startup=false)
Call when you wish move changes in the doc window back into the members documentation.
Definition: docwindow.cpp:205
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType)
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1619
Definition: statewidget.h:48
void setActivities(const QStringList &list)
Sets the states activities to the ones given.
Definition: statewidget.cpp:366
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
virtual void slotMenuSelection(QAction *action)
This is usually called synchronously after menu.exec() and trigger's parent is always the ListPopupMe...
Definition: umlwidget.cpp:707
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "statewidget" XMI element.
Definition: statewidget.cpp:417
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
Definition: statewidget.h:49
Definition: statewidget.h:51
Definition: statewidget.h:50
Definition: listpopupmenu.h:204
virtual void slotMenuSelection(QAction *action)
Captures any popup menu signals for menus it created.
Definition: statewidget.cpp:475
virtual bool loadFromXMI(QDomElement &qElement)
A virtual method to load the properties of this widget from a QDomElement into this widget...
Definition: umlwidget.cpp:1726
Definition: statewidget.h:46
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
Definition: umlwidget.h:221
Definition: statewidget.h:54
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
A virtual method to save the properties of this widget into a QDomElement i.e xml.
Definition: umlwidget.cpp:1707
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:193
Definition: listpopupmenu.h:156
bool drawVertical() const
Get whether to draw a fork or join vertically.
Definition: statewidget.cpp:383
virtual void showPropertiesDialog()
Show a properties dialog for a StateWidget.
Definition: statewidget.cpp:402
StateWidget(UMLScene *scene, StateType stateType=Normal, Uml::ID::Type id=Uml::ID::None)
Creates a State widget.
Definition: statewidget.cpp:39
Definition: statewidget.h:47
Definition: statewidget.h:53
virtual QSizeF maximumSize()
Compute the maximum possible width and height.
Definition: umlwidget.cpp:206
virtual void adjustAssocs(qreal dx, qreal dy)
Adjusts associations with the given co-ordinates.
Definition: umlwidget.cpp:1000
void setDrawVertical(bool to=true)
Set whether to draw a fork or join vertically.
Definition: statewidget.cpp:391
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
bool addActivity(const QString &activity)
Adds an activity to this widget.
Definition: statewidget.cpp:333
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
bool removeActivity(const QString &activity)
Removes the given activity from the state.
Definition: statewidget.cpp:343
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 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:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.