umbrello/umbrello
toolbarstateonewidget.cpp
Go to the documentation of this file.
182 Dialog_Utils::askNameForWidget(umlwidget, i18n("Enter Precondition Name"), i18n("Enter the precondition"), i18n("new precondition"));
192 QString name = KInputDialog::getText(i18n("Enter Port Name"), i18n("Enter the port"), i18n("new port"),
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Base class for tools that can use the same state but with different button.
Definition: toolbarstatepool.h:22
Definition: widgetbase.h:64
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:127
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:213
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:67
QPointF scenePos() const
virtual void setCurrentElement()
Selects only widgets, but no associations.
Definition: toolbarstateonewidget.cpp:95
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Initialize and announce a newly created widget.
Definition: umlscene.cpp:540
Definition: widgetbase.h:59
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstateonewidget.cpp:62
void setWidget(UMLWidget *firstObject)
Sets the first object of the message using the specified object.
Definition: toolbarstateonewidget.cpp:173
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Handler for mouse move events.
Definition: toolbarstate.cpp:180
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstateonewidget.cpp:123
const char * name() const
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLView.
Definition: toolbarstateonewidget.cpp:83
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:1007
Qt::MouseButton button() const
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Called when a mouse event happened.
Definition: toolbarstateonewidget.cpp:72
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:445
Definition: umlobject.h:76
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstateonewidget.cpp:162
Definition: widgetbase.h:58
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Create a UMLWidget in the given view and representing the given document object.
Definition: widget_factory.cpp:68
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:241
ToolBarStateOneWidget(UMLScene *umlScene)
Creates a new ToolBarStateOneWidget.
Definition: toolbarstateonewidget.cpp:44
ObjectWidget * onWidgetLine(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on a line of an Object.
Definition: umlscene.cpp:947
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
Definition: worktoolbar.h:105
Definition: widgetbase.h:68
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:431
Definition: widgetbase.h:52
virtual ~ToolBarStateOneWidget()
Destroys this ToolBarStateOneWidget.
Definition: toolbarstateonewidget.cpp:54
Definition: widgetbase.h:70
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.