umbrello/umbrello
toolbarstateonewidget.cpp
Go to the documentation of this file.
176 Dialog_Utils::askNameForWidget(umlwidget, i18n("Enter Precondition Name"), i18n("Enter the precondition"), i18n("new precondition"));
Base class for tools that can use the same state but with different button.
Definition: toolbarstatepool.h:22
Definition: widgetbase.h:64
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:32
WidgetBase::WidgetType widgetType()
Returns the widget type of this tool.
Definition: toolbarstateonewidget.cpp:196
void askNameForWidget(UMLWidget *&targetWidget, const QString &dialogTitle, const QString &dialogPrompt, const QString &defaultName)
Helper function for requesting a name for an UMLWidget using a dialog.
Definition: dialog_utils.cpp:64
virtual void setCurrentElement()
Selects only widgets, but no associations.
Definition: toolbarstateonewidget.cpp:90
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstateonewidget.cpp:57
void setWidget(UMLWidget *firstObject)
Sets the first object of the message using the specified object.
Definition: toolbarstateonewidget.cpp:167
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Handler for mouse move events.
Definition: toolbarstate.cpp:175
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstateonewidget.cpp:118
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLView.
Definition: toolbarstateonewidget.cpp:78
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 mouseMove(QGraphicsSceneMouseEvent *ome)
Called when a mouse event happened.
Definition: toolbarstateonewidget.cpp:67
bool m_isObjectWidgetLine
If there is a current widget, it is true if the press event happened on the line of an object...
Definition: toolbarstateonewidget.h:53
virtual void setCurrentWidget(UMLWidget *widget)
Sets the widget currently in use.
Definition: toolbarstate.cpp:440
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstateonewidget.cpp:156
Definition: widgetbase.h:58
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:236
ToolBarStateOneWidget(UMLScene *umlScene)
Creates a new ToolBarStateOneWidget.
Definition: toolbarstateonewidget.cpp:39
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
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
Definition: worktoolbar.h:102
Definition: widgetbase.h:68
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:426
Definition: widgetbase.h:52
virtual ~ToolBarStateOneWidget()
Destroys this ToolBarStateOneWidget.
Definition: toolbarstateonewidget.cpp:49
Definition: widgetbase.h:70
void setupNewWidget(UMLWidget *w)
Initialize and announce a newly created widget.
Definition: umlscene.cpp:512
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.