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 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 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) 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 UMLAssociationList associations() const;
194 UMLPackageList packages(bool includeNested = true, Uml::ModelType::Enum model = Uml::ModelType::Logical) const;
195
196 void print(QPrinter * pPrinter, DiagramPrintPage * selectPage);
197
198 UMLViewList viewIterator() const;
199 UMLViewList views(Uml::DiagramType::Enum type = Uml::DiagramType::Undefined) const;
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) const;
207 Uml::ModelType::Enum rootFolderType(UMLObject *obj) const;
208
209 UMLFolder *currentRoot() const;
210 void setCurrentRoot(Uml::ModelType::Enum rootType);
211
212 virtual IDChangeLog* changeLog() const;
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) const;
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) const;
240 UMLStereotype *findOrCreateStereotype(const QString &name);
241 UMLStereotype *findStereotypeById(Uml::ID::Type id) const;
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() const;
254 StereotypesModel *stereotypesModel() const;
255 ObjectsModel *objectsModel() const;
256
257 void setLoadingError(const QString &text);
258
259private:
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
358public 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::findView
UMLView * findView(Uml::ID::Type id) const
Definition: umldoc.cpp:1001
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()
UMLDoc::name
QString name() const
Definition: umldoc.cpp:2006
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:3365
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:1342
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:3257
UMLDoc::sigDiagramRenamed
void sigDiagramRenamed(Uml::ID::Type t)
UMLDoc::currentRoot
UMLFolder * currentRoot() const
Definition: umldoc.cpp:1847
UMLDoc::createUMLAssociation
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Definition: umldoc.cpp:1464
UMLDoc::newDocument
bool newDocument()
Definition: umldoc.cpp:451
UMLDoc::renameUMLObject
void renameUMLObject(UMLObject *o)
Definition: umldoc.cpp:1713
UMLDoc::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1135
UMLDoc::viewIterator
UMLViewList viewIterator() const
Definition: umldoc.cpp:3076
UMLDoc::m_bLoading
bool m_bLoading
Definition: umldoc.h:303
UMLDoc::beginPaste
void beginPaste()
Definition: umldoc.cpp:3216
UMLDoc::slotDiagramPopupMenu
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Definition: umldoc.cpp:3506
UMLDoc::setResolution
void setResolution(qreal resolution)
Definition: umldoc.cpp:2016
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:1068
UMLDoc::removeView
void removeView(UMLView *view, bool enforceOneView=true)
Definition: umldoc.cpp:260
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1039
UMLDoc::resolveTypes
void resolveTypes()
Definition: umldoc.cpp:2504
UMLDoc::findUMLClassifier
UMLClassifier * findUMLClassifier(const QString &name)
Definition: umldoc.cpp:1167
UMLDoc::loadFromXMI1
virtual bool loadFromXMI1(QIODevice &file, short encode=ENC_UNKNOWN)
Definition: umldoc.cpp:2281
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:1399
UMLDoc::setUrlUntitled
void setUrlUntitled()
Definition: umldoc.cpp:336
UMLDoc::removeDiagram
void removeDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1804
UMLDoc::removeDiagramCmd
void removeDiagramCmd(Uml::ID::Type id)
Definition: umldoc.cpp:1828
UMLDoc::setDocumentation
void setDocumentation(const QString &doc)
Definition: umldoc.cpp:3267
UMLDoc::sigObjectCreated
void sigObjectCreated(UMLObject *)
UMLDoc::dpiScale
qreal dpiScale() const
Definition: umldoc.cpp:2041
UMLDoc::saveToXMI1
virtual void saveToXMI1(QIODevice &file)
Definition: umldoc.cpp:2067
UMLDoc::print
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Definition: umldoc.cpp:3050
UMLDoc::changeLog
virtual IDChangeLog * changeLog() const
Definition: umldoc.cpp:3207
UMLDoc::validateXMI1Header
bool validateXMI1Header(QDomNode &headerNode)
Definition: umldoc.cpp:2586
UMLDoc::isModified
bool isModified() const
Definition: umldoc.cpp:3122
UMLDoc::addDefaultStereotypes
void addDefaultStereotypes()
Definition: umldoc.cpp:1375
UMLDoc::m_objectsModel
ObjectsModel * m_objectsModel
Definition: umldoc.h:343
UMLDoc::setUrl
void setUrl(const KUrl &url)
Definition: umldoc.cpp:313
UMLDoc::datatypes
UMLClassifierList datatypes(bool includeInactive=false) const
Definition: umldoc.cpp:3013
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj) const
Definition: umldoc.cpp:3191
UMLDoc::loadUMLObjectsFromXMI1
bool loadUMLObjectsFromXMI1(QDomElement &element)
Definition: umldoc.cpp:2609
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:1218
UMLDoc::UMLDoc
UMLDoc()
Definition: umldoc.cpp:105
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2055
UMLDoc::m_nViewID
Uml::ID::Type m_nViewID
Definition: umldoc.h:323
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1884
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:1582
UMLDoc::objectsModel
ObjectsModel * objectsModel() const
Definition: umldoc.cpp:2565
UMLDoc::addUMLView
bool addUMLView(UMLView *pView)
Definition: umldoc.cpp:3282
UMLDoc::assignNewID
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Definition: umldoc.cpp:3243
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true) const
Definition: umldoc.cpp:2985
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1388
UMLDoc::m_d
Private * m_d
Definition: umldoc.h:263
UMLDoc::createDiagramName
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Definition: umldoc.cpp:1620
UMLDoc::packages
UMLPackageList packages(bool includeNested=true, Uml::ModelType::Enum model=Uml::ModelType::Logical) const
Definition: umldoc.cpp:2947
UMLDoc::sigDiagramCreated
void sigDiagramCreated(Uml::ID::Type id)
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name) const
Definition: umldoc.cpp:1313
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1209
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1181
UMLDoc::sigObjectRemoved
void sigObjectRemoved(UMLObject *)
UMLDoc::removeAllObjects
void removeAllObjects()
Definition: umldoc.cpp:2933
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1984
UMLDoc::entities
UMLEntityList entities(bool includeNested=true) const
Definition: umldoc.cpp:2999
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:3135
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3562
UMLDoc::setMainViewID
void setMainViewID(Uml::ID::Type viewID)
Definition: umldoc.cpp:2774
UMLDoc::addDiagramToLoad
void addDiagramToLoad(UMLFolder *folder, QDomNode node)
Definition: umldoc.cpp:2552
UMLDoc::findUMLObjectRaw
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Definition: umldoc.cpp:1100
UMLDoc::m_diagramsModel
DiagramsModel * m_diagramsModel
Definition: umldoc.h:342
UMLDoc::diagramsModel
DiagramsModel * diagramsModel() const
Definition: umldoc.cpp:2560
UMLDoc::m_resolution
qreal m_resolution
Definition: umldoc.h:350
UMLDoc::encoding
short encoding(QIODevice &file)
Definition: umldoc.cpp:2179
UMLDoc::m_pAutoSaveTimer
QTimer * m_pAutoSaveTimer
Definition: umldoc.h:318
UMLDoc::m_diagramsToLoad
DiagramsMap m_diagramsToLoad
Definition: umldoc.h:356
UMLDoc::settingsChanged
void settingsChanged(Settings::OptionState &optionState)
Definition: umldoc.cpp:3334
UMLDoc::sigWriteToStatusBar
void sigWriteToStatusBar(const QString &text)
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt) const
Definition: umldoc.cpp:3176
UMLDoc::uniqueViewName
QString uniqueViewName(const Uml::DiagramType::Enum type) const
Definition: umldoc.cpp:1524
UMLDoc::createDatatype
void createDatatype(const QString &name)
Definition: umldoc.cpp:3463
UMLDoc::changeCurrentView
void changeCurrentView(Uml::ID::Type id)
Definition: umldoc.cpp:1777
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1573
UMLDoc::activateAllViews
void activateAllViews()
Definition: umldoc.cpp:3318
UMLDoc::concepts
UMLClassifierList concepts(bool includeNested=true) const
Definition: umldoc.cpp:2971
UMLDoc::m_stereoList
UMLStereotypeList m_stereoList
Definition: umldoc.h:284
UMLDoc::signalDiagramRenamed
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3424
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1599
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1328
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:1649
UMLDoc::removeAllViews
void removeAllViews()
Definition: umldoc.cpp:2919
UMLDoc::resolution
qreal resolution() const
Definition: umldoc.cpp:2031
UMLDoc::importing
bool importing() const
Definition: umldoc.cpp:1591
UMLDoc::m_modified
bool m_modified
Definition: umldoc.h:289
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1482
UMLDoc::renameDiagram
void renameDiagram(Uml::ID::Type id)
Definition: umldoc.cpp:1681
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::addDefaultDatatypes
void addDefaultDatatypes()
Definition: umldoc.cpp:3441
UMLDoc::setCurrentRoot
void setCurrentRoot(Uml::ModelType::Enum rootType)
Definition: umldoc.cpp:1871
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0) const
Definition: umldoc.cpp:1430
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1365
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1300
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1608
UMLDoc::views
UMLViewList views(Uml::DiagramType::Enum type=Uml::DiagramType::Undefined) const
Definition: umldoc.cpp:3091
UMLDoc::isUnique
bool isUnique(const QString &name) const
Definition: umldoc.cpp:1235
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:3488
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1355
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3107
UMLDoc::loadDiagrams1
bool loadDiagrams1()
Definition: umldoc.cpp:2530
UMLDoc::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2863
UMLDoc::saveDocument
bool saveDocument(const KUrl &url, const char *format=0)
Definition: umldoc.cpp:772
UMLDoc::sigCurrentViewChanged
void sigCurrentViewChanged()
UMLDoc::stereotypesModel
StereotypesModel * stereotypesModel() const
Definition: umldoc.cpp:2575
UMLDoc::renameChildUMLObject
void renameChildUMLObject(UMLObject *o)
Definition: umldoc.cpp:1741
UMLDoc::sigSetStatusbarProgressSteps
void sigSetStatusbarProgressSteps(int totalSteps)
UMLDoc::initSaveTimer
void initSaveTimer()
Definition: umldoc.cpp:3345
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:2959
UMLDoc::loadExtensionsFromXMI1
void loadExtensionsFromXMI1(QDomNode &node)
Definition: umldoc.cpp:2784
UMLDoc::m_pCurrentRoot
UMLFolder * m_pCurrentRoot
Definition: umldoc.h:335
UMLDoc::setName
void setName(const QString &name)
Definition: umldoc.cpp:1998
UMLDoc::endPaste
void endPaste()
Definition: umldoc.cpp:3228
UMLDoc::setLoadingError
void setLoadingError(const QString &text)
Definition: umldoc.cpp:2570
UMLDoc::associations
UMLAssociationList associations() const
Definition: umldoc.cpp:3031
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