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 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 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
41 class QDomNode;
42 class QDomElement;
43 class QPrinter;
44
45 class IDChangeLog;
46 class DiagramsModel;
47 class ObjectsModel;
48 class StereotypesModel;
49 class UMLPackage;
50 class UMLFolder;
51 class DiagramPrintPage;
52
69 class UMLDoc : public QObject
70{
71 Q_OBJECT
72 public:
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();
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);
109 bool isUnique(const QString &name, UMLPackage *package);
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);
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);
159 UMLView * findView(Uml::DiagramType::Enum type, const QString &name,
160 bool searchAllScopes = false);
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 saveToXMI1(QIODevice& file);
174
175 short encoding(QIODevice & file);
176
177 virtual bool loadFromXMI1(QIODevice& file, short encode = ENC_UNKNOWN);
178
179 bool validateXMI1Header(QDomNode& headerNode);
180
181 bool loadUMLObjectsFromXMI1(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);
189 UMLClassifierList classesAndInterfaces(bool includeNested = true);
190 UMLEntityList entities(bool includeNested = true);
191 UMLFolder * datatypeFolder() const;
192 UMLClassifierList datatypes(bool includeInactive = false);
193 UMLAssociationList associations();
194 UMLPackageList packages(bool includeNested = true, Uml::ModelType::Enum model = Uml::ModelType::Logical);
195
196 void print(QPrinter * pPrinter, DiagramPrintPage * selectPage);
197
198 UMLViewList viewIterator();
199 UMLViewList views(Uml::DiagramType::Enum type = Uml::DiagramType::Undefined);
200
201 bool assignNewIDs(UMLObject* obj);
202
203 bool addUMLObject(UMLObject * object);
204 bool addUMLView(UMLView * pView);
205
206 UMLFolder *rootFolder(Uml::ModelType::Enum mt);
207 Uml::ModelType::Enum rootFolderType(UMLObject *obj);
208
209 UMLFolder *currentRoot();
210 void setCurrentRoot(Uml::ModelType::Enum rootType);
211
212 virtual IDChangeLog* changeLog();
213
214 void beginPaste();
215 void endPaste();
216
217 Uml::ID::Type assignNewID(Uml::ID::Type oldID);
218
219 void setDocumentation(const QString &doc);
220 QString documentation() const;
221
222 void settingsChanged(Settings::OptionState &optionState);
223
224 QString uniqueViewName(const Uml::DiagramType::Enum type);
225
226 bool loading() const;
227 void setLoading(bool state = true);
228
229 bool importing() const;
230 void setImporting(bool state = true);
231
232 bool closing() const;
233
234 void addDefaultDatatypes();
235 void createDatatype(const QString &name);
236 void removeDatatype(const QString &name);
237
238 UMLStereotype *createStereotype(const QString &name);
239 UMLStereotype *findStereotype(const QString &name);
240 UMLStereotype *findOrCreateStereotype(const QString &name);
241 UMLStereotype *findStereotypeById(Uml::ID::Type id);
242 void addStereotype(UMLStereotype *s);
243 void removeStereotype(UMLStereotype *s);
244 void addDefaultStereotypes();
245 const UMLStereotypeList& stereotypes() const;
246
247 void writeToStatusBar(const QString &text);
248
249 void resolveTypes();
250 bool loadDiagrams1();
251 void addDiagramToLoad(UMLFolder *folder, QDomNode node);
252
253 DiagramsModel *diagramsModel();
254 StereotypesModel *stereotypesModel();
255 ObjectsModel *objectsModel();
256
257 void setLoadingError(const QString &text);
258
259 private:
260 void initSaveTimer();
261 void createDatatypeFolder();
262
263 class Private;
264 Private *m_d;
265
269 UMLFolder *m_root[Uml::ModelType::N_MODELTYPES];
270
275 UMLFolder *m_datatypeRoot;
276
284 UMLStereotypeList m_stereoList;
285
286 QString m_Name;
287 Uml::ID::Type m_modelID;
288 int m_count;
289 bool m_modified;
290#if QT_VERSION >= 0x050000
291 QUrl m_doc_url;
292#else
293 KUrl m_doc_url;
294#endif
298 IDChangeLog* m_pChangeLog;
299
303 bool m_bLoading;
304
308 bool m_importing;
309
313 QString m_Doc;
314
318 QTimer * m_pAutoSaveTimer;
319
323 Uml::ID::Type m_nViewID;
324
328 bool m_bTypesAreResolved;
329
335 UMLFolder * m_pCurrentRoot;
336
340 bool m_bClosing;
341
342 DiagramsModel *m_diagramsModel;
343 ObjectsModel *m_objectsModel;
344 StereotypesModel *m_stereotypesModel;
345
350 qreal m_resolution;
351
355 typedef QMap<UMLFolder*, QList<QDomNode>> DiagramsMap;
356 DiagramsMap m_diagramsToLoad;
357
358 public slots:
359 void slotRemoveUMLObject(UMLObject*o);
360 void slotAutoSave();
361 void slotDiagramPopupMenu(QWidget* umlview, const QPoint& point);
362
363signals:
364 void sigDiagramCreated(Uml::ID::Type id);
365 void sigDiagramRemoved(Uml::ID::Type id);
366 void sigDiagramRenamed(Uml::ID::Type t);
367 void sigDiagramChanged(Uml::DiagramType::Enum);
368
369 void sigObjectCreated(UMLObject *);
370 void sigObjectRemoved(UMLObject *);
371
375 void sigResetStatusbarProgress();
376
382 void sigSetStatusbarProgressSteps(int totalSteps);
383
389 void sigSetStatusbarProgress(int stepPosition);
390
394 void sigWriteToStatusBar(const QString &text);
395
400 void sigCurrentViewChanged();
401
402};
403
404#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
UMLDoc::Private
Definition: umldoc.cpp:94
UMLDoc
Definition: umldoc.h:70
UMLDoc::DiagramsMap
QMap< UMLFolder *, QList< QDomNode > > DiagramsMap
Definition: umldoc.h:355
UMLDoc::m_Name
QString m_Name
name of this model as stored in the <UML:Model> tag
Definition: umldoc.h:286
UMLDoc::sigResetStatusbarProgress
void sigResetStatusbarProgress()
Definition: moc_umldoc.cpp:343
UMLDoc::name
QString name() const
Definition: umldoc.cpp:2001
UMLDoc::closeDocument
void closeDocument()
Definition: umldoc.cpp:399
UMLDoc::m_doc_url
KUrl m_doc_url
Definition: umldoc.h:293
UMLDoc::m_root
UMLFolder * m_root[Uml::ModelType::N_MODELTYPES]
Definition: umldoc.h:269
UMLDoc::slotAutoSave
void slotAutoSave()
Definition: umldoc.cpp:3351
UMLDoc::sigDiagramRemoved
void sigDiagramRemoved(Uml::ID::Type id)
Definition: moc_umldoc.cpp:308
UMLDoc::sigSetStatusbarProgress
void sigSetStatusbarProgress(int stepPosition)
Definition: moc_umldoc.cpp:356
UMLDoc::url
const KUrl & url() const
Definition: umldoc.cpp:327
UMLDoc::m_bTypesAreResolved
bool m_bTypesAreResolved
Definition: umldoc.h:328
UMLDoc::addView
void addView(UMLView *view)
Definition: umldoc.cpp:221
UMLDoc::documentation
QString documentation() const
Definition: umldoc.cpp:3243
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
Definition: moc_umldoc.cpp:315
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition: umldoc.cpp:1459
UMLDoc::newDocument
bool newDocument()
Definition: umldoc.cpp:451
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition: umldoc.cpp:1708
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1130
UMLDoc::m_bLoading
bool m_bLoading
Definition: umldoc.h:303
UMLDoc::objectsModel
ObjectsModel * objectsModel()
Definition: umldoc.cpp:2556
UMLDoc::beginPaste
void beginPaste()
Definition: umldoc.cpp:3202
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition: umldoc.cpp:3492
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition: umldoc.cpp:2011
UMLDoc::findStereotypeById
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Definition: umldoc.cpp:1337
UMLDoc::m_datatypeRoot
UMLFolder * m_datatypeRoot
Definition: umldoc.h:275
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1063
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition: umldoc.cpp:260
UMLDoc::entities
UMLEntityList entities(bool includeNested=true)
Definition: umldoc.cpp:2985
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1034
UMLDoc::resolveTypes
void resolveTypes()
Definition: umldoc.cpp:2495
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition: umldoc.cpp:1162
UMLDoc::loadFromXMI1
virtual bool loadFromXMI1(QIODevice &file, short encode=ENC_UNKNOWN)
Definition: umldoc.cpp:2272
UMLDoc::init
void init()
Definition: umldoc.cpp:140
UMLDoc::sigDiagramChanged
void sigDiagramChanged(Uml::DiagramType::Enum)
Definition: moc_umldoc.cpp:322
UMLDoc::removeAssociation
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Definition: umldoc.cpp:1394
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition: umldoc.cpp:336
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1799
UMLDoc::viewIterator
UMLViewList viewIterator()
Definition: umldoc.cpp:3062
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1823
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition: umldoc.cpp:3253
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
Definition: moc_umldoc.cpp:329
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2032
UMLDoc::saveToXMI1
virtual void saveToXMI1(QIODevice &file)
Definition: umldoc.cpp:2058
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition: umldoc.cpp:3036
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name)
Definition: umldoc.cpp:1308
UMLDoc::changeLog
virtual IDChangeLog * changeLog()
Definition: umldoc.cpp:3193
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition: umldoc.cpp:2577
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition: umldoc.cpp:1370
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Definition: umldoc.cpp:2971
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition: umldoc.h:343
UMLDoc::setUrl
void setUrl(const KUrl &url)
Definition: umldoc.cpp:313
UMLDoc::loadUMLObjectsFromXMI1
bool loadUMLObjectsFromXMI1(QDomElement &element)
Definition: umldoc.cpp:2600
UMLDoc::m_count
int m_count
auxiliary counter for the progress bar
Definition: umldoc.h:288
UMLDoc::slotRemoveUMLObject
void slotRemoveUMLObject(UMLObject *o)
Definition: umldoc.cpp:1213
UMLDoc::UMLDoc
UMLDoc()
Definition: umldoc.cpp:105
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical)
Definition: umldoc.cpp:2933
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2046
UMLDoc::diagramsModel
DiagramsModel * diagramsModel()
Definition: umldoc.cpp:2551
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition: umldoc.h:323
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3177
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1879
UMLDoc::createDatatypeFolder
void createDatatypeFolder()
Definition: umldoc.cpp:177
UMLDoc::m_stereotypesModel
StereotypesModel * m_stereotypesModel
Definition: umldoc.h:344
UMLDoc::setLoading
void setLoading(bool state=true)
Definition: umldoc.cpp:1577
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition: umldoc.cpp:3268
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition: umldoc.cpp:3229
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1383
UMLDoc::m_d
Private * m_d
Definition: umldoc.h:263
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition: umldoc.cpp:1615
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
Definition: moc_umldoc.cpp:301
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1204
UMLDoc::isModified
bool isModified()
Definition: umldoc.cpp:3108
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1176
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
Definition: moc_umldoc.cpp:336
UMLDoc::removeAllObjects
void removeAllObjects()
Definition: umldoc.cpp:2919
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1979
UMLDoc::m_pChangeLog
IDChangeLog * m_pChangeLog
Definition: umldoc.h:298
UMLDoc::m_modelID
Uml::ID::Type m_modelID
xmi.id of this model in the <UML:Model>
Definition: umldoc.h:287
UMLDoc::assignNewIDs
bool assignNewIDs(UMLObject *obj)
Definition: umldoc.cpp:3121
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel()
Definition: umldoc.cpp:2566
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3548
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2765
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:342
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined)
Definition: umldoc.cpp:3077
UMLDoc::m_resolution
qreal m_resolution
Definition: umldoc.h:350
UMLDoc::encoding
short encoding(QIODevice &file)
Definition: umldoc.cpp:2170
UMLDoc::m_pAutoSaveTimer
QTimer * m_pAutoSaveTimer
Definition: umldoc.h:318
UMLDoc::m_diagramsToLoad
DiagramsMap m_diagramsToLoad
Definition: umldoc.h:356
UMLDoc::findView
UMLView * findView(Uml::ID::Type id)
Definition: umldoc.cpp:1001
UMLDoc::settingsChanged
void settingsChanged(Settings::OptionState &optionState)
Definition: umldoc.cpp:3320
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
Definition: moc_umldoc.cpp:363
UMLDoc::createDatatype
void createDatatype(const QString &name)
Definition: umldoc.cpp:3449
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1772
UMLDoc::isUnique
bool isUnique(const QString &name)
Definition: umldoc.cpp:1230
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1568
UMLDoc::activateAllViews
void activateAllViews()
Definition: umldoc.cpp:3304
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Definition: umldoc.cpp:1425
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition: umldoc.h:284
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3410
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1594
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1323
UMLDoc::saveModified
bool saveModified()
Definition: umldoc.cpp:351
UMLDoc::openDocument
bool openDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:494
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1644
UMLDoc::removeAllViews
void removeAllViews()
Definition: umldoc.cpp:2905
UMLDoc::resolution
qreal resolution() const
Definition: umldoc.cpp:2022
UMLDoc::importing
bool importing() const
Definition: umldoc.cpp:1586
UMLDoc::m_modified
bool m_modified
Definition: umldoc.h:289
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false)
Definition: umldoc.cpp:2999
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1477
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1676
UMLDoc::setupSignals
void setupSignals()
Definition: umldoc.cpp:989
UMLDoc::~UMLDoc
~UMLDoc()
Definition: umldoc.cpp:190
UMLDoc::m_bClosing
bool m_bClosing
Definition: umldoc.h:340
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true)
Definition: umldoc.cpp:2957
UMLDoc::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3427
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition: umldoc.cpp:1866
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1360
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1295
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1603
UMLDoc::currentRoot
UMLFolder * currentRoot()
Definition: umldoc.cpp:1842
UMLDoc::m_Doc
QString m_Doc
Definition: umldoc.h:313
UMLDoc::m_importing
bool m_importing
Definition: umldoc.h:308
UMLDoc::removeDatatype
void removeDatatype(const QString &name)
Definition: umldoc.cpp:3474
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1350
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3093
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition: umldoc.cpp:2521
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2854
UMLDoc::saveDocument
bool saveDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:772
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
Definition: moc_umldoc.cpp:370
UMLDoc::associations
UMLAssociationList associations()
Definition: umldoc.cpp:3017
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type)
Definition: umldoc.cpp:1519
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3162
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition: umldoc.cpp:1736
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
Definition: moc_umldoc.cpp:349
UMLDoc::initSaveTimer
void initSaveTimer()
Definition: umldoc.cpp:3331
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:2945
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2775
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition: umldoc.h:335
UMLDoc::setName
void setName(const QString &name)
Definition: umldoc.cpp:1993
UMLDoc::endPaste
void endPaste()
Definition: umldoc.cpp:3214
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition: umldoc.cpp:2561
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