umbrello: umbrello/dialogs/umlattributedialog.h Source File

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

umlattributedialog.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 UMLATTRIBUTEDIALOG_H
12 #define UMLATTRIBUTEDIALOG_H
13
14 #include "singlepagedialogbase.h"
15
16 class DocumentationWidget;
17 class QCheckBox;
18 class QGroupBox;
19 class QRadioButton;
20 class QLabel;
21 class UMLAttribute;
22 class KLineEdit;
23 class UMLDatatypeWidget;
24 class UMLStereotypeWidget;
25 class VisibilityEnumWidget;
26
31 class UMLAttributeDialog : public SinglePageDialogBase
32 {
33 Q_OBJECT
34 public:
35 UMLAttributeDialog(QWidget * pParent, UMLAttribute * pAttribute);
36 ~UMLAttributeDialog();
37
38 protected:
39 void setupDialog();
40 bool apply();
41
45 UMLAttribute * m_pAttribute;
46
47 //GUI Widgets
48 QGroupBox * m_pValuesGB;
49 QLabel * m_pNameL, * m_pInitialL;
50 KLineEdit * m_pNameLE, * m_pInitialLE;
51 QCheckBox* m_pStaticCB;
52 UMLDatatypeWidget *m_datatypeWidget;
53 UMLStereotypeWidget *m_stereotypeWidget;
54 VisibilityEnumWidget *m_visibilityEnumWidget;
55 DocumentationWidget *m_docWidget;
56
57 public slots:
58 void slotNameChanged(const QString &);
59 };
60
61 #endif
UMLAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlattributedialog.h:49
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
template.h
UMLAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlattributedialog.h:50
VisibilityEnumWidget::addToLayout
void addToLayout(QVBoxLayout *layout)
Definition: visibilityenumwidget.cpp:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1309
UMLDatatypeWidget::apply
bool apply()
Definition: umldatatypewidget.cpp:103
umlattributedialog.h
UMLAttributeDialog::apply
bool apply()
Definition: umlattributedialog.cpp:112
UMLObject::setStatic
void setStatic(bool bStatic)
Definition: umlobject.cpp:374
UMLAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlattributedialog.h:49
UMLAttribute::getInitialValue
QString getInitialValue() const
Definition: attribute.cpp:99
UMLAttributeDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umlattributedialog.h:53
documentationwidget.h
object_factory.h
Settings::ClassState::defaultAttributeScope
Uml::Visibility::Enum defaultAttributeScope
Definition: optionstate.h:139
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:670
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:366
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
UMLAttributeDialog::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: umlattributedialog.h:54
umldatatypewidget.h
UMLAttributeDialog
Definition: umlattributedialog.h:32
UMLAttribute::setName
void setName(const QString &name)
Definition: attribute.cpp:76
singlepagedialogbase.h
UMLAttributeDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition: umlattributedialog.h:51
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
import_utils.h
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:370
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
UMLAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlattributedialog.h:50
UMLAttributeDialog::setupDialog
void setupDialog()
Definition: umlattributedialog.cpp:60
UMLStereotypeWidget::apply
void apply()
Definition: umlstereotypewidget.cpp:48
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
attribute.h
i18n
#define i18n
Definition: main.cpp:39
visibilityenumwidget.h
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
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLAttributeDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition: umlattributedialog.h:55
UMLCanvasObject::findChildObject
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Definition: umlcanvasobject.cpp:238
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:337
classifier.h
UMLAttributeDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umlattributedialog.h:52
DocumentationWidget
Definition: documentationwidget.h:27
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlattributedialog.cpp:103
UMLAttributeDialog::m_pAttribute
UMLAttribute * m_pAttribute
Definition: umlattributedialog.h:45
UMLAttributeDialog::~UMLAttributeDialog
~UMLAttributeDialog()
Definition: umlattributedialog.cpp:53
VisibilityEnumWidget::apply
void apply()
Definition: visibilityenumwidget.cpp:78
umlstereotypewidget.h
dialog_utils.h
UMLAttributeDialog::UMLAttributeDialog
UMLAttributeDialog(QWidget *pParent, UMLAttribute *pAttribute)
Definition: umlattributedialog.cpp:45
UMLAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlattributedialog.h:48
umldoc.h