umbrello/umbrello
preconditionwidget.cpp
Go to the documentation of this file.
73 void PreconditionWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
163 connect(m_objectWidget, SIGNAL(sigWidgetMoved(Uml::ID::Type)), this, SLOT(slotWidgetMoved(Uml::ID::Type)));
208 DEBUG(DBG_SRC) << "id=" << Uml::ID::toString(id) << ": ignoring for idA=" << Uml::ID::toString(idA);
282 preconditionElement.setAttribute(QLatin1String("widgetaid"), Uml::ID::toString(m_objectWidget->localID()));
qreal x() const
qreal y() const
PreconditionWidget(UMLScene *scene, ObjectWidget *a, Uml::ID::Type id=Uml::ID::None)
Creates a Precondition widget.
Definition: preconditionwidget.cpp:43
Uml::ID::Type findNewID(Uml::ID::Type OldID)
Returns the new assigned ID of the object that had OldID as its previous id.
Definition: idchangelog.cpp:62
int selectedCount(bool filterText=false) const
Return the amount of widgets selected.
Definition: umlscene.cpp:1822
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1636
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:32
QDomNode appendChild(const QDomNode &newChild)
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the widget to the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:277
QString attribute(const QString &name, const QString &defValue) const
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:107
Definition: umlwidget.h:215
Definition: listpopupmenu.h:171
void slotMenuSelection(QAction *action)
Captures any popup menu signals for menus it created.
Definition: preconditionwidget.cpp:251
bool m_ignoreSnapComponentSizeToGrid
Definition: umlwidget.h:309
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:211
QString documentation() const
Used by some child classes to get documentation.
Definition: widgetbase.cpp:171
int maxY() const
Returns the maximum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:240
virtual void slotMenuSelection(QAction *action)
This is usually called synchronously after menu.exec() and trigger's parent is always the ListPopupMe...
Definition: umlwidget.cpp:772
virtual void setName(const QString &strName)
Sets the name in the corresponding UMLObject.
Definition: widgetbase.cpp:224
void setFont(const QFont &font)
void slotWidgetMoved(Uml::ID::Type id)
Slot when widget is moved.
Definition: preconditionwidget.cpp:204
void setPen(const QColor &color)
void setAttribute(const QString &name, const QString &value)
virtual bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: umlwidget.cpp:979
bool isEmpty() const
void setDocumentation(const QString &doc)
Used by some child classes to set documentation.
Definition: widgetbase.cpp:196
bool activate(IDChangeLog *Log=0)
Activates a PreconditionWidget.
Definition: preconditionwidget.cpp:150
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
virtual bool loadFromXMI(QDomElement &qElement)
A virtual method to load the properties of this widget from a QDomElement into this widget...
Definition: umlwidget.cpp:1833
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1114
void sigWidgetMoved(Uml::ID::Type id)
Emit when the widget moves its' position.
void drawRoundRect(const QRectF &r, int xRnd, int yRnd)
int width(const QString &text, int len) const
virtual bool loadFromXMI(QDomElement &qElement)
Loads the widget from the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:291
int minY() const
Returns the minimum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:227
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:1810
void resolveObjectWidget(IDChangeLog *log)
Resolve references of this precondition so it references the correct new object widget after paste...
Definition: preconditionwidget.cpp:173
void setVisible(bool visible)
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1234
QDomElement createElement(const QString &tagName)
qreal height() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1701
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:445
qreal width() const
int lineSpacing() const
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: preconditionwidget.cpp:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.