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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

statedialog.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef STATEDIALOG_H
7#define STATEDIALOG_H
8
9// kde class includes
10#include "multipagedialogbase.h"
11
12//forward declarations
13 class ActivityPage;
14 class DocumentationWidget;
15 class SelectDiagramWidget;
16 class StateWidget;
17 class KComboBox;
18 class QLineEdit;
19 class QGroupBox;
20 class QLabel;
21
27 class StateDialog : public MultiPageDialogBase
28{
29 Q_OBJECT
30 public:
31 StateDialog(QWidget *parent, StateWidget * pWidget);
32
36 bool getChangesMade() const {
37 return m_bChangesMade;
38 }
39
40 protected Q_SLOTS:
41 void slotOk();
42 void slotApply();
43
44 protected:
45 void setupPages();
46 void setupGeneralPage();
47 void setupActivityPage();
48
49 void applyPage(KPageWidgetItem*item);
50
51 ActivityPage *m_pActivityPage;
52 StateWidget *m_pStateWidget;
53 bool m_bChangesMade;
54
55 struct GeneralPageWidgets {
56 QLabel * nameL, * typeL;
57 SelectDiagramWidget *diagramLinkWidget;
58 QLineEdit * nameLE, * typeLE;
59 DocumentationWidget *docWidget;
60 QGroupBox * generalGB;
61 }
62 m_GenPageWidgets;
63
64 KPageWidgetItem *pageStyle, *pageActivity, *pageFont, *pageGeneral;
65};
66
67#endif
ActivityPage
Definition: activitypage.h:26
DocumentationWidget
Definition: documentationwidget.h:22
MultiPageDialogBase
Definition: multipagedialogbase.h:47
SelectDiagramWidget
Definition: selectdiagramwidget.h:18
StateDialog
Definition: statedialog.h:28
StateDialog::setupActivityPage
void setupActivityPage()
Definition: statedialog.cpp:198
StateDialog::pageGeneral
KPageWidgetItem * pageGeneral
Definition: statedialog.h:64
StateDialog::m_pActivityPage
ActivityPage * m_pActivityPage
Definition: statedialog.h:51
StateDialog::slotOk
void slotOk()
Definition: statedialog.cpp:53
StateDialog::setupGeneralPage
void setupGeneralPage()
Definition: statedialog.cpp:112
StateDialog::pageActivity
KPageWidgetItem * pageActivity
Definition: statedialog.h:64
StateDialog::applyPage
void applyPage(KPageWidgetItem *item)
Definition: statedialog.cpp:86
StateDialog::pageFont
KPageWidgetItem * pageFont
Definition: statedialog.h:64
StateDialog::m_pStateWidget
StateWidget * m_pStateWidget
the widget to represent
Definition: statedialog.h:52
StateDialog::getChangesMade
bool getChangesMade() const
Definition: statedialog.h:36
StateDialog::slotApply
void slotApply()
Definition: statedialog.cpp:65
StateDialog::m_GenPageWidgets
struct StateDialog::GeneralPageWidgets m_GenPageWidgets
StateDialog::pageStyle
KPageWidgetItem * pageStyle
Definition: statedialog.h:64
StateDialog::setupPages
void setupPages()
Definition: statedialog.cpp:73
StateDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: statedialog.h:53
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:34
multipagedialogbase.h
StateDialog::GeneralPageWidgets
Definition: statedialog.h:55
StateDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: statedialog.h:59
StateDialog::GeneralPageWidgets::typeLE
QLineEdit * typeLE
Definition: statedialog.h:58
StateDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: statedialog.h:60
StateDialog::GeneralPageWidgets::diagramLinkWidget
SelectDiagramWidget * diagramLinkWidget
Definition: statedialog.h:57
StateDialog::GeneralPageWidgets::nameL
QLabel * nameL
Definition: statedialog.h:56
StateDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: statedialog.h:56
StateDialog::GeneralPageWidgets::nameLE
QLineEdit * nameLE
Definition: statedialog.h:58