umbrello: umbrello/uml1model/folder.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

folder.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef UMLFOLDER_H
7 #define UMLFOLDER_H
8
9 #include "package.h"
10 #include "umlviewlist.h"
11 #include "optionstate.h"
12
29 class UMLFolder : public UMLPackage
30 {
31 Q_OBJECT
32 public:
33 explicit UMLFolder(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
34 virtual ~UMLFolder();
35
36 virtual UMLObject* clone() const;
37
38 void setLocalName(const QString& localName);
39 QString localName() const;
40
41 void addView(UMLView *view);
42
43 void removeView(UMLView *view);
44
45 void appendViews(UMLViewList& viewList, bool includeNested = true);
46
47 void activateViews();
48
49 UMLView* findView(Uml::ID::Type id);
50 UMLView* findView(Uml::DiagramType::Enum type, const QString &name, bool searchAllScopes = true);
51
52 void setViewOptions(const Settings::OptionState& optionState);
53
54 void removeAllViews();
55
56 void setFolderFile(const QString& fileName);
57 QString folderFile() const;
58
59 bool showPropertiesDialog(QWidget *parent);
60
61 void saveToXMI1(QXmlStreamWriter& writer);
62
63 friend QDebug operator<<(QDebug out, const UMLFolder& item);
64
65 protected:
66 void saveContents1(QXmlStreamWriter& writer);
67
68 void save1(QXmlStreamWriter& writer);
69
70 bool loadDiagramsFromXMI1(QDomNode& node);
71
72 bool loadFolderFile(const QString& path);
73
74 bool load1(QDomElement & element);
75
76 private:
77 QString m_localName;
85 QString m_folderFile;
86 UMLViewList m_diagrams;
87
88 friend class UMLDoc;
89 };
90
91 #endif
Settings::OptionState
Definition: optionstate.h:310
UMLDoc
Definition: umldoc.h:70
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:30
UMLFolder::setLocalName
void setLocalName(const QString &localName)
Definition: folder.cpp:67
UMLFolder::operator<<
friend QDebug operator<<(QDebug out, const UMLFolder &item)
Definition: folder.cpp:596
UMLFolder::setFolderFile
void setFolderFile(const QString &fileName)
Definition: folder.cpp:248
UMLFolder::appendViews
void appendViews(UMLViewList &viewList, bool includeNested=true)
Definition: folder.cpp:103
UMLFolder::m_diagrams
UMLViewList m_diagrams
Definition: folder.h:86
UMLFolder::addView
void addView(UMLView *view)
Definition: folder.cpp:84
UMLFolder::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: folder.cpp:320
UMLFolder::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: folder.cpp:373
UMLFolder::load1
bool load1(QDomElement &element)
Definition: folder.cpp:466
UMLFolder::folderFile
QString folderFile() const
Definition: folder.cpp:256
UMLFolder::activateViews
void activateViews()
Definition: folder.cpp:124
UMLFolder::findView
UMLView * findView(Uml::ID::Type id)
Definition: folder.cpp:151
UMLFolder::removeAllViews
void removeAllViews()
Definition: folder.cpp:221
UMLFolder::loadFolderFile
bool loadFolderFile(const QString &path)
Definition: folder.cpp:425
UMLFolder::m_folderFile
QString m_folderFile
Definition: folder.h:85
UMLFolder::saveContents1
void saveContents1(QXmlStreamWriter &writer)
Definition: folder.cpp:266
UMLFolder::clone
virtual UMLObject * clone() const
Definition: folder.cpp:54
UMLFolder::UMLFolder
UMLFolder(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: folder.cpp:35
UMLFolder::showPropertiesDialog
bool showPropertiesDialog(QWidget *parent)
Definition: folder.cpp:582
UMLFolder::setViewOptions
void setViewOptions(const Settings::OptionState &optionState)
Definition: folder.cpp:210
UMLFolder::removeView
void removeView(UMLView *view)
Definition: folder.cpp:92
UMLFolder::~UMLFolder
virtual ~UMLFolder()
Definition: folder.cpp:45
UMLFolder::m_localName
QString m_localName
i18n name, only used for predefined root folders
Definition: folder.h:77
UMLFolder::save1
void save1(QXmlStreamWriter &writer)
Definition: folder.cpp:302
UMLFolder::localName
QString localName() const
Definition: folder.cpp:76
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
UMLView
Definition: umlview.h:30
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:357
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:63
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
optionstate.h
package.h
umlviewlist.h
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:14