umbrello  2.32.2
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  * 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) 2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef STEREOATTRIBUTEDIALOG_H
12 #define STEREOATTRIBUTEDIALOG_H
13 
14 #include "singlepagedialogbase.h"
15 #include "n_stereoattrs.h"
16 
17 class QGroupBox;
18 class QLabel;
19 class KLineEdit;
20 class QComboBox;
21 class UMLStereotype;
22 
28 {
29  Q_OBJECT
30 public:
31  StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype);
32  virtual ~StereoAttributeDialog();
33 
34 protected:
35  void setupDialog();
36  bool apply();
37 
42 
43  //GUI Widgets
44  QGroupBox * m_pValuesGB;
46  KLineEdit * m_pNameEdit [N_STEREOATTRS];
48  QComboBox * m_pTypeCombo [N_STEREOATTRS];
51 
52 };
53 
54 #endif
stereotype.h
UMLStereotype::getAttributeDefs
const AttributeDefs & getAttributeDefs() const
Definition: stereotype.cpp:114
StereoAttributeDialog::apply
bool apply()
Definition: stereoattributedialog.cpp:114
Uml::PrimitiveTypes::toString
QString toString(Enum item)
Definition: basictypes.cpp:896
StereoAttributeDialog::~StereoAttributeDialog
virtual ~StereoAttributeDialog()
Definition: stereoattributedialog.cpp:46
SinglePageDialogBase
Definition: singlepagedialogbase.h:34
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:52
UMLStereotype::name
QString name(bool includeAdornments=false) const
Definition: stereotype.cpp:229
singlepagedialogbase.h
StereoAttributeDialog::m_pStereotype
UMLStereotype * m_pStereotype
Definition: stereoattributedialog.h:41
StereoAttributeDialog::setupDialog
void setupDialog()
Definition: stereoattributedialog.cpp:53
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:40
UMLStereotype::AttributeDef::defaultVal
QString defaultVal
Definition: stereotype.h:75
i18n
#define i18n
Definition: main.cpp:39
StereoAttributeDialog
Definition: stereoattributedialog.h:27
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLStereotype::AttributeDef::name
QString name
Definition: stereotype.h:73
StereoAttributeDialog::m_pTypeCombo
QComboBox * m_pTypeCombo[N_STEREOATTRS]
Definition: stereoattributedialog.h:48
Uml::PrimitiveTypes::n_types
const int n_types
Definition: basictypes.h:309
UMLStereotype::AttributeDef
Definition: stereotype.h:70
StereoAttributeDialog::StereoAttributeDialog
StereoAttributeDialog(QWidget *parent, UMLStereotype *stereotype)
Definition: stereoattributedialog.cpp:38
StereoAttributeDialog::m_pNameEdit
KLineEdit * m_pNameEdit[N_STEREOATTRS]
Definition: stereoattributedialog.h:46
uml.h
debug_utils.h
StereoAttributeDialog::m_pTypeLabel
QLabel * m_pTypeLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:47
UMLStereotype::clearAttributeDefs
void clearAttributeDefs()
Definition: stereotype.cpp:98
StereoAttributeDialog::m_pDefaultValueLabel
QLabel * m_pDefaultValueLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:49
n_stereoattrs.h
dialog_utils.h
UMLStereotype::setAttributeDefs
void setAttributeDefs(const AttributeDefs &adefs)
Definition: stereotype.cpp:106
UMLStereotype::AttributeDefs
QVector< AttributeDef > AttributeDefs
size is at most N_STEREOATTRS
Definition: stereotype.h:82
Uml::PrimitiveTypes::Enum
Enum
Definition: basictypes.h:300
UMLStereotype::AttributeDef::type
Uml::PrimitiveTypes::Enum type
Definition: stereotype.h:74
umldoc.h
StereoAttributeDialog::m_pDefaultValueEdit
KLineEdit * m_pDefaultValueEdit[N_STEREOATTRS]
Definition: stereoattributedialog.h:50
N_STEREOATTRS
#define N_STEREOATTRS
Definition: n_stereoattrs.h:15
stereoattributedialog.h
StereoAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: stereoattributedialog.h:44
StereoAttributeDialog::m_pNameLabel
QLabel * m_pNameLabel[N_STEREOATTRS]
Definition: stereoattributedialog.h:45