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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLFOLDER_H
12 #define UMLFOLDER_H
13
14 #include "package.h"
15 #include "umlviewlist.h"
16 #include "optionstate.h"
17
34 class UMLFolder : public UMLPackage
35 {
36 Q_OBJECT
37 public:
38 explicit UMLFolder(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
39 virtual ~UMLFolder();
40
41 virtual UMLObject* clone() const;
42
43 void setLocalName(const QString& localName);
44 QString localName() const;
45
46 void addView(UMLView *view);
47
48 void removeView(UMLView *view);
49
50 void appendViews(UMLViewList& viewList, bool includeNested = true);
51
52 void activateViews();
53
54 UMLView* findView(Uml::ID::Type id);
55 UMLView* findView(Uml::DiagramType::Enum type, const QString &name, bool searchAllScopes = true);
56
57 void setViewOptions(const Settings::OptionState& optionState);
58
59 void removeAllViews();
60
61 void setFolderFile(const QString& fileName);
62 QString folderFile() const;
63
64 bool showPropertiesDialog(QWidget *parent);
65
66 void saveToXMI1(QXmlStreamWriter& writer);
67
68 friend QDebug operator<<(QDebug out, const UMLFolder& item);
69
70 protected:
71 void saveContents1(QXmlStreamWriter& writer);
72
73 void save1(QXmlStreamWriter& writer);
74
75 bool loadDiagramsFromXMI1(QDomNode& node);
76
77 bool loadFolderFile(const QString& path);
78
79 bool load1(QDomElement & element);
80
81 private:
82 QString m_localName;
90 QString m_folderFile;
91 UMLViewList m_diagrams;
92
93 friend class UMLDoc;
94 };
95
96 #endif
Settings::OptionState
Definition: optionstate.h:315
UMLDoc
Definition: umldoc.h:75
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
UMLFolder::setLocalName
void setLocalName(const QString &localName)
Definition: folder.cpp:72
UMLFolder::operator<<
friend QDebug operator<<(QDebug out, const UMLFolder &item)
Definition: folder.cpp:601
UMLFolder::setFolderFile
void setFolderFile(const QString &fileName)
Definition: folder.cpp:253
UMLFolder::appendViews
void appendViews(UMLViewList &viewList, bool includeNested=true)
Definition: folder.cpp:108
UMLFolder::m_diagrams
UMLViewList m_diagrams
Definition: folder.h:91
UMLFolder::addView
void addView(UMLView *view)
Definition: folder.cpp:89
UMLFolder::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: folder.cpp:325
UMLFolder::loadDiagramsFromXMI1
bool loadDiagramsFromXMI1(QDomNode &node)
Definition: folder.cpp:378
UMLFolder::load1
bool load1(QDomElement &element)
Definition: folder.cpp:471
UMLFolder::folderFile
QString folderFile() const
Definition: folder.cpp:261
UMLFolder::activateViews
void activateViews()
Definition: folder.cpp:129
UMLFolder::findView
UMLView * findView(Uml::ID::Type id)
Definition: folder.cpp:156
UMLFolder::removeAllViews
void removeAllViews()
Definition: folder.cpp:226
UMLFolder::loadFolderFile
bool loadFolderFile(const QString &path)
Definition: folder.cpp:430
UMLFolder::m_folderFile
QString m_folderFile
Definition: folder.h:90
UMLFolder::saveContents1
void saveContents1(QXmlStreamWriter &writer)
Definition: folder.cpp:271
UMLFolder::clone
virtual UMLObject * clone() const
Definition: folder.cpp:59
UMLFolder::UMLFolder
UMLFolder(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: folder.cpp:40
UMLFolder::showPropertiesDialog
bool showPropertiesDialog(QWidget *parent)
Definition: folder.cpp:587
UMLFolder::setViewOptions
void setViewOptions(const Settings::OptionState &optionState)
Definition: folder.cpp:215
UMLFolder::removeView
void removeView(UMLView *view)
Definition: folder.cpp:97
UMLFolder::~UMLFolder
virtual ~UMLFolder()
Definition: folder.cpp:50
UMLFolder::m_localName
QString m_localName
i18n name, only used for predefined root folders
Definition: folder.h:82
UMLFolder::save1
void save1(QXmlStreamWriter &writer)
Definition: folder.cpp:307
UMLFolder::localName
QString localName() const
Definition: folder.cpp:81
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
UMLView
Definition: umlview.h:35
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
Uml::ID::Type
std::string Type
Definition: basictypes.h:385
optionstate.h
package.h
umlviewlist.h
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:26