umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
classwizard.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) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CLASSWIZARD_H
12 #define CLASSWIZARD_H
13 
14 // qt includes
15 #include <QWizard>
16 
17 class QWizardPage;
18 class ClassifierListPage;
19 class ClassGeneralPage;
20 class UMLClassifier;
21 class UMLDoc;
22 
27 class ClassWizard : public QWizard
28 {
29  Q_OBJECT
30 public:
31  explicit ClassWizard(UMLDoc* doc);
32  ~ClassWizard();
33 
34 private:
35  UMLDoc * m_doc; //< Document currently opened.
36  UMLClassifier * m_pClass; //< Class to create.
37 
38  ClassGeneralPage * m_pGenPage; //< General class info.
39  ClassifierListPage * m_pAttPage; //< Class attributes.
40  ClassifierListPage * m_pOpPage; //< Class operations.
41 
42  QWizardPage * m_GeneralPage;
43  QWizardPage * m_AttributesPage;
44  QWizardPage * m_OperationsPage;
45 
46  QWizardPage* createGeneralPage();
47  QWizardPage* createAttributesPage();
48  QWizardPage* createOperationsPage();
49 
50  void next();
51  void back();
52  void accept();
53  void reject();
54 
55 protected slots:
56  void showHelp();
57 
58 };
59 
60 #endif
Icon_Utils::DesktopIcon
QPixmap DesktopIcon(IconType type)
Definition: icon_utils.cpp:97
ClassWizard::~ClassWizard
~ClassWizard()
Definition: classwizard.cpp:72
ClassWizard
Definition: classwizard.h:28
UMLDoc::removeUMLObject
void removeUMLObject(UMLObject *umlobject, bool deleteObject=false)
Definition: umldoc.cpp:1883
ClassWizard::m_doc
UMLDoc * m_doc
Definition: classwizard.h:35
operation.h
UMLDoc::addUMLObject
bool addUMLObject(UMLObject *object)
Definition: umldoc.cpp:1180
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
ClassWizard::ClassWizard
ClassWizard(UMLDoc *doc)
Definition: classwizard.cpp:38
ClassWizard::next
void next()
Definition: classwizard.cpp:133
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
ClassWizard::back
void back()
Definition: classwizard.cpp:147
ClassWizard::m_pAttPage
ClassifierListPage * m_pAttPage
Definition: classwizard.h:39
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
ClassWizard::m_GeneralPage
QWizardPage * m_GeneralPage
Definition: classwizard.h:42
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1985
ClassifierListPage
A dialog page to display classifier properties.
Definition: classifierlistpage.h:40
umlclassifierlistitemlist.h
classgeneralpage.h
ClassWizard::m_pGenPage
ClassGeneralPage * m_pGenPage
Definition: classwizard.h:38
classifierlistitem.h
ClassWizard::accept
void accept()
Definition: classwizard.cpp:163
attribute.h
i18n
#define i18n
Definition: main.cpp:39
ClassGeneralPage
Display properties on a UMLObject.
Definition: classgeneralpage.h:44
ClassWizard::m_pClass
UMLClassifier * m_pClass
Definition: classwizard.h:36
ClassWizard::m_OperationsPage
QWizardPage * m_OperationsPage
Definition: classwizard.h:44
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLDoc
Definition: umldoc.h:75
ClassWizard::createGeneralPage
QWizardPage * createGeneralPage()
Definition: classwizard.cpp:79
ClassWizard::createAttributesPage
QWizardPage * createAttributesPage()
Definition: classwizard.cpp:97
classifierlistpage.h
classwizard.h
ClassifierListPage::apply
void apply()
Definition: classifierlistpage.cpp:395
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
ClassWizard::reject
void reject()
Definition: classwizard.cpp:180
Icon_Utils::it_Code_Gen_Wizard
@ it_Code_Gen_Wizard
Definition: icon_utils.h:234
ClassGeneralPage::apply
void apply()
Definition: classgeneralpage.cpp:296
ClassWizard::createOperationsPage
QWizardPage * createOperationsPage()
Definition: classwizard.cpp:115
ClassWizard::m_pOpPage
ClassifierListPage * m_pOpPage
Definition: classwizard.h:40
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
ClassWizard::m_AttributesPage
QWizardPage * m_AttributesPage
Definition: classwizard.h:43
ClassWizard::showHelp
void showHelp()
Definition: classwizard.cpp:189
umldoc.h