umbrello/umbrello
umldoc.h
Go to the documentation of this file.
100 UMLAssociation* createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type);
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Return the corresponding Model_Type if the given object is one of the root folders.
Definition: umldoc.cpp:2691
void addDefaultStereotypes()
Add a stereotype if it doesn't already exist.
Definition: umldoc.cpp:3009
bool addUMLObject(UMLObject *object)
Adds a UMLObject thats already created but doesn't change any ids or signal.
Definition: umldoc.cpp:901
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
void addDefaultDatatypes()
Calls the active code generator to create its default datatypes.
Definition: umldoc.cpp:2920
void createDatatype(const QString &name)
Add a datatype if it doesn't already exist.
Definition: umldoc.cpp:2939
bool addUMLView(UMLView *pView)
Adds an already created UMLView to the document, it gets assigned a new ID, if its name is already in...
Definition: umldoc.cpp:2782
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Finds an association.
Definition: umldoc.cpp:1102
void sigObjectRemoved(UMLObject *)
UMLAssociation * createUMLAssociation(UMLObject *a, UMLObject *b, Uml::AssociationType::Enum type)
Creates AND adds an association between two UMLObjects.
Definition: umldoc.cpp:1136
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
virtual void saveToXMI(QIODevice &file)
This method is called for saving the given model as a XMI file.
Definition: umldoc.cpp:1662
QString uniqueViewName(const Uml::DiagramType::Enum type)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: umldoc.cpp:1195
UMLClassifierList classes(bool includeNested=true)
Returns a list of the classes in this UMLDoc.
Definition: umldoc.cpp:2477
bool saveDocument(const KUrl &url, const char *format=0)
Saves the document using the given filename and format.
Definition: umldoc.cpp:580
void sigSetStatusbarProgressSteps(int totalSteps)
Set the total range of the progressbar.
const UMLStereotypeList & stereotypes() const
Returns a list of the stereotypes in this UMLDoc.
Definition: umldoc.cpp:3022
UMLClassifierList interfaces(bool includeNested=true)
Returns a list of the interfaces in this UMLDoc.
Definition: umldoc.cpp:2519
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Find a UMLStereotype by its unique ID.
Definition: umldoc.cpp:787
void sigDiagramCreated(Uml::ID::Type id)
void signalDiagramRenamed(UMLView *view)
Signal a view/diagram has been renamed.
Definition: umldoc.cpp:2903
Definition: optionstate.h:141
This class contains the non-graphic representation of an association.
Definition: association.h:32
void removeStereotype(UMLStereotype *s)
Remove a UMLStereotype from the application.
Definition: umldoc.cpp:935
QString documentation() const
Returns the documentation for the project.
Definition: umldoc.cpp:2757
void slotAutoSave()
Called after a specified time to autosave the document.
Definition: umldoc.cpp:2859
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:733
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Creates the name of the given diagram type.
Definition: umldoc.cpp:1271
void sigSetStatusbarProgress(int stepPosition)
Set the progress position of the progressbar.
bool assignNewIDs(UMLObject *obj)
Assigns an already created UMLObject a new ID.
Definition: umldoc.cpp:2635
void activateAllViews()
Activate all the diagrams/views after loading so all their widgets keep their IDs.
Definition: umldoc.cpp:2812
short encoding(QIODevice &file)
Checks the given XMI file if it was saved with correct Unicode encoding set or not.
Definition: umldoc.cpp:1807
bool isUnique(const QString &name)
Returns true if the given name is unique within its scope.
Definition: umldoc.cpp:972
void changeCurrentView(Uml::ID::Type id)
Changes the current view (diagram) to the view with the given ID.
Definition: umldoc.cpp:1438
void setCurrentRoot(Uml::ModelType::Enum rootType)
Set the current root folder.
Definition: umldoc.cpp:1515
UMLClassifierList concepts(bool includeNested=true)
Returns a list of the concepts in this UMLDoc.
Definition: umldoc.cpp:2463
void sigObjectCreated(UMLObject *)
void removeAssociation(UMLAssociation *assoc, bool doSetModified=true)
Removes an association.
Definition: umldoc.cpp:1071
void slotDiagramPopupMenu(QWidget *umlview, const QPoint &point)
Make a popup menu for the tabs signalled from tabWidget's contextMenu().
Definition: umldoc.cpp:2953
void removeUMLObject(UMLObject *umlobject)
Removes an UMLObject from the current file.
Definition: umldoc.cpp:1527
void addView(UMLView *view)
Adds a view to the document which represents the document contents.
Definition: umldoc.cpp:159
void removeAllViews()
Call to remove all the views (diagrams) in the current file.
Definition: umldoc.cpp:2413
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
void loadExtensionsFromXMI(QDomNode &node)
Loads umbrello specific extensions from XMI to the UMLDoc.
Definition: umldoc.cpp:2298
void sigDiagramRenamed(Uml::ID::Type t)
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Assigns a New ID to an Object, and also logs the assignment to its internal ChangeLog.
Definition: umldoc.cpp:2743
bool validateXMIHeader(QDomNode &headerNode)
Ensures the XMI file is a valid UML file.
Definition: umldoc.cpp:2107
void renameChildUMLObject(UMLObject *o)
Used to rename an operation or attribute of a concept.
Definition: umldoc.cpp:1400
void setupSignals()
Sets up the signals needed by the program for it to work.
Definition: umldoc.cpp:721
void settingsChanged(Settings::OptionState optionState)
Sets the default settings to the given settings.
Definition: umldoc.cpp:2828
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Returns a list of the classes and interfaces in this UMLDoc.
Definition: umldoc.cpp:2491
UMLAssociationList associations()
Returns a list of the associations in this UMLDoc.
Definition: umldoc.cpp:2548
UMLClassifierList datatypes()
Returns a list of the datatypes in this UMLDoc.
Definition: umldoc.cpp:2531
UMLEntityList entities(bool includeNested=true)
Returns a list of the entities in this UMLDoc.
Definition: umldoc.cpp:2505
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
void print(QPrinter *pPrinter, DiagramPrintPage *selectPage)
Controls the printing of the program.
Definition: umldoc.cpp:2566
UMLStereotype * findOrCreateStereotype(const QString &name)
Finds or creates a stereotype for the parent object.
Definition: umldoc.cpp:1054
Definition: basictypes.h:44
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name)
Creates a diagram of the given type.
Definition: umldoc.cpp:1310
bool openDocument(const KUrl &url, const char *format=0)
Loads the document by filename and format and emits the updateViews() signal.
Definition: umldoc.cpp:402
void setLoading(bool state=true)
Sets loading boolean flag to the value given.
Definition: umldoc.cpp:1250
void removeDiagram(Uml::ID::Type id)
Deletes a diagram from the current file.
Definition: umldoc.cpp:1463
Definition: umlobject.h:49
void sigDiagramRemoved(Uml::ID::Type id)
void setDocumentation(const QString &doc)
Sets the documentation for the project.
Definition: umldoc.cpp:2767
bool loadDiagramsFromXMI(QDomNode &node)
Loads all diagrams from XMI into the current UMLDoc.
Definition: umldoc.cpp:2362
void sigWriteToStatusBar(const QString &text)
Write text to the status bar.
void removeView(UMLView *view, bool enforceOneView=true)
Removes a view from the list of currently connected views.
Definition: umldoc.cpp:197
Uml::ID::Type modelID() const
Return the m_modelID (currently this a fixed value: Umbrello supports only a single document...
Definition: umldoc.cpp:1650
UMLPackageList packages(bool includeNested=true)
Returns a list of the packages in this UMLDoc,.
Definition: umldoc.cpp:2439
UMLClassifier * findUMLClassifier(const QString &name)
Used to find a reference to a UMLObject given its non-numeric ID string.
Definition: umldoc.cpp:887
This is a page on the print dialog to select what diagram(s) you wish to print.
Definition: diagramprintpage.h:36
UMLStereotype * findStereotype(const QString &name)
Finds a UMLStereotype by its name.
Definition: umldoc.cpp:1039
bool loadUMLObjectsFromXMI(QDomElement &element)
Loads all UML objects from XMI into the current UMLDoc.
Definition: umldoc.cpp:2130
bool saveModified()
"save modified" - Asks the user for saving if the document is modified.
Definition: umldoc.cpp:268
void addStereotype(UMLStereotype *s)
Add a UMLStereotype to the application.
Definition: umldoc.cpp:924
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Used to find a UMLObject by its type and raw name.
Definition: umldoc.cpp:841
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2707
void sigDiagramChanged(Uml::DiagramType::Enum)
void beginPaste()
Opens a Paste session, deletes the old ChangeLog and creates an empty one.
Definition: umldoc.cpp:2716
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
virtual bool loadFromXMI(QIODevice &file, short encode=ENC_UNKNOWN)
Load a given XMI model from a file.
Definition: umldoc.cpp:1884
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2676
void signalUMLObjectCreated(UMLObject *o)
Signal that a UMLObject has been created.
Definition: umldoc.cpp:1619
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.