umbrello  2.31.70
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;
21 class StateWidget;
22 class KComboBox;
23 class KLineEdit;
24 class QGroupBox;
25 class QLabel;
26 
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 
59 
61  QLabel * nameL, * typeL;
63  KLineEdit * nameLE, * typeLE;
65  QGroupBox * generalGB;
66  }
68 
69  KPageWidgetItem *pageStyle, *pageActivity, *pageFont, *pageGeneral;
70 };
71 
72 #endif
KPageWidgetItem * pageGeneral
Definition: statedialog.h:69
struct StateDialog::GeneralPageWidgets m_GenPageWidgets
QGroupBox * generalGB
Definition: statedialog.h:65
StateWidget * m_pStateWidget
the widget to represent
Definition: statedialog.h:57
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: statedialog.h:58
void setupPages()
Definition: statedialog.cpp:78
KPageWidgetItem * pageFont
Definition: statedialog.h:69
Definition: statedialog.h:32
Definition: activitypage.h:30
QLabel * nameL
Definition: statedialog.h:61
Definition: multipagedialogbase.h:51
void slotApply()
Definition: statedialog.cpp:70
A graphical version of a UML State.
Definition: statewidget.h:38
ActivityPage * m_pActivityPage
Definition: statedialog.h:56
void setupActivityPage()
Definition: statedialog.cpp:203
bool getChangesMade()
Definition: statedialog.h:41
DocumentationWidget * docWidget
Definition: statedialog.h:64
Definition: documentationwidget.h:26
void setupGeneralPage()
Definition: statedialog.cpp:117
QLabel * typeL
Definition: statedialog.h:61
SelectDiagramWidget * diagramLinkWidget
Definition: statedialog.h:62
StateDialog(QWidget *parent, StateWidget *pWidget)
Definition: statedialog.cpp:42
KLineEdit * nameLE
Definition: statedialog.h:63
KPageWidgetItem * pageStyle
Definition: statedialog.h:69
void slotOk()
Definition: statedialog.cpp:58
Definition: statedialog.h:60
KLineEdit * typeLE
Definition: statedialog.h:63
KPageWidgetItem * pageActivity
Definition: statedialog.h:69
void applyPage(KPageWidgetItem *item)
Definition: statedialog.cpp:91
Definition: selectdiagramwidget.h:22