umbrello/umbrello
folder.cpp
Go to the documentation of this file.
183 UMLView *UMLFolder::findView(Uml::DiagramType::Enum type, const QString &name, bool searchAllScopes)
232 v->umlScene()->removeAllAssociations(); // note : It may not be apparent, but when we remove all associations
358 folderRoot.setAttribute(QLatin1String("parent"), m_pUMLPackage->fullyQualifiedName(QLatin1String("::"), true));
void setCodec(QTextCodec *codec)
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Return the corresponding Model_Type if the given object is one of the root folders.
Definition: umldoc.cpp:2736
UMLPackageList packages(bool includeRoot=false) const
Return a list of the packages in which this class is embedded.
Definition: umlobject.cpp:621
void clear()
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobject.cpp:288
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:406
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:912
QDebug operator<<(QDebug out, const UMLFolder &item)
Overloading operator for debugging output.
Definition: folder.cpp:538
QDomNode appendChild(const QDomNode &newChild)
void saveContents(QDomDocument &qDoc, QDomElement &qElement)
Auxiliary to saveToXMI(): Save the contained objects and diagrams.
Definition: folder.cpp:265
QString attribute(const QString &name, const QString &defValue) const
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
QString toString(int indent) const
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:318
void setViewOptions(const Settings::OptionState &optionState)
Set the options for the views in this folder.
Definition: folder.cpp:210
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "diagram" tag.
Definition: umlscene.cpp:3613
void setFolderFile(const QString &fileName)
Set the folder file name for a separate submodel.
Definition: folder.cpp:247
QDebug & nospace()
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:371
bool exists() const
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:436
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
bool isProcessingInstruction() const
Definition: optionstate.h:142
QDomNode nextSibling() const
void clear()
QDomElement toElement() const
void appendPackages(UMLPackageList &packages, bool includeNested=true)
Append all packages from this package (and those from nested packages) to the given UMLPackageList...
Definition: package.cpp:275
QString getXmiId(QDomElement element)
Return the xmi.id (XMI-1) or xmi:id (XMI-2) of a QDomElement.
Definition: model_utils.cpp:511
void treeViewAddViews(const UMLViewList &viewList)
Add the given list of views to the tree view.
Definition: model_utils.cpp:335
int count(const T &value) const
void append(const T &value)
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
void setAttribute(const QString &name, const QString &value)
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:70
bool isEmpty() const
int removeAll(const T &value)
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:300
UMLFolder(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up a Folder.
Definition: folder.cpp:37
void hide()
void addView(UMLView *view)
Adds a view to the document which represents the document contents.
Definition: umldoc.cpp:161
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
QDebug & space()
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is one of the common XMI attributes, such as: "name" | "visibility" | "i...
Definition: model_utils.cpp:525
virtual void close()
bool isNull() const
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:782
void activateAfterLoad(bool bUseLog=false)
Activate the view after a load a new file.
Definition: umlscene.cpp:2003
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "diagram" tag and fills it with the contents of the diagram.
Definition: umlscene.cpp:3541
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:806
QDomNode firstChild() const
Definition: basictypes.h:44
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)=0
bool isComment() const
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Make a new UMLObject according to the given XMI tag.
Definition: object_factory.cpp:355
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:255
void removeAllAssociations()
Removes All the associations of the diagram.
Definition: umlscene.cpp:2144
UMLObjectList m_objects
References to the objects contained in this package.
Definition: package.h:75
Definition: basictypes.h:39
void removeView(UMLView *view, bool enforceOneView=true)
Removes a view from the list of currently connected views.
Definition: umldoc.cpp:199
QString fromLatin1(const char *str, int size)
QString tagName() const
QDomElement createElement(const QString &tagName)
QString readAll()
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:202
void appendViews(UMLViewList &viewList, bool includeNested=true)
Append the views in this folder to the given diagram list.
Definition: folder.cpp:106
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2721
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
bool hasNext() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.