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::GeneralPageWidgets::nameL
QLabel * nameL
Definition: activitydialog.h:60
ActivityDialog::slotApply
void slotApply()
Definition: activitydialog.cpp:63
ActivityDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: activitydialog.cpp:103
MultiPageDialogBase::setupStylePage
KPageWidgetItem * setupStylePage(WidgetBase *widget)
Definition: multipagedialogbase.cpp:477
ActivityDialog::GeneralPageWidgets::postL
QLabel * postL
Definition: activitydialog.h:60
ActivityWidget::setPostconditionText
void setPostconditionText(const QString &)
Definition: activitywidget.cpp:146
ActivityDialog::ActivityDialog
ActivityDialog(QWidget *parent, ActivityWidget *pWidget)
Definition: activitydialog.cpp:37
MultiPageDialogBase::applyStylePage
void applyStylePage()
Definition: multipagedialogbase.cpp:498
ActivityDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: activitydialog.h:62
umlview.h
activitywidget.h
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
ActivityDialog::GeneralPageWidgets
Definition: activitydialog.h:59
ActivityDialog
Definition: activitydialog.h:32
ActivityWidget::Invok
@ Invok
Definition: activitywidget.h:45
ActivityDialog::m_pActivityWidget
ActivityWidget * m_pActivityWidget
the widget to represent
Definition: activitydialog.h:55
ActivityDialog::GeneralPageWidgets::preLE
KLineEdit * preLE
Definition: activitydialog.h:61
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:34
multipagedialogbase.h
documentationwidget.h
ActivityDialog::pageItemGeneral
KPageWidgetItem * pageItemGeneral
Definition: activitydialog.h:68
MultiPageDialogBase::accept
void accept()
Definition: multipagedialogbase.cpp:173
ActivityDialog::setupPages
void setupPages()
Definition: activitydialog.cpp:93
ActivityDialog::m_GenPageWidgets
struct ActivityDialog::GeneralPageWidgets m_GenPageWidgets
ActivityDialog::slotOk
void slotOk()
Definition: activitydialog.cpp:52
ActivityDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: activitydialog.h:57
MultiPageDialogBase::createPage
QFrame * createPage(const QString &name, const QString &header, Icon_Utils::IconType icon)
Definition: multipagedialogbase.cpp:325
ActivityDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: activitydialog.h:60
ActivityDialog::showParameterActivity
void showParameterActivity()
Definition: activitydialog.cpp:215
MultiPageDialogBase::applyClicked
void applyClicked()
ActivityWidget::setPreconditionText
void setPreconditionText(const QString &)
Definition: activitywidget.cpp:128
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
activitydialog.h
ActivityDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: activitydialog.h:64
UMLView
Definition: umlview.h:35
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
MultiPageDialogBase::okClicked
void okClicked()
ActivityDialog::slotShowActivityParameter
void slotShowActivityParameter()
Definition: activitydialog.cpp:68
MultiPageDialogBase
Definition: multipagedialogbase.h:52
ActivityWidget::Param
@ Param
Definition: activitywidget.h:46
ActivityDialog::GeneralPageWidgets::InvokRB
QRadioButton * InvokRB
Definition: activitydialog.h:63
i18n
#define i18n
Definition: main.cpp:39
ActivityDialog::GeneralPageWidgets::NormalRB
QRadioButton * NormalRB
Definition: activitydialog.h:63
MultiPageDialogBase::setupFontPage
KPageWidgetItem * setupFontPage(const QFont &font)
Definition: multipagedialogbase.cpp:400
ActivityDialog::getChangesMade
bool getChangesMade()
Definition: activitydialog.h:37
types
Definition: types.py:1
ActivityWidget::Normal
@ Normal
Definition: activitywidget.h:41
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
ActivityDialog::pageItemFont
KPageWidgetItem * pageItemFont
Definition: activitydialog.h:68
ActivityDialog::GeneralPageWidgets::typeLE
KLineEdit * typeLE
Definition: activitydialog.h:61
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
ActivityDialog::m_pView
UMLView * m_pView
the diagram the widget is on
Definition: activitydialog.h:56
ActivityDialog::GeneralPageWidgets::preL
QLabel * preL
Definition: activitydialog.h:60
ActivityDialog::GeneralPageWidgets::nameLE
KLineEdit * nameLE
Definition: activitydialog.h:61
ActivityDialog::pageItemStyle
KPageWidgetItem * pageItemStyle
Definition: activitydialog.h:68
DocumentationWidget
Definition: documentationwidget.h:27
ActivityDialog::GeneralPageWidgets::ParamRB
QRadioButton * ParamRB
Definition: activitydialog.h:63
ActivityDialog::GeneralPageWidgets::postLE
KLineEdit * postLE
Definition: activitydialog.h:61
icon_utils.h
ActivityWidget::preconditionText
QString preconditionText() const
Definition: activitywidget.cpp:120
MultiPageDialogBase::setCaption
void setCaption(const QString &caption)
Definition: multipagedialogbase.cpp:162
MultiPageDialogBase::spacingHint
static int spacingHint()
Definition: multipagedialogbase.cpp:214
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
ActivityWidget::activityType
ActivityType activityType() const
Definition: activitywidget.cpp:58
ActivityDialog::slotHideActivityParameter
void slotHideActivityParameter()
Definition: activitydialog.cpp:82
ActivityWidget::ActivityType
ActivityType
Definition: activitywidget.h:39
ActivityWidget::postconditionText
QString postconditionText() const
Definition: activitywidget.cpp:138
ActivityWidget::setActivityType
void setActivityType(ActivityType activityType)
Definition: activitywidget.cpp:74
ActivityDialog::setupGeneralPage
void setupGeneralPage()
Definition: activitydialog.cpp:134
MultiPageDialogBase::currentPage
KPageWidgetItem * currentPage()
Definition: multipagedialogbase.cpp:185