umbrello: umbrello/dialogs/objectnodedialog.h Source File

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

objectnodedialog.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 OBJECTNODEDIALOG_H
12 #define OBJECTNODEDIALOG_H
13
14 // local class includes
15 #include "multipagedialogbase.h"
16
17 //forward declarations
18 class DocumentationWidget;
19 class UMLView;
20 class ObjectNodeWidget;
21 class QGroupBox;
22 class QLabel;
23 class QRadioButton;
24 class KLineEdit;
25
32 class ObjectNodeDialog : public MultiPageDialogBase
33 {
34 Q_OBJECT
35 public:
36 ObjectNodeDialog(QWidget *parent, ObjectNodeWidget * pWidget);
37
38 bool getChangesMade() {
39 return m_bChangesMade;
40 }
41
42 protected slots:
43 void slotOk();
44
45 void slotApply();
46
47 void slotShowState();
48 void slotHideState();
49
50 protected:
51 void setupPages();
52
53 void setupGeneralPage();
54
55 void showState();
56
57 void applyPage(KPageWidgetItem *);
58
59 ObjectNodeWidget *m_pObjectNodeWidget;
60 UMLView *m_pView;
61 bool m_bChangesMade;
62
63 struct GeneralPageWidgets {
64 QLabel * nameL, * typeL, * stateL;
65 KLineEdit * nameLE, * typeLE, * stateLE;
66 QRadioButton * bufferRB, * dataRB, * flowRB;
67 QGroupBox * generalGB;
68 DocumentationWidget *docWidget;
69 }
70 m_GenPageWidgets;
71
72 KPageWidgetItem * pageItemGeneral, * pageItemFont, * pageItemStyle;
73 };
74
75 #endif
ObjectNodeDialog::GeneralPageWidgets::docWidget
DocumentationWidget * docWidget
Definition: objectnodedialog.h:68
MultiPageDialogBase::setupStylePage
KPageWidgetItem * setupStylePage(WidgetBase *widget)
Definition: multipagedialogbase.cpp:477
ObjectNodeWidget::Data
@ Data
Definition: objectnodewidget.h:36
MultiPageDialogBase::applyStylePage
void applyStylePage()
Definition: multipagedialogbase.cpp:498
ObjectNodeDialog::GeneralPageWidgets::dataRB
QRadioButton * dataRB
Definition: objectnodedialog.h:66
ObjectNodeWidget
A graphical version of a UML Activity.
Definition: objectnodewidget.h:29
umlview.h
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
ObjectNodeDialog::GeneralPageWidgets::typeLE
KLineEdit * typeLE
Definition: objectnodedialog.h:65
multipagedialogbase.h
ObjectNodeDialog::showState
void showState()
Definition: objectnodedialog.cpp:204
ObjectNodeWidget::setObjectNodeType
void setObjectNodeType(ObjectNodeType objectNodeType)
Definition: objectnodewidget.cpp:195
objectnodedialog.h
documentationwidget.h
ObjectNodeDialog::pageItemFont
KPageWidgetItem * pageItemFont
Definition: objectnodedialog.h:72
ObjectNodeWidget::state
QString state() const
Definition: objectnodewidget.cpp:221
ObjectNodeDialog::GeneralPageWidgets::stateL
QLabel * stateL
Definition: objectnodedialog.h:64
ObjectNodeDialog::slotApply
void slotApply()
Definition: objectnodedialog.cpp:63
MultiPageDialogBase::accept
void accept()
Definition: multipagedialogbase.cpp:173
ObjectNodeDialog::m_bChangesMade
bool m_bChangesMade
holds whether changes in the dialog have been made
Definition: objectnodedialog.h:61
ObjectNodeDialog::slotShowState
void slotShowState()
Definition: objectnodedialog.cpp:68
ObjectNodeWidget::ObjectNodeType
ObjectNodeType
Definition: objectnodewidget.h:34
MultiPageDialogBase::createPage
QFrame * createPage(const QString &name, const QString &header, Icon_Utils::IconType icon)
Definition: multipagedialogbase.cpp:325
ObjectNodeDialog::slotOk
void slotOk()
Definition: objectnodedialog.cpp:52
MultiPageDialogBase::applyClicked
void applyClicked()
MultiPageDialogBase::applyFontPage
void applyFontPage(AssociationWidget *widget)
Definition: multipagedialogbase.cpp:441
ObjectNodeDialog::GeneralPageWidgets::nameLE
KLineEdit * nameLE
Definition: objectnodedialog.h:65
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Definition: dialog_utils.cpp:52
ObjectNodeDialog::setupGeneralPage
void setupGeneralPage()
Definition: objectnodedialog.cpp:127
ObjectNodeWidget::setState
void setState(const QString &state)
Definition: objectnodewidget.cpp:212
UMLView
Definition: umlview.h:35
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
MultiPageDialogBase::okClicked
void okClicked()
ObjectNodeDialog::pageItemGeneral
KPageWidgetItem * pageItemGeneral
Definition: objectnodedialog.h:72
uWarning
#define uWarning()
Definition: debug_utils.h:124
ObjectNodeWidget::Buffer
@ Buffer
Definition: objectnodewidget.h:37
MultiPageDialogBase
Definition: multipagedialogbase.h:52
i18n
#define i18n
Definition: main.cpp:39
ObjectNodeDialog::setupPages
void setupPages()
Definition: objectnodedialog.cpp:85
MultiPageDialogBase::setupFontPage
KPageWidgetItem * setupFontPage(const QFont &font)
Definition: multipagedialogbase.cpp:400
types
Definition: types.py:1
ObjectNodeDialog::GeneralPageWidgets::flowRB
QRadioButton * flowRB
Definition: objectnodedialog.h:66
ObjectNodeDialog::getChangesMade
bool getChangesMade()
Definition: objectnodedialog.h:38
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
ObjectNodeDialog
Definition: objectnodedialog.h:33
ObjectNodeWidget::Normal
@ Normal
Definition: objectnodewidget.h:35
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
ObjectNodeWidget::Flow
@ Flow
Definition: objectnodewidget.h:38
ObjectNodeDialog::slotHideState
void slotHideState()
Definition: objectnodedialog.cpp:76
ObjectNodeDialog::GeneralPageWidgets::nameL
QLabel * nameL
Definition: objectnodedialog.h:64
DocumentationWidget
Definition: documentationwidget.h:27
ObjectNodeDialog::pageItemStyle
KPageWidgetItem * pageItemStyle
Definition: objectnodedialog.h:72
ObjectNodeDialog::m_pView
UMLView * m_pView
the diagram the widget is on
Definition: objectnodedialog.h:60
ObjectNodeDialog::GeneralPageWidgets::stateLE
KLineEdit * stateLE
Definition: objectnodedialog.h:65
ObjectNodeDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: objectnodedialog.cpp:95
debug_utils.h
icon_utils.h
ObjectNodeDialog::GeneralPageWidgets
Definition: objectnodedialog.h:63
MultiPageDialogBase::setCaption
void setCaption(const QString &caption)
Definition: multipagedialogbase.cpp:162
objectnodewidget.h
MultiPageDialogBase::spacingHint
static int spacingHint()
Definition: multipagedialogbase.cpp:214
ObjectNodeDialog::GeneralPageWidgets::generalGB
QGroupBox * generalGB
Definition: objectnodedialog.h:67
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
dialog_utils.h
ObjectNodeDialog::GeneralPageWidgets::typeL
QLabel * typeL
Definition: objectnodedialog.h:64
ObjectNodeWidget::objectNodeType
ObjectNodeType objectNodeType() const
Definition: objectnodewidget.cpp:171
ObjectNodeDialog::ObjectNodeDialog
ObjectNodeDialog(QWidget *parent, ObjectNodeWidget *pWidget)
Definition: objectnodedialog.cpp:38
ObjectNodeDialog::GeneralPageWidgets::bufferRB
QRadioButton * bufferRB
Definition: objectnodedialog.h:66
ObjectNodeDialog::m_pObjectNodeWidget
ObjectNodeWidget * m_pObjectNodeWidget
the widget to represent
Definition: objectnodedialog.h:59
ObjectNodeDialog::m_GenPageWidgets
struct ObjectNodeDialog::GeneralPageWidgets m_GenPageWidgets
MultiPageDialogBase::currentPage
KPageWidgetItem * currentPage()
Definition: multipagedialogbase.cpp:185