umbrello  2.32.0
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 
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;
29 
40 {
41  Q_OBJECT
42 public:
43 
44  ParameterPropertiesDialog(QWidget * parent, UMLDoc * doc, UMLAttribute * attr);
46 
47  virtual bool apply();
48 
49 protected:
50  QString getName();
51  QString getInitialValue();
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;
67 };
68 
69 #endif
KLineEdit * m_pNameLE
Definition: parameterpropertiesdialog.h:60
UMLAttribute * m_pAtt
Definition: parameterpropertiesdialog.h:64
DocumentationWidget * m_docWidget
Definition: parameterpropertiesdialog.h:62
Sets up attribute information.
Definition: attribute.h:27
QRadioButton * m_pInOut
Definition: parameterpropertiesdialog.h:58
QGroupBox * m_pKindGB
Definition: parameterpropertiesdialog.h:57
UMLDatatypeWidget * m_datatypeWidget
Definition: parameterpropertiesdialog.h:65
virtual bool apply()
Definition: parameterpropertiesdialog.cpp:173
Uml::ParameterDirection::Enum getParmKind()
Definition: parameterpropertiesdialog.cpp:148
QRadioButton * m_pIn
Definition: parameterpropertiesdialog.h:58
QString getName()
Definition: parameterpropertiesdialog.cpp:133
Definition: umldatatypewidget.h:23
UMLStereotypeWidget * m_stereotypeWidget
Definition: parameterpropertiesdialog.h:66
virtual bool validate()
Definition: parameterpropertiesdialog.cpp:162
DefaultValueWidget * m_defaultValueWidget
Definition: parameterpropertiesdialog.h:61
Definition: documentationwidget.h:26
Definition: singlepagedialogbase.h:34
A properties dialog box for a parameter.
Definition: parameterpropertiesdialog.h:39
QGroupBox * m_pParmGB
Definition: parameterpropertiesdialog.h:56
UMLDoc * m_pUmldoc
Definition: parameterpropertiesdialog.h:63
Definition: defaultvaluewidget.h:30
ParameterPropertiesDialog(QWidget *parent, UMLDoc *doc, UMLAttribute *attr)
Definition: parameterpropertiesdialog.cpp:50
QLabel * m_pNameL
Definition: parameterpropertiesdialog.h:59
Enum
Definition: basictypes.h:256
QRadioButton * m_pOut
Definition: parameterpropertiesdialog.h:58
~ParameterPropertiesDialog()
Definition: parameterpropertiesdialog.cpp:129
QString getInitialValue()
Definition: parameterpropertiesdialog.cpp:138
Definition: umlstereotypewidget.h:19
Definition: umldoc.h:74