umbrello/umbrello
objectwidget.cpp
Go to the documentation of this file.
140 void ObjectWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void slotMenuSelection(QAction *action)
Handles a popup menu selection.
Definition: objectwidget.cpp:158
Definition: umlwidget.h:218
qreal x() const
qreal y() const
palette
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *me)
Overrides the standard operation.
Definition: objectwidget.cpp:329
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Handles a mouse move event.
Definition: umlwidget.cpp:468
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1636
QDomNode appendChild(const QDomNode &newChild)
Definition: listpopupmenu.h:218
void setStartPoint(int startX, int startY)
Set the start point of the line.
Definition: seqlinewidget.cpp:110
QString attribute(const QString &name, const QString &defValue) const
void showPropertiesDialog()
Show a properties dialog for an ObjectWidget.
Definition: objectwidget.cpp:390
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:88
const QFont & font() const
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void setMultipleInstance(bool multiple)
Sets whether representing a multi-instance object.
Definition: objectwidget.cpp:83
void setUnderline(bool enable)
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:230
void setEndOfLine(int yPosition)
Sets the y position of the bottom of the vertical line.
Definition: seqlinewidget.cpp:183
QWidget * viewport() const
QPointF scenePos() const
Definition: basictypes.h:80
void drawLine(const QLineF &line)
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
bool messageOverlap(qreal y, MessageWidget *messageWidget)
Returns whether a message is overlapping with another message.
Definition: objectwidget.cpp:614
Definition: listpopupmenu.h:219
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:211
bool showDestruction() const
Returns whether to show deconstruction on sequence line.
Definition: objectwidget.cpp:529
void update(const QRectF &rect)
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 saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the "objectwidget" XMI element.
Definition: objectwidget.cpp:668
QPointF m_oldPos
The X/Y position the widget had when the movement started.
Definition: umlwidget.h:320
void drawRect(const QRectF &rectangle)
void setFont(const QFont &font)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Override default method.
Definition: objectwidget.cpp:140
Definition: basictypes.h:79
void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: objectwidget.cpp:378
int count(const T &value) const
qreal y() const
void append(const T &value)
Definition: classpropertiesdialog.h:34
virtual void mousePressEvent(QGraphicsSceneMouseEvent *me)
Overrides the standard operation.
Definition: objectwidget.cpp:314
virtual void setFillColor(const QColor &color)
Sets the background fill color.
Definition: umlwidget.cpp:955
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
void setAttribute(const QString &name, const QString &value)
Widget class for graphical representation of sequence lines.
Definition: seqlinewidget.h:24
int toInt(bool *ok, int base) const
virtual bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: umlwidget.cpp:979
int removeAll(const T &value)
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
void setShowDestruction(bool bShow)
Sets whether to show deconstruction on sequence line.
Definition: objectwidget.cpp:517
void messageRemoved(MessageWidget *message)
Remove a message widget from the list.
Definition: objectwidget.cpp:580
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
void paintObject(QPainter *p)
Draw the object as an object (default).
Definition: objectwidget.cpp:405
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Overridden from UMLWidget.
Definition: objectwidget.cpp:113
void slotMessageMoved()
Called when a message widget with an end on this object has moved up or down.
Definition: objectwidget.cpp:593
void sigWidgetMoved(Uml::ID::Type id)
Emit when the widget moves its' position.
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:2652
void messageAdded(MessageWidget *message)
Add a message widget to the list.
Definition: objectwidget.cpp:566
void setPen(const QPen &pen)
virtual void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: umlwidget.cpp:1461
static const int sequenceLineMargin
The number of pixels margin between the lowest message and the bottom of the vertical line...
Definition: objectwidget.cpp:48
int width(const QString &text, int len) const
virtual void setLineColor(const QColor &color)
Overrides the method from WidgetBase.
Definition: umlwidget.cpp:924
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
virtual void resizeWidget(qreal newW, qreal newH)
Overridden from UMLWidget.
Definition: objectwidget.cpp:659
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
Definition: listpopupmenu.h:170
void setEndLine(int yPosition)
Sets the y position of the bottom of the vertical line.
Definition: objectwidget.cpp:539
virtual void moveEvent(QGraphicsSceneMouseEvent *event)
Overrides the standard operation.
Definition: objectwidget.cpp:302
virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY)
Overridden from UMLWidget.
Definition: objectwidget.cpp:129
void setY(qreal y)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Handles a mouse press event.
Definition: umlwidget.cpp:378
bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: objectwidget.cpp:255
bool onDestructionBox(const QPointF &p)
Return whether point is on the destruction box.
Definition: seqlinewidget.cpp:78
bool canTabUp()
Returns whether or not the widget can be moved vertically up.
Definition: objectwidget.cpp:507
virtual void adjustAssocs(qreal dx, qreal dy)
Adjusts associations with the given co-ordinates.
Definition: umlwidget.cpp:1089
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1234
QDomElement createElement(const QString &tagName)
void setDrawAsActor(bool drawAsActor)
Sets whether to draw as an Actor.
Definition: objectwidget.cpp:236
bool multipleInstance() const
Returns whether object is representing a multi-object.
Definition: objectwidget.cpp:98
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
bool drawAsActor() const
Returns whether to draw as an Actor or not.
Definition: objectwidget.cpp:247
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:445
int lineSpacing() const
virtual bool loadFromXMI(QDomElement &qElement)
Loads from a "objectwidget" XMI element.
Definition: objectwidget.cpp:681
virtual void slotFillColorChanged(Uml::ID::Type viewID)
Handles a color change signal.
Definition: objectwidget.cpp:366
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.