umbrello: umbrello/dialogs/statedialog.h Source File

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

statedialog.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 STATEDIALOG_H
12 #define STATEDIALOG_H
13
14 // kde class includes
15 #include "multipagedialogbase.h"
16
17 //forward declarations
18 class ActivityPage;
19 class DocumentationWidget;
20 class SelectDiagramWidget;
21 class StateWidget;
22 class KComboBox;
23 class KLineEdit;
24 class QGroupBox;
25 class QLabel;
26
32 class StateDialog : public MultiPageDialogBase
33 {
34 Q_OBJECT
35 public:
36 StateDialog(QWidget *parent, StateWidget * pWidget);
37
41 bool getChangesMade() {
42 return m_bChangesMade;
43 }
44
45 protected slots:
46 void slotOk();
47 void slotApply();
48
49 protected:
50 void setupPages();
51 void setupGeneralPage();
52 void setupActivityPage();
53
54 void applyPage(KPageWidgetItem*item);
55
56 ActivityPage *m_pActivityPage;
57 StateWidget *m_pStateWidget;
58 bool m_bChangesMade;
59
60 struct GeneralPageWidgets {
61 QLabel * nameL, * typeL;
62 SelectDiagramWidget *diagramLinkWidget;
63 KLineEdit * nameLE, * typeLE;
64 DocumentationWidget *docWidget;
65 QGroupBox * generalGB;
66 }
67 m_GenPageWidgets;
68
69 KPageWidgetItem *pageStyle, *pageActivity, *pageFont, *pageGeneral;
70 };
71
72 #endif
ActivityPage
Definition: activitypage.h:31
DocumentationWidget
Definition: documentationwidget.h:27
MultiPageDialogBase
Definition: multipagedialogbase.h:52
SelectDiagramWidget
Definition: selectdiagramwidget.h:23
StateDialog
Definition: statedialog.h:33
StateDialog::setupActivityPage
void setupActivityPage()
Definition: statedialog.cpp:203
StateDialog::pageGeneral
KPageWidgetItem * pageGeneral
Definition: statedialog.h:69
StateDialog::m_pActivityPage
ActivityPage * m_pActivityPage
Definition: statedialog.h:56
StateDialog::getChangesMade
bool getChangesMade()
Definition: statedialog.h:41
StateDialog::slotOk
void slotOk()
Definition: statedialog.cpp:58
StateDialog::setupGeneralPage
void setupGeneralPage()
Definition: statedialog.cpp:117
StateDialog::pageActivity
KPageWidgetItem * pageActivity
Definition: statedialog.h:69
StateDialog::applyPage
void applyPage(KPageWidgetItem *item)
Definition: statedialog.cpp:91
StateDialog::pageFont
KPageWidgetItem * pageFont
Definition: statedialog.h:69
StateDialog::m_pStateWidget
StateWidget * m_pStateWidget
the widget to represent
Definition: statedialog.h:57
StateDialog::StateDialog
StateDialog(QWidget *parent, StateWidget *pWidget)
Definition: statedialog.cpp:42
StateDialog::slotApply
void slotApply()
Definition: statedialog.cpp:70
StateDialog::m_GenPageWidgets
struct StateDialog::GeneralPageWidgets m_GenPageWidgets
StateDialog::pageStyle
KPageWidgetItem * pageStyle
Definition: statedialog.h:69
StateDialog::setupPages
void setupPages()
Definition: statedialog.cpp:78
StateDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: statedialog.h:58
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
multipagedialogbase.h
StateDialog::GeneralPageWidgets
Definition: statedialog.h:60
StateDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: statedialog.h:64
StateDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: statedialog.h:65
StateDialog::GeneralPageWidgets::diagramLinkWidget
SelectDiagramWidget * diagramLinkWidget
Definition: statedialog.h:62
StateDialog::GeneralPageWidgets::typeLE
KLineEdit * typeLE
Definition: statedialog.h:63
StateDialog::GeneralPageWidgets::nameLE
KLineEdit * nameLE
Definition: statedialog.h:63
StateDialog::GeneralPageWidgets::nameL
QLabel * nameL
Definition: statedialog.h:61
StateDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: statedialog.h:61