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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

umldoc.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLDOC_H
7#define UMLDOC_H
8
9// app includes
10#include "basictypes.h"
11#include "optionstate.h"
12#include "umlobject.h"
13#include "umlobjectlist.h"
14#include "umlassociationlist.h"
15#include "umlclassifierlist.h"
16#include "umlentitylist.h"
17#include "umlviewlist.h"
18#include "umlstereotypelist.h"
19#include "umlpackagelist.h"
20
21// qt includes
22#include <QUrl>
23#include <QMap>
24
25// system includes
26#include <typeinfo>
27
28#define ENC_UNKNOWN 0
29#define ENC_UNICODE 1
30#define ENC_WINDOWS 2
31#define ENC_OLD_ENC 3
32
33// forward declarations
34 class QDomNode;
35 class QDomElement;
36 class QPrinter;
37
38 class IDChangeLog;
39 class DiagramsModel;
40 class ObjectsModel;
41 class StereotypesModel;
42 class UMLPackage;
43 class UMLFolder;
44 class DiagramPrintPage;
45
62 class UMLDoc : public QObject
63{
64 Q_OBJECT
65 public:
66
67 UMLDoc();
68 ~UMLDoc();
69
70 void init();
71
72 void addView(UMLView *view);
73 void removeView(UMLView *view, bool enforceOneView = true);
74 void setMainViewID(Uml::ID::Type viewID);
75 void changeCurrentView(Uml::ID::Type id);
76 void activateAllViews();
77 void removeAllViews();
78 void removeAllObjects();
79
80 void setModified(bool modified = true);
81 bool isModified() const;
82 bool saveModified();
83
84 bool newDocument();
85 void closeDocument();
86 bool openDocument(const QUrl& url, const char *format = 0);
87 bool saveDocument(const QUrl& url, const char *format = 0);
88 const QUrl& url() const;
89 void setUrl(const QUrl& url);
90 void setUrlUntitled();
91
92 void setupSignals();
93
94 bool isUnique(const QString &name) const;
95 bool isUnique(const QString &name, UMLPackage *package) const;
96
97 UMLAssociation* createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type);
98
99 void addAssociation(UMLAssociation *assoc);
100 void removeAssociation(UMLAssociation *assoc, bool doSetModified = true);
101 UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType,
102 const UMLObject *roleAObj,
103 const UMLObject *roleBObj,
104 bool *swap = 0) const;
105
106 QString createDiagramName(Uml::DiagramType::Enum type, bool askForName = true);
107 UMLView* createDiagram(UMLFolder *folder,
108 Uml::DiagramType::Enum type,
109 const QString& name,
110 Uml::ID::Type id = Uml::ID::None);
111
112 void removeDiagram(Uml::ID::Type id);
113 void removeDiagramCmd(Uml::ID::Type id);
114 void renameDiagram(Uml::ID::Type id);
115
116 void removeUMLObject(UMLObject* umlobject, bool deleteObject = false);
117 void renameUMLObject(UMLObject *o);
118 void renameChildUMLObject(UMLObject *o);
119
120 UMLObject* findObjectById(Uml::ID::Type id);
121
122 UMLObject* findUMLObject(const QString &name,
123 UMLObject::ObjectType type = UMLObject::ot_UMLObject,
124 UMLObject *currentObj = 0);
125
126 UMLObject* findUMLObjectRaw(Uml::ModelType::Enum,
127 const QString &name,
128 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
129
130 UMLObject* findUMLObjectRaw(UMLFolder *folder,
131 const QString &name,
132 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
133
134 UMLObject* findUMLObjectRecursive(Uml::ModelType::Enum,
135 const QString &name,
136 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
137
138 UMLObject* findUMLObjectRecursive(UMLFolder *folder,
139 const QString &name,
140 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
141
142 UMLClassifier * findUMLClassifier(const QString &name);
143
144 UMLView * findView(Uml::ID::Type id) const;
145 UMLView * findView(Uml::DiagramType::Enum type, const QString &name,
146 bool searchAllScopes = false) const;
147
148 void setName(const QString& name);
149 QString name() const;
150
151 void setResolution(qreal resolution);
152 qreal resolution() const;
153 qreal dpiScale() const;
154
155 Uml::ID::Type modelID() const;
156
157 static bool tagEq (const QString& tag, const QString& pattern);
158
159 virtual void saveToXMI(QIODevice& file);
160
161 short encoding(QIODevice & file);
162
163 virtual bool loadFromXMI(QIODevice& file, short encode = ENC_UNKNOWN);
164
165 bool validateXMI1Header(QDomNode& headerNode);
166
167 bool loadUMLObjectsFromXMI(QDomElement & element);
168 void loadExtensionsFromXMI1(QDomNode & node);
169 bool loadDiagramsFromXMI1(QDomNode & node);
170
171 void signalDiagramRenamed(UMLView * view);
172 void signalUMLObjectCreated(UMLObject * o);
173
174 UMLClassifierList concepts(bool includeNested = true) const;
175 UMLClassifierList classesAndInterfaces(bool includeNested = true) const;
176 UMLEntityList entities(bool includeNested = true) const;
177 UMLFolder * datatypeFolder() const;
178 UMLClassifierList datatypes(bool includeInactive = false) const;
179 UMLDatatype * findDatatype(QString name, bool includeInactive = false);
180 UMLAssociationList associations() const;
181 UMLPackageList packages(bool includeNested = true, Uml::ModelType::Enum model = Uml::ModelType::Logical) const;
182
183 void print(QPrinter * pPrinter, DiagramPrintPage * selectPage);
184
185 UMLViewList viewIterator() const;
186 UMLViewList views(Uml::DiagramType::Enum type = Uml::DiagramType::Undefined) const;
187
188 bool assignNewIDs(UMLObject* obj);
189
190 bool addUMLObject(UMLObject * object);
191 bool addUMLView(UMLView * pView);
192
193 UMLFolder *rootFolder(Uml::ModelType::Enum mt) const;
194 Uml::ModelType::Enum rootFolderType(UMLObject *obj) const;
195
196 UMLFolder *currentRoot() const;
197 void setCurrentRoot(Uml::ModelType::Enum rootType);
198
199 virtual IDChangeLog* changeLog() const;
200
201 void beginPaste();
202 void endPaste();
203
204 Uml::ID::Type assignNewID(Uml::ID::Type oldID);
205
206 void setDocumentation(const QString &doc);
207 QString documentation() const;
208
209 void settingsChanged(Settings::OptionState &optionState);
210
211 QString uniqueViewName(const Uml::DiagramType::Enum type) const;
212
213 bool loading() const;
214 void setLoading(bool state = true);
215
216 bool importing() const;
217 void setImporting(bool state = true);
218
219 bool closing() const;
220
221 void addDefaultDatatypes();
222 UMLDatatype * createDatatype(const QString &name);
223 void removeDatatype(const QString &name);
224
225 UMLStereotype *createStereotype(const QString &name);
226 UMLStereotype *findStereotype(const QString &name) const;
227 UMLStereotype *findOrCreateStereotype(const QString &name);
228 UMLStereotype *findStereotypeById(Uml::ID::Type id) const;
229 void addStereotype(UMLStereotype *s);
230 void removeStereotype(UMLStereotype *s);
231 void addDefaultStereotypes();
232 const UMLStereotypeList& stereotypes() const;
233
234 void writeToStatusBar(const QString &text);
235
236 void resolveTypes();
237 bool loadDiagrams1();
238 void addDiagramToLoad(UMLFolder *folder, QDomNode node);
239
240 DiagramsModel *diagramsModel() const;
241 StereotypesModel *stereotypesModel() const;
242 ObjectsModel *objectsModel() const;
243
244 void setLoadingError(const QString &text);
245
246 private:
247 void initSaveTimer();
248 void createDatatypeFolder();
249
250 class Private;
251 Private *m_d;
252
256 UMLFolder *m_root[Uml::ModelType::N_MODELTYPES];
257
262 UMLFolder *m_datatypeRoot;
263
271 UMLStereotypeList m_stereoList;
272
273 QString m_Name;
274 Uml::ID::Type m_modelID;
275 int m_count;
276 bool m_modified;
277 QUrl m_doc_url;
281 IDChangeLog* m_pChangeLog;
282
286 bool m_bLoading;
287
291 bool m_importing;
292
296 QString m_Doc;
297
301 QTimer * m_pAutoSaveTimer;
302
306 Uml::ID::Type m_nViewID;
307
311 bool m_bTypesAreResolved;
312
318 UMLFolder * m_pCurrentRoot;
319
323 bool m_bClosing;
324
325 DiagramsModel *m_diagramsModel;
326 ObjectsModel *m_objectsModel;
327 StereotypesModel *m_stereotypesModel;
328
333 qreal m_resolution;
334
338 typedef QMap<UMLFolder*, QList<QDomNode>> DiagramsMap;
339 DiagramsMap m_diagramsToLoad;
340
341 public slots:
342 void slotRemoveUMLObject(UMLObject*o);
343 void slotAutoSave();
344 void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point);
345
346signals:
347 void sigDiagramCreated(Uml::ID::Type id);
348 void sigDiagramRemoved(Uml::ID::Type id);
349 void sigDiagramRenamed(Uml::ID::Type t);
350 void sigDiagramChanged(Uml::DiagramType::Enum);
351
352 void sigObjectCreated(UMLObject *);
353 void sigObjectRemoved(UMLObject *);
354
358 void sigResetStatusbarProgress();
359
365 void sigSetStatusbarProgressSteps(int totalSteps);
366
372 void sigSetStatusbarProgress(int stepPosition);
373
377 void sigWriteToStatusBar(const QString &text);
378
383 void sigCurrentViewChanged();
384
385};
386
387#endif // UMLDOC_H
basictypes.h
DiagramPrintPage
A print dialog page.
Definition diagramprintpage.h:33
DiagramsModel
Definition diagramsmodel.h:21
IDChangeLog
Definition idchangelog.h:22
ObjectsModel
Definition objectsmodel.h:16
Settings::OptionState
Definition optionstate.h:308
StereotypesModel
Definition stereotypesmodel.h:20
UMLAssociation
Sets up association information.
Definition association.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLDatatype
Non-graphical information for a Datatype.
Definition datatype.h:21
UMLDoc::Private
Definition umldoc.cpp:77
UMLDoc
Definition umldoc.h:63
UMLDoc::findView
UMLView * findView(Uml::ID::Type id) const
Definition umldoc.cpp:872
UMLDoc::DiagramsMap
QMap< UMLFolder *, QList< QDomNode > > DiagramsMap
Definition umldoc.h:338
UMLDoc::m_Name
QString m_Name
name of this model as stored in the <UML:Model> tag
Definition umldoc.h:273
UMLDoc::sigResetStatusbarProgress
void sigResetStatusbarProgress()
UMLDoc::name
QString name() const
Definition umldoc.cpp:1878
UMLDoc::closeDocument
void closeDocument()
Definition umldoc.cpp:406
UMLDoc::m_root
UMLFolder * m_root[Uml::ModelType::N_MODELTYPES]
Definition umldoc.h:256
UMLDoc::slotAutoSave
void slotAutoSave()
Definition umldoc.cpp:3270
UMLDoc::sigDiagramRemoved
void sigDiagramRemoved(Uml::ID::Type id)
UMLDoc::sigSetStatusbarProgress
void sigSetStatusbarProgress(int stepPosition)
UMLDoc::findStereotypeById
UMLStereotype * findStereotypeById(Uml::ID::Type id) const
Definition umldoc.cpp:1213
UMLDoc::m_bTypesAreResolved
bool m_bTypesAreResolved
Definition umldoc.h:311
UMLDoc::addView
void addView(UMLView *view)
Definition umldoc.cpp:200
UMLDoc::documentation
QString documentation() const
Definition umldoc.cpp:3162
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
UMLDoc::currentRoot
UMLFolder * currentRoot() const
Definition umldoc.cpp:1719
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition umldoc.cpp:1335
UMLDoc::newDocument
bool newDocument()
Definition umldoc.cpp:458
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition umldoc.cpp:1584
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition umldoc.cpp:1005
UMLDoc::viewIterator
UMLViewList viewIterator() const
Definition umldoc.cpp:2981
UMLDoc::m_bLoading
bool m_bLoading
Definition umldoc.h:286
UMLDoc::setUrl
void setUrl(const QUrl &url)
Definition umldoc.cpp:329
UMLDoc::beginPaste
void beginPaste()
Definition umldoc.cpp:3121
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition umldoc.cpp:3399
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition umldoc.cpp:1888
UMLDoc::m_datatypeRoot
UMLFolder * m_datatypeRoot
Definition umldoc.h:262
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition umldoc.cpp:938
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition umldoc.cpp:239
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition umldoc.cpp:909
UMLDoc::resolveTypes
void resolveTypes()
Definition umldoc.cpp:2368
UMLDoc::loadUMLObjectsFromXMI
bool loadUMLObjectsFromXMI(QDomElement &element)
Definition umldoc.cpp:2473
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition umldoc.cpp:1037
UMLDoc::init
void init()
Definition umldoc.cpp:119
UMLDoc::sigDiagramChanged
void sigDiagramChanged(Uml::DiagramType::Enum)
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition umldoc.cpp:1270
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition umldoc.cpp:347
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition umldoc.cpp:1676
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition umldoc.cpp:1700
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition umldoc.cpp:3172
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
UMLDoc::dpiScale
qreal dpiScale() const
Definition umldoc.cpp:1913
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition umldoc.cpp:2955
UMLDoc::changeLog
virtual IDChangeLog * changeLog() const
Definition umldoc.cpp:3112
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition umldoc.cpp:2450
UMLDoc::isModified
bool isModified() const
Definition umldoc.cpp:3027
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition umldoc.cpp:1246
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition umldoc.h:326
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false) const
Definition umldoc.cpp:2893
UMLDoc::createDatatype
UMLDatatype * createDatatype(const QString &name)
Definition umldoc.cpp:3354
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj) const
Definition umldoc.cpp:3096
UMLDoc::m_count
int m_count
auxiliary counter for the progress bar
Definition umldoc.h:275
UMLDoc::slotRemoveUMLObject
void slotRemoveUMLObject(UMLObject *o)
Definition umldoc.cpp:1089
UMLDoc::UMLDoc
UMLDoc()
Definition umldoc.cpp:88
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition umldoc.cpp:1927
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition umldoc.h:306
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition umldoc.cpp:1756
UMLDoc::createDatatypeFolder
void createDatatypeFolder()
Definition umldoc.cpp:156
UMLDoc::m_stereotypesModel
StereotypesModel * m_stereotypesModel
Definition umldoc.h:327
UMLDoc::setLoading
void setLoading(bool state=true)
Definition umldoc.cpp:1454
UMLDoc::m_doc_url
QUrl m_doc_url
Definition umldoc.h:277
UMLDoc::objectsModel
ObjectsModel * objectsModel() const
Definition umldoc.cpp:2429
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition umldoc.cpp:3187
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition umldoc.cpp:3148
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition umldoc.cpp:2865
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition umldoc.cpp:1259
UMLDoc::m_d
Private * m_d
Definition umldoc.h:251
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition umldoc.cpp:1492
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical) const
Definition umldoc.cpp:2827
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name) const
Definition umldoc.cpp:1184
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition umldoc.cpp:1080
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition umldoc.cpp:1051
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
UMLDoc::removeAllObjects
void removeAllObjects()
Definition umldoc.cpp:2813
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition umldoc.cpp:1856
UMLDoc::entities
UMLEntityList entities(bool includeNested=true) const
Definition umldoc.cpp:2879
UMLDoc::m_pChangeLog
IDChangeLog * m_pChangeLog
Definition umldoc.h:281
UMLDoc::m_modelID
Uml::ID::Type m_modelID
xmi.id of this model in the <UML:Model>
Definition umldoc.h:274
UMLDoc::assignNewIDs
bool assignNewIDs(UMLObject *obj)
Definition umldoc.cpp:3040
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition umldoc.cpp:3455
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition umldoc.cpp:2653
UMLDoc::addDiagramToLoad
void addDiagramToLoad(UMLFolder *folder, QDomNode node)
Definition umldoc.cpp:2416
UMLDoc::findUMLObjectRaw
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition umldoc.cpp:970
UMLDoc::m_diagramsModel
DiagramsModel * m_diagramsModel
Definition umldoc.h:325
UMLDoc::diagramsModel
DiagramsModel * diagramsModel() const
Definition umldoc.cpp:2424
UMLDoc::m_resolution
qreal m_resolution
Definition umldoc.h:333
UMLDoc::encoding
short encoding(QIODevice &file)
Definition umldoc.cpp:2078
UMLDoc::m_pAutoSaveTimer
QTimer * m_pAutoSaveTimer
Definition umldoc.h:301
UMLDoc::m_diagramsToLoad
DiagramsMap m_diagramsToLoad
Definition umldoc.h:339
UMLDoc::settingsChanged
void settingsChanged(Settings::OptionState &optionState)
Definition umldoc.cpp:3239
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt) const
Definition umldoc.cpp:3081
UMLDoc::loadFromXMI
virtual bool loadFromXMI(QIODevice &file, short encode=ENC_UNKNOWN)
Definition umldoc.cpp:2130
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type) const
Definition umldoc.cpp:1396
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition umldoc.cpp:1649
UMLDoc::loading
bool loading() const
Definition umldoc.cpp:1445
UMLDoc::activateAllViews
void activateAllViews()
Definition umldoc.cpp:3223
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true) const
Definition umldoc.cpp:2851
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition umldoc.h:271
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition umldoc.cpp:3315
UMLDoc::setImporting
void setImporting(bool state=true)
Definition umldoc.cpp:1471
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition umldoc.cpp:1199
UMLDoc::saveModified
bool saveModified()
Definition umldoc.cpp:358
UMLDoc::findDatatype
UMLDatatype * findDatatype(QString name, bool includeInactive=false)
Definition umldoc.cpp:2913
UMLDoc::saveDocument
bool saveDocument(const QUrl &url, const char *format=0)
Definition umldoc.cpp:699
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition umldoc.cpp:1521
UMLDoc::removeAllViews
void removeAllViews()
Definition umldoc.cpp:2799
UMLDoc::resolution
qreal resolution() const
Definition umldoc.cpp:1903
UMLDoc::importing
bool importing() const
Definition umldoc.cpp:1463
UMLDoc::m_modified
bool m_modified
Definition umldoc.h:276
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition umldoc.cpp:1353
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition umldoc.cpp:1552
UMLDoc::setupSignals
void setupSignals()
Definition umldoc.cpp:860
UMLDoc::~UMLDoc
~UMLDoc()
Definition umldoc.cpp:169
UMLDoc::m_bClosing
bool m_bClosing
Definition umldoc.h:323
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition umldoc.cpp:3332
UMLDoc::url
const QUrl & url() const
Definition umldoc.cpp:339
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition umldoc.cpp:1743
UMLDoc::saveToXMI
virtual void saveToXMI(QIODevice &file)
Definition umldoc.cpp:1939
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0) const
Definition umldoc.cpp:1301
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition umldoc.cpp:1236
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition umldoc.cpp:1171
UMLDoc::closing
bool closing() const
Definition umldoc.cpp:1480
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined) const
Definition umldoc.cpp:2996
UMLDoc::isUnique
bool isUnique(const QString &name) const
Definition umldoc.cpp:1106
UMLDoc::m_Doc
QString m_Doc
Definition umldoc.h:296
UMLDoc::openDocument
bool openDocument(const QUrl &url, const char *format=0)
Definition umldoc.cpp:498
UMLDoc::m_importing
bool m_importing
Definition umldoc.h:291
UMLDoc::removeDatatype
void removeDatatype(const QString &name)
Definition umldoc.cpp:3381
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition umldoc.cpp:1226
UMLDoc::setModified
void setModified(bool modified=true)
Definition umldoc.cpp:3012
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition umldoc.cpp:2394
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition umldoc.cpp:2743
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel() const
Definition umldoc.cpp:2439
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition umldoc.cpp:1612
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
UMLDoc::initSaveTimer
void initSaveTimer()
Definition umldoc.cpp:3250
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition umldoc.cpp:2839
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition umldoc.cpp:2663
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition umldoc.h:318
UMLDoc::setName
void setName(const QString &name)
Definition umldoc.cpp:1870
UMLDoc::endPaste
void endPaste()
Definition umldoc.cpp:3133
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition umldoc.cpp:2434
UMLDoc::associations
UMLAssociationList associations() const
Definition umldoc.cpp:2936
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition folder.h:30
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition umlobject.h:76
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition umlobject.h:78
UMLPackage
Non-graphical information for a Package.
Definition package.h:28
UMLStereotype
Sets up stereotype information.
Definition stereotype.h:36
UMLView
Definition umlview.h:30
b
bool b
Definition cxx11-null-pointer-constant.h:6
Uml::AssociationType::Enum
Enum
Definition basictypes.h:92
Uml::DiagramType::Enum
Enum
Definition basictypes.h:63
Uml::DiagramType::Undefined
@ Undefined
Definition basictypes.h:66
Uml::ID::None
const Type None
special value for uninitialized ID
Definition basictypes.h:373
Uml::ID::Type
std::string Type
Definition basictypes.h:371
Uml::ModelType::Enum
Enum
Definition basictypes.h:27
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition basictypes.h:33
Uml::ModelType::Logical
@ Logical
Definition basictypes.h:28
optionstate.h
a
QString a
Definition petalnode.cpp:13
umlassociationlist.h
UMLAssociationList
QList< UMLAssociation * > UMLAssociationList
Definition umlassociationlist.h:14
umlclassifierlist.h
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition umlclassifierlist.h:14
ENC_UNKNOWN
#define ENC_UNKNOWN
Definition umldoc.h:28
umlentitylist.h
UMLEntityList
QList< UMLEntity * > UMLEntityList
Definition umlentitylist.h:14
umlobject.h
umlobjectlist.h
umlpackagelist.h
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition umlpackagelist.h:13
umlstereotypelist.h
UMLStereotypeList
QList< UMLStereotype * > UMLStereotypeList
Definition umlstereotypelist.h:14
umlviewlist.h
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition umlviewlist.h:16