umbrello/umbrello
preconditionwidget.cpp
Go to the documentation of this file.
72 void PreconditionWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
158 connect(m_objectWidget, SIGNAL(sigWidgetMoved(Uml::ID::Type)), this, SLOT(slotWidgetMoved(Uml::ID::Type)));
195 DEBUG(DBG_SRC) << "id=" << Uml::ID::toString(id) << ": ignoring for idA=" << Uml::ID::toString(idA);
PreconditionWidget(UMLScene *scene, ObjectWidget *a, Uml::ID::Type id=Uml::ID::None)
Creates a Precondition widget.
Definition: preconditionwidget.cpp:42
int selectedCount(bool filterText=false) const
Return the amount of widgets selected.
Definition: umlscene.cpp:1831
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1565
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:32
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the widget to the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:264
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
UMLScene * umlScene() const
Deliver a pointer to the connected UMLView (needed esp.
Definition: widgetbase.cpp:93
Definition: umlwidget.h:220
Definition: listpopupmenu.h:157
void slotMenuSelection(QAction *action)
Captures any popup menu signals for menus it created.
Definition: preconditionwidget.cpp:238
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType)
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1619
bool m_ignoreSnapComponentSizeToGrid
Definition: umlwidget.h:314
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:197
QString documentation() const
Used by some child classes to get documentation.
Definition: widgetbase.cpp:157
int maxY() const
Returns the maximum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:227
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
void setName(const QString &strName)
Sets the name in the corresponding UMLObject.
Definition: widgetbase.cpp:210
Uml::ID::Type localID() const
Returns the local ID for this object.
Definition: objectwidget.cpp:100
void slotWidgetMoved(Uml::ID::Type id)
Slot when widget is moved.
Definition: preconditionwidget.cpp:191
virtual bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: umlwidget.cpp:890
void setDocumentation(const QString &doc)
Used by some child classes to set documentation.
Definition: widgetbase.cpp:182
bool activate(IDChangeLog *Log=0)
Activates a PreconditionWidget.
Definition: preconditionwidget.cpp:149
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
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1069
void sigWidgetMoved(Uml::ID::Type id)
Emit when the widget moves its' position.
virtual bool loadFromXMI(QDomElement &qElement)
Loads the widget from the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:278
int minY() const
Returns the minimum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:214
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
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: preconditionwidget.cpp:72
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.