umbrello: umbrello/umlwidgets/toolbarstateonewidget.h Source File

umbrello 2.31.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

toolbarstateonewidget.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2004-2014 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef TOOLBARSTATEONEWIDGET_H
12 #define TOOLBARSTATEONEWIDGET_H
13
14 #include "toolbarstatepool.h"
15 #include "widgetbase.h"
16
23 class ToolBarStateOneWidget : public ToolBarStatePool
24 {
25 Q_OBJECT
26 public:
27 explicit ToolBarStateOneWidget(UMLScene *umlScene);
28 virtual ~ToolBarStateOneWidget();
29
30 virtual void cleanBeforeChange();
31
32 // FIXME: obsolete
33 virtual void mouseMove(QGraphicsSceneMouseEvent* ome);
34
35 public Q_SLOTS:
36 virtual void slotWidgetRemoved(UMLWidget* widget);
37
38 protected:
39 virtual void setCurrentElement();
40
41 virtual void mouseReleaseWidget();
42 virtual void mouseReleaseEmpty();
43
44 void setWidget(UMLWidget* firstObject);
45 WidgetBase::WidgetType widgetType();
46
47 UMLWidget* m_firstObject;
48
53 bool m_isObjectWidgetLine;
54
55 private:
56 virtual void init();
57 };
58
59 #endif //TOOLBARSTATEONEWIDGET_H
WidgetBase::asObjectWidget
ObjectWidget * asObjectWidget()
Definition: widgetbase.cpp:1484
ToolBarState::cleanBeforeChange
virtual void cleanBeforeChange()
Definition: toolbarstate.cpp:60
PinWidget
A graphical version of a UML pin.
Definition: pinwidget.h:28
ToolBarStateOneWidget::init
virtual void init()
Definition: toolbarstateonewidget.cpp:238
port.h
pinwidget.h
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1325
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
activitywidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:40
WidgetBase::wt_Precondition
@ wt_Precondition
Definition: widgetbase.h:134
WorkToolBar::tbb_Port
@ tbb_Port
Definition: worktoolbar.h:110
PinPortBase::setInitialPosition
void setInitialPosition(const QPointF &scenePos)
Definition: pinportbase.cpp:91
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:211
ToolBarStateOneWidget::cleanBeforeChange
virtual void cleanBeforeChange()
Definition: toolbarstateonewidget.cpp:66
ToolBarState::finished
void finished()
ToolBarStatePool
Definition: toolbarstatepool.h:22
ToolBarState::m_pUMLScene
UMLScene * m_pUMLScene
The UMLScene.
Definition: toolbarstate.h:124
object_factory.h
Dialog_Utils::askNewName
bool askNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:150
ToolBarStateOneWidget::m_firstObject
UMLWidget * m_firstObject
The first object in the message.
Definition: toolbarstateonewidget.h:55
ToolBarStateOneWidget::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstateonewidget.cpp:166
model_utils.h
Widget_Utils::defaultWidgetName
QString defaultWidgetName(WidgetBase::WidgetType type)
Definition: widget_utils.cpp:842
UMLPort
Non-graphical information for a Port.
Definition: port.h:26
ToolBarStateOneWidget::ToolBarStateOneWidget
ToolBarStateOneWidget(UMLScene *umlScene)
Definition: toolbarstateonewidget.cpp:48
UMLScene::widgetAt
UMLWidget * widgetAt(const QPointF &p)
Definition: umlscene.cpp:1074
floatingtextwidget.h
UMLScene::setupNewWidget
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Definition: umlscene.cpp:715
ToolBarStateOneWidget::~ToolBarStateOneWidget
virtual ~ToolBarStateOneWidget()
Definition: toolbarstateonewidget.cpp:58
ToolBarStateOneWidget::setCurrentElement
virtual void setCurrentElement()
Definition: toolbarstateonewidget.cpp:99
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
WidgetBase::wt_Pin
@ wt_Pin
Definition: widgetbase.h:138
UMLScene::onWidgetLine
ObjectWidget * onWidgetLine(const QPointF &point) const
Definition: umlscene.cpp:1014
ToolBarState::setCurrentWidget
virtual void setCurrentWidget(UMLWidget *widget)
Definition: toolbarstate.cpp:452
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:142
Model_Utils::uniqObjectName
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Definition: model_utils.cpp:527
WorkToolBar::tbb_Seq_Precondition
@ tbb_Seq_Precondition
Definition: worktoolbar.h:74
ToolBarState::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstate.cpp:242
objectwidget.h
umlwidget.h
messagewidget.h
ToolBarState::init
virtual void init()
Definition: toolbarstate.cpp:41
ToolBarStatePool::getButton
WorkToolBar::ToolBar_Buttons getButton() const
Definition: toolbarstatepool.cpp:42
widget_factory.h
ToolBarState::m_pMouseEvent
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:125
toolbarstatepool.h
ToolBarStateOneWidget::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstateonewidget.cpp:87
UMLScene::pos
QPointF pos() const
Definition: umlscene.cpp:458
widget_utils.h
ToolBarStateOneWidget::setWidget
void setWidget(UMLWidget *firstObject)
Definition: toolbarstateonewidget.cpp:177
toolbarstateonewidget.h
widgetbase.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:32
ToolBarStateOneWidget::widgetType
WidgetBase::WidgetType widgetType()
Definition: toolbarstateonewidget.cpp:217
umlscene.h
uml.h
ToolBarStateOneWidget
Definition: toolbarstateonewidget.h:23
portwidget.h
ToolBarState::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstate.cpp:181
WidgetBase::isComponentWidget
bool isComponentWidget()
Definition: widgetbase.h:249
PortWidget
A graphical version of a port on a component.
Definition: portwidget.h:27
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:110
UMLScene
Definition: umlscene.h:68
preconditionwidget.h
PreconditionWidget
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:32
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
package.h
ToolBarStateOneWidget::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstateonewidget.cpp:76
WidgetBase::isActivityWidget
bool isActivityWidget()
Definition: widgetbase.h:241
ToolBarState::currentWidget
virtual UMLWidget * currentWidget() const
Definition: toolbarstate.cpp:438
umldoc.h
ToolBarStateOneWidget::m_isObjectWidgetLine
bool m_isObjectWidgetLine
Definition: toolbarstateonewidget.h:61
ToolBarStateOneWidget::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstateonewidget.cpp:127
WorkToolBar::tbb_Pin
@ tbb_Pin
Definition: worktoolbar.h:109
UMLPackage
Non-graphical information for a Package.
Definition: package.h:32
regionwidget.h