umbrello: umbrello/dialogs/activitydialog.h Source File

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

activitydialog.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 ACTIVITYDIALOG_H
12 #define ACTIVITYDIALOG_H
13
14 #include <multipagedialogbase.h>
15
16 //forward declarations
17 class ActivityWidget;
18 class DocumentationWidget;
19 class KLineEdit;
20 class QLabel;
21 class QGroupBox;
22 class QRadioButton;
23 class UMLView;
24
31 class ActivityDialog : public MultiPageDialogBase
32 {
33 Q_OBJECT
34 public:
35 ActivityDialog(QWidget * parent, ActivityWidget * pWidget);
36
37 bool getChangesMade() {
38 return m_bChangesMade;
39 }
40
41 protected slots:
42 void slotOk();
43 void slotApply();
44 void slotShowActivityParameter();
45 void slotHideActivityParameter();
46
47 protected:
48 void setupPages();
49 void setupGeneralPage();
50
51 void showParameterActivity();
52
53 void applyPage(KPageWidgetItem *);
54
55 ActivityWidget *m_pActivityWidget;
56 UMLView *m_pView;
57 bool m_bChangesMade;
58
59 struct GeneralPageWidgets {
60 QLabel * nameL, * typeL, * preL, * postL;
61 KLineEdit * nameLE, * typeLE, * preLE, * postLE;
62 DocumentationWidget *docWidget;
63 QRadioButton * NormalRB, * ParamRB, * InvokRB; // this is to implement the parameter node activity or an invok action
64 QGroupBox * generalGB;
65 }
66 m_GenPageWidgets;
67
68 KPageWidgetItem *pageItemGeneral, *pageItemFont, *pageItemStyle;
69 };
70
71 #endif
ActivityDialog
Definition: activitydialog.h:32
ActivityDialog::slotOk
void slotOk()
Definition: activitydialog.cpp:52
ActivityDialog::setupPages
void setupPages()
Definition: activitydialog.cpp:93
ActivityDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: activitydialog.h:57
ActivityDialog::m_pActivityWidget
ActivityWidget * m_pActivityWidget
the widget to represent
Definition: activitydialog.h:55
ActivityDialog::m_pView
UMLView * m_pView
the diagram the widget is on
Definition: activitydialog.h:56
ActivityDialog::slotHideActivityParameter
void slotHideActivityParameter()
Definition: activitydialog.cpp:82
ActivityDialog::m_GenPageWidgets
struct ActivityDialog::GeneralPageWidgets m_GenPageWidgets
ActivityDialog::getChangesMade
bool getChangesMade()
Definition: activitydialog.h:37
ActivityDialog::pageItemStyle
KPageWidgetItem * pageItemStyle
Definition: activitydialog.h:68
ActivityDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: activitydialog.cpp:103
ActivityDialog::setupGeneralPage
void setupGeneralPage()
Definition: activitydialog.cpp:134
ActivityDialog::ActivityDialog
ActivityDialog(QWidget *parent, ActivityWidget *pWidget)
Definition: activitydialog.cpp:37
ActivityDialog::pageItemFont
KPageWidgetItem * pageItemFont
Definition: activitydialog.h:68
ActivityDialog::showParameterActivity
void showParameterActivity()
Definition: activitydialog.cpp:215
ActivityDialog::slotApply
void slotApply()
Definition: activitydialog.cpp:63
ActivityDialog::pageItemGeneral
KPageWidgetItem * pageItemGeneral
Definition: activitydialog.h:68
ActivityDialog::slotShowActivityParameter
void slotShowActivityParameter()
Definition: activitydialog.cpp:68
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:34
DocumentationWidget
Definition: documentationwidget.h:27
MultiPageDialogBase
Definition: multipagedialogbase.h:52
UMLView
Definition: umlview.h:35
multipagedialogbase.h
ActivityDialog::GeneralPageWidgets
Definition: activitydialog.h:59
ActivityDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: activitydialog.h:62
ActivityDialog::GeneralPageWidgets::nameL
QLabel * nameL
Definition: activitydialog.h:60
ActivityDialog::GeneralPageWidgets::preL
QLabel * preL
Definition: activitydialog.h:60
ActivityDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: activitydialog.h:64
ActivityDialog::GeneralPageWidgets::preLE
KLineEdit * preLE
Definition: activitydialog.h:61
ActivityDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: activitydialog.h:60
ActivityDialog::GeneralPageWidgets::NormalRB
QRadioButton * NormalRB
Definition: activitydialog.h:63
ActivityDialog::GeneralPageWidgets::InvokRB
QRadioButton * InvokRB
Definition: activitydialog.h:63
ActivityDialog::GeneralPageWidgets::nameLE
KLineEdit * nameLE
Definition: activitydialog.h:61
ActivityDialog::GeneralPageWidgets::postLE
KLineEdit * postLE
Definition: activitydialog.h:61
ActivityDialog::GeneralPageWidgets::ParamRB
QRadioButton * ParamRB
Definition: activitydialog.h:63
ActivityDialog::GeneralPageWidgets::typeLE
KLineEdit * typeLE
Definition: activitydialog.h:61
ActivityDialog::GeneralPageWidgets::postL
QLabel * postL
Definition: activitydialog.h:60