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

umlwidget.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLWIDGET_H
12 #define UMLWIDGET_H
13
14 #include "associationwidgetlist.h"
15 #include "basictypes.h"
16 #include "optionstate.h"
17 #include "umlobject.h"
18 #include "umlwidgetlist.h"
19 #include "widgetbase.h"
20 #include "diagramproxywidget.h"
21
22 #include <QCursor>
23 #include <QFont>
24
25 class IDChangeLog;
26 class UMLDoc;
27 class UMLObject;
28 class UMLScene;
29
30 class QPainter;
31 class QFontMetrics;
32
40 class UMLWidget : public WidgetBase, public DiagramProxyWidget
41 {
42 Q_OBJECT
43 public:
44
45 friend class ToolBarStateArrow; // for calling the mouse*Event handlers
46
47 static const QSizeF DefaultMinimumSize;
48 static const QSizeF DefaultMaximumSize;
49 static const int defaultMargin;
50 static const int selectionMarkerSize;
51 static const int resizeMarkerLineCount;
52
53 explicit UMLWidget(UMLScene *scene, WidgetType type = wt_UMLWidget, UMLObject *o = 0);
54 explicit UMLWidget(UMLScene *scene, WidgetType type = wt_UMLWidget, Uml::ID::Type id = Uml::ID::None);
55 virtual ~UMLWidget();
56
57 // Copy constructor - not implemented.
58 // UMLWidget(const UMLWidget& other);
59
60 UMLWidget& operator=(const UMLWidget& other);
61
62 bool operator==(const UMLWidget& other) const;
63
64 virtual QSizeF minimumSize() const;
65 void setMinimumSize(const QSizeF &size);
66
67 virtual QSizeF maximumSize();
68 void setMaximumSize(const QSizeF &size);
69
70 virtual void setUseFillColor(bool fc);
71 void setUseFillColorCmd(bool fc);
72
73 virtual void setTextColor(const QColor &color);
74 void setTextColorCmd(const QColor &color);
75
76 virtual void setLineColor(const QColor &color);
77 virtual void setLineColorCmd(const QColor &color);
78
79 virtual void setLineWidth(uint width);
80 void setLineWidthCmd(uint width);
81
82 virtual void setFillColor(const QColor &color);
83 void setFillColorCmd(const QColor &color);
84
85 void setSelectedFlag(bool _select);
86 virtual void setSelected(bool _select);
87
88 void setScene(UMLScene *scene);
89
90 virtual bool activate(IDChangeLog* changeLog = 0);
91
92 void setPenFromSettings(QPainter &p);
93 void setPenFromSettings(QPainter *p);
94
95 virtual void setFont(const QFont &font);
96 void setFontCmd(const QFont &font);
97
104 bool getStartMove() const {
105 return m_startMove;
106 }
107
108 virtual void setX(qreal x);
109 virtual void setY(qreal y);
110
114 qreal height() const {
115 return rect().height();
116 }
117
121 qreal width() const {
122 return rect().width();
123 }
124
125 void setSize(qreal width, qreal height);
126 void setSize(const QSizeF& size);
127
128 virtual void resizeWidget(qreal newW, qreal newH);
129 virtual void notifyParentResize();
130
131 bool getIgnoreSnapToGrid() const;
132 void setIgnoreSnapToGrid(bool to);
133
134 void moveByLocal(qreal dx, qreal dy);
135
136 virtual void removeAssoc(AssociationWidget* pAssoc);
137 virtual void addAssoc(AssociationWidget* pAssoc);
138
139 AssociationWidgetList &associationWidgetList() const;
140
144 bool isInstance() const {
145 return m_isInstance;
146 }
147
151 void setIsInstance(bool isInstance) {
152 m_isInstance = isInstance;
153 }
154
158 void setInstanceName(const QString &instanceName) {
159 m_instanceName = instanceName;
160 }
161
165 QString instanceName() const {
166 return m_instanceName;
167 }
168
169 bool showStereotype() const;
170 virtual void setShowStereotype(bool flag);
171
172 virtual bool showPropertiesDialog();
173
174 virtual void adjustAssocs(qreal dx, qreal dy);
175 virtual void adjustUnselectedAssocs(qreal dx, qreal dy);
176
177 bool isActivated() const;
178 void setActivated(bool active = true);
179
180 virtual void cleanup();
181
182 void updateGeometry(bool withAssocs = true);
183
184 void clipSize();
185
186 void forceUpdateFontMetrics(QPainter *painter);
187 void forceUpdateFontMetrics(QFont &font, QPainter *painter);
188
189 virtual bool loadFromXMI1(QDomElement &qElement);
190 virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement);
191
192 QPointF startMovePosition() const;
193 void setStartMovePosition(const QPointF &position);
194
195 QSizeF startResizeSize() const;
196
197 virtual QSizeF calculateSize(bool withExtensions = true) const;
198 void resize();
199
200 bool fixedAspectRatio() const {
201 return m_fixedAspectRatio;
202 }
203
204 void setFixedAspectRatio(bool state) {
205 m_fixedAspectRatio = state;
206 }
207
208 bool resizable() const {
209 return m_resizable;
210 }
211
212 void setResizable(bool state) {
213 m_resizable = state;
214 }
215
216 typedef enum {
217 FT_NORMAL = 0,
218 FT_BOLD = 1,
219 FT_ITALIC = 2,
220 FT_UNDERLINE = 3,
221 FT_BOLD_ITALIC = 4,
222 FT_BOLD_UNDERLINE = 5,
223 FT_ITALIC_UNDERLINE = 6,
224 FT_BOLD_ITALIC_UNDERLINE = 7,
225 FT_INVALID = 8
226 } FontType;
227
228 virtual void setDefaultFontMetrics(QFont &font, UMLWidget::FontType fontType);
229 virtual void setDefaultFontMetrics(QFont &font, UMLWidget::FontType fontType, QPainter &painter);
230
231 QFontMetrics &getFontMetrics(UMLWidget::FontType fontType) const;
232 void setFontMetrics(UMLWidget::FontType fontType, QFontMetrics fm);
233 void setupFontType(QFont &font, UMLWidget::FontType fontType);
234
235 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
236
237 public Q_SLOTS:
238 virtual void updateWidget();
239 virtual void slotMenuSelection(QAction* action);
240 virtual void slotWidgetMoved(Uml::ID::Type id);
241 virtual void slotFillColorChanged(Uml::ID::Type viewID);
242 virtual void slotLineColorChanged(Uml::ID::Type viewID);
243 virtual void slotTextColorChanged(Uml::ID::Type viewID);
244 virtual void slotLineWidthChanged(Uml::ID::Type viewID);
245
246 void slotSnapToGrid();
247
248 signals:
253 void sigWidgetMoved(Uml::ID::Type id);
254
255 protected:
256 virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event);
257 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
258 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
259 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
260 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
261
262 virtual void moveEvent(QGraphicsSceneMouseEvent *event);
263 virtual void moveWidgetBy(qreal diffX, qreal diffY);
264 virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY);
265 virtual void constrain(qreal& width, qreal& height);
266
267 virtual bool isInResizeArea(QGraphicsSceneMouseEvent *me);
268 virtual QCursor resizeCursor() const;
269
270 void selectSingle(QGraphicsSceneMouseEvent *me);
271 void selectMultiple(QGraphicsSceneMouseEvent *me);
272 void deselect(QGraphicsSceneMouseEvent *me);
273 // void resetSelection();
274
275 void setSelectionBounds();
276
277 void resize(QGraphicsSceneMouseEvent *me);
278
279 bool wasSizeChanged();
280 bool wasPositionChanged();
281
282 virtual void toForeground();
283
284 public:
285 enum AddWidgetOption { NoOption = 0, SetupSize = 1, SwitchDirection = 2, ShowProperties = 4, Default = SetupSize | ShowProperties };
286 Q_DECLARE_FLAGS(AddWidgetOptions, AddWidgetOption)
287
288 protected:
289 void addConnectedWidget(UMLWidget *widget, Uml::AssociationType::Enum type = Uml::AssociationType::Association, AddWidgetOptions options = Default);
290 void addConnectedUMLObject(UMLObject::ObjectType otype, Uml::AssociationType::Enum type);
291 void addWidget(UMLWidget *widget, bool showProperties = true);
292
294
295 QString m_instanceName;
296 bool m_isInstance;
297 bool m_showStereotype;
298
300
301 bool m_startMove;
302 QPointF m_startMovePostion;
303 QSizeF m_startResizeSize;
304 int m_nPosX;
305 UMLDoc *m_doc;
306 bool m_resizable;
307 QFontMetrics *m_pFontMetrics[FT_INVALID];
308 QSizeF m_minimumSize;
309 QSizeF m_maximumSize;
310
312 bool m_activated;
313
317 bool m_ignoreSnapToGrid;
318 bool m_ignoreSnapComponentSizeToGrid;
319 bool m_fixedAspectRatio;
320
322 QString m_oldStatusBarMsg;
323
326 QPointF m_pressOffset;
327
329 QPointF m_oldPos;
330
332 qreal m_oldW, m_oldH;
333
335 bool m_shiftPressed;
336
341 bool m_inMoveArea, m_inResizeArea;
342
348 bool m_moved, m_resized;
349
350 private:
351 void init();
352
354 mutable AssociationWidgetList m_Assocs;
355 };
356 Q_DECLARE_OPERATORS_FOR_FLAGS(UMLWidget::AddWidgetOptions)
357 #endif
UMLWidget::selectionMarkerSize
static const int selectionMarkerSize
Definition: umlwidget.h:50
settingsdialog.h
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:328
notewidget.h
ListPopupMenu::mt_InterfaceRequired
@ mt_InterfaceRequired
Definition: listpopupmenu.h:100
UMLWidget::slotSnapToGrid
void slotSnapToGrid()
Definition: umlwidget.cpp:1714
ListPopupMenu::mt_Final_Activity
@ mt_Final_Activity
Definition: listpopupmenu.h:88
WidgetBase::setLineWidth
virtual void setLineWidth(uint width)
Definition: widgetbase.cpp:408
WidgetBase::asObjectWidget
ObjectWidget * asObjectWidget()
Definition: widgetbase.cpp:1484
ListPopupMenu::mt_Exception
@ mt_Exception
Definition: listpopupmenu.h:86
UMLWidget::m_startResizeSize
QSizeF m_startResizeSize
Definition: umlwidget.h:303
UMLWidget::wasPositionChanged
bool wasPositionChanged()
Definition: umlwidget.cpp:1551
UMLWidget::m_oldH
qreal m_oldH
Definition: umlwidget.h:332
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
UMLScene::resizeSceneToItems
void resizeSceneToItems()
Definition: umlscene.cpp:3690
WidgetBase::isMessageWidget
bool isMessageWidget()
Definition: widgetbase.h:256
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLWidget::resize
void resize()
Definition: umlwidget.cpp:1480
UMLWidget::operator=
UMLWidget & operator=(const UMLWidget &other)
Definition: umlwidget.cpp:128
Uml::CmdResizeWidget
Definition: cmdresizewidget.h:23
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLWidget::m_Assocs
AssociationWidgetList m_Assocs
A list of AssociationWidgets between the UMLWidget and other UMLWidgets in the diagram.
Definition: umlwidget.h:354
WidgetBase::baseTypeStrWithoutPrefix
QString baseTypeStrWithoutPrefix() const
Definition: widgetbase.cpp:142
port.h
Uml::CmdChangeUseFillColor
Definition: cmdchangeusefillcolor.h:22
UMLWidget::startResizeSize
QSizeF startResizeSize() const
Definition: umlwidget.cpp:616
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
ObjectNodeWidget::Data
@ Data
Definition: objectnodewidget.h:36
pinwidget.h
UMLWidget::isInResizeArea
virtual bool isInResizeArea(QGraphicsSceneMouseEvent *me)
Definition: umlwidget.cpp:1424
UMLWidget::setFont
virtual void setFont(const QFont &font)
Definition: umlwidget.cpp:1955
UMLWidget::m_activated
bool m_activated
true if the activate function has been called for this class instance
Definition: umlwidget.h:312
statewidget.h
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1326
Uml::TextRole::Seq_Message
@ Seq_Message
Definition: basictypes.h:183
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:28
docwindow.h
ObjectNodeWidget
A graphical version of a UML Activity.
Definition: objectnodewidget.h:29
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
Uml::CmdCreateWidget
Definition: cmdcreatewidget.h:24
UMLWidget::setSelectionBounds
void setSelectionBounds()
Definition: umlwidget.cpp:1559
umlview.h
activitywidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
StateWidget::ShallowHistory
@ ShallowHistory
Definition: statewidget.h:53
ToolBarStateArrow
Definition: toolbarstatearrow.h:31
WidgetBase::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: widgetbase.cpp:618
ListPopupMenu::mt_MessageDestroy
@ mt_MessageDestroy
Definition: listpopupmenu.h:104
WidgetBase::wt_UMLWidget
@ wt_UMLWidget
Definition: widgetbase.h:113
WidgetBase::wt_Precondition
@ wt_Precondition
Definition: widgetbase.h:134
ListPopupMenu::mt_End_State
@ mt_End_State
Definition: listpopupmenu.h:81
WidgetBase::m_lineColor
QColor m_lineColor
Color of the lines of the widget. Is saved to XMI.
Definition: widgetbase.h:335
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
UMLWidget::wasSizeChanged
bool wasSizeChanged()
Definition: umlwidget.cpp:1540
WidgetBase::setUseFillColor
virtual void setUseFillColor(bool state)
Definition: widgetbase.cpp:429
ActivityWidget::Final
@ Final
Definition: activitywidget.h:43
ArtifactWidget
A graphical version of an Artifact.
Definition: artifactwidget.h:31
Uml::AssociationType::Activity
@ Activity
Definition: basictypes.h:122
ListPopupMenu::mt_MessageCreation
@ mt_MessageCreation
Definition: listpopupmenu.h:103
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
component.h
ActivityWidget::Invok
@ Invok
Definition: activitywidget.h:45
UMLScene::activeView
UMLView * activeView() const
Definition: umlscene.cpp:348
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
Tracer::instance
static Tracer * instance()
Definition: debug_utils.cpp:36
WidgetBase::m_usesDiagramLineColor
bool m_usesDiagramLineColor
Definition: widgetbase.h:348
FloatingTextWidget::showChangeTextDialog
void showChangeTextDialog()
Definition: floatingtextwidget.cpp:207
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
UMLWidget::moveEvent
virtual void moveEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:2040
UMLWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:585
ListPopupMenu::mt_Initial_Activity
@ mt_Initial_Activity
Definition: listpopupmenu.h:92
WidgetBase::setSelected
virtual void setSelected(bool select)
Definition: widgetbase.cpp:153
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: usecase.h:25
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
UMLWidget::SetupSize
@ SetupSize
Definition: umlwidget.h:285
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
UMLWidget::m_ignoreSnapComponentSizeToGrid
bool m_ignoreSnapComponentSizeToGrid
Definition: umlwidget.h:318
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:34
toDoubleFromAnyLocale
qreal toDoubleFromAnyLocale(const QString &s)
Definition: basictypes.cpp:1298
I18N_NEXT_RELEASE
#define I18N_NEXT_RELEASE(a, b)
Definition: umlwidget.cpp:71
UMLListViewItem
Items used by UMLListView.
Definition: umllistviewitem.h:40
WorkToolBar::tbb_State_Transition
@ tbb_State_Transition
Definition: worktoolbar.h:78
RegionWidget
Definition: regionwidget.h:20
diagramproxywidget.h
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
WidgetBase::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition: widgetbase.cpp:682
Uml::AssociationType::State
@ State
Definition: basictypes.h:121
WidgetBase::setID
void setID(Uml::ID::Type id)
Definition: widgetbase.cpp:200
WidgetBase::setRect
void setRect(const QRectF &rect)
Definition: widgetbase.cpp:839
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
FloatingTextWidget::textRole
Uml::TextRole::Enum textRole() const
Definition: floatingtextwidget.cpp:344
UMLWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition: umlwidget.cpp:1137
ListPopupMenu::mt_StateJoin
@ mt_StateJoin
Definition: listpopupmenu.h:126
UMLWidget::moveByLocal
void moveByLocal(qreal dx, qreal dy)
Definition: umlwidget.cpp:1380
artifact.h
ListPopupMenu::mt_FloatText
@ mt_FloatText
Definition: listpopupmenu.h:87
ListPopupMenu::mt_Object_Node
@ mt_Object_Node
Definition: listpopupmenu.h:111
UMLWidget::m_resized
bool m_resized
Definition: umlwidget.h:348
ListPopupMenu::mt_Artifact
@ mt_Artifact
Definition: listpopupmenu.h:67
UMLWidget::maximumSize
virtual QSizeF maximumSize()
Definition: umlwidget.cpp:240
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2038
object_factory.h
WidgetBase::m_useFillColor
bool m_useFillColor
flag indicates if the UMLWidget uses the Diagram FillColour
Definition: widgetbase.h:340
ListPopupMenu::mt_StateFork
@ mt_StateFork
Definition: listpopupmenu.h:125
ListPopupMenu::mt_Invoke_Activity
@ mt_Invoke_Activity
Definition: listpopupmenu.h:94
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
UMLWidget::cleanup
virtual void cleanup()
Definition: umlwidget.cpp:1706
SignalWidget::Accept
@ Accept
Definition: signalwidget.h:36
UMLWidget::Default
@ Default
Definition: umlwidget.h:285
UMLWidget::setMaximumSize
void setMaximumSize(const QSizeF &size)
Definition: umlwidget.cpp:251
ListPopupMenu::mt_Choice
@ mt_Choice
Definition: listpopupmenu.h:72
UMLWidget::moveWidgetBy
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Definition: umlwidget.cpp:281
Dialog_Utils::askNewName
bool askNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:151
cmds.h
ListPopupMenu::mt_MessageFound
@ mt_MessageFound
Definition: listpopupmenu.h:105
DocWindow::updateDocumentation
void updateDocumentation(bool clear=false, bool startup=false)
Definition: docwindow.cpp:273
ListPopupMenu::mt_Region
@ mt_Region
Definition: listpopupmenu.h:120
ListPopupMenu::mt_Port
@ mt_Port
Definition: listpopupmenu.h:117
UMLWidget::setScene
void setScene(UMLScene *scene)
Definition: umlwidget.cpp:1666
UMLWidget::FT_INVALID
@ FT_INVALID
Definition: umlwidget.h:225
WidgetBase::operator=
WidgetBase & operator=(const WidgetBase &other)
Definition: widgetbase.cpp:803
umlwidgetlist.h
Uml::CmdChangeLineColor
Definition: cmdchangelinecolor.h:23
Dialog_Utils::askName
bool askName(const QString &title, const QString &prompt, QString &name)
Definition: dialog_utils.cpp:97
UMLScene::snapX
int snapX() const
Definition: umlscene.cpp:3571
WidgetBase::rect
QRectF rect() const
Definition: widgetbase.cpp:831
ListPopupMenu::mt_MessageLost
@ mt_MessageLost
Definition: listpopupmenu.h:106
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
ListPopupMenu::mt_AutoResize
@ mt_AutoResize
Definition: listpopupmenu.h:215
UMLWidget::m_doc
UMLDoc * m_doc
shortcut for UMLApp::app()->getDocument()
Definition: umlwidget.h:305
UMLScene::clearSelected
void clearSelected()
Definition: umlscene.cpp:1456
UMLWidget::m_oldPos
QPointF m_oldPos
The X/Y position the widget had when the movement started.
Definition: umlwidget.h:329
ListPopupMenu::mt_StateTransition
@ mt_StateTransition
Definition: listpopupmenu.h:127
UMLScene::fillColor
const QColor & fillColor() const
Definition: umlscene.cpp:474
ListPopupMenu::mt_Note
@ mt_Note
Definition: listpopupmenu.h:109
UMLScene::selectWidget
void selectWidget(UMLWidget *widget, QRectF *rect=0)
Definition: umlscene.cpp:1821
actorwidget.h
AssociationWidgetListIt
QListIterator< QPointer< AssociationWidget > > AssociationWidgetListIt
Definition: associationwidgetlist.h:22
WidgetBase::setFont
virtual void setFont(const QFont &font)
Definition: widgetbase.cpp:551
Widget_Utils::defaultWidgetName
QString defaultWidgetName(WidgetBase::WidgetType type)
Definition: widget_utils.cpp:834
ListPopupMenu::mt_End_Activity
@ mt_End_Activity
Definition: listpopupmenu.h:80
ClassPropertiesDialog
Definition: classpropertiesdialog.h:35
UMLWidget::resizeMarkerLineCount
static const int resizeMarkerLineCount
Definition: umlwidget.h:51
StateWidget::Junction
@ Junction
Definition: statewidget.h:51
WidgetBase::hasDocumentation
bool hasDocumentation()
Definition: widgetbase.cpp:281
UMLPort
Non-graphical information for a Port.
Definition: port.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLWidget::m_startMovePostion
QPointF m_startMovePostion
Definition: umlwidget.h:302
UMLWidget::selectMultiple
void selectMultiple(QGraphicsSceneMouseEvent *me)
Definition: umlwidget.cpp:1632
UMLWidget::m_nPosX
int m_nPosX
Definition: umlwidget.h:304
Uml::CmdChangeFillColor
Definition: cmdchangefillcolor.h:25
UMLWidget::showStereotype
bool showStereotype() const
Definition: umlwidget.cpp:2030
SignalWidget
Definition: signalwidget.h:28
UMLScene::snapY
int snapY() const
Definition: umlscene.cpp:3579
UMLScene::snapComponentSizeToGrid
bool snapComponentSizeToGrid() const
Definition: umlscene.cpp:3553
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1572
UMLWidget::setDefaultFontMetrics
virtual void setDefaultFontMetrics(QFont &font, UMLWidget::FontType fontType)
Definition: umlwidget.cpp:1816
StateWidget::Fork
@ Fork
Definition: statewidget.h:49
UMLWidget::FT_UNDERLINE
@ FT_UNDERLINE
Definition: umlwidget.h:220
ListPopupMenu::mt_InterfaceProvided
@ mt_InterfaceProvided
Definition: listpopupmenu.h:99
usecasewidget.h
UMLScene::useFillColor
bool useFillColor() const
Definition: umlscene.cpp:1378
optionstate.h
UMLScene::triggerToolbarButton
void triggerToolbarButton(WorkToolBar::ToolBar_Buttons button)
Definition: umlscene.cpp:2946
UMLWidget::slotFillColorChanged
virtual void slotFillColorChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1018
WidgetBase::m_usesDiagramLineWidth
bool m_usesDiagramLineWidth
Definition: widgetbase.h:349
DiagramProxyWidget
Definition: diagramproxywidget.h:29
ObjectWidget::setShowDestruction
void setShowDestruction(bool bShow)
Definition: objectwidget.cpp:514
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:120
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
floatingtextwidget.h
WidgetBase::isObjectWidget
bool isObjectWidget()
Definition: widgetbase.h:260
StateWidget::End
@ End
Definition: statewidget.h:48
UMLWidget::isActivated
bool isActivated() const
Definition: umlwidget.cpp:1256
UMLWidget::calculateSize
virtual QSizeF calculateSize(bool withExtensions=true) const
Definition: umlwidget.cpp:1452
UMLWidget::mouseReleaseEvent
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:534
UMLWidget::setActivated
void setActivated(bool active=true)
Definition: umlwidget.cpp:1266
UMLScene::setupNewWidget
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Definition: umlscene.cpp:715
DiagramProxyWidget::activate
bool activate(IDChangeLog *changeLog=0)
Definition: diagramproxywidget.cpp:95
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
AssociationWidgetList
QList< QPointer< AssociationWidget > > AssociationWidgetList
Definition: associationwidgetlist.h:19
ListPopupMenu::mt_UseCase
@ mt_UseCase
Definition: listpopupmenu.h:132
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
UMLScene::snappedX
qreal snappedX(qreal x)
Definition: umlscene.cpp:3595
UMLWidget::setStartMovePosition
void setStartMovePosition(const QPointF &position)
Definition: umlwidget.cpp:607
UMLWidget::m_minimumSize
QSizeF m_minimumSize
Definition: umlwidget.h:308
UMLListView::findItem
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistview.cpp:1412
ListPopupMenu::mt_Junction
@ mt_Junction
Definition: listpopupmenu.h:101
UMLWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: umlwidget.cpp:1358
IDChangeLog
Definition: idchangelog.h:27
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
UMLWidget::sigWidgetMoved
void sigWidgetMoved(Uml::ID::Type id)
Definition: moc_umlwidget.cpp:176
Uml::CmdChangeLineWidth
Definition: cmdchangelinewidth.h:21
UMLWidget::getStartMove
bool getStartMove() const
Definition: umlwidget.h:104
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1685
UMLActor
Information for a non-graphical UML Actor.
Definition: actor.h:28
ListPopupMenu::mt_Activity_Transition
@ mt_Activity_Transition
Definition: listpopupmenu.h:65
uniqueid.h
UMLWidget::addConnectedUMLObject
void addConnectedUMLObject(UMLObject::ObjectType otype, Uml::AssociationType::Enum type)
UMLWidget::setSelected
virtual void setSelected(bool _select)
Definition: umlwidget.cpp:1573
UMLWidget::deselect
void deselect(QGraphicsSceneMouseEvent *me)
Definition: umlwidget.cpp:1644
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1895
UMLScene::createAutoAttributeAssociations
void createAutoAttributeAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2602
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:142
ListPopupMenu::mt_Interface
@ mt_Interface
Definition: listpopupmenu.h:97
WidgetBase::setTextColor
virtual void setTextColor(const QColor &color)
Definition: widgetbase.cpp:345
UMLWidget::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: umlwidget.cpp:259
Model_Utils::uniqObjectName
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Definition: model_utils.cpp:526
UMLScene::addAssociation
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Definition: umlscene.cpp:2095
UMLWidget::m_pressOffset
QPointF m_pressOffset
Definition: umlwidget.h:326
UMLComponent
Non-graphical information for a Component.
Definition: component.h:28
UMLScene::selectedCount
int selectedCount(bool filterText=false) const
Definition: umlscene.cpp:2005
objectwidget.h
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1074
a
QString a
Definition: petalnode.cpp:18
ActivityWidget::End
@ End
Definition: activitywidget.h:42
UMLWidget::setIgnoreSnapToGrid
void setIgnoreSnapToGrid(bool to)
Definition: umlwidget.cpp:1727
UMLWidget::m_ignoreSnapToGrid
bool m_ignoreSnapToGrid
Definition: umlwidget.h:317
umlwidget.h
UMLWidget::addAssoc
virtual void addAssoc(AssociationWidget *pAssoc)
Definition: umlwidget.cpp:1274
UMLWidget::m_isInstance
bool m_isInstance
holds whether this widget is a component instance (i.e. on a deployment diagram)
Definition: umlwidget.h:296
UMLWidget::updateWidget
virtual void updateWidget()
Definition: umlwidget.cpp:649
UMLWidget::resizeWidget
virtual void resizeWidget(qreal newW, qreal newH)
Definition: umlwidget.cpp:632
WidgetBase::boundingRect
virtual QRectF boundingRect() const
Definition: widgetbase.cpp:860
UMLWidget::clipSize
void clipSize()
Definition: umlwidget.cpp:1805
UMLWidget::defaultMargin
static const int defaultMargin
Definition: umlwidget.h:49
componentwidget.h
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
UMLWidget::m_oldStatusBarMsg
QString m_oldStatusBarMsg
The text in the status bar when the cursor was pressed.
Definition: umlwidget.h:322
UMLWidget::setUseFillColor
virtual void setUseFillColor(bool fc)
Definition: umlwidget.cpp:1087
UMLWidget::setupFontType
void setupFontType(QFont &font, UMLWidget::FontType fontType)
Definition: umlwidget.cpp:1822
Uml::CmdMoveWidget
Definition: cmdmovewidget.h:23
UMLClassifier::setBaseType
void setBaseType(UMLObject::ObjectType ot)
Definition: classifier.cpp:83
ListPopupMenu::mt_Fork
@ mt_Fork
Definition: listpopupmenu.h:90
UMLWidget::FT_BOLD_ITALIC_UNDERLINE
@ FT_BOLD_ITALIC_UNDERLINE
Definition: umlwidget.h:224
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
ActivityWidget::Param
@ Param
Definition: activitywidget.h:46
ListPopupMenu::mt_DeepHistory
@ mt_DeepHistory
Definition: listpopupmenu.h:77
i18n
#define i18n
Definition: main.cpp:39
UMLWidget::setInstanceName
void setInstanceName(const QString &instanceName)
Definition: umlwidget.h:158
UMLWidget::setTextColor
virtual void setTextColor(const QColor &color)
Definition: umlwidget.cpp:1117
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
messagewidget.h
UMLScene::lineColor
const QColor & lineColor() const
Definition: umlscene.cpp:493
WidgetBase::changesShape
bool changesShape()
Definition: widgetbase.cpp:578
UMLWidget::setFillColor
virtual void setFillColor(const QColor &color)
Definition: umlwidget.cpp:1168
UMLScene::selectedWidgets
UMLWidgetList selectedWidgets() const
Definition: umlscene.cpp:1406
UMLWidget::m_maximumSize
QSizeF m_maximumSize
Definition: umlwidget.h:309
UMLWidget::isInstance
bool isInstance() const
Definition: umlwidget.h:144
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
Uml::CmdChangeFont
Definition: cmdchangefont.h:23
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:70
WidgetBase::wt_Class
@ wt_Class
Definition: widgetbase.h:116
SignalWidget::Send
@ Send
Definition: signalwidget.h:35
widget_factory.h
UMLWidget::m_shiftPressed
bool m_shiftPressed
If shift or control button were pressed in mouse press event.
Definition: umlwidget.h:335
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1208
ForkJoinWidget
Displays a fork/join plate in a state diagram.
Definition: forkjoinwidget.h:26
WidgetBase::wt_Text
@ wt_Text
Definition: widgetbase.h:126
basictypes.h
UMLWidget::selectSingle
void selectSingle(QGraphicsSceneMouseEvent *me)
Definition: umlwidget.cpp:1618
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3460
UMLWidget::setFillColorCmd
void setFillColorCmd(const QColor &color)
Definition: umlwidget.cpp:1180
ListPopupMenu::mt_InterfaceComponent
@ mt_InterfaceComponent
Definition: listpopupmenu.h:98
WidgetBase::m_autoResize
bool m_autoResize
Definition: widgetbase.h:352
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
UMLWidget::SwitchDirection
@ SwitchDirection
Definition: umlwidget.h:285
UMLWidget::setFixedAspectRatio
void setFixedAspectRatio(bool state)
Definition: umlwidget.h:204
interfacewidget.h
ListPopupMenu::mt_Show_Destruction_Box
@ mt_Show_Destruction_Box
Definition: listpopupmenu.h:160
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
UMLWidget::setSelectedFlag
void setSelectedFlag(bool _select)
Definition: umlwidget.cpp:1563
ListPopupMenu::mt_PrePostCondition
@ mt_PrePostCondition
Definition: listpopupmenu.h:118
SignalWidget::Time
@ Time
Definition: signalwidget.h:37
UMLWidget::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=0)
Definition: umlwidget.cpp:89
Settings::ClassState::showStereoType
bool showStereoType
Definition: optionstate.h:124
UMLWidget::setIsInstance
void setIsInstance(bool isInstance)
Definition: umlwidget.h:151
UMLWidget::NoOption
@ NoOption
Definition: umlwidget.h:285
UMLWidget::setFontCmd
void setFontCmd(const QFont &font)
Definition: umlwidget.cpp:1970
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3479
ActivityWidget::Normal
@ Normal
Definition: activitywidget.h:41
WidgetBase::setAutoResize
void setAutoResize(bool state)
Definition: widgetbase.cpp:569
ListPopupMenu::mt_Branch
@ mt_Branch
Definition: listpopupmenu.h:69
AssociationWidget::moveEntireAssoc
void moveEntireAssoc(qreal x, qreal y)
Definition: associationwidget.cpp:3836
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
umllistview.h
WidgetBase::m_usesDiagramUseFillColor
bool m_usesDiagramUseFillColor
Definition: widgetbase.h:351
artifactwidget.h
UMLScene::getPastePoint
QPointF getPastePoint()
Definition: umlscene.cpp:3391
NoteWidget
Displays a note box.
Definition: notewidget.h:31
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLWidget::setUseFillColorCmd
void setUseFillColorCmd(bool fc)
Definition: umlwidget.cpp:1099
InterfaceWidget
Definition: interfacewidget.h:25
widget_utils.h
UMLWidget::associationWidgetList
AssociationWidgetList & associationWidgetList() const
Definition: umlwidget.cpp:1284
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
UMLDoc
Definition: umldoc.h:75
UMLWidget::m_pFontMetrics
QFontMetrics * m_pFontMetrics[FT_INVALID]
Definition: umlwidget.h:307
DiagramProxyWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement)
Definition: diagramproxywidget.cpp:104
UMLScene::textColor
const QColor & textColor() const
Definition: umlscene.cpp:531
ListPopupMenu::mt_Actor
@ mt_Actor
Definition: listpopupmenu.h:66
StateWidget::Join
@ Join
Definition: statewidget.h:50
UMLWidget::setLineColorCmd
virtual void setLineColorCmd(const QColor &color)
Definition: umlwidget.cpp:1128
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
ListPopupMenu::mt_Rename_Object
@ mt_Rename_Object
Definition: listpopupmenu.h:180
WidgetBase::wt_Message
@ wt_Message
Definition: widgetbase.h:125
ListPopupMenu::mt_Send_Signal
@ mt_Send_Signal
Definition: listpopupmenu.h:122
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
UMLWidget::mousePressEvent
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:364
WidgetBase::setFillColor
virtual void setFillColor(const QColor &color)
Definition: widgetbase.cpp:387
Uml
Definition: basictypes.cpp:37
UMLWidget::slotLineColorChanged
virtual void slotLineColorChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1053
UseCaseWidget
A graphical version of a UMLUseCase.
Definition: usecasewidget.h:43
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1697
UMLWidget::instanceName
QString instanceName() const
Definition: umlwidget.h:165
UMLWidget::init
void init()
Definition: umlwidget.cpp:698
UMLWidget::adjustAssocs
virtual void adjustAssocs(qreal dx, qreal dy)
Definition: umlwidget.cpp:1310
UMLScene::resizeSelection
void resizeSelection()
Definition: umlscene.cpp:1661
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
WidgetBase::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: widgetbase.cpp:726
UMLScene::lineWidth
uint lineWidth() const
Definition: umlscene.cpp:512
UMLWidget::m_instanceName
QString m_instanceName
instance name (used if on a deployment diagram)
Definition: umlwidget.h:295
UMLWidget::slotTextColorChanged
virtual void slotTextColorChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1038
ListPopupMenu::mt_Hide_Destruction_Box
@ mt_Hide_Destruction_Box
Definition: listpopupmenu.h:149
UMLWidget::adjustUnselectedAssocs
virtual void adjustUnselectedAssocs(qreal dx, qreal dy)
Definition: umlwidget.cpp:1341
ListPopupMenu::mt_MessageSynchronous
@ mt_MessageSynchronous
Definition: listpopupmenu.h:107
associationwidget.h
UMLWidget::ShowProperties
@ ShowProperties
Definition: umlwidget.h:285
UMLWidget::DefaultMaximumSize
static const QSizeF DefaultMaximumSize
Definition: umlwidget.h:48
DocWindow::showDocumentation
void showDocumentation(UMLObject *object, bool overwrite=false)
Definition: docwindow.cpp:130
Settings::OptionState
Definition: optionstate.h:314
ListPopupMenu::mt_Accept_Time_Event
@ mt_Accept_Time_Event
Definition: listpopupmenu.h:63
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:329
ActivityWidget::Branch
@ Branch
Definition: activitywidget.h:44
WidgetBase::widgetHasUMLObject
static bool widgetHasUMLObject(WidgetBase::WidgetType type)
Definition: widgetbase.cpp:656
widgetbase.h
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
WidgetBase::m_lineWidth
uint m_lineWidth
Width of the lines of the widget. Is saved to XMI.
Definition: widgetbase.h:339
WidgetBase::lineColor
QColor lineColor() const
Definition: widgetbase.cpp:356
WidgetBase::m_font
QFont m_font
Definition: widgetbase.h:338
ListPopupMenu::mt_MessageAsynchronous
@ mt_MessageAsynchronous
Definition: listpopupmenu.h:102
UMLWidget::m_inResizeArea
bool m_inResizeArea
Definition: umlwidget.h:341
classifier.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
AssociationWidget::widgetMoved
void widgetMoved(UMLWidget *widget, qreal x, qreal y)
Definition: associationwidget.cpp:1867
ActivityWidget::Initial
@ Initial
Definition: activitywidget.h:40
uError
#define uError()
Definition: debug_utils.h:123
UMLWidget::FT_BOLD_UNDERLINE
@ FT_BOLD_UNDERLINE
Definition: umlwidget.h:222
UMLWidget::setLineWidthCmd
void setLineWidthCmd(uint width)
Definition: umlwidget.cpp:1157
UMLScene::selectedAssocs
AssociationWidgetList selectedAssocs()
Definition: umlscene.cpp:2049
UMLWidget::m_startMove
bool m_startMove
Definition: umlwidget.h:301
UMLWidget::addWidget
void addWidget(UMLWidget *widget, bool showProperties=true)
Definition: umlwidget.cpp:2133
umlscene.h
WidgetBase::wt_Interface
@ wt_Interface
Definition: widgetbase.h:117
uml.h
UMLWidget::setSize
void setSize(qreal width, qreal height)
Definition: umlwidget.cpp:1745
portwidget.h
UMLWidget::m_inMoveArea
bool m_inMoveArea
Definition: umlwidget.h:341
UMLWidget::setFontMetrics
void setFontMetrics(UMLWidget::FontType fontType, QFontMetrics fm)
Definition: umlwidget.cpp:1944
UMLWidget::getIgnoreSnapToGrid
bool getIgnoreSnapToGrid() const
Definition: umlwidget.cpp:1735
UMLWidget::~UMLWidget
virtual ~UMLWidget()
Definition: umlwidget.cpp:120
signalwidget.h
UMLWidget::removeAssoc
virtual void removeAssoc(AssociationWidget *pAssoc)
Definition: umlwidget.cpp:1293
NoteWidget::Normal
@ Normal
Definition: notewidget.h:38
Uml::CmdChangeTextColor
Definition: cmdchangetextcolor.h:23
ComponentWidget
A graphical version of a Component.
Definition: componentwidget.h:30
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLScene::snappedY
qreal snappedY(qreal y)
Definition: umlscene.cpp:3613
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
WidgetBase::wt_Object
@ wt_Object
Definition: widgetbase.h:122
WidgetBase::wt_Entity
@ wt_Entity
Definition: widgetbase.h:120
DiagramProxyWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: diagramproxywidget.cpp:111
AssociationWidget::saveIdealTextPositions
void saveIdealTextPositions()
Definition: associationwidget.cpp:1853
UMLScene::createAutoConstraintAssociations
void createAutoConstraintAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2732
UMLWidget::m_showStereotype
bool m_showStereotype
should the stereotype be displayed
Definition: umlwidget.h:297
WidgetBase::baseTypeStr
QLatin1String baseTypeStr() const
Definition: widgetbase.cpp:133
UMLWidget::AddWidgetOption
AddWidgetOption
Definition: umlwidget.h:285
usecase.h
UMLWidget::setShowStereotype
virtual void setShowStereotype(bool flag)
Definition: umlwidget.cpp:2018
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:111
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
ListPopupMenu::mt_Component
@ mt_Component
Definition: listpopupmenu.h:75
WidgetBase::lineWidth
uint lineWidth() const
Definition: widgetbase.cpp:398
UMLScene::createAutoAssociations
void createAutoAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2412
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
actor.h
umlobject.h
UMLWidget::FT_ITALIC_UNDERLINE
@ FT_ITALIC_UNDERLINE
Definition: umlwidget.h:223
UMLWidget::toForeground
virtual void toForeground()
Definition: umlwidget.cpp:312
associationwidgetlist.h
ListPopupMenu::mt_Param_Activity
@ mt_Param_Activity
Definition: listpopupmenu.h:115
WorkToolBar::tbb_Exception
@ tbb_Exception
Definition: worktoolbar.h:120
objectnodewidget.h
classpropertiesdialog.h
UMLWidget::setTextColorCmd
void setTextColorCmd(const QColor &color)
Definition: umlwidget.cpp:1108
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLWidget::slotLineWidthChanged
virtual void slotLineWidthChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1070
WidgetBase::slotMenuSelection
virtual void slotMenuSelection(QAction *trigger)
Definition: widgetbase.cpp:963
listpopupmenu.h
WidgetBase::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: widgetbase.cpp:914
UMLScene::getPaste
bool getPaste() const
Definition: umlscene.cpp:2971
idchangelog.h
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
UMLWidget::operator==
bool operator==(const UMLWidget &other) const
Definition: umlwidget.cpp:166
ListPopupMenu::mt_Pin
@ mt_Pin
Definition: listpopupmenu.h:116
UMLScene::isSequenceDiagram
bool isSequenceDiagram()
Definition: umlscene.h:318
UMLWidget::constrainMovementForAllWidgets
virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY)
Definition: umlwidget.cpp:304
UMLApp::statusBarMsg
QString statusBarMsg()
Definition: uml.cpp:3372
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
UMLWidget::forceUpdateFontMetrics
void forceUpdateFontMetrics(QPainter *painter)
Definition: umlwidget.cpp:1982
UMLWidget::FontType
FontType
Definition: umlwidget.h:216
UMLScene::ID
Uml::ID::Type ID() const
Definition: umlscene.cpp:442
FloatingTextWidget::isTextValid
static bool isTextValid(const QString &text)
Definition: floatingtextwidget.cpp:462
UMLApp::slotCopyChanged
void slotCopyChanged()
Definition: uml.cpp:2008
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:88
UMLWidget::m_oldW
qreal m_oldW
The width/height the widget had when the resize started.
Definition: umlwidget.h:332
UMLWidget::mouseMoveEvent
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:454
WidgetBase::setLineColor
virtual void setLineColor(const QColor &color)
Definition: widgetbase.cpp:366
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3438
UMLWidget::DefaultMinimumSize
static const QSizeF DefaultMinimumSize
Definition: umlwidget.h:47
FloatingTextWidget::text
QString text() const
Definition: floatingtextwidget.cpp:88
UMLWidget::setLineWidth
virtual void setLineWidth(uint width)
Definition: umlwidget.cpp:1147
StateWidget::Choice
@ Choice
Definition: statewidget.h:54
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
UMLWidget::slotWidgetMoved
virtual void slotWidgetMoved(Uml::ID::Type id)
Definition: umlwidget.cpp:1009
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
UMLWidget::setMinimumSize
void setMinimumSize(const QSizeF &size)
Definition: umlwidget.cpp:230
UMLWidget::resizeCursor
virtual QCursor resizeCursor() const
Definition: umlwidget.cpp:1411
UMLWidget::resizable
bool resizable() const
Definition: umlwidget.h:208
ListPopupMenu::mt_Activity
@ mt_Activity
Definition: listpopupmenu.h:64
WidgetBase::m_usesDiagramFillColor
bool m_usesDiagramFillColor
Definition: widgetbase.h:347
UMLWidget::fixedAspectRatio
bool fixedAspectRatio() const
Definition: umlwidget.h:200
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
UMLWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: umlwidget.cpp:768
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
ListPopupMenu::mt_Accept_Signal
@ mt_Accept_Signal
Definition: listpopupmenu.h:62
umldoc.h
UMLWidget::constrain
virtual void constrain(qreal &width, qreal &height)
Definition: umlwidget.cpp:675
UMLWidget::m_moved
bool m_moved
Definition: umlwidget.h:348
DiagramProxyWidget::operator=
DiagramProxyWidget & operator=(const DiagramProxyWidget &other)
Definition: diagramproxywidget.cpp:167
StateWidget::Normal
@ Normal
Definition: statewidget.h:47
UMLWidget::notifyParentResize
virtual void notifyParentResize()
Definition: umlwidget.cpp:641
WidgetBase::id
Uml::ID::Type id() const
Definition: widgetbase.cpp:214
UMLWidget::setResizable
void setResizable(bool state)
Definition: umlwidget.h:212
ListPopupMenu::mt_Resize
@ mt_Resize
Definition: listpopupmenu.h:216
UMLWidget::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition: umlwidget.cpp:1192
WidgetBase::m_fillColor
QColor m_fillColor
color of the background of the widget
Definition: widgetbase.h:336
forkjoinwidget.h
WidgetBase::umlDoc
UMLDoc * umlDoc() const
Definition: widgetbase.cpp:172
StateWidget::DeepHistory
@ DeepHistory
Definition: statewidget.h:52
UMLWidget::FT_ITALIC
@ FT_ITALIC
Definition: umlwidget.h:219
UMLWidget::startMovePosition
QPointF startMovePosition() const
Definition: umlwidget.cpp:598
ListPopupMenu::mt_State
@ mt_State
Definition: listpopupmenu.h:124
UMLWidget::addConnectedWidget
void addConnectedWidget(UMLWidget *widget, Uml::AssociationType::Enum type=Uml::AssociationType::Association, AddWidgetOptions options=Default)
Definition: umlwidget.cpp:2096
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
WorkToolBar::tbb_Pin
@ tbb_Pin
Definition: worktoolbar.h:109
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
ClassifierWidget::setDrawAsCircle
void setDrawAsCircle(bool drawAsCircle)
Definition: classifierwidget.cpp:1153
UMLWidget::m_fixedAspectRatio
bool m_fixedAspectRatio
Definition: umlwidget.h:319
ActorWidget
A graphical version of a UML Actor.
Definition: actorwidget.h:42
regionwidget.h
UMLWidget::m_resizable
bool m_resizable
Definition: umlwidget.h:306
ListPopupMenu::mt_ShallowHistory
@ mt_ShallowHistory
Definition: listpopupmenu.h:123