umbrello/umbrello
toolbarstatemessages.cpp
Go to the documentation of this file.
83 m_messageLine->setLine(sp.x(), sp.y(), m_pMouseEvent->scenePos().x(), m_pMouseEvent->scenePos().y());
182 MessageWidget* message = new MessageWidget(m_pUMLScene, m_firstObject, xclick, yclick, msgType);
189 else if (!m_firstObject && msgType == Uml::SequenceMessage::Found && xclick == 0 && yclick == 0) {
221 MessageWidget* message = new MessageWidget(m_pUMLScene, m_firstObject, xclick, yclick, msgType);
Base class for tools that can use the same state but with different button.
Definition: toolbarstatepool.h:22
QGraphicsLineItem * m_messageLine
The message line shown while the first widget is selected and the second one wasn't selected yet...
Definition: toolbarstatemessages.h:103
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstatemessages.cpp:174
Definition: basictypes.h:196
Definition: basictypes.h:195
Uml::SequenceMessage::Enum getMessageType()
Returns the message type of this tool.
Definition: toolbarstatemessages.cpp:279
void cleanMessage()
Cleans the first widget and the temporal message line, if any.
Definition: toolbarstatemessages.cpp:297
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
void setSecondWidget(ObjectWidget *secondObject, MessageType messageType)
Sets the second object of the message using the specified widget and creates the message.
Definition: toolbarstatemessages.cpp:249
bool m_isObjectWidgetLine
If there is a current widget, it is true if the press event happened on the line of an object...
Definition: toolbarstatemessages.h:109
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Handler for mouse move events.
Definition: toolbarstate.cpp:175
void showOperationDialog(bool enableAutoIncrement=true)
Shows an operation dialog box.
Definition: floatingtextwidget.cpp:207
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstate.cpp:59
WorkToolBar::ToolBar_Buttons getButton() const
Returns the current button.
Definition: toolbarstatepool.cpp:42
UMLWidget * widgetAt(const QPointF &p)
Tests the given point against all widgets and returns the widget for which the point is within its bo...
Definition: umlscene.cpp:968
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstatemessages.cpp:143
void setFirstWidget(ObjectWidget *firstObject)
Sets the first object of the message using the specified object.
Definition: toolbarstatemessages.cpp:215
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
virtual bool activate(IDChangeLog *Log=0)
Activates a MessageWidget.
Definition: messagewidget.cpp:780
virtual void setCurrentElement()
Selects only widgets, but no associations.
Definition: toolbarstatemessages.cpp:109
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLView.
Definition: toolbarstatemessages.cpp:93
virtual void setCurrentWidget(UMLWidget *widget)
Sets the widget currently in use.
Definition: toolbarstate.cpp:440
virtual ~ToolBarStateMessages()
Destroys this ToolBarStateMessages.
Definition: toolbarstatemessages.cpp:46
Definition: basictypes.h:194
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:236
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:193
ObjectWidget * onWidgetLine(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on a line of an Object.
Definition: umlscene.cpp:908
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstatemessages.cpp:65
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:426
Definition: widgetbase.h:52
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Called when a mouse event happened.
Definition: toolbarstatemessages.cpp:77
FloatingTextWidget * floatingTextWidget()
Returns the text widget it is related to.
Definition: messagewidget.h:99
MessageWidgetList & messageList()
Returns a reference to the message list.
Definition: umlscene.cpp:432
void setTextPosition()
Sets the text position relative to the sequence message.
Definition: messagewidget.cpp:622
ToolBarStateMessages(UMLScene *umlScene)
Creates a new ToolBarStateMessages.
Definition: toolbarstatemessages.cpp:33
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.