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

- Main Page
- Related Pages
- Modules
- 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 = nullptr);
87 bool saveDocument(const QUrl& url, const char *format = nullptr);
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 = nullptr) 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 = nullptr);
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 Q_SLOTS:
342 void slotRemoveUMLObject(UMLObject*o);
343 void slotAutoSave();
344 void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point);
345
346Q_SIGNALS:
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:19
IDChangeLog
Definition: idchangelog.h:22
ObjectsModel
Definition: objectsmodel.h:16
Settings::OptionState
Definition: optionstate.h:314
StereotypesModel
Definition: stereotypesmodel.h:17
UMLAssociation
Sets up association information.
Definition: umlassociation.h:29
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLDatatype
Non-graphical information for a Datatype.
Definition: umldatatype.h:21
UMLDoc::Private
Definition: umldoc.cpp:80
UMLDoc
Definition: umldoc.h:63
UMLDoc::findView
UMLView * findView(Uml::ID::Type id) const
Definition: umldoc.cpp:997
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:2003
UMLDoc::closeDocument
void closeDocument()
Definition: umldoc.cpp:494
UMLDoc::saveDocument
bool saveDocument(const QUrl &url, const char *format=nullptr)
Definition: umldoc.cpp:808
UMLDoc::m_root
UMLFolder * m_root[Uml::ModelType::N_MODELTYPES]
Definition: umldoc.h:256
UMLDoc::slotAutoSave
void slotAutoSave()
Definition: umldoc.cpp:3402
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:1338
UMLDoc::m_bTypesAreResolved
bool m_bTypesAreResolved
Definition: umldoc.h:311
UMLDoc::addView
void addView(UMLView *view)
Definition: umldoc.cpp:288
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=nullptr)
Definition: umldoc.cpp:1063
UMLDoc::documentation
QString documentation() const
Definition: umldoc.cpp:3294
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
UMLDoc::currentRoot
UMLFolder * currentRoot() const
Definition: umldoc.cpp:1844
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition: umldoc.cpp:1460
UMLDoc::newDocument
bool newDocument()
Definition: umldoc.cpp:562
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition: umldoc.cpp:1709
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1130
UMLDoc::viewIterator
UMLViewList viewIterator() const
Definition: umldoc.cpp:3113
UMLDoc::m_bLoading
bool m_bLoading
Definition: umldoc.h:286
UMLDoc::setUrl
void setUrl(const QUrl &url)
Definition: umldoc.cpp:417
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=nullptr) const
Definition: umldoc.cpp:1426
UMLDoc::beginPaste
void beginPaste()
Definition: umldoc.cpp:3253
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition: umldoc.cpp:3531
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition: umldoc.cpp:2013
UMLDoc::m_datatypeRoot
UMLFolder * m_datatypeRoot
Definition: umldoc.h:262
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition: umldoc.cpp:327
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1034
UMLDoc::resolveTypes
void resolveTypes()
Definition: umldoc.cpp:2495
UMLDoc::loadUMLObjectsFromXMI
bool loadUMLObjectsFromXMI(QDomElement &element)
Definition: umldoc.cpp:2600
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition: umldoc.cpp:1162
UMLDoc::init
void init()
Definition: umldoc.cpp:207
UMLDoc::sigDiagramChanged
void sigDiagramChanged(Uml::DiagramType::Enum)
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition: umldoc.cpp:1395
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition: umldoc.cpp:435
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1801
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1825
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition: umldoc.cpp:3304
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2038
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition: umldoc.cpp:3087
UMLDoc::changeLog
virtual IDChangeLog * changeLog() const
Definition: umldoc.cpp:3244
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition: umldoc.cpp:2577
UMLDoc::isModified
bool isModified() const
Definition: umldoc.cpp:3159
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition: umldoc.cpp:1371
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition: umldoc.h:326
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false) const
Definition: umldoc.cpp:3025
UMLDoc::createDatatype
UMLDatatype * createDatatype(const QString &name)
Definition: umldoc.cpp:3486
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj) const
Definition: umldoc.cpp:3228
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:1214
UMLDoc::UMLDoc
UMLDoc()
Definition: umldoc.cpp:176
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2052
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition: umldoc.h:306
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1881
UMLDoc::createDatatypeFolder
void createDatatypeFolder()
Definition: umldoc.cpp:244
UMLDoc::m_stereotypesModel
StereotypesModel * m_stereotypesModel
Definition: umldoc.h:327
UMLDoc::setLoading
void setLoading(bool state=true)
Definition: umldoc.cpp:1579
UMLDoc::m_doc_url
QUrl m_doc_url
Definition: umldoc.h:277
UMLDoc::objectsModel
ObjectsModel * objectsModel() const
Definition: umldoc.cpp:2556
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition: umldoc.cpp:3319
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition: umldoc.cpp:3280
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition: umldoc.cpp:2997
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1384
UMLDoc::m_d
Private * m_d
Definition: umldoc.h:251
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition: umldoc.cpp:1617
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical) const
Definition: umldoc.cpp:2954
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name) const
Definition: umldoc.cpp:1309
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1205
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1176
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
UMLDoc::removeAllObjects
void removeAllObjects()
Definition: umldoc.cpp:2940
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1981
UMLDoc::entities
UMLEntityList entities(bool includeNested=true) const
Definition: umldoc.cpp:3011
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:3172
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3587
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2780
UMLDoc::addDiagramToLoad
void addDiagramToLoad(UMLFolder *folder, QDomNode node)
Definition: umldoc.cpp:2543
UMLDoc::findUMLObjectRaw
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1095
UMLDoc::m_diagramsModel
DiagramsModel * m_diagramsModel
Definition: umldoc.h:325
UMLDoc::diagramsModel
DiagramsModel * diagramsModel() const
Definition: umldoc.cpp:2551
UMLDoc::m_resolution
qreal m_resolution
Definition: umldoc.h:333
UMLDoc::encoding
short encoding(QIODevice &file)
Definition: umldoc.cpp:2202
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:3371
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt) const
Definition: umldoc.cpp:3213
UMLDoc::loadFromXMI
virtual bool loadFromXMI(QIODevice &file, short encode=ENC_UNKNOWN)
Definition: umldoc.cpp:2257
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type) const
Definition: umldoc.cpp:1521
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1774
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1570
UMLDoc::activateAllViews
void activateAllViews()
Definition: umldoc.cpp:3355
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true) const
Definition: umldoc.cpp:2983
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition: umldoc.h:271
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3447
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1596
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1324
UMLDoc::saveModified
bool saveModified()
Definition: umldoc.cpp:446
UMLDoc::openDocument
bool openDocument(const QUrl &url, const char *format=nullptr)
Definition: umldoc.cpp:602
UMLDoc::findDatatype
UMLDatatype * findDatatype(QString name, bool includeInactive=false)
Definition: umldoc.cpp:3045
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1646
UMLDoc::removeAllViews
void removeAllViews()
Definition: umldoc.cpp:2926
UMLDoc::resolution
qreal resolution() const
Definition: umldoc.cpp:2028
UMLDoc::importing
bool importing() const
Definition: umldoc.cpp:1588
UMLDoc::m_modified
bool m_modified
Definition: umldoc.h:276
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1478
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1677
UMLDoc::setupSignals
void setupSignals()
Definition: umldoc.cpp:985
UMLDoc::~UMLDoc
~UMLDoc()
Definition: umldoc.cpp:257
UMLDoc::m_bClosing
bool m_bClosing
Definition: umldoc.h:323
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3464
UMLDoc::url
const QUrl & url() const
Definition: umldoc.cpp:427
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition: umldoc.cpp:1868
UMLDoc::saveToXMI
virtual void saveToXMI(QIODevice &file)
Definition: umldoc.cpp:2064
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1361
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1296
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1605
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined) const
Definition: umldoc.cpp:3128
UMLDoc::isUnique
bool isUnique(const QString &name) const
Definition: umldoc.cpp:1231
UMLDoc::m_Doc
QString m_Doc
Definition: umldoc.h:296
UMLDoc::m_importing
bool m_importing
Definition: umldoc.h:291
UMLDoc::removeDatatype
void removeDatatype(const QString &name)
Definition: umldoc.cpp:3513
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1351
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3144
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition: umldoc.cpp:2521
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2870
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel() const
Definition: umldoc.cpp:2566
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition: umldoc.cpp:1737
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
UMLDoc::initSaveTimer
void initSaveTimer()
Definition: umldoc.cpp:3382
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:2971
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2790
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition: umldoc.h:318
UMLDoc::setName
void setName(const QString &name)
Definition: umldoc.cpp:1995
UMLDoc::endPaste
void endPaste()
Definition: umldoc.cpp:3265
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition: umldoc.cpp:2561
UMLDoc::associations
UMLAssociationList associations() const
Definition: umldoc.cpp:3068
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: umlfolder.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: umlpackage.h:28
UMLStereotype
Sets up stereotype information.
Definition: umlstereotype.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