umbrello  2.32.0
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
Display properties on a UMLObject.
Definition: classgeneralpage.h:46
Definition: classwizard.h:28
QWizardPage * createOperationsPage()
Definition: classwizard.cpp:115
QWizardPage * createGeneralPage()
Definition: classwizard.cpp:79
~ClassWizard()
Definition: classwizard.cpp:72
ClassGeneralPage * m_pGenPage
Definition: classwizard.h:38
QWizardPage * m_OperationsPage
Definition: classwizard.h:44
ClassifierListPage * m_pOpPage
Definition: classwizard.h:40
QWizardPage * createAttributesPage()
Definition: classwizard.cpp:97
void back()
Definition: classwizard.cpp:147
UMLClassifier * m_pClass
Definition: classwizard.h:36
QWizardPage * m_GeneralPage
Definition: classwizard.h:42
QWizardPage * m_AttributesPage
Definition: classwizard.h:43
void next()
Definition: classwizard.cpp:133
ClassWizard(UMLDoc *doc)
Definition: classwizard.cpp:38
ClassifierListPage * m_pAttPage
Definition: classwizard.h:39
void reject()
Definition: classwizard.cpp:180
void showHelp()
Definition: classwizard.cpp:189
UMLDoc * m_doc
Definition: classwizard.h:35
void accept()
Definition: classwizard.cpp:163
A dialog page to display classifier properties.
Definition: classifierlistpage.h:40
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
Definition: umldoc.h:75