umbrello  2.35.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
stereoattributedialog.h
Go to the documentation of this file.
1 /*
2  SPDX-License-Identifier: GPL-2.0-or-later
3 
4  SPDX-FileCopyrightText: 2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
5 */
6 
7 #ifndef STEREOATTRIBUTEDIALOG_H
8 #define STEREOATTRIBUTEDIALOG_H
9 
10 #include "singlepagedialogbase.h"
11 #include "n_stereoattrs.h"
12 
13 class QGroupBox;
14 class QLabel;
15 class KLineEdit;
16 class QComboBox;
17 class UMLStereotype;
18 
24 {
25  Q_OBJECT
26 public:
27  StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype);
28  virtual ~StereoAttributeDialog();
29 
30 protected:
31  void setupDialog();
32  bool apply();
33 
38 
39  //GUI Widgets
40  QGroupBox * m_pValuesGB;
42  KLineEdit * m_pNameEdit [N_STEREOATTRS];
44  QComboBox * m_pTypeCombo [N_STEREOATTRS];
47 
48 };
49 
50 #endif
DEBUG_REGISTER
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:129
logDebug1
#define logDebug1(s, a)
Definition: uml.h:541
stereotype.h
UMLStereotype::getAttributeDefs
const AttributeDefs & getAttributeDefs() const
Definition: stereotype.cpp:111
StereoAttributeDialog::apply
bool apply()
Definition: stereoattributedialog.cpp:112
Uml::PrimitiveTypes::toString
QString toString(Enum item)
Definition: basictypes.cpp:867
StereoAttributeDialog::~StereoAttributeDialog
virtual ~StereoAttributeDialog()
Definition: stereoattributedialog.cpp:44
SinglePageDialogBase
Definition: singlepagedialogbase.h:29
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText, int columnOffset)
Definition: dialog_utils.cpp:48
UMLStereotype::name
QString name(bool includeAdornments=false) const
Definition: stereotype.cpp:232
singlepagedialogbase.h
StereoAttributeDialog::m_pStereotype
UMLStereotype * m_pStereotype
Definition: stereoattributedialog.h:37
StereoAttributeDialog::setupDialog
void setupDialog()
Definition: stereoattributedialog.cpp:51
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:35
UMLStereotype::AttributeDef::defaultVal
QString defaultVal
Definition: stereotype.h:62
i18n
#define i18n
Definition: main.cpp:35
StereoAttributeDialog
Definition: stereoattributedialog.h:23
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
UMLStereotype::AttributeDef::name
QString name
Definition: stereotype.h:60
StereoAttributeDialog::m_pTypeCombo
QComboBox * m_pTypeCombo[N_STEREOATTRS]
Definition: stereoattributedialog.h:44
Uml::PrimitiveTypes::n_types
const int n_types
Definition: basictypes.h:278
UMLStereotype::AttributeDef
Definition: stereotype.h:57
StereoAttributeDialog::StereoAttributeDialog
StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype)
Definition: stereoattributedialog.cpp:36
StereoAttributeDialog::m_pNameEdit
KLineEdit * m_pNameEdit[N_STEREOATTRS]
Definition: stereoattributedialog.h:42
uml.h
debug_utils.h
StereoAttributeDialog::m_pTypeLabel
QLabel * m_pTypeLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:43
UMLStereotype::clearAttributeDefs
void clearAttributeDefs()
Definition: stereotype.cpp:95
StereoAttributeDialog::m_pDefaultValueLabel
QLabel * m_pDefaultValueLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:45
n_stereoattrs.h
dialog_utils.h
UMLStereotype::setAttributeDefs
void setAttributeDefs(const AttributeDefs &adefs)
Definition: stereotype.cpp:103
UMLStereotype::AttributeDefs
QVector< AttributeDef > AttributeDefs
size is at most N_STEREOATTRS
Definition: stereotype.h:69
Uml::PrimitiveTypes::Enum
Enum
Definition: basictypes.h:269
UMLStereotype::AttributeDef::type
Uml::PrimitiveTypes::Enum type
Definition: stereotype.h:61
umldoc.h
StereoAttributeDialog::m_pDefaultValueEdit
KLineEdit * m_pDefaultValueEdit[N_STEREOATTRS]
Definition: stereoattributedialog.h:46
N_STEREOATTRS
#define N_STEREOATTRS
Definition: n_stereoattrs.h:11
stereoattributedialog.h
StereoAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: stereoattributedialog.h:40
StereoAttributeDialog::m_pNameLabel
QLabel * m_pNameLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:41