umbrello: umbrello/umldoc.h Source File

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

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// kde includes
22#if QT_VERSION < 0x050000
23#include <kurl.h>
24#endif
25
26// qt includes
27#if QT_VERSION >= 0x050000
28#include <QUrl>
29#endif
30#include <QMap>
31
32// system includes
33#include <typeinfo>
34
35#define ENC_UNKNOWN 0
36#define ENC_UNICODE 1
37#define ENC_WINDOWS 2
38#define ENC_OLD_ENC 3
39
40// forward declarations
41class QDomNode;
42class QDomElement;
43class QPrinter;
44
45class IDChangeLog;
46class DiagramsModel;
47class ObjectsModel;
48class StereotypesModel;
49class UMLPackage;
50class UMLFolder;
51class DiagramPrintPage;
52
69 class UMLDoc : public QObject
70{
71 Q_OBJECT
72public:
73
74 UMLDoc();
75 ~UMLDoc();
76
77 void init();
78
79 void addView(UMLView *view);
80 void removeView(UMLView *view, bool enforceOneView = true);
81 void setMainViewID(Uml::ID::Type viewID);
82 void changeCurrentView(Uml::ID::Type id);
83 void activateAllViews();
84 void removeAllViews();
85 void removeAllObjects();
86
87 void setModified(bool modified = true);
88 bool isModified() const;
89 bool saveModified();
90
91 bool newDocument();
92 void closeDocument();
93#if QT_VERSION >= 0x050000
94 bool openDocument(const QUrl& url, const char *format = 0);
95 bool saveDocument(const QUrl& url, const char *format = 0);
96 const QUrl& url() const;
97 void setUrl(const QUrl& url);
98#else
99 bool openDocument(const KUrl& url, const char *format = 0);
100 bool saveDocument(const KUrl& url, const char *format = 0);
101 const KUrl& url() const;
102 void setUrl(const KUrl& url);
103#endif
104 void setUrlUntitled();
105
106 void setupSignals();
107
108 bool isUnique(const QString &name) const;
109 bool isUnique(const QString &name, UMLPackage *package) const;
110
111 UMLAssociation* createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type);
112
113 void addAssociation(UMLAssociation *assoc);
114 void removeAssociation(UMLAssociation *assoc, bool doSetModified = true);
115 UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType,
116 const UMLObject *roleAObj,
117 const UMLObject *roleBObj,
118 bool *swap = 0) const;
119
120 QString createDiagramName(Uml::DiagramType::Enum type, bool askForName = true);
121 UMLView* createDiagram(UMLFolder *folder,
122 Uml::DiagramType::Enum type,
123 const QString& name,
124 Uml::ID::Type id = Uml::ID::None);
125
126 void removeDiagram(Uml::ID::Type id);
127 void removeDiagramCmd(Uml::ID::Type id);
128 void renameDiagram(Uml::ID::Type id);
129
130 void removeUMLObject(UMLObject* umlobject, bool deleteObject = false);
131 void renameUMLObject(UMLObject *o);
132 void renameChildUMLObject(UMLObject *o);
133
134 UMLObject* findObjectById(Uml::ID::Type id);
135
136 UMLObject* findUMLObject(const QString &name,
137 UMLObject::ObjectType type = UMLObject::ot_UMLObject,
138 UMLObject *currentObj = 0);
139
140 UMLObject* findUMLObjectRaw(Uml::ModelType::Enum,
141 const QString &name,
142 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
143
144 UMLObject* findUMLObjectRaw(UMLFolder *folder,
145 const QString &name,
146 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
147
148 UMLObject* findUMLObjectRecursive(Uml::ModelType::Enum,
149 const QString &name,
150 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
151
152 UMLObject* findUMLObjectRecursive(UMLFolder *folder,
153 const QString &name,
154 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
155
156 UMLClassifier * findUMLClassifier(const QString &name);
157
158 UMLView * findView(Uml::ID::Type id) const;
159 UMLView * findView(Uml::DiagramType::Enum type, const QString &name,
160 bool searchAllScopes = false) const;
161
162 void setName(const QString& name);
163 QString name() const;
164
165 void setResolution(qreal resolution);
166 qreal resolution() const;
167 qreal dpiScale() const;
168
169 Uml::ID::Type modelID() const;
170
171 static bool tagEq (const QString& tag, const QString& pattern);
172
173 virtual void saveToXMI(QIODevice& file);
174
175 short encoding(QIODevice & file);
176
177 virtual bool loadFromXMI(QIODevice& file, short encode = ENC_UNKNOWN);
178
179 bool validateXMI1Header(QDomNode& headerNode);
180
181 bool loadUMLObjectsFromXMI(QDomElement & element);
182 void loadExtensionsFromXMI1(QDomNode & node);
183 bool loadDiagramsFromXMI1(QDomNode & node);
184
185 void signalDiagramRenamed(UMLView * view);
186 void signalUMLObjectCreated(UMLObject * o);
187
188 UMLClassifierList concepts(bool includeNested = true) const;
189 UMLClassifierList classesAndInterfaces(bool includeNested = true) const;
190 UMLEntityList entities(bool includeNested = true) const;
191 UMLFolder * datatypeFolder() const;
192 UMLClassifierList datatypes(bool includeInactive = false) const;
193 UMLDatatype * findDatatype(QString name, bool includeInactive = false);
194 UMLAssociationList associations() const;
195 UMLPackageList packages(bool includeNested = true, Uml::ModelType::Enum model = Uml::ModelType::Logical) const;
196
197 void print(QPrinter * pPrinter, DiagramPrintPage * selectPage);
198
199 UMLViewList viewIterator() const;
200 UMLViewList views(Uml::DiagramType::Enum type = Uml::DiagramType::Undefined) const;
201
202 bool assignNewIDs(UMLObject* obj);
203
204 bool addUMLObject(UMLObject * object);
205 bool addUMLView(UMLView * pView);
206
207 UMLFolder *rootFolder(Uml::ModelType::Enum mt) const;
208 Uml::ModelType::Enum rootFolderType(UMLObject *obj) const;
209
210 UMLFolder *currentRoot() const;
211 void setCurrentRoot(Uml::ModelType::Enum rootType);
212
213 virtual IDChangeLog* changeLog() const;
214
215 void beginPaste();
216 void endPaste();
217
218 Uml::ID::Type assignNewID(Uml::ID::Type oldID);
219
220 void setDocumentation(const QString &doc);
221 QString documentation() const;
222
223 void settingsChanged(Settings::OptionState &optionState);
224
225 QString uniqueViewName(const Uml::DiagramType::Enum type) const;
226
227 bool loading() const;
228 void setLoading(bool state = true);
229
230 bool importing() const;
231 void setImporting(bool state = true);
232
233 bool closing() const;
234
235 void addDefaultDatatypes();
236 UMLDatatype * createDatatype(const QString &name);
237 void removeDatatype(const QString &name);
238
239 UMLStereotype *createStereotype(const QString &name);
240 UMLStereotype *findStereotype(const QString &name) const;
241 UMLStereotype *findOrCreateStereotype(const QString &name);
242 UMLStereotype *findStereotypeById(Uml::ID::Type id) const;
243 void addStereotype(UMLStereotype *s);
244 void removeStereotype(UMLStereotype *s);
245 void addDefaultStereotypes();
246 const UMLStereotypeList& stereotypes() const;
247
248 void writeToStatusBar(const QString &text);
249
250 void resolveTypes();
251 bool loadDiagrams1();
252 void addDiagramToLoad(UMLFolder *folder, QDomNode node);
253
254 DiagramsModel *diagramsModel() const;
255 StereotypesModel *stereotypesModel() const;
256 ObjectsModel *objectsModel() const;
257
258 void setLoadingError(const QString &text);
259
260private:
261 void initSaveTimer();
262 void createDatatypeFolder();
263
264 class Private;
265 Private *m_d;
266
270 UMLFolder *m_root[Uml::ModelType::N_MODELTYPES];
271
276 UMLFolder *m_datatypeRoot;
277
285 UMLStereotypeList m_stereoList;
286
287 QString m_Name;
288 Uml::ID::Type m_modelID;
289 int m_count;
290 bool m_modified;
291#if QT_VERSION >= 0x050000
292 QUrl m_doc_url;
293#else
294 KUrl m_doc_url;
295#endif
299 IDChangeLog* m_pChangeLog;
300
304 bool m_bLoading;
305
309 bool m_importing;
310
314 QString m_Doc;
315
319 QTimer * m_pAutoSaveTimer;
320
324 Uml::ID::Type m_nViewID;
325
329 bool m_bTypesAreResolved;
330
336 UMLFolder * m_pCurrentRoot;
337
341 bool m_bClosing;
342
343 DiagramsModel *m_diagramsModel;
344 ObjectsModel *m_objectsModel;
345 StereotypesModel *m_stereotypesModel;
346
351 qreal m_resolution;
352
356 typedef QMap<UMLFolder*, QList<QDomNode>> DiagramsMap;
357 DiagramsMap m_diagramsToLoad;
358
359public slots:
360 void slotRemoveUMLObject(UMLObject*o);
361 void slotAutoSave();
362 void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point);
363
364signals:
365 void sigDiagramCreated(Uml::ID::Type id);
366 void sigDiagramRemoved(Uml::ID::Type id);
367 void sigDiagramRenamed(Uml::ID::Type t);
368 void sigDiagramChanged(Uml::DiagramType::Enum);
369
370 void sigObjectCreated(UMLObject *);
371 void sigObjectRemoved(UMLObject *);
372
376 void sigResetStatusbarProgress();
377
383 void sigSetStatusbarProgressSteps(int totalSteps);
384
390 void sigSetStatusbarProgress(int stepPosition);
391
395 void sigWriteToStatusBar(const QString &text);
396
401 void sigCurrentViewChanged();
402
403};
404
405#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:310
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:94
UMLDoc
Definition: umldoc.h:70
UMLDoc::findView
UMLView * findView(Uml::ID::Type id) const
Definition: umldoc.cpp:1055
UMLDoc::DiagramsMap
QMap< UMLFolder *, QList< QDomNode > > DiagramsMap
Definition: umldoc.h:356
UMLDoc::m_Name
QString m_Name
name of this model as stored in the <UML:Model> tag
Definition: umldoc.h:287
UMLDoc::sigResetStatusbarProgress
void sigResetStatusbarProgress()
UMLDoc::name
QString name() const
Definition: umldoc.cpp:2061
UMLDoc::closeDocument
void closeDocument()
Definition: umldoc.cpp:438
UMLDoc::m_doc_url
KUrl m_doc_url
Definition: umldoc.h:294
UMLDoc::m_root
UMLFolder * m_root[Uml::ModelType::N_MODELTYPES]
Definition: umldoc.h:270
UMLDoc::slotAutoSave
void slotAutoSave()
Definition: umldoc.cpp:3453
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:1396
UMLDoc::url
const KUrl & url() const
Definition: umldoc.cpp:366
UMLDoc::m_bTypesAreResolved
bool m_bTypesAreResolved
Definition: umldoc.h:329
UMLDoc::addView
void addView(UMLView *view)
Definition: umldoc.cpp:221
UMLDoc::documentation
QString documentation() const
Definition: umldoc.cpp:3345
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
UMLDoc::currentRoot
UMLFolder * currentRoot() const
Definition: umldoc.cpp:1902
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition: umldoc.cpp:1518
UMLDoc::newDocument
bool newDocument()
Definition: umldoc.cpp:490
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition: umldoc.cpp:1767
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1188
UMLDoc::viewIterator
UMLViewList viewIterator() const
Definition: umldoc.cpp:3164
UMLDoc::m_bLoading
bool m_bLoading
Definition: umldoc.h:304
UMLDoc::beginPaste
void beginPaste()
Definition: umldoc.cpp:3304
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition: umldoc.cpp:3596
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition: umldoc.cpp:2071
UMLDoc::m_datatypeRoot
UMLFolder * m_datatypeRoot
Definition: umldoc.h:276
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1121
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition: umldoc.cpp:260
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1092
UMLDoc::resolveTypes
void resolveTypes()
Definition: umldoc.cpp:2551
UMLDoc::loadUMLObjectsFromXMI
bool loadUMLObjectsFromXMI(QDomElement &element)
Definition: umldoc.cpp:2656
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition: umldoc.cpp:1220
UMLDoc::init
void init()
Definition: umldoc.cpp:140
UMLDoc::sigDiagramChanged
void sigDiagramChanged(Uml::DiagramType::Enum)
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition: umldoc.cpp:1453
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition: umldoc.cpp:375
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1859
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1883
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition: umldoc.cpp:3355
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2096
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition: umldoc.cpp:3138
UMLDoc::changeLog
virtual IDChangeLog * changeLog() const
Definition: umldoc.cpp:3295
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition: umldoc.cpp:2633
UMLDoc::isModified
bool isModified() const
Definition: umldoc.cpp:3210
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition: umldoc.cpp:1429
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition: umldoc.h:344
UMLDoc::setUrl
void setUrl(const KUrl &url)
Definition: umldoc.cpp:352
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false) const
Definition: umldoc.cpp:3076
UMLDoc::createDatatype
UMLDatatype * createDatatype(const QString &name)
Definition: umldoc.cpp:3551
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj) const
Definition: umldoc.cpp:3279
UMLDoc::m_count
int m_count
auxiliary counter for the progress bar
Definition: umldoc.h:289
UMLDoc::slotRemoveUMLObject
void slotRemoveUMLObject(UMLObject *o)
Definition: umldoc.cpp:1272
UMLDoc::UMLDoc
UMLDoc()
Definition: umldoc.cpp:105
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2110
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition: umldoc.h:324
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1939
UMLDoc::createDatatypeFolder
void createDatatypeFolder()
Definition: umldoc.cpp:177
UMLDoc::m_stereotypesModel
StereotypesModel * m_stereotypesModel
Definition: umldoc.h:345
UMLDoc::setLoading
void setLoading(bool state=true)
Definition: umldoc.cpp:1637
UMLDoc::objectsModel
ObjectsModel * objectsModel() const
Definition: umldoc.cpp:2612
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition: umldoc.cpp:3370
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition: umldoc.cpp:3331
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition: umldoc.cpp:3048
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1442
UMLDoc::m_d
Private * m_d
Definition: umldoc.h:264
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition: umldoc.cpp:1675
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical) const
Definition: umldoc.cpp:3010
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name) const
Definition: umldoc.cpp:1367
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1263
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1234
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
UMLDoc::removeAllObjects
void removeAllObjects()
Definition: umldoc.cpp:2996
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:2039
UMLDoc::entities
UMLEntityList entities(bool includeNested=true) const
Definition: umldoc.cpp:3062
UMLDoc::m_pChangeLog
IDChangeLog * m_pChangeLog
Definition: umldoc.h:299
UMLDoc::m_modelID
Uml::ID::Type m_modelID
xmi.id of this model in the <UML:Model>
Definition: umldoc.h:288
UMLDoc::assignNewIDs
bool assignNewIDs(UMLObject *obj)
Definition: umldoc.cpp:3223
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3652
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2836
UMLDoc::addDiagramToLoad
void addDiagramToLoad(UMLFolder *folder, QDomNode node)
Definition: umldoc.cpp:2599
UMLDoc::findUMLObjectRaw
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1153
UMLDoc::m_diagramsModel
DiagramsModel * m_diagramsModel
Definition: umldoc.h:343
UMLDoc::diagramsModel
DiagramsModel * diagramsModel() const
Definition: umldoc.cpp:2607
UMLDoc::m_resolution
qreal m_resolution
Definition: umldoc.h:351
UMLDoc::encoding
short encoding(QIODevice &file)
Definition: umldoc.cpp:2261
UMLDoc::m_pAutoSaveTimer
QTimer * m_pAutoSaveTimer
Definition: umldoc.h:319
UMLDoc::m_diagramsToLoad
DiagramsMap m_diagramsToLoad
Definition: umldoc.h:357
UMLDoc::settingsChanged
void settingsChanged(Settings::OptionState &optionState)
Definition: umldoc.cpp:3422
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt) const
Definition: umldoc.cpp:3264
UMLDoc::loadFromXMI
virtual bool loadFromXMI(QIODevice &file, short encode=ENC_UNKNOWN)
Definition: umldoc.cpp:2313
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type) const
Definition: umldoc.cpp:1579
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1832
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1628
UMLDoc::activateAllViews
void activateAllViews()
Definition: umldoc.cpp:3406
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true) const
Definition: umldoc.cpp:3034
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition: umldoc.h:285
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3512
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1654
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1382
UMLDoc::saveModified
bool saveModified()
Definition: umldoc.cpp:390
UMLDoc::openDocument
bool openDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:533
UMLDoc::findDatatype
UMLDatatype * findDatatype(QString name, bool includeInactive=false)
Definition: umldoc.cpp:3096
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1704
UMLDoc::removeAllViews
void removeAllViews()
Definition: umldoc.cpp:2982
UMLDoc::resolution
qreal resolution() const
Definition: umldoc.cpp:2086
UMLDoc::importing
bool importing() const
Definition: umldoc.cpp:1646
UMLDoc::m_modified
bool m_modified
Definition: umldoc.h:290
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1536
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1735
UMLDoc::setupSignals
void setupSignals()
Definition: umldoc.cpp:1043
UMLDoc::~UMLDoc
~UMLDoc()
Definition: umldoc.cpp:190
UMLDoc::m_bClosing
bool m_bClosing
Definition: umldoc.h:341
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3529
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition: umldoc.cpp:1926
UMLDoc::saveToXMI
virtual void saveToXMI(QIODevice &file)
Definition: umldoc.cpp:2122
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0) const
Definition: umldoc.cpp:1484
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1419
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1354
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1663
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined) const
Definition: umldoc.cpp:3179
UMLDoc::isUnique
bool isUnique(const QString &name) const
Definition: umldoc.cpp:1289
UMLDoc::m_Doc
QString m_Doc
Definition: umldoc.h:314
UMLDoc::m_importing
bool m_importing
Definition: umldoc.h:309
UMLDoc::removeDatatype
void removeDatatype(const QString &name)
Definition: umldoc.cpp:3578
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1409
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3195
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition: umldoc.cpp:2577
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2926
UMLDoc::saveDocument
bool saveDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:817
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel() const
Definition: umldoc.cpp:2622
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition: umldoc.cpp:1795
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
UMLDoc::initSaveTimer
void initSaveTimer()
Definition: umldoc.cpp:3433
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:3022
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2846
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition: umldoc.h:336
UMLDoc::setName
void setName(const QString &name)
Definition: umldoc.cpp:2053
UMLDoc::endPaste
void endPaste()
Definition: umldoc.cpp:3316
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition: umldoc.cpp:2617
UMLDoc::associations
UMLAssociationList associations() const
Definition: umldoc.cpp:3119
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
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:357
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:12
umlclassifierlist.h
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:12
ENC_UNKNOWN
#define ENC_UNKNOWN
Definition: umldoc.h:35
umlentitylist.h
UMLEntityList
QList< UMLEntity * > UMLEntityList
Definition: umlentitylist.h:12
umlobject.h
umlobjectlist.h
umlpackagelist.h
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:11
umlstereotypelist.h
UMLStereotypeList
QList< UMLStereotype * > UMLStereotypeList
Definition: umlstereotypelist.h:12
umlviewlist.h
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:14