umbrello: umbrello/dialogs/parameterpropertiesdialog.h Source File

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

parameterpropertiesdialog.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 PARAMETERPROPERTIESDIALOG_H
12 #define PARAMETERPROPERTIESDIALOG_H
13
14 #include "basictypes.h"
15
16 #include "singlepagedialogbase.h"
17
18 class DocumentationWidget;
19 class DefaultValueWidget;
20 class KComboBox;
21 class KLineEdit;
22 class QGroupBox;
23 class QLabel;
24 class QRadioButton;
25 class UMLAttribute;
26 class UMLDoc;
27 class UMLDatatypeWidget;
28 class UMLStereotypeWidget;
29
39 class ParameterPropertiesDialog : public SinglePageDialogBase
40 {
41 Q_OBJECT
42 public:
43
44 ParameterPropertiesDialog(QWidget * parent, UMLDoc * doc, UMLAttribute * attr);
45 ~ParameterPropertiesDialog();
46
47 virtual bool apply();
48
49 protected:
50 QString getName();
51 QString getInitialValue();
52 Uml::ParameterDirection::Enum getParmKind();
53 virtual bool validate();
54
55 private:
56 QGroupBox * m_pParmGB;
57 QGroupBox * m_pKindGB;
58 QRadioButton * m_pIn, * m_pOut, *m_pInOut;
59 QLabel * m_pNameL;
60 KLineEdit * m_pNameLE;
61 DefaultValueWidget * m_defaultValueWidget;
62 DocumentationWidget * m_docWidget;
63 UMLDoc * m_pUmldoc;
64 UMLAttribute * m_pAtt;
65 UMLDatatypeWidget *m_datatypeWidget;
66 UMLStereotypeWidget *m_stereotypeWidget;
67 };
68
69 #endif
template.h
defaultvaluewidget.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
ParameterPropertiesDialog::m_pParmGB
QGroupBox * m_pParmGB
Definition: parameterpropertiesdialog.h:56
UMLDatatypeWidget::apply
bool apply()
Definition: umldatatypewidget.cpp:103
Uml::ParameterDirection::In
@ In
Definition: basictypes.h:257
stereotype.h
ParameterPropertiesDialog::apply
virtual bool apply()
Definition: parameterpropertiesdialog.cpp:173
UMLAttribute::setParmKind
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:117
ParameterPropertiesDialog::~ParameterPropertiesDialog
~ParameterPropertiesDialog()
Definition: parameterpropertiesdialog.cpp:129
ParameterPropertiesDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: parameterpropertiesdialog.h:60
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:102
UMLAttribute::getInitialValue
QString getInitialValue() const
Definition: attribute.cpp:99
ParameterPropertiesDialog::m_pIn
QRadioButton * m_pIn
Definition: parameterpropertiesdialog.h:58
ParameterPropertiesDialog::validate
virtual bool validate()
Definition: parameterpropertiesdialog.cpp:162
documentationwidget.h
object_factory.h
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:256
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
ParameterPropertiesDialog::getParmKind
Uml::ParameterDirection::Enum getParmKind()
Definition: parameterpropertiesdialog.cpp:148
ParameterPropertiesDialog::m_pNameL
QLabel * m_pNameL
Definition: parameterpropertiesdialog.h:59
ParameterPropertiesDialog::m_defaultValueWidget
DefaultValueWidget * m_defaultValueWidget
Definition: parameterpropertiesdialog.h:61
umldatatypewidget.h
ParameterPropertiesDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: parameterpropertiesdialog.h:65
UMLAttribute::setName
void setName(const QString &name)
Definition: attribute.cpp:76
singlepagedialogbase.h
ParameterPropertiesDialog::m_pOut
QRadioButton * m_pOut
Definition: parameterpropertiesdialog.h:58
ParameterPropertiesDialog::getInitialValue
QString getInitialValue()
Definition: parameterpropertiesdialog.cpp:138
ParameterPropertiesDialog::m_pAtt
UMLAttribute * m_pAtt
Definition: parameterpropertiesdialog.h:64
Uml::ParameterDirection::InOut
@ InOut
Definition: basictypes.h:258
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Definition: dialog_utils.cpp:52
UMLAttribute::setInitialValue
void setInitialValue(const QString &iv)
Definition: attribute.cpp:109
UMLAttribute::getParmKind
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
UMLStereotypeWidget::apply
void apply()
Definition: umlstereotypewidget.cpp:48
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
attribute.h
ParameterPropertiesDialog::getName
QString getName()
Definition: parameterpropertiesdialog.cpp:133
DefaultValueWidget
Definition: defaultvaluewidget.h:31
i18n
#define i18n
Definition: main.cpp:39
basictypes.h
DefaultValueWidget::value
QString value() const
Definition: defaultvaluewidget.cpp:164
Uml::ParameterDirection::Out
@ Out
Definition: basictypes.h:259
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
UMLDoc
Definition: umldoc.h:75
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
ParameterPropertiesDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: parameterpropertiesdialog.h:66
classifier.h
DocumentationWidget
Definition: documentationwidget.h:27
parameterpropertiesdialog.h
debug_utils.h
ParameterPropertiesDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition: parameterpropertiesdialog.h:62
umlstereotypewidget.h
ParameterPropertiesDialog::ParameterPropertiesDialog
ParameterPropertiesDialog(QWidget *parent, UMLDoc *doc, UMLAttribute *attr)
Definition: parameterpropertiesdialog.cpp:50
ParameterPropertiesDialog::m_pKindGB
QGroupBox * m_pKindGB
Definition: parameterpropertiesdialog.h:57
DefaultValueWidget::addToLayout
void addToLayout(QGridLayout *layout, int row)
Definition: defaultvaluewidget.cpp:153
dialog_utils.h
umltemplatelist.h
umldoc.h
ParameterPropertiesDialog::m_pUmldoc
UMLDoc * m_pUmldoc
Definition: parameterpropertiesdialog.h:63
ParameterPropertiesDialog
A properties dialog box for a parameter.
Definition: parameterpropertiesdialog.h:40
ParameterPropertiesDialog::m_pInOut
QRadioButton * m_pInOut
Definition: parameterpropertiesdialog.h:58