umbrello/umbrello
objectwidget.cpp
Go to the documentation of this file.
167 void ObjectWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void slotMenuSelection(QAction *action)
Handles a popup menu selection.
Definition: objectwidget.cpp:185
Definition: umlwidget.h:223
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *me)
Overrides the standard operation.
Definition: objectwidget.cpp:355
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Handles a mouse move event.
Definition: umlwidget.cpp:334
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1565
Definition: listpopupmenu.h:201
void setStartPoint(int startX, int startY)
Set the start point of the line.
Definition: seqlinewidget.cpp:110
void showPropertiesDialog()
Show a properties dialog for an ObjectWidget.
Definition: objectwidget.cpp:416
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:87
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:110
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
void setEndOfLine(int yPosition)
Sets the y position of the bottom of the vertical line.
Definition: seqlinewidget.cpp:183
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: basictypes.h:80
Definition: classpropdlg.h:34
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
bool messageOverlap(qreal y, MessageWidget *messageWidget)
Returns whether a message is overlapping with another message.
Definition: objectwidget.cpp:642
Definition: listpopupmenu.h:202
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:197
bool showDestruction() const
Returns whether to show deconstruction on sequence line.
Definition: objectwidget.cpp:557
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)
Saves to the "objectwidget" XMI element.
Definition: objectwidget.cpp:696
QPointF m_oldPos
The X/Y position the widget had when the movement started.
Definition: umlwidget.h:334
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Override default method.
Definition: objectwidget.cpp:167
Uml::ID::Type localID() const
Returns the local ID for this object.
Definition: objectwidget.cpp:100
Definition: basictypes.h:79
void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: objectwidget.cpp:404
virtual void mousePressEvent(QGraphicsSceneMouseEvent *me)
Overrides the standard operation.
Definition: objectwidget.cpp:340
virtual void setFillColor(const QColor &color)
Sets the background fill color.
Definition: umlwidget.cpp:868
Widget class for graphical representation of sequence lines.
Definition: seqlinewidget.h:24
virtual bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: umlwidget.cpp:890
void setShowDestruction(bool bShow)
Sets whether to show deconstruction on sequence line.
Definition: objectwidget.cpp:545
void messageRemoved(MessageWidget *message)
Remove a message widget from the list.
Definition: objectwidget.cpp:608
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
void paintObject(QPainter *p)
Draw the object as an object (default).
Definition: objectwidget.cpp:431
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Overridden from UMLWidget.
Definition: objectwidget.cpp:140
void slotMessageMoved()
Called when a message widget with an end on this object has moved up or down.
Definition: objectwidget.cpp:621
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:2607
void messageAdded(MessageWidget *message)
Add a message widget to the list.
Definition: objectwidget.cpp:594
virtual void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: umlwidget.cpp:1391
static const int sequenceLineMargin
The number of pixels margin between the lowest message and the bottom of the vertical line...
Definition: objectwidget.cpp:48
virtual void setLineColor(const QColor &color)
Overrides the method from WidgetBase.
Definition: umlwidget.cpp:849
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
virtual void resizeWidget(qreal newW, qreal newH)
Overridden from UMLWidget.
Definition: objectwidget.cpp:687
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:193
Definition: listpopupmenu.h:156
void setEndLine(int yPosition)
Sets the y position of the bottom of the vertical line.
Definition: objectwidget.cpp:567
virtual void moveEvent(QGraphicsSceneMouseEvent *event)
Overrides the standard operation.
Definition: objectwidget.cpp:328
virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY)
Overridden from UMLWidget.
Definition: objectwidget.cpp:156
int onDestructionBox(const QPointF &p)
Return whether on the destruction box.
Definition: seqlinewidget.cpp:78
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Handles a mouse press event.
Definition: umlwidget.cpp:416
bool activate(IDChangeLog *ChangeLog=0)
Activate the object after serializing it from a QDataStream.
Definition: objectwidget.cpp:282
bool canTabUp()
Returns whether or not the widget can be moved vertically up.
Definition: objectwidget.cpp:535
virtual void adjustAssocs(qreal dx, qreal dy)
Adjusts associations with the given co-ordinates.
Definition: umlwidget.cpp:1000
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
void setDrawAsActor(bool drawAsActor)
Sets whether to draw as an Actor.
Definition: objectwidget.cpp:263
bool multipleInstance() const
Returns whether object is representing a multi-object.
Definition: objectwidget.cpp:125
bool drawAsActor() const
Returns whether to draw as an Actor or not.
Definition: objectwidget.cpp:274
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
virtual bool loadFromXMI(QDomElement &qElement)
Loads from a "objectwidget" XMI element.
Definition: objectwidget.cpp:710
virtual void slotFillColorChanged(Uml::ID::Type viewID)
Handles a color change signal.
Definition: objectwidget.cpp:392
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.