umbrello: umbrello/umldoc.h Source File

umbrello 2.32.3 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 * 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 UMLDOC_H
12 #define UMLDOC_H
13
14 // app includes
15 #include "basictypes.h"
16 #include "optionstate.h"
17 #include "umlobject.h"
18 #include "umlobjectlist.h"
19 #include "umlassociationlist.h"
20 #include "umlclassifierlist.h"
21 #include "umlentitylist.h"
22 #include "umlviewlist.h"
23 #include "umlstereotypelist.h"
24 #include "umlpackagelist.h"
25
26 // kde includes
27 #if QT_VERSION < 0x050000
28 #include <kurl.h>
29 #endif
30
31 // qt includes
32 #if QT_VERSION >= 0x050000
33 #include <QUrl>
34 #endif
35 #include <QMap>
36
37 // system includes
38 #include <typeinfo>
39
40 #define ENC_UNKNOWN 0
41 #define ENC_UNICODE 1
42 #define ENC_WINDOWS 2
43 #define ENC_OLD_ENC 3
44
45 // forward declarations
46 class QDomNode;
47 class QDomElement;
48 class QPrinter;
49
50 class IDChangeLog;
51 class DiagramsModel;
52 class ObjectsModel;
53 class StereotypesModel;
54 class UMLPackage;
55 class UMLFolder;
56 class DiagramPrintPage;
57
74 class UMLDoc : public QObject
75 {
76 Q_OBJECT
77 public:
78
79 UMLDoc();
80 ~UMLDoc();
81
82 void init();
83
84 void addView(UMLView *view);
85 void removeView(UMLView *view, bool enforceOneView = true);
86 void setMainViewID(Uml::ID::Type viewID);
87 void changeCurrentView(Uml::ID::Type id);
88 void activateAllViews();
89 void removeAllViews();
90 void removeAllObjects();
91
92 void setModified(bool modified = true);
93 bool isModified();
94 bool saveModified();
95
96 bool newDocument();
97 void closeDocument();
98 #if QT_VERSION >= 0x050000
99 bool openDocument(const QUrl& url, const char *format = 0);
100 bool saveDocument(const QUrl& url, const char *format = 0);
101 const QUrl& url() const;
102 void setUrl(const QUrl& url);
103 #else
104 bool openDocument(const KUrl& url, const char *format = 0);
105 bool saveDocument(const KUrl& url, const char *format = 0);
106 const KUrl& url() const;
107 void setUrl(const KUrl& url);
108 #endif
109 void setUrlUntitled();
110
111 void setupSignals();
112
113 bool isUnique(const QString &name);
114 bool isUnique(const QString &name, UMLPackage *package);
115
116 UMLAssociation* createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type);
117
118 void addAssociation(UMLAssociation *assoc);
119 void removeAssociation(UMLAssociation *assoc, bool doSetModified = true);
120 UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType,
121 const UMLObject *roleAObj,
122 const UMLObject *roleBObj,
123 bool *swap = 0);
124
125 QString createDiagramName(Uml::DiagramType::Enum type, bool askForName = true);
126 UMLView* createDiagram(UMLFolder *folder,
127 Uml::DiagramType::Enum type,
128 const QString& name,
129 Uml::ID::Type id = Uml::ID::None);
130
131 void removeDiagram(Uml::ID::Type id);
132 void removeDiagramCmd(Uml::ID::Type id);
133 void renameDiagram(Uml::ID::Type id);
134
135 void removeUMLObject(UMLObject* umlobject, bool deleteObject = false);
136 void renameUMLObject(UMLObject *o);
137 void renameChildUMLObject(UMLObject *o);
138
139 UMLObject* findObjectById(Uml::ID::Type id);
140
141 UMLObject* findUMLObject(const QString &name,
142 UMLObject::ObjectType type = UMLObject::ot_UMLObject,
143 UMLObject *currentObj = 0);
144
145 UMLObject* findUMLObjectRaw(Uml::ModelType::Enum,
146 const QString &name,
147 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
148
149 UMLObject* findUMLObjectRaw(UMLFolder *folder,
150 const QString &name,
151 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
152
153 UMLObject* findUMLObjectRecursive(Uml::ModelType::Enum,
154 const QString &name,
155 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
156
157 UMLObject* findUMLObjectRecursive(UMLFolder *folder,
158 const QString &name,
159 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
160
161 UMLClassifier * findUMLClassifier(const QString &name);
162
163 UMLView * findView(Uml::ID::Type id);
164 UMLView * findView(Uml::DiagramType::Enum type, const QString &name,
165 bool searchAllScopes = false);
166
167 void setName(const QString& name);
168 QString name() const;
169
170 void setResolution(qreal resolution);
171 qreal resolution() const;
172 qreal dpiScale() const;
173
174 Uml::ID::Type modelID() const;
175
176 static bool tagEq (const QString& tag, const QString& pattern);
177
178 virtual void saveToXMI1(QIODevice& file);
179
180 short encoding(QIODevice & file);
181
182 virtual bool loadFromXMI1(QIODevice& file, short encode = ENC_UNKNOWN);
183
184 bool validateXMI1Header(QDomNode& headerNode);
185
186 bool loadUMLObjectsFromXMI1(QDomElement & element);
187 void loadExtensionsFromXMI1(QDomNode & node);
188 bool loadDiagramsFromXMI1(QDomNode & node);
189
190 void signalDiagramRenamed(UMLView * view);
191 void signalUMLObjectCreated(UMLObject * o);
192
193 UMLClassifierList concepts(bool includeNested = true);
194 UMLClassifierList classesAndInterfaces(bool includeNested = true);
195 UMLEntityList entities(bool includeNested = true);
196 UMLFolder * datatypeFolder() const;
197 UMLClassifierList datatypes(bool includeInactive = false);
198 UMLAssociationList associations();
199 UMLPackageList packages(bool includeNested = true, Uml::ModelType::Enum model = Uml::ModelType::Logical);
200
201 void print(QPrinter * pPrinter, DiagramPrintPage * selectPage);
202
203 UMLViewList viewIterator();
204 UMLViewList views(Uml::DiagramType::Enum type = Uml::DiagramType::Undefined);
205
206 bool assignNewIDs(UMLObject* obj);
207
208 bool addUMLObject(UMLObject * object);
209 bool addUMLView(UMLView * pView);
210
211 UMLFolder *rootFolder(Uml::ModelType::Enum mt);
212 Uml::ModelType::Enum rootFolderType(UMLObject *obj);
213
214 UMLFolder *currentRoot();
215 void setCurrentRoot(Uml::ModelType::Enum rootType);
216
217 virtual IDChangeLog* changeLog();
218
219 void beginPaste();
220 void endPaste();
221
222 Uml::ID::Type assignNewID(Uml::ID::Type oldID);
223
224 void setDocumentation(const QString &doc);
225 QString documentation() const;
226
227 void settingsChanged(Settings::OptionState &optionState);
228
229 QString uniqueViewName(const Uml::DiagramType::Enum type);
230
231 bool loading() const;
232 void setLoading(bool state = true);
233
234 bool importing() const;
235 void setImporting(bool state = true);
236
237 bool closing() const;
238
239 void addDefaultDatatypes();
240 void createDatatype(const QString &name);
241 void removeDatatype(const QString &name);
242
243 UMLStereotype *createStereotype(const QString &name);
244 UMLStereotype *findStereotype(const QString &name);
245 UMLStereotype *findOrCreateStereotype(const QString &name);
246 UMLStereotype *findStereotypeById(Uml::ID::Type id);
247 void addStereotype(UMLStereotype *s);
248 void removeStereotype(UMLStereotype *s);
249 void addDefaultStereotypes();
250 const UMLStereotypeList& stereotypes() const;
251
252 void writeToStatusBar(const QString &text);
253
254 void resolveTypes();
255 bool loadDiagrams1();
256 void addDiagramToLoad(UMLFolder *folder, QDomNode node);
257
258 DiagramsModel *diagramsModel();
259 StereotypesModel *stereotypesModel();
260 ObjectsModel *objectsModel();
261
262 void setLoadingError(const QString &text);
263
264 private:
265 void initSaveTimer();
266 void createDatatypeFolder();
267
268 class Private;
269 Private *m_d;
270
274 UMLFolder *m_root[Uml::ModelType::N_MODELTYPES];
275
280 UMLFolder *m_datatypeRoot;
281
289 UMLStereotypeList m_stereoList;
290
291 QString m_Name;
292 Uml::ID::Type m_modelID;
293 int m_count;
294 bool m_modified;
295 #if QT_VERSION >= 0x050000
296 QUrl m_doc_url;
297 #else
298 KUrl m_doc_url;
299 #endif
303 IDChangeLog* m_pChangeLog;
304
308 bool m_bLoading;
309
313 bool m_importing;
314
318 QString m_Doc;
319
323 QTimer * m_pAutoSaveTimer;
324
328 Uml::ID::Type m_nViewID;
329
333 bool m_bTypesAreResolved;
334
340 UMLFolder * m_pCurrentRoot;
341
345 bool m_bClosing;
346
347 DiagramsModel *m_diagramsModel;
348 ObjectsModel *m_objectsModel;
349 StereotypesModel *m_stereotypesModel;
350
355 qreal m_resolution;
356
360 typedef QMap<UMLFolder*, QList<QDomNode>> DiagramsMap;
361 DiagramsMap m_diagramsToLoad;
362
363 public slots:
364 void slotRemoveUMLObject(UMLObject*o);
365 void slotAutoSave();
366 void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point);
367
368 signals:
369 void sigDiagramCreated(Uml::ID::Type id);
370 void sigDiagramRemoved(Uml::ID::Type id);
371 void sigDiagramRenamed(Uml::ID::Type t);
372 void sigDiagramChanged(Uml::DiagramType::Enum);
373
374 void sigObjectCreated(UMLObject *);
375 void sigObjectRemoved(UMLObject *);
376
380 void sigResetStatusbarProgress();
381
387 void sigSetStatusbarProgressSteps(int totalSteps);
388
394 void sigSetStatusbarProgress(int stepPosition);
395
399 void sigWriteToStatusBar(const QString &text);
400
405 void sigCurrentViewChanged();
406
407 };
408
409 #endif // UMLDOC_H
basictypes.h
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:38
DiagramsModel
Definition: diagramsmodel.h:26
IDChangeLog
Definition: idchangelog.h:27
ObjectsModel
Definition: objectsmodel.h:21
Settings::OptionState
Definition: optionstate.h:314
StereotypesModel
Definition: stereotypesmodel.h:25
UMLAssociation
Sets up association information.
Definition: association.h:33
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLDoc::Private
Definition: umldoc.cpp:98
UMLDoc
Definition: umldoc.h:75
UMLDoc::DiagramsMap
QMap< UMLFolder *, QList< QDomNode > > DiagramsMap
Definition: umldoc.h:360
UMLDoc::m_Name
QString m_Name
name of this model as stored in the <UML:Model> tag
Definition: umldoc.h:291
UMLDoc::sigResetStatusbarProgress
void sigResetStatusbarProgress()
UMLDoc::name
QString name() const
Definition: umldoc.cpp:2007
UMLDoc::closeDocument
void closeDocument()
Definition: umldoc.cpp:403
UMLDoc::m_doc_url
KUrl m_doc_url
Definition: umldoc.h:298
UMLDoc::m_root
UMLFolder * m_root[Uml::ModelType::N_MODELTYPES]
Definition: umldoc.h:274
UMLDoc::slotAutoSave
void slotAutoSave()
Definition: umldoc.cpp:3394
UMLDoc::sigDiagramRemoved
void sigDiagramRemoved(Uml::ID::Type id)
UMLDoc::sigSetStatusbarProgress
void sigSetStatusbarProgress(int stepPosition)
UMLDoc::url
const KUrl & url() const
Definition: umldoc.cpp:331
UMLDoc::m_bTypesAreResolved
bool m_bTypesAreResolved
Definition: umldoc.h:333
UMLDoc::addView
void addView(UMLView *view)
Definition: umldoc.cpp:225
UMLDoc::documentation
QString documentation() const
Definition: umldoc.cpp:3286
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition: umldoc.cpp:1463
UMLDoc::newDocument
bool newDocument()
Definition: umldoc.cpp:455
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition: umldoc.cpp:1712
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1134
UMLDoc::m_bLoading
bool m_bLoading
Definition: umldoc.h:308
UMLDoc::objectsModel
ObjectsModel * objectsModel()
Definition: umldoc.cpp:2599
UMLDoc::beginPaste
void beginPaste()
Definition: umldoc.cpp:3245
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition: umldoc.cpp:3526
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition: umldoc.cpp:2017
UMLDoc::findStereotypeById
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Definition: umldoc.cpp:1341
UMLDoc::m_datatypeRoot
UMLFolder * m_datatypeRoot
Definition: umldoc.h:280
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition: umldoc.cpp:264
UMLDoc::entities
UMLEntityList entities(bool includeNested=true)
Definition: umldoc.cpp:3028
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
UMLDoc::resolveTypes
void resolveTypes()
Definition: umldoc.cpp:2538
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition: umldoc.cpp:1166
UMLDoc::loadFromXMI1
virtual bool loadFromXMI1(QIODevice &file, short encode=ENC_UNKNOWN)
Definition: umldoc.cpp:2315
UMLDoc::init
void init()
Definition: umldoc.cpp:144
UMLDoc::sigDiagramChanged
void sigDiagramChanged(Uml::DiagramType::Enum)
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition: umldoc.cpp:1398
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition: umldoc.cpp:340
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1803
UMLDoc::viewIterator
UMLViewList viewIterator()
Definition: umldoc.cpp:3105
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1827
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition: umldoc.cpp:3296
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2038
UMLDoc::saveToXMI1
virtual void saveToXMI1(QIODevice &file)
Definition: umldoc.cpp:2064
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition: umldoc.cpp:3079
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name)
Definition: umldoc.cpp:1312
UMLDoc::changeLog
virtual IDChangeLog * changeLog()
Definition: umldoc.cpp:3236
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition: umldoc.cpp:2620
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition: umldoc.cpp:1374
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Definition: umldoc.cpp:3014
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition: umldoc.h:348
UMLDoc::setUrl
void setUrl(const KUrl &url)
Definition: umldoc.cpp:317
UMLDoc::loadUMLObjectsFromXMI1
bool loadUMLObjectsFromXMI1(QDomElement &element)
Definition: umldoc.cpp:2643
UMLDoc::m_count
int m_count
auxiliary counter for the progress bar
Definition: umldoc.h:293
UMLDoc::slotRemoveUMLObject
void slotRemoveUMLObject(UMLObject *o)
Definition: umldoc.cpp:1217
UMLDoc::UMLDoc
UMLDoc()
Definition: umldoc.cpp:109
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical)
Definition: umldoc.cpp:2976
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2052
UMLDoc::diagramsModel
DiagramsModel * diagramsModel()
Definition: umldoc.cpp:2594
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition: umldoc.h:328
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3220
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1883
UMLDoc::createDatatypeFolder
void createDatatypeFolder()
Definition: umldoc.cpp:181
UMLDoc::m_stereotypesModel
StereotypesModel * m_stereotypesModel
Definition: umldoc.h:349
UMLDoc::setLoading
void setLoading(bool state=true)
Definition: umldoc.cpp:1581
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition: umldoc.cpp:3311
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition: umldoc.cpp:3272
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1387
UMLDoc::m_d
Private * m_d
Definition: umldoc.h:268
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition: umldoc.cpp:1619
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1208
UMLDoc::isModified
bool isModified()
Definition: umldoc.cpp:3151
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1180
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
UMLDoc::removeAllObjects
void removeAllObjects()
Definition: umldoc.cpp:2962
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1985
UMLDoc::m_pChangeLog
IDChangeLog * m_pChangeLog
Definition: umldoc.h:303
UMLDoc::m_modelID
Uml::ID::Type m_modelID
xmi.id of this model in the <UML:Model>
Definition: umldoc.h:292
UMLDoc::assignNewIDs
bool assignNewIDs(UMLObject *obj)
Definition: umldoc.cpp:3164
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel()
Definition: umldoc.cpp:2609
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3582
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2808
UMLDoc::addDiagramToLoad
void addDiagramToLoad(UMLFolder *folder, QDomNode node)
Definition: umldoc.cpp:2586
UMLDoc::findUMLObjectRaw
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1099
UMLDoc::m_diagramsModel
DiagramsModel * m_diagramsModel
Definition: umldoc.h:347
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined)
Definition: umldoc.cpp:3120
UMLDoc::m_resolution
qreal m_resolution
Definition: umldoc.h:355
UMLDoc::encoding
short encoding(QIODevice &file)
Definition: umldoc.cpp:2213
UMLDoc::m_pAutoSaveTimer
QTimer * m_pAutoSaveTimer
Definition: umldoc.h:323
UMLDoc::m_diagramsToLoad
DiagramsMap m_diagramsToLoad
Definition: umldoc.h:361
UMLDoc::findView
UMLView * findView(Uml::ID::Type id)
Definition: umldoc.cpp:1005
UMLDoc::settingsChanged
void settingsChanged(Settings::OptionState &optionState)
Definition: umldoc.cpp:3363
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
UMLDoc::createDatatype
void createDatatype(const QString &name)
Definition: umldoc.cpp:3489
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1776
UMLDoc::isUnique
bool isUnique(const QString &name)
Definition: umldoc.cpp:1234
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1572
UMLDoc::activateAllViews
void activateAllViews()
Definition: umldoc.cpp:3347
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Definition: umldoc.cpp:1429
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition: umldoc.h:289
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3453
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1598
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1327
UMLDoc::saveModified
bool saveModified()
Definition: umldoc.cpp:355
UMLDoc::openDocument
bool openDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:498
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1648
UMLDoc::removeAllViews
void removeAllViews()
Definition: umldoc.cpp:2948
UMLDoc::resolution
qreal resolution() const
Definition: umldoc.cpp:2028
UMLDoc::importing
bool importing() const
Definition: umldoc.cpp:1590
UMLDoc::m_modified
bool m_modified
Definition: umldoc.h:294
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false)
Definition: umldoc.cpp:3042
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1481
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1680
UMLDoc::setupSignals
void setupSignals()
Definition: umldoc.cpp:993
UMLDoc::~UMLDoc
~UMLDoc()
Definition: umldoc.cpp:194
UMLDoc::m_bClosing
bool m_bClosing
Definition: umldoc.h:345
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true)
Definition: umldoc.cpp:3000
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3470
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition: umldoc.cpp:1870
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1364
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1299
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1607
UMLDoc::currentRoot
UMLFolder * currentRoot()
Definition: umldoc.cpp:1846
UMLDoc::m_Doc
QString m_Doc
Definition: umldoc.h:318
UMLDoc::m_importing
bool m_importing
Definition: umldoc.h:313
UMLDoc::removeDatatype
void removeDatatype(const QString &name)
Definition: umldoc.cpp:3508
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1354
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition: umldoc.cpp:2564
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2897
UMLDoc::saveDocument
bool saveDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:776
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
UMLDoc::associations
UMLAssociationList associations()
Definition: umldoc.cpp:3060
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type)
Definition: umldoc.cpp:1523
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3205
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition: umldoc.cpp:1740
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
UMLDoc::initSaveTimer
void initSaveTimer()
Definition: umldoc.cpp:3374
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:2988
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2818
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition: umldoc.h:340
UMLDoc::setName
void setName(const QString &name)
Definition: umldoc.cpp:1999
UMLDoc::endPaste
void endPaste()
Definition: umldoc.cpp:3257
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition: umldoc.cpp:2604
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:41
UMLView
Definition: umlview.h:35
b
bool b
Definition: cxx11-null-pointer-constant.h:6
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition: basictypes.h:47
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
optionstate.h
a
QString a
Definition: petalnode.cpp:18
umlassociationlist.h
UMLAssociationList
QList< UMLAssociation * > UMLAssociationList
Definition: umlassociationlist.h:18
umlclassifierlist.h
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
ENC_UNKNOWN
#define ENC_UNKNOWN
Definition: umldoc.h:40
umlentitylist.h
UMLEntityList
QList< UMLEntity * > UMLEntityList
Definition: umlentitylist.h:17
umlobject.h
umlobjectlist.h
umlpackagelist.h
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:17
umlstereotypelist.h
UMLStereotypeList
QList< UMLStereotype * > UMLStereotypeList
Definition: umlstereotypelist.h:17
umlviewlist.h
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:26