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
SelectDiagramWidget::currentID
Uml::ID::Type currentID()
Definition: selectdiagramwidget.cpp:79
StateDialog::m_GenPageWidgets
struct StateDialog::GeneralPageWidgets m_GenPageWidgets
MultiPageDialogBase::setupStylePage
KPageWidgetItem * setupStylePage(WidgetBase *widget)
Definition: multipagedialogbase.cpp:477
MultiPageDialogBase::applyStylePage
void applyStylePage()
Definition: multipagedialogbase.cpp:498
statewidget.h
StateDialog::GeneralPageWidgets::diagramLinkWidget
SelectDiagramWidget * diagramLinkWidget
Definition: statedialog.h:62
statedialog.h
StateDialog::GeneralPageWidgets::nameL
QLabel * nameL
Definition: statedialog.h:61
umlview.h
StateWidget::ShallowHistory
@ ShallowHistory
Definition: statewidget.h:53
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
StateDialog::m_pStateWidget
StateWidget * m_pStateWidget
the widget to represent
Definition: statedialog.h:57
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
ActivityPage
Definition: activitypage.h:31
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
multipagedialogbase.h
Uml::DiagramType::State
@ State
Definition: basictypes.h:85
SelectDiagramWidget
Definition: selectdiagramwidget.h:23
documentationwidget.h
StateDialog::pageFont
KPageWidgetItem * pageFont
Definition: statedialog.h:69
MultiPageDialogBase::accept
void accept()
Definition: multipagedialogbase.cpp:173
StateDialog::setupPages
void setupPages()
Definition: statedialog.cpp:78
StateWidget::StateType
StateType
Enumeration that codes the different types of state.
Definition: statewidget.h:45
StateDialog
Definition: statedialog.h:33
StateWidget::Junction
@ Junction
Definition: statewidget.h:51
selectdiagramwidget.h
StateDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: statedialog.h:65
MultiPageDialogBase::createPage
QFrame * createPage(const QString &name, const QString &header, Icon_Utils::IconType icon)
Definition: multipagedialogbase.cpp:325
StateDialog::m_pActivityPage
ActivityPage * m_pActivityPage
Definition: statedialog.h:56
StateWidget::Fork
@ Fork
Definition: statewidget.h:49
StateDialog::slotApply
void slotApply()
Definition: statedialog.cpp:70
MultiPageDialogBase::applyClicked
void applyClicked()
StateWidget::End
@ End
Definition: statewidget.h:48
StateDialog::GeneralPageWidgets::nameLE
KLineEdit * nameLE
Definition: statedialog.h:63
MultiPageDialogBase::applyFontPage
void applyFontPage(AssociationWidget *widget)
Definition: multipagedialogbase.cpp:441
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Definition: dialog_utils.cpp:52
DiagramProxyWidget::setDiagramLink
bool setDiagramLink(const Uml::ID::Type &id)
Definition: diagramproxywidget.cpp:48
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
umlviewlist.h
MultiPageDialogBase::okClicked
void okClicked()
StateDialog::getChangesMade
bool getChangesMade()
Definition: statedialog.h:41
MultiPageDialogBase
Definition: multipagedialogbase.h:52
i18n
#define i18n
Definition: main.cpp:39
MultiPageDialogBase::setupFontPage
KPageWidgetItem * setupFontPage(const QFont &font)
Definition: multipagedialogbase.cpp:400
StateDialog::setupGeneralPage
void setupGeneralPage()
Definition: statedialog.cpp:117
StateWidget::Combined
@ Combined
Definition: statewidget.h:58
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
StateDialog::slotOk
void slotOk()
Definition: statedialog.cpp:58
StateWidget::Join
@ Join
Definition: statewidget.h:50
StateDialog::setupActivityPage
void setupActivityPage()
Definition: statedialog.cpp:203
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
StateWidget::Initial
@ Initial
Definition: statewidget.h:46
ActivityPage::updateActivities
void updateActivities()
Definition: activitypage.cpp:153
DocumentationWidget
Definition: documentationwidget.h:27
umlscene.h
uml.h
StateWidget::stateType
StateType stateType() const
Definition: statewidget.cpp:393
StateDialog::applyPage
void applyPage(KPageWidgetItem *item)
Definition: statedialog.cpp:91
icon_utils.h
StateDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: statedialog.h:64
UMLScene::name
QString name() const
Definition: umlscene.cpp:410
StateDialog::pageStyle
KPageWidgetItem * pageStyle
Definition: statedialog.h:69
StateDialog::GeneralPageWidgets
Definition: statedialog.h:60
MultiPageDialogBase::setCaption
void setCaption(const QString &caption)
Definition: multipagedialogbase.cpp:162
MultiPageDialogBase::spacingHint
static int spacingHint()
Definition: multipagedialogbase.cpp:214
Icon_Utils::it_Properties_Activities
@ it_Properties_Activities
Definition: icon_utils.h:76
StateDialog::pageGeneral
KPageWidgetItem * pageGeneral
Definition: statedialog.h:69
StateDialog::StateDialog
StateDialog(QWidget *parent, StateWidget *pWidget)
Definition: statedialog.cpp:42
DiagramProxyWidget::linkedDiagram
UMLScene * linkedDiagram() const
Definition: diagramproxywidget.cpp:43
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
StateDialog::GeneralPageWidgets::typeLE
KLineEdit * typeLE
Definition: statedialog.h:63
activitypage.h
StateWidget::Choice
@ Choice
Definition: statewidget.h:54
StateDialog::pageActivity
KPageWidgetItem * pageActivity
Definition: statedialog.h:69
SelectDiagramWidget::setupWidget
void setupWidget(Uml::DiagramType::Enum type, const QString &currentName, const QString &excludeName, bool withNewEntry=true)
Definition: selectdiagramwidget.cpp:41
umldoc.h
StateWidget::Normal
@ Normal
Definition: statewidget.h:47
StateDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: statedialog.h:61
MultiPageDialogBase::currentPage
KPageWidgetItem * currentPage()
Definition: multipagedialogbase.cpp:185
StateWidget::DeepHistory
@ DeepHistory
Definition: statewidget.h:52
StateDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: statedialog.h:58