umbrello/umbrello
folder.cpp
Go to the documentation of this file.
181 UMLView *UMLFolder::findView(Uml::DiagramType::Enum type, const QString &name, bool searchAllScopes)
230 v->umlScene()->removeAllAssociations(); // note : It may not be apparent, but when we remove all associations
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
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobject.cpp:287
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
bool loadFolderFile(const QString &path)
Folders in the listview can be marked such that their contents are saved to a separate file...
Definition: folder.cpp:404
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
QDebug operator<<(QDebug out, const UMLFolder &item)
Overloading operator for debugging output.
Definition: folder.cpp:533
void saveContents(QDomDocument &qDoc, QDomElement &qElement)
Auxiliary to saveToXMI(): Save the contained objects and diagrams.
Definition: folder.cpp:263
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates a UML:Model or UML:Package element: UML:Model is created for the predefined fixed folders...
Definition: folder.cpp:316
void setViewOptions(const Settings::OptionState &optionState)
Set the options for the views in this folder.
Definition: folder.cpp:208
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "diagram" tag.
Definition: umlscene.cpp:3813
void setFolderFile(const QString &fileName)
Set the folder file name for a separate submodel.
Definition: folder.cpp:245
void setLocalName(const QString &localName)
Set the localized name of this folder.
Definition: folder.cpp:69
bool loadDiagramsFromXMI(QDomNode &diagrams)
Auxiliary to load(): Load the diagrams from the "diagrams" in the ...
Definition: folder.cpp:369
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:408
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
Definition: optionstate.h:141
void treeViewAddViews(const UMLViewList &viewList)
Add the given list of views to the tree view.
Definition: model_utils.cpp:326
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
UMLView * findView(Uml::ID::Type id)
Seek a view of the given ID in this folder.
Definition: folder.cpp:152
Definition: umlobject.h:69
void save(QDomDocument &qDoc, QDomElement &qElement)
Auxiliary to saveToXMI(): Creates a element when saving a predefined modelview, or a element when saving a user created folder.
Definition: folder.cpp:298
UMLFolder(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up a Folder.
Definition: folder.cpp:37
void addView(UMLView *view)
Adds a view to the document which represents the document contents.
Definition: umldoc.cpp:159
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is a one of the common XMI attributes, such as: "name" | "visibility" | ...
Definition: model_utils.cpp:503
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
void activateAfterLoad(bool bUseLog=false)
Activate the view after a load a new file.
Definition: umlscene.cpp:2210
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "diagram" tag and fills it with the contents of the diagram.
Definition: umlscene.cpp:3744
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
Definition: basictypes.h:44
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)=0
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Make a new UMLObject according to the given XMI tag.
Definition: object_factory.cpp:309
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:253
void removeAllAssociations()
Removes All the associations of the diagram.
Definition: umlscene.cpp:2351
UMLObjectList m_objects
References to the objects contained in this package.
Definition: package.h:78
Definition: basictypes.h:39
void removeView(UMLView *view, bool enforceOneView=true)
Removes a view from the list of currently connected views.
Definition: umldoc.cpp:197
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
void appendViews(UMLViewList &viewList, bool includeNested=true)
Append the views in this folder to the given diagram list.
Definition: folder.cpp:106
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2676
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 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:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.