umbrello: umbrello/umlscene.h Source File

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

umlscene.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 UMLSCENE_H
12 #define UMLSCENE_H
13
14 // local includes
15 #include "associationwidgetlist.h"
16 #include "basictypes.h"
17 #include "classifierwidget.h"
18 #include "messagewidgetlist.h"
19 #include "optionstate.h"
20 #include "umlobject.h"
21 #include "umlobjectlist.h"
22 #include "umlwidgetlist.h"
23 #include "worktoolbar.h"
24 #include "widgetbase.h"
25
26 // Qt includes
27 #include <QDomDocument>
28 #include <QGraphicsScene>
29 #include <QGraphicsItem>
30 #include <QGraphicsSceneMouseEvent>
31 #include <QGraphicsPolygonItem>
32 #include <QKeyEvent>
33 #include <QMouseEvent>
34 #include <QPixmap>
35
36 // forward declarations
37 class ClassOptionsPage;
38 class IDChangeLog;
39 class LayoutGrid;
40 class FloatingTextWidget;
41 class ObjectWidget;
42 class ToolBarState;
43 class ToolBarStateFactory;
44 class UMLFolder;
45 class UMLDoc;
46 class UMLAttribute;
47 class UMLCanvasObject;
48 class UMLClassifier;
49 class UMLViewImageExporter;
50 class UMLForeignKeyConstraint;
51 class UMLEntity;
52 class UMLView;
53
54 class QHideEvent;
55 class QMouseEvent;
56 class QPrinter;
57 class QShowEvent;
58 class UMLScenePrivate;
59
60 // migration wrapper for QGraphicsScene items
61 typedef QList<QGraphicsItem*> UMLSceneItemList;
62
68 class UMLScene : public QGraphicsScene
69 {
70 Q_OBJECT
71 public:
72 friend class UMLViewImageExporterModel;
73
74 explicit UMLScene(UMLFolder *parentFolder, UMLView *view = 0);
75 virtual ~UMLScene();
76
77 UMLView* activeView() const;
78
79 // Accessors and other methods dealing with loaded/saved data
80
81 UMLFolder* folder() const;
82 void setFolder(UMLFolder *folder);
83
84 QString documentation() const;
85 void setDocumentation(const QString &doc);
86
87 bool autoIncrementSequence() const;
88 void setAutoIncrementSequence(bool state);
89 QString autoIncrementSequenceValue();
90
91 QString name() const;
92 void setName(const QString &name);
93
94 Uml::DiagramType::Enum type() const;
95 void setType(Uml::DiagramType::Enum type);
96
97 Uml::ID::Type ID() const;
98 void setID(Uml::ID::Type id);
99
100 QPointF pos() const;
101 void setPos(const QPointF &pos);
102
103 const QColor& fillColor() const;
104 void setFillColor(const QColor &color);
105
106 const QColor& lineColor() const;
107 void setLineColor(const QColor &color);
108
109 uint lineWidth() const;
110 void setLineWidth(uint width);
111
112 const QColor& textColor() const;
113 void setTextColor(const QColor& color);
114
115 const QColor& gridDotColor() const;
116 void setGridDotColor(const QColor& color);
117
118 const QColor& backgroundColor() const;
119
120 bool snapToGrid() const;
121 void setSnapToGrid(bool bSnap);
122
123 bool snapComponentSizeToGrid() const;
124 void setSnapComponentSizeToGrid(bool bSnap);
125
126 int snapX() const;
127 int snapY() const;
128 void setSnapSpacing(int x, int y);
129
130 qreal snappedX(qreal x);
131 qreal snappedY(qreal y);
132
133 bool isSnapGridVisible() const;
134 void setSnapGridVisible(bool bShow);
135
136 bool isShowDocumentationIndicator() const;
137 void setShowDocumentationIndicator(bool bShow);
138
139 bool useFillColor() const;
140 void setUseFillColor(bool ufc);
141
142 QFont font() const;
143 void setFont(QFont font, bool changeAllWidgets = false);
144
145 bool showOpSig() const;
146 void setShowOpSig(bool bShowOpSig);
147
148 Settings::OptionState& optionState();
149 void setOptionState(const Settings::OptionState& options);
150
151 const AssociationWidgetList associationList() const;
152 const MessageWidgetList messageList() const;
153 const UMLWidgetList widgetList() const;
154 void addWidgetCmd(UMLWidget* widget);
155 void addWidgetCmd(AssociationWidget *widget);
156
157 bool isOpen() const;
158 void setIsOpen(bool isOpen);
159
160 // End of accessors and methods that only deal with loaded/saved data
162
163 void print(QPrinter *pPrinter, QPainter & pPainter);
164
165 void hideEvent(QHideEvent *he);
166 void showEvent(QShowEvent *se);
167
168 void checkMessages(ObjectWidget * w);
169
170 UMLWidget* findWidget(Uml::ID::Type id);
171
172 AssociationWidget* findAssocWidget(Uml::ID::Type id);
173 AssociationWidget* findAssocWidget(Uml::AssociationType::Enum at,
174 UMLWidget *pWidgetA, UMLWidget *pWidgetB);
175 AssociationWidget* findAssocWidget(UMLWidget *pWidgetA,
176 UMLWidget *pWidgetB, const QString& roleNameB);
177
178 void removeWidget(UMLWidget *o);
179 void removeWidget(AssociationWidget *w);
180 void removeWidgetCmd(UMLWidget *o);
181 private:
182 void removeOwnedWidgets(UMLWidget* o);
183 public:
184
185 UMLWidgetList selectedWidgets() const;
186 AssociationWidgetList selectedAssociationWidgets() const;
187 UMLWidgetList selectedMessageWidgets() const;
188 void clearSelected();
189
190 void moveSelectedBy(qreal dX, qreal dY);
191
192 int selectedCount(bool filterText = false) const;
193
194 void selectionUseFillColor(bool useFC);
195 void selectionSetFont(const QFont &font);
196 void selectionSetLineColor(const QColor &color);
197 void selectionSetLineWidth(uint width);
198 void selectionSetFillColor(const QColor &color);
199 void selectionSetVisualProperty(ClassifierWidget::VisualProperty property, bool value);
200
201 private:
202 void unselectChildrenOfSelectedWidgets();
203 public:
204 void deleteSelection();
205 void resizeSelection();
206
207 void selectAll();
208
209 UMLWidget* widgetOnDiagram(Uml::ID::Type id);
210 UMLWidget *widgetOnDiagram(WidgetBase::WidgetType type);
211
212 bool isSavedInSeparateFile();
213
214 void setMenu(const QPoint& pos);
215
216 void resetToolbar();
217 void triggerToolbarButton(WorkToolBar::ToolBar_Buttons button);
218
219 bool getPaste() const;
220 void setPaste(bool paste);
221
222 void activate();
223
224 AssociationWidgetList selectedAssocs();
225 UMLWidgetList selectedWidgetsExt(bool filterText = true);
226
227 void activateAfterLoad(bool bUseLog = false);
228
229 void endPartialWidgetPaste();
230 void beginPartialWidgetPaste();
231
232 void removeWidgetCmd(AssociationWidget* pAssoc);
233 void removeAssociations(UMLWidget* pWidget);
234 void selectAssociations(bool bSelect);
235
236 void getWidgetAssocs(UMLObject* Obj, AssociationWidgetList & Associations);
237
238 void removeAllAssociations();
239
240 void removeAllWidgets();
241
242 void getDiagram(QPixmap & diagram, const QRectF &rect);
243 void getDiagram(QPainter &painter, const QRectF &source, const QRectF &target = QRectF());
244
245 void copyAsImage(QPixmap*& pix);
246
247 UMLViewImageExporter* getImageExporter();
248
249 bool addAssociation(AssociationWidget* pAssoc, bool isPasteOperation = false);
250
251 void removeAssocInViewAndDoc(AssociationWidget* assoc);
252
253 void addFloatingTextWidget(FloatingTextWidget* pWidget);
254
255 QPointF getPastePoint();
256 void resetPastePoint();
257
258 void setStartedCut();
259
260 void createAutoAssociations(UMLWidget * widget);
261 void createAutoAttributeAssociations(UMLWidget *widget);
262 void createAutoConstraintAssociations(UMLWidget* widget);
263 void createAutoAttributeAssociations2(UMLWidget *widget);
264
265 void updateContainment(UMLCanvasObject *self);
266
267 void setClassWidgetOptions(ClassOptionsPage * page);
268
269 WidgetBase::WidgetType getUniqueSelectionType();
270
271 void clearDiagram();
272
273 void applyLayout(const QString &actionText);
274
275 void toggleSnapToGrid();
276 void toggleSnapComponentSizeToGrid();
277 void toggleShowGrid();
278
279 void fileLoaded();
280
281 void resizeSceneToItems();
282
283 // Load/Save interface:
284
285 virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
286 virtual bool loadFromXMI1(QDomElement & qElement);
287
288 bool loadUISDiagram(QDomElement & qElement);
289 UMLWidget* loadWidgetFromXMI(QDomElement& widgetElement);
290
291 void addObject(UMLObject *object);
292
293 void selectWidgets(qreal px, qreal py, qreal qx, qreal qy);
294 void selectWidgets(UMLWidgetList &widgets);
295 void selectWidget(UMLWidget* widget, QRectF* rect = 0);
296 void selectWidgetsOfAssoc(AssociationWidget *a);
297
298 ObjectWidget * onWidgetLine(const QPointF &point) const;
299 ObjectWidget * onWidgetDestructionBox(const QPointF &point) const;
300
301 UMLWidget* getFirstMultiSelectedWidget() const;
302
303 UMLWidget* widgetAt(const QPointF& p);
304 AssociationWidget* associationAt(const QPointF& p);
305 MessageWidget* messageAt(const QPointF& p);
306
307 void setupNewWidget(UMLWidget *w, bool setPosition=true);
308
309 bool getCreateObject() const;
310 void setCreateObject(bool bCreate);
311
312 int generateCollaborationId();
313
314 UMLSceneItemList collisions(const QPointF &p, int delta = 3);
315
316 bool isClassDiagram() { return type() == Uml::DiagramType::Class; }
317 bool isUseCaseDiagram() { return type() == Uml::DiagramType::UseCase; }
318 bool isSequenceDiagram() { return type() == Uml::DiagramType::Sequence; }
319 bool isCollaborationDiagram() { return type() == Uml::DiagramType::Collaboration; }
320 bool isStateDiagram() { return type() == Uml::DiagramType::State; }
321 bool isActivityDiagram() { return type() == Uml::DiagramType::Activity; }
322 bool isComponentDiagram() { return type() == Uml::DiagramType::Component; }
323 bool isDeploymentDiagram() { return type() == Uml::DiagramType::Deployment; }
324 bool isEntityRelationshipDiagram() { return type() == Uml::DiagramType::EntityRelationship; }
325 bool isObjectDiagram() { return type() == Uml::DiagramType::Object; }
326
327 void setWidgetLink(WidgetBase *w);
328 WidgetBase *widgetLink();
329
330 protected:
331 // Methods and members related to loading/saving
332
333 bool loadWidgetsFromXMI(QDomElement & qElement);
334 bool loadMessagesFromXMI(QDomElement & qElement);
335 bool loadAssociationsFromXMI(QDomElement & qElement);
336 bool loadUisDiagramPresentation(QDomElement & qElement);
337
342 Uml::ID::Type m_nLocalID;
343
344 Uml::ID::Type m_nID;
345 Uml::DiagramType::Enum m_Type;
346 QString m_Name;
347 QString m_Documentation;
348 Settings::OptionState m_Options;
349
350 bool m_bUseSnapToGrid;
351 bool m_bUseSnapComponentSizeToGrid;
352 bool m_isOpen;
353
354 // End of methods and members related to loading/saving
356
357 void dragEnterEvent(QGraphicsSceneDragDropEvent* enterEvent);
358 void dragMoveEvent(QGraphicsSceneDragDropEvent* moveEvent);
359 void dropEvent(QGraphicsSceneDragDropEvent* dropEvent);
360
361 void mouseMoveEvent(QGraphicsSceneMouseEvent* mouseEvent);
362 void mousePressEvent(QGraphicsSceneMouseEvent* mouseEvent);
363 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* mouseEvent);
364 void mouseReleaseEvent(QGraphicsSceneMouseEvent* mouseEvent);
365 virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event);
366
367 QRectF diagramRect();
368
369 void makeSelected(UMLWidget* uw);
370
371 void updateComponentSizes();
372
373 void findMaxBoundingRectangle(const FloatingTextWidget* ft,
374 qreal& px, qreal& py, qreal& qx, qreal& qy);
375 void forceUpdateWidgetFontMetrics(QPainter *painter);
376
377 virtual void drawBackground(QPainter *painter, const QRectF &rect);
378
379 #if QT_VERSION >= 0x050000
380 #if !(QT_DEPRECATED_SINCE(5, 0))
381 inline QGraphicsItem *itemAt(const QPointF &position) const {
382 QList<QGraphicsItem *> itemsAtPoint = items(position);
383 return itemsAtPoint.isEmpty() ? 0 : itemsAtPoint.first();
384 }
385 #endif
386 #endif
387
388 int m_nCollaborationId;
389 QPointF m_pos;
390 bool m_bCreateObject;
391 bool m_bDrawSelectedOnly;
392 bool m_bPaste;
393 bool m_bStartedCut;
394
395 private:
396 UMLScenePrivate *m_d;
397 static const qreal defaultCanvasSize;
398 static bool m_showDocumentationIndicator;
399
400 UMLView *m_view;
401 UMLFolder *m_pFolder;
402
403 IDChangeLog * m_pIDChangesLog;
404 bool m_isActivated;
405 bool m_bPopupShowing;
406 QPointF m_PastePoint;
407 UMLDoc* m_doc;
408 UMLViewImageExporter* m_pImageExporter;
409 LayoutGrid* m_layoutGrid;
410 bool m_autoIncrementSequence;
411
412 void createAutoAttributeAssociation(UMLClassifier *type,
413 UMLAttribute *attr,
414 UMLWidget *widget);
415 void createAutoConstraintAssociation(UMLEntity* refEntity,
416 UMLForeignKeyConstraint* fkConstraint,
417 UMLWidget* widget);
418
419 public slots:
420 void slotToolBarChanged(int c);
421 void slotObjectCreated(UMLObject * o);
422 void slotObjectRemoved(UMLObject * o);
423 void slotMenuSelection(QAction* action);
424 void slotActivate();
425 void slotCutSuccessful();
426 void slotShowView();
427
428 void alignLeft();
429 void alignRight();
430 void alignTop();
431 void alignBottom();
432 void alignVerticalMiddle();
433 void alignHorizontalMiddle();
434 void alignVerticalDistribute();
435 void alignHorizontalDistribute();
436
437 signals:
438 void sigResetToolBar();
439
440 void sigFillColorChanged(Uml::ID::Type);
441 void sigGridColorChanged(Uml::ID::Type);
442 void sigLineColorChanged(Uml::ID::Type);
443 void sigTextColorChanged(Uml::ID::Type);
444 void sigLineWidthChanged(Uml::ID::Type);
445 void sigSnapToGridToggled(bool);
446 void sigSnapComponentSizeToGridToggled(bool);
447 void sigShowGridToggled(bool);
448 void sigAssociationRemoved(AssociationWidget*);
449 void sigWidgetRemoved(UMLWidget*);
450
451 friend class DiagramProxyWidget;
452 };
453
454 QDebug operator<<(QDebug dbg, UMLScene *item);
455
456 #endif // UMLSCENE_H
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:328
notewidget.h
umlfiledialog.h
UMLScene::createAutoAttributeAssociation
void createAutoAttributeAssociation(UMLClassifier *type, UMLAttribute *attr, UMLWidget *widget)
Definition: umlscene.cpp:2655
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
umlrole.h
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:35
UMLScene::selectionUseFillColor
void selectionUseFillColor(bool useFC)
Definition: umlscene.cpp:1467
UMLScene::setSnapComponentSizeToGrid
void setSnapComponentSizeToGrid(bool bSnap)
Definition: umlscene.cpp:3546
Model_Utils::typeIsDiagram
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1393
UMLScene::createAutoAttributeAssociations2
void createAutoAttributeAssociations2(UMLWidget *widget)
Definition: umlscene.cpp:2798
AssociationWidget::cleanup
void cleanup()
Definition: associationwidget.cpp:1240
widgetlist_utils.h
WidgetBase::asObjectWidget
ObjectWidget * asObjectWidget()
Definition: widgetbase.cpp:1484
UMLScene::m_Type
Uml::DiagramType::Enum m_Type
The type of diagram to represent.
Definition: umlscene.h:345
Uml::DiagramType::UseCase
@ UseCase
Definition: basictypes.h:82
datatype.h
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
messagewidgetlist.h
UMLScene::resizeSceneToItems
void resizeSceneToItems()
Definition: umlscene.cpp:3675
WidgetBase::isMessageWidget
bool isMessageWidget()
Definition: widgetbase.h:256
WidgetBase::isTextWidget
bool isTextWidget()
Definition: widgetbase.h:268
ListPopupMenu::dataFromAction
static QVariant dataFromAction(DataType key, QAction *action)
Definition: listpopupmenu.cpp:475
ListPopupMenu::dt_ApplyLayout
@ dt_ApplyLayout
Definition: listpopupmenu.h:270
UMLScene::makeSelected
void makeSelected(UMLWidget *uw)
Definition: umlscene.cpp:1725
UMLScene::m_view
UMLView * m_view
The view to which this scene is related.
Definition: umlscene.h:400
Settings::ClassState::showAttribAssocs
bool showAttribAssocs
Definition: optionstate.h:128
LayoutGenerator
Definition: layoutgenerator.h:39
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLScene::checkMessages
void checkMessages(ObjectWidget *w)
Definition: umlscene.cpp:1119
UMLWidget::resize
void resize()
Definition: umlwidget.cpp:1480
UMLApp::redo
void redo()
Definition: uml.cpp:3392
ToolBarState::mouseDoubleClick
virtual void mouseDoubleClick(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstate.cpp:144
LayoutGrid::setGridSpacing
void setGridSpacing(int sizeX, int sizeY)
Definition: layoutgrid.cpp:83
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:87
UMLScene::m_Options
Settings::OptionState m_Options
Options used by view.
Definition: umlscene.h:348
MessageWidget::floatingTextWidget
FloatingTextWidget * floatingTextWidget()
Definition: messagewidget.h:96
AssociationWidget::setYEntireAssoc
void setYEntireAssoc(qreal y)
Definition: associationwidget.cpp:3808
WidgetBase::onWidget
virtual UMLWidget * onWidget(const QPointF &p)
Definition: widgetbase.cpp:875
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1310
UMLScene::sigAssociationRemoved
void sigAssociationRemoved(AssociationWidget *)
UMLScenePrivate::toolBarStateFactory
ToolBarStateFactory * toolBarStateFactory
Definition: umlscene.cpp:253
UMLScene::setLineColor
void setLineColor(const QColor &color)
Definition: umlscene.cpp:503
LayoutGrid::paint
void paint(QPainter *painter, const QRectF &rect)
Definition: layoutgrid.cpp:51
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
toolbarstatefactory.h
UMLScene::drawBackground
virtual void drawBackground(QPainter *painter, const QRectF &rect)
Definition: umlscene.cpp:3713
pinwidget.h
Settings::UIState::font
QFont font
Definition: optionstate.h:92
ListPopupMenu::mt_Properties
@ mt_Properties
Definition: listpopupmenu.h:182
ListPopupMenu::mt_Apply_Layout2
@ mt_Apply_Layout2
Definition: listpopupmenu.h:237
UMLWidget::setFont
virtual void setFont(const QFont &font)
Definition: umlwidget.cpp:1955
seqlinewidget.h
ListPopupMenu::mt_Subsystem
@ mt_Subsystem
Definition: listpopupmenu.h:128
ListPopupMenu::mt_Clear
@ mt_Clear
Definition: listpopupmenu.h:193
LayoutGrid::gridSpacingX
int gridSpacingX() const
Definition: layoutgrid.cpp:73
statewidget.h
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1325
ListPopupMenu::mt_Export_Image
@ mt_Export_Image
Definition: listpopupmenu.h:187
docwindow.h
AssociationWidget::setAssociationType
void setAssociationType(Uml::AssociationType::Enum type)
Definition: associationwidget.cpp:1414
UMLAttributeList
Definition: umlattributelist.h:27
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
WidgetBase::asUMLWidget
UMLWidget * asUMLWidget()
Definition: widgetbase.cpp:1496
Model_Utils::convert_OT_LVT
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Definition: model_utils.cpp:1568
Uml::CmdCreateWidget
Definition: cmdcreatewidget.h:24
AssociationWidget::setXEntireAssoc
void setXEntireAssoc(qreal x)
Definition: associationwidget.cpp:3796
UMLObject::asUMLEntityConstraint
UMLEntityConstraint * asUMLEntityConstraint()
Definition: umlobject.cpp:1314
UMLScene::removeAllAssociations
void removeAllAssociations()
Definition: umlscene.cpp:2312
UMLScene::m_pImageExporter
UMLViewImageExporter * m_pImageExporter
Used to export the view.
Definition: umlscene.h:408
UMLScene::getFirstMultiSelectedWidget
UMLWidget * getFirstMultiSelectedWidget() const
Definition: umlscene.cpp:1060
UMLScene::unselectChildrenOfSelectedWidgets
void unselectChildrenOfSelectedWidgets()
Definition: umlscene.cpp:1567
umlview.h
LayoutGrid::isVisible
bool isVisible() const
Definition: layoutgrid.cpp:101
Uml::CmdCreateDiagram
Definition: cmdcreatediagram.h:25
activitywidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
StateWidget::ShallowHistory
@ ShallowHistory
Definition: statewidget.h:53
UMLScenePrivate::removeDuplicatedFloatingTextInstances
void removeDuplicatedFloatingTextInstances()
Definition: umlscene.cpp:204
UMLScenePrivate::p
UMLScene * p
Definition: umlscene.cpp:252
UMLScene::associationList
const AssociationWidgetList associationList() const
Definition: umlscene.cpp:589
Uml::AssociationType::Containment
@ Containment
Definition: basictypes.h:116
IDChangeLog::findNewID
Uml::ID::Type findNewID(Uml::ID::Type OldID)
Definition: idchangelog.cpp:62
UMLCanvasObject::getAssociations
UMLAssociationList getAssociations()
Definition: umlcanvasobject.cpp:329
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:34
ListPopupMenu::mt_MessageDestroy
@ mt_MessageDestroy
Definition: listpopupmenu.h:104
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:354
WidgetBase::wt_UMLWidget
@ wt_UMLWidget
Definition: widgetbase.h:113
WidgetList_Utils::getHeightsSum
qreal getHeightsSum(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:131
MessageWidget::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: messagewidget.cpp:617
ListPopupMenu::mt_End_State
@ mt_End_State
Definition: listpopupmenu.h:81
UMLScenePopupMenu
The UMLScenePopupMenu class.
Definition: umlscenepopupmenu.h:20
AssociationWidget::onAssociation
bool onAssociation(const QPointF &point)
Definition: associationwidget.cpp:3774
UMLScene::m_bUseSnapToGrid
bool m_bUseSnapToGrid
Flag to use snap to grid. The default is off.
Definition: umlscene.h:350
operator<<
QDebug operator<<(QDebug dbg, UMLScene *item)
Definition: umlscene.cpp:4380
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
UMLScene::slotActivate
void slotActivate()
Definition: umlscene.cpp:1929
UMLScene::autoIncrementSequence
bool autoIncrementSequence() const
Definition: umlscene.cpp:372
enumwidget.h
UMLScene::hideEvent
void hideEvent(QHideEvent *he)
Definition: umlscene.cpp:774
UMLScene::autoIncrementSequenceValue
QString autoIncrementSequenceValue()
Definition: umlscene.cpp:385
ToolBarState::mousePress
virtual void mousePress(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstate.cpp:79
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
AssociationWidget::roleWidget
FloatingTextWidget * roleWidget(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:823
ListPopupMenu::mt_Datatype
@ mt_Datatype
Definition: listpopupmenu.h:76
entity.h
UMLListViewItem::ListViewType
ListViewType
Definition: umllistviewitem.h:43
ListPopupMenu::mt_MessageCreation
@ mt_MessageCreation
Definition: listpopupmenu.h:103
AssocRules::allowAssociation
static bool allowAssociation(Uml::AssociationType::Enum assocType, UMLWidget *widget)
Definition: assocrules.cpp:51
UMLFolder::folderFile
QString folderFile() const
Definition: folder.cpp:259
component.h
UMLScene::activeView
UMLView * activeView() const
Definition: umlscene.cpp:348
ListPopupMenu::mt_Instance
@ mt_Instance
Definition: listpopupmenu.h:95
UMLListViewItem::umlObject
UMLObject * umlObject() const
Definition: umllistviewitem.cpp:312
Tracer::instance
static Tracer * instance()
Definition: debug_utils.cpp:36
FloatingTextWidget::showChangeTextDialog
void showChangeTextDialog()
Definition: floatingtextwidget.cpp:207
ClassOptionsPage::apply
void apply()
Definition: classoptionspage.cpp:115
Model_Utils::typeIsAllowedInDiagram
bool typeIsAllowedInDiagram(UMLObject *o, UMLScene *scene)
Definition: model_utils.cpp:2167
UMLScene::selectionSetLineColor
void selectionSetLineColor(const QColor &color)
Definition: umlscene.cpp:1499
UMLObject::ot_ForeignKeyConstraint
@ ot_ForeignKeyConstraint
Definition: umlobject.h:106
classoptionspage.h
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:26
WidgetList_Utils::getSmallestY
qreal getSmallestY(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:52
ListPopupMenu::mt_Initial_Activity
@ mt_Initial_Activity
Definition: listpopupmenu.h:92
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
AssociationWidget::roleName
QString roleName(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:945
UMLViewImageExporterModel
Definition: umlviewimageexportermodel.h:34
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:34
AssociationWidget::syncToModel
void syncToModel()
Definition: associationwidget.cpp:1766
UMLScene::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: umlscene.cpp:377
UMLListViewItem
Items used by UMLListView.
Definition: umllistviewitem.h:40
classifierwidget.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
UMLScene::loadAssociationsFromXMI
bool loadAssociationsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:4009
UMLScene::font
QFont font() const
Definition: umlscene.cpp:3404
WidgetBase::localID
Uml::ID::Type localID() const
Definition: widgetbase.cpp:238
ListPopupMenu::mt_Enum
@ mt_Enum
Definition: listpopupmenu.h:84
UMLScene::widgetLink
WidgetBase * widgetLink()
Definition: umlscene.cpp:4394
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:102
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
AssociationWidget::setSelected
virtual void setSelected(bool _select)
Definition: associationwidget.cpp:3688
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
WidgetList_Utils::getSmallestX
qreal getSmallestX(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:29
Settings::UIState::textColor
QColor textColor
Definition: optionstate.h:91
UMLScene::endPartialWidgetPaste
void endPartialWidgetPaste()
Definition: umlscene.cpp:2199
UMLScene::isEntityRelationshipDiagram
bool isEntityRelationshipDiagram()
Definition: umlscene.h:324
foreignkeyconstraint.h
WidgetBase::setID
void setID(Uml::ID::Type id)
Definition: widgetbase.cpp:200
UMLScene::onWidgetDestructionBox
ObjectWidget * onWidgetDestructionBox(const QPointF &point) const
Definition: umlscene.cpp:1039
UMLListViewItem::ID
Uml::ID::Type ID() const
Definition: umllistviewitem.cpp:271
Settings::OptionState::loadFromXMI1
bool loadFromXMI1(QDomElement &element)
Definition: optionstate.cpp:414
Uml::DiagramType::State
@ State
Definition: basictypes.h:85
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLForeignKeyConstraint
Sets up Foreign Key entity constraint information.
Definition: foreignkeyconstraint.h:33
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1801
UMLScene::diagramRect
QRectF diagramRect()
Definition: umlscene.cpp:1381
UMLScene::updateContainment
void updateContainment(UMLCanvasObject *self)
Definition: umlscene.cpp:2345
UMLListViewItem::type
ListViewType type() const
Definition: umllistviewitem.cpp:234
FloatingTextWidget::textRole
Uml::TextRole::Enum textRole() const
Definition: floatingtextwidget.cpp:344
Uml::RoleType::A
@ A
Definition: basictypes.h:239
UMLScene::backgroundColor
const QColor & backgroundColor() const
Definition: umlscene.cpp:1355
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1178
UMLScene::alignHorizontalMiddle
void alignHorizontalMiddle()
Definition: umlscene.cpp:4290
pinportbase.h
UMLWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition: umlwidget.cpp:1137
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:40
ListPopupMenu::mt_StateJoin
@ mt_StateJoin
Definition: listpopupmenu.h:126
WorkToolBar::tbb_Seq_Message_Creation
@ tbb_Seq_Message_Creation
Definition: worktoolbar.h:67
UMLWidget::moveByLocal
void moveByLocal(qreal dx, qreal dy)
Definition: umlwidget.cpp:1380
UMLScene::selectAssociations
void selectAssociations(bool bSelect)
Definition: umlscene.cpp:2278
ListPopupMenu::mt_FloatText
@ mt_FloatText
Definition: listpopupmenu.h:87
WidgetBase::isNoteWidget
bool isNoteWidget()
Definition: widgetbase.h:258
WorkToolBar::tbb_Arrow
@ tbb_Arrow
Definition: worktoolbar.h:59
ListPopupMenu::mt_Artifact
@ mt_Artifact
Definition: listpopupmenu.h:67
UMLScene::showEvent
void showEvent(QShowEvent *se)
Definition: umlscene.cpp:761
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
UMLScene::isActivityDiagram
bool isActivityDiagram()
Definition: umlscene.h:321
UMLScene::showOpSig
bool showOpSig() const
Definition: umlscene.cpp:3649
object_factory.h
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
ListPopupMenu::mt_StateFork
@ mt_StateFork
Definition: listpopupmenu.h:125
UMLScene::slotObjectCreated
void slotObjectCreated(UMLObject *o)
Definition: umlscene.cpp:796
UMLScene::selectionSetLineWidth
void selectionSetLineWidth(uint width)
Definition: umlscene.cpp:1517
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
UMLWidget::cleanup
virtual void cleanup()
Definition: umlwidget.cpp:1706
UMLScene::setFont
void setFont(QFont font, bool changeAllWidgets=false)
Definition: umlscene.cpp:3412
UMLScene::dragEnterEvent
void dragEnterEvent(QGraphicsSceneDragDropEvent *enterEvent)
Definition: umlscene.cpp:848
MessageWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: messagewidget.cpp:1404
UMLScene::dragMoveEvent
void dragMoveEvent(QGraphicsSceneDragDropEvent *moveEvent)
Definition: umlscene.cpp:890
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
FloatingTextWidget::displayText
QString displayText() const
Definition: floatingtextwidget.cpp:162
UMLScene::sigLineWidthChanged
void sigLineWidthChanged(Uml::ID::Type)
ToolBarStateFactory
Definition: toolbarstatefactory.h:34
ListPopupMenu::mt_Choice
@ mt_Choice
Definition: listpopupmenu.h:72
UMLScene::sigLineColorChanged
void sigLineColorChanged(Uml::ID::Type)
association.h
Dialog_Utils::askNewName
bool askNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:150
cmds.h
ListPopupMenu::mt_Node
@ mt_Node
Definition: listpopupmenu.h:108
ListPopupMenu::mt_MessageFound
@ mt_MessageFound
Definition: listpopupmenu.h:105
entitywidget.h
worktoolbar.h
UMLScenePrivate::~UMLScenePrivate
~UMLScenePrivate()
Definition: umlscene.cpp:126
UMLScenePrivate::triggerToolBarButton
void triggerToolBarButton(WorkToolBar::ToolBar_Buttons button)
Definition: umlscene.cpp:240
WorkToolBar::ToolBar_Buttons
ToolBar_Buttons
Definition: worktoolbar.h:57
ListPopupMenu::mt_Category
@ mt_Category
Definition: listpopupmenu.h:70
UMLEntityConstraint
Sets up entity constraint information.
Definition: entityconstraint.h:27
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:645
UMLScene::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: umlscene.cpp:2939
UMLScene::snapToGrid
bool snapToGrid() const
Definition: umlscene.cpp:3521
ListPopupMenu::mt_Class
@ mt_Class
Definition: listpopupmenu.h:73
UMLScene::isCollaborationDiagram
bool isCollaborationDiagram()
Definition: umlscene.h:319
UMLScene::~UMLScene
virtual ~UMLScene()
Definition: umlscene.cpp:308
UMLScene::setPaste
void setPaste(bool paste)
Definition: umlscene.cpp:2964
ListPopupMenu::mt_Cut
@ mt_Cut
Definition: listpopupmenu.h:190
UMLScene::resetPastePoint
void resetPastePoint()
Definition: umlscene.cpp:3387
Model_Utils::hasAssociations
bool hasAssociations(UMLObject::ObjectType type)
Definition: model_utils.cpp:2295
ListPopupMenu::mt_Redo
@ mt_Redo
Definition: listpopupmenu.h:194
Diagram_Utils::importGraph
bool importGraph(const QStringList &lines, UMLScene *scene, const QString &fileName)
Definition: diagram_utils.cpp:317
WidgetBase::setUsesDiagramLineWidth
void setUsesDiagramLineWidth(bool state)
Definition: widgetbase.cpp:534
UMLScene::sigResetToolBar
void sigResetToolBar()
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1303
datatypewidget.h
umlwidgetlist.h
UMLScene::mouseMoveEvent
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
Definition: umlscene.cpp:949
ListPopupMenu::mt_Undo
@ mt_Undo
Definition: listpopupmenu.h:195
Dialog_Utils::askName
bool askName(const QString &title, const QString &prompt, QString &name)
Definition: dialog_utils.cpp:96
UMLScene::snapX
int snapX() const
Definition: umlscene.cpp:3556
UMLPackage::containedObjects
UMLObjectList & containedObjects()
Definition: package.cpp:228
WorkToolBar::tbb_Seq_Message_Destroy
@ tbb_Seq_Message_Destroy
Definition: worktoolbar.h:68
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
WidgetBase::rect
QRectF rect() const
Definition: widgetbase.cpp:831
ListPopupMenu::mt_MessageLost
@ mt_MessageLost
Definition: listpopupmenu.h:106
Widget_Utils::hasSmallerY
bool hasSmallerY(const UMLWidget *widget1, const UMLWidget *widget2)
Definition: widget_utils.cpp:549
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLDragData::getClip3TypeAndID
static bool getClip3TypeAndID(const QMimeData *mimeData, LvTypeAndID_List &typeAndIdList)
Definition: umldragdata.cpp:351
UMLScene::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: umlscene.cpp:2973
UMLListViewItem::isOpen
bool isOpen()
Definition: umllistviewitem.h:159
ListPopupMenu::mt_Apply_Layout6
@ mt_Apply_Layout6
Definition: listpopupmenu.h:241
UMLScene::selectedWidgetsExt
UMLWidgetList selectedWidgetsExt(bool filterText=true)
Definition: umlscene.cpp:2015
ListPopupMenu::mt_SnapComponentSizeToGrid
@ mt_SnapComponentSizeToGrid
Definition: listpopupmenu.h:212
WidgetBase::asMessageWidget
MessageWidget * asMessageWidget()
Definition: widgetbase.cpp:1480
UMLScene::clearSelected
void clearSelected()
Definition: umlscene.cpp:1441
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:326
packagewidget.h
ListPopupMenu::mt_SnapToGrid
@ mt_SnapToGrid
Definition: listpopupmenu.h:211
UMLScene::fillColor
const QColor & fillColor() const
Definition: umlscene.cpp:474
UMLScene::isOpen
bool isOpen() const
Definition: umlscene.cpp:652
ListPopupMenu::mt_Note
@ mt_Note
Definition: listpopupmenu.h:109
UMLScene::isShowDocumentationIndicator
bool isShowDocumentationIndicator() const
Definition: umlscene.cpp:3633
UMLScene::selectWidget
void selectWidget(UMLWidget *widget, QRectF *rect=0)
Definition: umlscene.cpp:1806
Uml::AssociationType::UniAssociation
@ UniAssociation
Definition: basictypes.h:119
UMLScene::setFolder
void setFolder(UMLFolder *folder)
Definition: umlscene.cpp:340
UMLScene::m_pos
QPointF m_pos
Definition: umlscene.h:389
Uml::AssociationType::Relationship
@ Relationship
Definition: basictypes.h:126
actorwidget.h
model_utils.h
ListPopupMenu::mt_Entity
@ mt_Entity
Definition: listpopupmenu.h:82
Widget_Utils::defaultWidgetName
QString defaultWidgetName(WidgetBase::WidgetType type)
Definition: widget_utils.cpp:834
UMLScene::associationAt
AssociationWidget * associationAt(const QPointF &p)
Definition: umlscene.cpp:1090
UMLScene::isStateDiagram
bool isStateDiagram()
Definition: umlscene.h:320
ListPopupMenu::mt_End_Activity
@ mt_End_Activity
Definition: listpopupmenu.h:80
UMLScene::setUseFillColor
void setUseFillColor(bool ufc)
Definition: umlscene.cpp:1371
StateWidget::Junction
@ Junction
Definition: statewidget.h:51
UMLScene::alignTop
void alignTop()
Definition: umlscene.cpp:4227
Uml::DiagramType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:89
UMLScene::removeAssocInViewAndDoc
void removeAssocInViewAndDoc(AssociationWidget *assoc)
Definition: umlscene.cpp:2230
UMLPort
Non-graphical information for a Port.
Definition: port.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLScene::UMLScene
UMLScene(UMLFolder *parentFolder, UMLView *view=0)
Definition: umlscene.cpp:262
UMLScene::activate
void activate()
Definition: umlscene.cpp:1937
ListPopupMenu::mt_ShowSnapGrid
@ mt_ShowSnapGrid
Definition: listpopupmenu.h:214
Settings::UIState::backgroundColor
QColor backgroundColor
Definition: optionstate.h:93
diagram_utils.h
UMLScene::snapY
int snapY() const
Definition: umlscene.cpp:3564
import_utils.h
ListPopupMenu::mt_Import_from_File
@ mt_Import_from_File
Definition: listpopupmenu.h:259
UMLScene::snapComponentSizeToGrid
bool snapComponentSizeToGrid() const
Definition: umlscene.cpp:3538
StateWidget::setStateType
void setStateType(StateType stateType)
Definition: statewidget.cpp:409
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1570
operator<<
QDebug operator<<(QDebug dbg, UMLScene *item)
Definition: umlscene.cpp:4380
UMLScene::m_Documentation
QString m_Documentation
The documentation of the diagram.
Definition: umlscene.h:347
ListPopupMenu::mt_ShowDocumentationIndicator
@ mt_ShowDocumentationIndicator
Definition: listpopupmenu.h:213
UMLAssociation::getObject
UMLObject * getObject(Uml::RoleType::Enum role) const
Definition: association.cpp:496
UMLScene::addObject
void addObject(UMLObject *object)
Definition: umlscene.cpp:4046
UMLScene::m_pFolder
UMLFolder * m_pFolder
The folder in which this UMLView is contained.
Definition: umlscene.h:401
Uml::CmdRemoveWidget
Definition: cmdremovewidget.h:24
UMLScene::widgetAt
UMLWidget * widgetAt(const QPointF &p)
Definition: umlscene.cpp:1074
AssociationWidget::widgetIDForRole
Uml::ID::Type widgetIDForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1450
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
StateWidget::Fork
@ Fork
Definition: statewidget.h:49
UMLForeignKeyConstraint::getReferencedEntity
UMLEntity * getReferencedEntity() const
Definition: foreignkeyconstraint.cpp:350
UMLScene::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlscene.cpp:3738
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1311
UMLScene::useFillColor
bool useFillColor() const
Definition: umlscene.cpp:1363
optionstate.h
umlscenepopupmenu.h
UMLScene::collisions
UMLSceneItemList collisions(const QPointF &p, int delta=3)
Definition: umlscene.cpp:1712
UMLScene::triggerToolbarButton
void triggerToolbarButton(WorkToolBar::ToolBar_Buttons button)
Definition: umlscene.cpp:2931
UMLScene::sigSnapToGridToggled
void sigSnapToGridToggled(bool)
UMLScene::removeOwnedWidgets
void removeOwnedWidgets(UMLWidget *o)
Definition: umlscene.cpp:1340
UMLScene::setShowOpSig
void setShowOpSig(bool bShowOpSig)
Definition: umlscene.cpp:3657
UMLWidget::slotFillColorChanged
virtual void slotFillColorChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1018
UMLListView::theLogicalView
UMLListViewItem * theLogicalView()
Definition: umllistview.h:100
Uml::ModelType::toString
QString toString(Enum item)
Definition: basictypes.cpp:47
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2801
DiagramProxyWidget
Definition: diagramproxywidget.h:29
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:120
UMLScene::selectionSetFont
void selectionSetFont(const QFont &font)
Definition: umlscene.cpp:1485
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
UMLScene::setFillColor
void setFillColor(const QColor &color)
Definition: umlscene.cpp:484
AssociationWidget::associationType
Uml::AssociationType::Enum associationType() const
Definition: associationwidget.cpp:1401
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1317
UMLScene::fileLoaded
void fileLoaded()
Definition: umlscene.cpp:3666
floatingtextwidget.h
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1983
AssociationWidget::setActivated
void setActivated(bool active)
Definition: associationwidget.cpp:1758
WidgetBase::isObjectWidget
bool isObjectWidget()
Definition: widgetbase.h:260
StateWidget::End
@ End
Definition: statewidget.h:48
UMLWidget::isActivated
bool isActivated() const
Definition: umlwidget.cpp:1256
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1312
UMLScene::setLineWidth
void setLineWidth(uint width)
Definition: umlscene.cpp:522
UMLFileDialog
Definition: umlfiledialog.h:32
UMLScene::beginPartialWidgetPaste
void beginPartialWidgetPaste()
Definition: umlscene.cpp:2190
UMLScene::slotToolBarChanged
void slotToolBarChanged(int c)
Definition: umlscene.cpp:787
Settings::UIState::lineColor
QColor lineColor
Definition: optionstate.h:89
WidgetBase::asClassifierWidget
ClassifierWidget * asClassifierWidget()
Definition: widgetbase.cpp:1471
AssociationWidget::containsAsEndpoint
bool containsAsEndpoint(UMLWidget *widget)
Definition: associationwidget.cpp:1372
layoutgrid.h
UMLScene::setupNewWidget
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Definition: umlscene.cpp:715
Uml::SequenceMessage::Creation
@ Creation
Definition: basictypes.h:223
UMLScene::getImageExporter
UMLViewImageExporter * getImageExporter()
Definition: umlscene.cpp:1921
UMLScene::m_bPopupShowing
bool m_bPopupShowing
Status of a popupmenu on view. True - a popup is on view.
Definition: umlscene.h:405
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:108
DiagramProxyWidget::setDiagramLink
bool setDiagramLink(const Uml::ID::Type &id)
Definition: diagramproxywidget.cpp:48
Settings::UIState::gridDotColor
QColor gridDotColor
Definition: optionstate.h:94
UMLScene::removeAssociations
void removeAssociations(UMLWidget *pWidget)
Definition: umlscene.cpp:2264
ListPopupMenu::mt_Apply_Layout7
@ mt_Apply_Layout7
Definition: listpopupmenu.h:242
UMLScene::isSavedInSeparateFile
bool isSavedInSeparateFile()
Definition: umlscene.cpp:1678
UMLScene::dropEvent
void dropEvent(QGraphicsSceneDragDropEvent *dropEvent)
Definition: umlscene.cpp:898
UMLScene::m_bDrawSelectedOnly
bool m_bDrawSelectedOnly
Definition: umlscene.h:391
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
AssociationWidgetList
QList< QPointer< AssociationWidget > > AssociationWidgetList
Definition: associationwidgetlist.h:19
ListPopupMenu::mt_UseCase
@ mt_UseCase
Definition: listpopupmenu.h:132
UMLScene::alignVerticalMiddle
void alignVerticalMiddle()
Definition: umlscene.cpp:4262
umldragdata.h
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
WorkToolBar::tbb_Seq_Message_Synchronous
@ tbb_Seq_Message_Synchronous
Definition: worktoolbar.h:69
UMLScene::snappedX
qreal snappedX(qreal x)
Definition: umlscene.cpp:3580
UMLScene::moveSelectedBy
void moveSelectedBy(qreal dX, qreal dY)
Definition: umlscene.cpp:1454
UMLView::setZoom
void setZoom(qreal zoom)
Definition: umlview.cpp:72
UMLScene::sigTextColorChanged
void sigTextColorChanged(Uml::ID::Type)
UMLListView::findItem
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistview.cpp:1404
ListPopupMenu::mt_Junction
@ mt_Junction
Definition: listpopupmenu.h:101
toolbarstate.h
UMLWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: umlwidget.cpp:1358
ListPopupMenu::mt_Apply_Layout8
@ mt_Apply_Layout8
Definition: listpopupmenu.h:243
UMLScene::forceUpdateWidgetFontMetrics
void forceUpdateWidgetFontMetrics(QPainter *painter)
Definition: umlscene.cpp:3702
Uml::TextRole::Enum
Enum
Definition: basictypes.h:178
IDChangeLog
Definition: idchangelog.h:27
WidgetBase::widgetWithID
virtual UMLWidget * widgetWithID(Uml::ID::Type id)
Definition: widgetbase.cpp:255
MessageWidget::hasObjectWidget
bool hasObjectWidget(ObjectWidget *w)
Definition: messagewidget.cpp:763
WidgetBase::setUsesDiagramFillColor
void setUsesDiagramFillColor(bool state)
Definition: widgetbase.cpp:494
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1774
UMLScene::mousePressEvent
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
Definition: umlscene.cpp:966
UMLScene::sigWidgetRemoved
void sigWidgetRemoved(UMLWidget *)
Uml::CmdCreateDiagram::view
UMLView * view()
Definition: cmdcreatediagram.h:32
UMLScene::defaultCanvasSize
static const qreal defaultCanvasSize
The default size of a diagram in pixels.
Definition: umlscene.h:397
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1685
ListPopupMenu::mt_Apply_Layout
@ mt_Apply_Layout
Definition: listpopupmenu.h:235
UMLScene::m_autoIncrementSequence
bool m_autoIncrementSequence
state of auto increment sequence
Definition: umlscene.h:410
UMLScene::onWidgetLine
ObjectWidget * onWidgetLine(const QPointF &point) const
Definition: umlscene.cpp:1014
Uml::DiagramType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:267
UMLApp::editCutCopy
bool editCutCopy(bool bFromView)
Definition: uml.cpp:2186
AssociationWidget::setUMLObject
virtual void setUMLObject(UMLObject *obj)
Definition: associationwidget.cpp:219
UMLView
Definition: umlview.h:35
ClassifierWidget::VisualProperty
VisualProperty
Definition: classifierwidget.h:42
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
MessageWidgetList
QList< QPointer< MessageWidget > > MessageWidgetList
Definition: messagewidgetlist.h:18
uniqueid.h
UMLScene::selectionSetVisualProperty
void selectionSetVisualProperty(ClassifierWidget::VisualProperty property, bool value)
Definition: umlscene.cpp:1552
UMLWidget::setSelected
virtual void setSelected(bool _select)
Definition: umlwidget.cpp:1573
ListPopupMenu::mt_CombinedState
@ mt_CombinedState
Definition: listpopupmenu.h:74
UMLObject::asUMLCanvasObject
UMLCanvasObject * asUMLCanvasObject()
Definition: umlobject.cpp:1305
UMLScene::selectWidgets
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Definition: umlscene.cpp:1755
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1036
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1680
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1886
UMLScene::selectionSetFillColor
void selectionSetFillColor(const QColor &color)
Definition: umlscene.cpp:1537
UMLScene::deleteSelection
void deleteSelection()
Definition: umlscene.cpp:1584
UMLScene::createAutoAttributeAssociations
void createAutoAttributeAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2587
ListPopupMenu::mt_Interface
@ mt_Interface
Definition: listpopupmenu.h:97
attribute.h
AssociationWidget::multiplicityWidget
FloatingTextWidget * multiplicityWidget(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:803
UMLObject::ot_Role
@ ot_Role
Definition: umlobject.h:100
UMLScene::addAssociation
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Definition: umlscene.cpp:2080
ClassifierWidget::setVisualProperty
void setVisualProperty(VisualProperty property, bool enable=true)
Definition: classifierwidget.cpp:208
WorkToolBar::buttonChanged
void buttonChanged(int b)
Definition: worktoolbar.cpp:230
Settings::OptionState::saveToXMI1
void saveToXMI1(QDomElement &element)
Definition: optionstate.cpp:402
UMLScene::m_bPaste
bool m_bPaste
Definition: umlscene.h:392
UMLComponent
Non-graphical information for a Component.
Definition: component.h:28
UMLScene::selectedCount
int selectedCount(bool filterText=false) const
Definition: umlscene.cpp:1990
ListPopupMenu::mt_Apply_Layout9
@ mt_Apply_Layout9
Definition: listpopupmenu.h:244
objectwidget.h
UMLScene::print
void print(QPrinter *pPrinter, QPainter &pPainter)
Definition: umlscene.cpp:669
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1065
a
QString a
Definition: petalnode.cpp:18
UMLScenePrivate
Definition: umlscene.cpp:116
ActivityWidget::End
@ End
Definition: activitywidget.h:42
UMLScene::loadMessagesFromXMI
bool loadMessagesFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3982
umlwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
UMLScene::setWidgetLink
void setWidgetLink(WidgetBase *w)
Definition: umlscene.cpp:4389
UMLScene::sigSnapComponentSizeToGridToggled
void sigSnapComponentSizeToGridToggled(bool)
Dialog_Utils::askDeleteAssociation
bool askDeleteAssociation()
Definition: dialog_utils.cpp:113
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
UMLWidget::clipSize
void clipSize()
Definition: umlwidget.cpp:1805
LayoutGrid::setVisible
void setVisible(bool visible)
Definition: layoutgrid.cpp:106
SeqLineWidget
Widget class for graphical representation of sequence lines.
Definition: seqlinewidget.h:27
AssociationWidget::clipSize
void clipSize()
Definition: associationwidget.cpp:3900
ListPopupMenu::mt_Initial_State
@ mt_Initial_State
Definition: listpopupmenu.h:93
componentwidget.h
UMLApp::slotZoomFit
void slotZoomFit()
Definition: uml.cpp:686
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
UMLScene::m_isOpen
bool m_isOpen
Flag is set to true when diagram is open, i.e. shown to the user.
Definition: umlscene.h:352
UMLWidget::setUseFillColor
virtual void setUseFillColor(bool fc)
Definition: umlwidget.cpp:1087
UMLScenePrivate::toolBarState
ToolBarState * toolBarState
Definition: umlscene.cpp:254
UMLScene::getDiagram
void getDiagram(QPixmap &diagram, const QRectF &rect)
Definition: umlscene.cpp:1861
UMLScene::sigShowGridToggled
void sigShowGridToggled(bool)
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
UMLObject::asUMLForeignKeyConstraint
UMLForeignKeyConstraint * asUMLForeignKeyConstraint()
Definition: umlobject.cpp:1318
folder.h
Widget_Utils::middle
qreal middle(qreal a, qreal b)
Definition: widget_utils.cpp:627
ListPopupMenu::mt_DeepHistory
@ mt_DeepHistory
Definition: listpopupmenu.h:77
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:98
i18n
#define i18n
Definition: main.cpp:39
UMLScene::loadWidgetFromXMI
UMLWidget * loadWidgetFromXMI(QDomElement &widgetElement)
Definition: umlscene.cpp:3961
Settings::UIState::useFillColor
bool useFillColor
Definition: optionstate.h:87
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
messagewidget.h
UMLScene::lineColor
const QColor & lineColor() const
Definition: umlscene.cpp:493
UMLScene::setType
void setType(Uml::DiagramType::Enum type)
Definition: umlscene.cpp:434
UMLScene::m_isActivated
bool m_isActivated
True if the view was activated after the serialization(load).
Definition: umlscene.h:404
UMLScene::sigGridColorChanged
void sigGridColorChanged(Uml::ID::Type)
UMLWidget::setFillColor
virtual void setFillColor(const QColor &color)
Definition: umlwidget.cpp:1168
UMLScene::selectedWidgets
UMLWidgetList selectedWidgets() const
Definition: umlscene.cpp:1391
Settings::ClassState::showOpSig
bool showOpSig
Definition: optionstate.h:126
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
UMLScene::setMenu
void setMenu(const QPoint &pos)
UMLObject::ot_SubSystem
@ ot_SubSystem
no real object type
Definition: umlobject.h:111
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:70
WidgetBase::wt_Class
@ wt_Class
Definition: widgetbase.h:116
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
widget_factory.h
UMLScene::getWidgetAssocs
void getWidgetAssocs(UMLObject *Obj, AssociationWidgetList &Associations)
Definition: umlscene.cpp:2296
ListPopupMenu::mt_Object
@ mt_Object
Definition: listpopupmenu.h:110
ListPopupMenu::toString
static QString toString(MenuType menu)
Definition: listpopupmenu.cpp:609
UMLScene::m_Name
QString m_Name
The name of the diagram.
Definition: umlscene.h:346
umlviewimageexporter.h
WidgetList_Utils::getBiggestY
qreal getBiggestY(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:105
basictypes.h
UMLListViewItem::UMLListViewItem
UMLListViewItem(UMLListView *parent, const QString &name, ListViewType t, UMLObject *o=0)
Definition: umllistviewitem.cpp:58
LayoutGrid
Definition: layoutgrid.h:36
UMLScene::loadWidgetsFromXMI
bool loadWidgetsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3935
UMLScene::selectedMessageWidgets
UMLWidgetList selectedMessageWidgets() const
Definition: umlscene.cpp:1425
UMLApp::beginMacro
void beginMacro(const QString &text)
Definition: uml.cpp:3438
Dialog_Utils::askDefaultNewName
bool askDefaultNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:178
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
UMLWidgetList
QList< QPointer< UMLWidget > > UMLWidgetList
Definition: umlwidgetlist.h:17
ListPopupMenu::mt_InterfaceComponent
@ mt_InterfaceComponent
Definition: listpopupmenu.h:98
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLScene::gridDotColor
const QColor & gridDotColor() const
Definition: umlscene.cpp:552
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1876
boxwidget.h
UMLScene::m_nLocalID
Uml::ID::Type m_nLocalID
Definition: umlscene.h:342
UMLScene::mouseReleaseEvent
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
Definition: umlscene.cpp:1002
ListPopupMenu::mt_ReturnToCombinedState
@ mt_ReturnToCombinedState
Definition: listpopupmenu.h:144
LinkWidget::sequenceNumber
QString sequenceNumber() const
Definition: linkwidget.cpp:103
UMLScene::widgetList
const UMLWidgetList widgetList() const
Definition: umlscene.cpp:603
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
NoteWidget::setDiagramLink
void setDiagramLink(Uml::ID::Type viewID)
Definition: notewidget.cpp:171
interfacewidget.h
WidgetList_Utils::getWidthsSum
qreal getWidthsSum(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:146
Uml::RoleType::B
@ B
Definition: basictypes.h:240
AssociationWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement, const UMLWidgetList &widgets, const MessageWidgetList *messages)
Definition: associationwidget.cpp:4014
UMLScene::setSnapGridVisible
void setSnapGridVisible(bool bShow)
Definition: umlscene.cpp:3624
StateWidget::Combined
@ Combined
Definition: statewidget.h:58
ListPopupMenu::mt_Apply_Layout1
@ mt_Apply_Layout1
Definition: listpopupmenu.h:236
UMLWidget::setSelectedFlag
void setSelectedFlag(bool _select)
Definition: umlwidget.cpp:1563
UMLEntity::getFilteredList
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: entity.cpp:645
UMLScene::setSnapSpacing
void setSnapSpacing(int x, int y)
Definition: umlscene.cpp:3572
Settings::UIState::lineWidth
uint lineWidth
Definition: optionstate.h:90
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1124
UMLWidget::setFontCmd
void setFontCmd(const QFont &font)
Definition: umlwidget.cpp:1970
FloatingTextWidget::link
LinkWidget * link() const
Definition: floatingtextwidget.cpp:325
Widget_Factory::makeWidgetFromXMI
UMLWidget * makeWidgetFromXMI(const QString &tag, const QString &idStr, UMLScene *scene)
Definition: widget_factory.cpp:206
UMLApp::endMacro
void endMacro()
Definition: uml.cpp:3457
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
UMLScene::messageAt
MessageWidget * messageAt(const QPointF &p)
Definition: umlscene.cpp:1105
ActivityWidget::Normal
@ Normal
Definition: activitywidget.h:41
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
UMLScene::setShowDocumentationIndicator
void setShowDocumentationIndicator(bool bShow)
Definition: umlscene.cpp:3641
Uml::CmdRemoveUMLObject
Definition: cmdremoveumlobject.h:20
Settings::GeneralState::footerPrinting
bool footerPrinting
Definition: optionstate.h:61
umllistview.h
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
UMLScene::messageList
const MessageWidgetList messageList() const
Definition: umlscene.cpp:629
UMLScene::applyLayout
void applyLayout(const QString &actionText)
Definition: umlscene.cpp:3481
UMLScene::m_nCollaborationId
int m_nCollaborationId
Used for creating unique name of collaboration messages.
Definition: umlscene.h:388
UMLScene::loadUisDiagramPresentation
bool loadUisDiagramPresentation(QDomElement &qElement)
Definition: umlscene.cpp:4055
artifactwidget.h
UMLScene::pos
QPointF pos() const
Definition: umlscene.cpp:458
WidgetBase::asFloatingTextWidget
FloatingTextWidget * asFloatingTextWidget()
Definition: widgetbase.cpp:1493
UMLScene::getPastePoint
QPointF getPastePoint()
Definition: umlscene.cpp:3376
NoteWidget
Displays a note box.
Definition: notewidget.h:31
UMLScene::clearDiagram
void clearDiagram()
Definition: umlscene.cpp:3471
MessageWidget::objectWidget
ObjectWidget * objectWidget(Uml::RoleType::Enum role)
Definition: messagewidget.cpp:1326
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
UMLScene::slotCutSuccessful
void slotCutSuccessful()
Definition: umlscene.cpp:3354
WidgetBase::asInterfaceWidget
InterfaceWidget * asInterfaceWidget()
Definition: widgetbase.cpp:1479
UMLScenePrivate::widgetLink
QPointer< WidgetBase > widgetLink
Definition: umlscene.cpp:255
widget_utils.h
UMLWidget::associationWidgetList
AssociationWidgetList & associationWidgetList() const
Definition: umlwidget.cpp:1284
UMLDoc
Definition: umldoc.h:75
LayoutGrid::gridSpacingY
int gridSpacingY() const
Definition: layoutgrid.cpp:78
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLScene::textColor
const QColor & textColor() const
Definition: umlscene.cpp:531
UMLScene::m_layoutGrid
LayoutGrid * m_layoutGrid
layout grid in the background
Definition: umlscene.h:409
UMLClassifier::getAttributeList
UMLAttributeList getAttributeList() const
Definition: classifier.cpp:436
ListPopupMenu::mt_Actor
@ mt_Actor
Definition: listpopupmenu.h:66
StateWidget::Join
@ Join
Definition: statewidget.h:50
UMLScene::findMaxBoundingRectangle
void findMaxBoundingRectangle(const FloatingTextWidget *ft, qreal &px, qreal &py, qreal &qx, qreal &qy)
Definition: umlscene.cpp:2829
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3127
UMLScene::resetToolbar
void resetToolbar()
Definition: umlscene.cpp:2926
UMLScene::isObjectDiagram
bool isObjectDiagram()
Definition: umlscene.h:325
UMLScene::getCreateObject
bool getCreateObject() const
Definition: umlscene.cpp:745
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:36
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
AssociationWidget::association
UMLAssociation * association() const
Definition: associationwidget.cpp:520
UMLScene::findWidget
UMLWidget * findWidget(Uml::ID::Type id)
Definition: umlscene.cpp:1184
UMLApp::undo
void undo()
Definition: uml.cpp:3368
UMLScenePrivate::setToolBarChanged
void setToolBarChanged(WorkToolBar::ToolBar_Buttons button)
Definition: umlscene.cpp:231
UMLScene::alignVerticalDistribute
void alignVerticalDistribute()
Definition: umlscene.cpp:4318
UMLScene::setDocumentation
void setDocumentation(const QString &doc)
Definition: umlscene.cpp:364
Uml
Definition: basictypes.cpp:37
UMLDatatype::originType
UMLClassifier * originType() const
Definition: datatype.cpp:46
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
UMLScene::setTextColor
void setTextColor(const QColor &color)
Definition: umlscene.cpp:541
UMLScene::sigFillColorChanged
void sigFillColorChanged(Uml::ID::Type)
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1697
AssociationWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: associationwidget.cpp:3967
LayoutGrid::gridDotColor
const QColor & gridDotColor() const
Definition: layoutgrid.cpp:90
UMLWidget::adjustAssocs
virtual void adjustAssocs(qreal dx, qreal dy)
Definition: umlwidget.cpp:1310
StateWidget::Initial
@ Initial
Definition: statewidget.h:46
UMLScene::resizeSelection
void resizeSelection()
Definition: umlscene.cpp:1646
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3550
UMLScene::lineWidth
uint lineWidth() const
Definition: umlscene.cpp:512
Uml::SequenceMessage::Asynchronous
@ Asynchronous
Definition: basictypes.h:222
UMLWidget::slotTextColorChanged
virtual void slotTextColorChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1038
UMLScene::addFloatingTextWidget
void addFloatingTextWidget(FloatingTextWidget *pWidget)
Definition: umlscene.cpp:2048
umllistviewitem.h
ListPopupMenu::mt_MessageSynchronous
@ mt_MessageSynchronous
Definition: listpopupmenu.h:107
WidgetList_Utils::getBiggestX
qreal getBiggestX(const UMLWidgetList &widgetList)
Definition: widgetlist_utils.cpp:78
associationwidget.h
Settings
Definition: codeviewerstate.cpp:15
AssociationWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition: associationwidget.cpp:3158
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:186
AssociationWidget::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition: associationwidget.cpp:668
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
DocWindow::showDocumentation
void showDocumentation(UMLObject *object, bool overwrite=false)
Definition: docwindow.cpp:130
AssociationWidget::setWidgetForRole
void setWidgetForRole(UMLWidget *widget, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:788
UMLScene::m_d
UMLScenePrivate * m_d
Definition: umlscene.h:396
Settings::OptionState
Definition: optionstate.h:314
UMLScene::setIsOpen
void setIsOpen(bool isOpen)
Definition: umlscene.cpp:661
UMLScene::isSnapGridVisible
bool isSnapGridVisible() const
Definition: umlscene.cpp:3616
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:329
ActivityWidget::Branch
@ Branch
Definition: activitywidget.h:44
UMLScene::alignHorizontalDistribute
void alignHorizontalDistribute()
Definition: umlscene.cpp:4349
widgetbase.h
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
UMLScene::selectedAssociationWidgets
AssociationWidgetList selectedAssociationWidgets() const
Definition: umlscene.cpp:1408
ListPopupMenu::mt_MessageAsynchronous
@ mt_MessageAsynchronous
Definition: listpopupmenu.h:102
classifier.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
UMLScene::removeWidgetCmd
void removeWidgetCmd(UMLWidget *o)
Definition: umlscene.cpp:1309
UMLScene::setName
void setName(const QString &name)
Definition: umlscene.cpp:418
ActivityWidget::Initial
@ Initial
Definition: activitywidget.h:40
ListPopupMenu::mt_Apply_Layout3
@ mt_Apply_Layout3
Definition: listpopupmenu.h:238
uError
#define uError()
Definition: debug_utils.h:123
WorkToolBar::tbb_Seq_Message_Lost
@ tbb_Seq_Message_Lost
Definition: worktoolbar.h:72
ListPopupMenu::mt_Copy
@ mt_Copy
Definition: listpopupmenu.h:191
Uml::DiagramType::Object
@ Object
Definition: basictypes.h:90
UMLScene::selectedAssocs
AssociationWidgetList selectedAssocs()
Definition: umlscene.cpp:2034
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
Diagram_Utils::isUniqueDiagramName
bool isUniqueDiagramName(Uml::DiagramType::Enum type, QString &name)
Definition: diagram_utils.cpp:522
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
UMLDoc::changeLog
virtual IDChangeLog * changeLog()
Definition: umldoc.cpp:3227
ListPopupMenu::mt_Apply_Layout5
@ mt_Apply_Layout5
Definition: listpopupmenu.h:240
UMLScene::setStartedCut
void setStartedCut()
Definition: umlscene.cpp:3396
UMLView::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlview.cpp:91
ToolBarState::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstate.cpp:181
signalwidget.h
UMLScene::toggleShowGrid
void toggleShowGrid()
Definition: umlscene.cpp:3513
ComponentWidget
A graphical version of a Component.
Definition: componentwidget.h:30
UMLListView::moveObject
UMLListViewItem * moveObject(Uml::ID::Type srcId, UMLListViewItem::ListViewType srcType, UMLListViewItem *newParent)
Definition: umllistview.cpp:1630
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
WidgetBase::isFloatingDashLineWidget
bool isFloatingDashLineWidget()
Definition: widgetbase.h:253
debug_utils.h
UMLViewImageExporter::exportView
void exportView()
Definition: umlviewimageexporter.cpp:76
UMLScene::snappedY
qreal snappedY(qreal y)
Definition: umlscene.cpp:3598
UMLScene::m_nID
Uml::ID::Type m_nID
The ID of the view. Allocated by UMLDoc.
Definition: umlscene.h:344
UMLAssociation
Sets up association information.
Definition: association.h:33
UMLScene::alignRight
void alignRight()
Definition: umlscene.cpp:4210
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
WidgetBase::wt_Object
@ wt_Object
Definition: widgetbase.h:122
UMLScene::widgetOnDiagram
UMLWidget * widgetOnDiagram(Uml::ID::Type id)
Definition: umlscene.cpp:1139
UMLScene::generateCollaborationId
int generateCollaborationId()
Definition: umlscene.cpp:643
UMLScene::name
QString name() const
Definition: umlscene.cpp:410
UMLScene::createAutoConstraintAssociations
void createAutoConstraintAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2717
WidgetBase::baseTypeStr
QLatin1String baseTypeStr() const
Definition: widgetbase.cpp:133
WidgetBase::isComponentWidget
bool isComponentWidget()
Definition: widgetbase.h:249
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:111
PortWidget
A graphical version of a port on a component.
Definition: portwidget.h:28
ListPopupMenu::mt_Apply_Layout4
@ mt_Apply_Layout4
Definition: listpopupmenu.h:239
UMLObject::isUMLDatatype
bool isUMLDatatype()
Definition: umlobject.h:206
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
UMLScenePrivate::addMissingPorts
void addMissingPorts()
Definition: umlscene.cpp:135
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
UMLScene::getUniqueSelectionType
WidgetBase::WidgetType getUniqueSelectionType()
Definition: umlscene.cpp:3447
UMLScene::folder
UMLFolder * folder() const
Definition: umlscene.cpp:332
ListPopupMenu::mt_Component
@ mt_Component
Definition: listpopupmenu.h:75
UMLScenePrivate::UMLScenePrivate
UMLScenePrivate(UMLScene *parent)
Definition: umlscene.cpp:118
assocrules.h
UMLScene::createAutoAssociations
void createAutoAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2397
WidgetBase::isPortWidget
bool isPortWidget()
Definition: widgetbase.h:263
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
WidgetBase::wt_Activity
@ wt_Activity
Definition: widgetbase.h:128
umlobject.h
UMLScene::m_bStartedCut
bool m_bStartedCut
Flag if view/children started cut operation.
Definition: umlscene.h:393
UMLAssociation::getAssocType
Uml::AssociationType::Enum getAssocType() const
Definition: association.cpp:105
UMLListViewItem::lvt_Class_Diagram
@ lvt_Class_Diagram
Definition: umllistviewitem.h:54
UMLScene::m_bCreateObject
bool m_bCreateObject
Definition: umlscene.h:390
UMLSceneItemList
QList< QGraphicsItem * > UMLSceneItemList
Definition: umlscene.h:58
UMLScene::setSnapToGrid
void setSnapToGrid(bool bSnap)
Definition: umlscene.cpp:3529
associationwidgetlist.h
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition: umldoc.cpp:1396
objectnodewidget.h
ListPopupMenu::mt_Rename
@ mt_Rename
Definition: listpopupmenu.h:183
Uml::AssociationType::Composition
@ Composition
Definition: basictypes.h:117
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
UMLWidget::slotLineWidthChanged
virtual void slotLineWidthChanged(Uml::ID::Type viewID)
Definition: umlwidget.cpp:1070
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
UMLScene::addWidgetCmd
void addWidgetCmd(UMLWidget *widget)
Definition: umlscene.cpp:614
ToolBarState::mouseRelease
virtual void mouseRelease(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstate.cpp:111
UMLScene::setPos
void setPos(const QPointF &pos)
Definition: umlscene.cpp:466
UMLScene::selectWidgetsOfAssoc
void selectWidgetsOfAssoc(AssociationWidget *a)
Definition: umlscene.cpp:1735
LayoutGenerator::generate
bool generate(UMLScene *scene, const QString &variant=QString())
Definition: layoutgenerator.cpp:109
UMLScene::removeWidget
void removeWidget(UMLWidget *o)
Definition: umlscene.cpp:1289
UMLScene::updateComponentSizes
void updateComponentSizes()
Definition: umlscene.cpp:3684
UMLScene::getPaste
bool getPaste() const
Definition: umlscene.cpp:2956
idchangelog.h
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
UMLListView
Displays the list view for the program.
Definition: umllistview.h:47
b
bool b
Definition: cxx11-null-pointer-constant.h:6
WorkToolBar::tbb_Seq_Message_Found
@ tbb_Seq_Message_Found
Definition: worktoolbar.h:71
UMLScene::slotObjectRemoved
void slotObjectRemoved(UMLObject *o)
Definition: umlscene.cpp:832
UMLScene::m_showDocumentationIndicator
static bool m_showDocumentationIndicator
Status of documentation indicator.
Definition: umlscene.h:398
UMLScene::m_bUseSnapComponentSizeToGrid
bool m_bUseSnapComponentSizeToGrid
Flag to use snap to grid for component size. The default is off.
Definition: umlscene.h:351
uIgnoreZeroPointer
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:134
Uml::DiagramType::Activity
@ Activity
Definition: basictypes.h:86
UMLScene::isSequenceDiagram
bool isSequenceDiagram()
Definition: umlscene.h:318
UMLScene::loadUISDiagram
bool loadUISDiagram(QDomElement &qElement)
Definition: umlscene.cpp:4153
UMLScene::setClassWidgetOptions
void setClassWidgetOptions(ClassOptionsPage *page)
Definition: umlscene.cpp:3426
AssociationWidget::nameWidget
FloatingTextWidget * nameWidget() const
Definition: associationwidget.cpp:813
UMLDatatype::isReference
bool isReference() const
Definition: datatype.cpp:64
UMLScene::toggleSnapComponentSizeToGrid
void toggleSnapComponentSizeToGrid()
Definition: umlscene.cpp:3504
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
UMLScene::setOptionState
void setOptionState(const Settings::OptionState &options)
Definition: umlscene.cpp:579
dialog_utils.h
LayoutGenerator::apply
bool apply(UMLScene *scene)
Definition: layoutgenerator.cpp:195
umlobjectlist.h
UMLWidget::forceUpdateFontMetrics
void forceUpdateFontMetrics(QPainter *painter)
Definition: umlwidget.cpp:1982
UMLViewImageExporter
Definition: umlviewimageexporter.h:34
package.h
UMLScene::ID
Uml::ID::Type ID() const
Definition: umlscene.cpp:442
FloatingTextWidget::isTextValid
static bool isTextValid(const QString &text)
Definition: floatingtextwidget.cpp:462
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:88
UMLScene::setCreateObject
void setCreateObject(bool bCreate)
Definition: umlscene.cpp:753
UMLScene::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlscene.cpp:3813
UMLScene::toggleSnapToGrid
void toggleSnapToGrid()
Definition: umlscene.cpp:3495
Widget_Utils::hasSmallerX
bool hasSmallerX(const UMLWidget *widget1, const UMLWidget *widget2)
Definition: widget_utils.cpp:538
MessageWidget::sequenceMessageType
Uml::SequenceMessage::Enum sequenceMessageType() const
Definition: messagewidget.h:80
AssociationWidget::setLineWidth
virtual void setLineWidth(uint width)
Definition: associationwidget.cpp:3166
UMLScene::setGridDotColor
void setGridDotColor(const QColor &color)
Definition: umlscene.cpp:562
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3416
WidgetBase::isAssociationWidget
bool isAssociationWidget()
Definition: widgetbase.h:244
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:88
SeqLineWidget::onDestructionBox
bool onDestructionBox(const QPointF &p)
Definition: seqlinewidget.cpp:82
UMLWidget::DefaultMinimumSize
static const QSizeF DefaultMinimumSize
Definition: umlwidget.h:47
FloatingTextWidget::text
QString text() const
Definition: floatingtextwidget.cpp:88
Model_Utils::typeIsFolder
bool typeIsFolder(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1213
UMLDragData::LvTypeAndID_List
QList< LvTypeAndID * > LvTypeAndID_List
Definition: umldragdata.h:69
ClassOptionsPage::setWidget
void setWidget(ClassifierWidget *pWidget)
Definition: classoptionspage.cpp:131
UMLWidget::setLineWidth
virtual void setLineWidth(uint width)
Definition: umlwidget.cpp:1147
LayoutGrid::setGridDotColor
void setGridDotColor(const QColor &color)
Definition: layoutgrid.cpp:95
StateWidget::Choice
@ Choice
Definition: statewidget.h:54
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
UMLScene::slotShowView
void slotShowView()
Definition: umlscene.cpp:3365
UMLScene::documentation
QString documentation() const
Definition: umlscene.cpp:356
UMLObjectList
Definition: umlobjectlist.h:29
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
UMLScene::isComponentDiagram
bool isComponentDiagram()
Definition: umlscene.h:322
UMLScene::alignBottom
void alignBottom()
Definition: umlscene.cpp:4245
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3444
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
ListPopupMenu::mt_Activity
@ mt_Activity
Definition: listpopupmenu.h:64
UMLScene::copyAsImage
void copyAsImage(QPixmap *&pix)
Definition: umlscene.cpp:2852
ListPopupMenu::mt_Paste
@ mt_Paste
Definition: listpopupmenu.h:192
UMLListViewItem::setText
void setText(int column, const QString &text)
Definition: umllistviewitem.cpp:451
MessageWidget
Displays a message.
Definition: messagewidget.h:41
UMLScene::isClassDiagram
bool isClassDiagram()
Definition: umlscene.h:316
UMLAssociationList
QList< UMLAssociation * > UMLAssociationList
Definition: umlassociationlist.h:18
UMLScene::alignLeft
void alignLeft()
Definition: umlscene.cpp:4192
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
UMLScenePrivate::fixPortPositions
void fixPortPositions()
Definition: umlscene.cpp:174
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
UMLScene::mouseDoubleClickEvent
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *mouseEvent)
Definition: umlscene.cpp:985
UMLScene::activateAfterLoad
void activateAfterLoad(bool bUseLog=false)
Definition: umlscene.cpp:2171
UMLScene::selectAll
void selectAll()
Definition: umlscene.cpp:1669
umldoc.h
ObjectWidget::sequentialLine
SeqLineWidget * sequentialLine() const
Definition: objectwidget.cpp:643
Dialog_Utils::askDeleteDiagram
bool askDeleteDiagram(const QString &name)
Definition: dialog_utils.cpp:130
UMLScene::removeAllWidgets
void removeAllWidgets()
Definition: umlscene.cpp:2323
SeqLineWidget::onWidget
bool onWidget(const QPointF &p)
Definition: seqlinewidget.cpp:61
ListPopupMenu::mt_Package
@ mt_Package
Definition: listpopupmenu.h:114
WorkToolBar::tbb_Seq_Message_Asynchronous
@ tbb_Seq_Message_Asynchronous
Definition: worktoolbar.h:70
UMLScene::isUseCaseDiagram
bool isUseCaseDiagram()
Definition: umlscene.h:317
WidgetBase::isPinWidget
bool isPinWidget()
Definition: widgetbase.h:262
UMLScene::findAssocWidget
AssociationWidget * findAssocWidget(Uml::ID::Type id)
Definition: umlscene.cpp:1213
UMLScene::m_pIDChangesLog
IDChangeLog * m_pIDChangesLog
LocalID Changes Log for paste actions.
Definition: umlscene.h:403
UMLApp::slotStatusMsg
void slotStatusMsg(const QString &text)
Definition: uml.cpp:1702
ListPopupMenu::mt_ReturnToClass
@ mt_ReturnToClass
Definition: listpopupmenu.h:143
UMLScene::setID
void setID(Uml::ID::Type id)
Definition: umlscene.cpp:450
WidgetBase::id
Uml::ID::Type id() const
Definition: widgetbase.cpp:214
UMLScenePrivate::inMouseMoveEvent
bool inMouseMoveEvent
Definition: umlscene.cpp:256
UMLScene::m_doc
UMLDoc * m_doc
Pointer to the UMLDoc.
Definition: umlscene.h:407
UMLWidget::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition: umlwidget.cpp:1192
forkjoinwidget.h
UMLScene::isDeploymentDiagram
bool isDeploymentDiagram()
Definition: umlscene.h:323
UMLScene::m_PastePoint
QPointF m_PastePoint
The offset at which to paste the clipboard.
Definition: umlscene.h:406
StateWidget::DeepHistory
@ DeepHistory
Definition: statewidget.h:52
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1232
ListPopupMenu::mt_State
@ mt_State
Definition: listpopupmenu.h:124
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:543
AssociationWidget::calculateEndingPoints
void calculateEndingPoints()
Definition: associationwidget.cpp:1611
UMLView::zoom
qreal zoom() const
Definition: umlview.cpp:64
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:108
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
layoutgenerator.h
UMLScene::createAutoConstraintAssociation
void createAutoConstraintAssociation(UMLEntity *refEntity, UMLForeignKeyConstraint *fkConstraint, UMLWidget *widget)
Definition: umlscene.cpp:2766
ListPopupMenu::mt_ShallowHistory
@ mt_ShallowHistory
Definition: listpopupmenu.h:123
ToolBarState
Definition: toolbarstate.h:70