umbrello  2.31.90
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
classgeneralpage.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 CLASSGENERALPAGE_H
12 #define CLASSGENERALPAGE_H
13 
14 #include "dialogpagebase.h"
15 #include "n_stereoattrs.h"
16 
18 class QGroupBox;
19 class QGridLayout;
20 class QLabel;
21 class QRadioButton;
22 class QCheckBox;
23 class QLineEdit;
24 class KComboBox;
25 class KLineEdit;
26 
27 class UMLObject;
28 class UMLWidget;
29 class ObjectWidget;
30 class UMLDoc;
33 class UMLPackageWidget;
36 
46 {
47  Q_OBJECT
48 public:
49 
56  ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject * o);
57 
64  ClassGeneralPage(UMLDoc *d, QWidget *parent, ObjectWidget * o);
65 
74  ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLWidget* widget);
75 
80 
81  void apply();
82 
83 private:
88 
89  QGridLayout * m_pNameLayout;
91  QCheckBox * m_pExecutableCB;
97  KLineEdit *m_pTagLE[N_STEREOATTRS];
101 
102  void insertStereotypesSorted(const QString& type);
103  void setInstanceWidgetNameIfApplicable(const QString& name) const;
104 
105 public slots:
106  void slotStereoTextChanged(const QString &);
107  void slotActorToggled(bool state);
108 };
109 
110 #endif
Display properties on a UMLObject.
Definition: classgeneralpage.h:46
QCheckBox * m_pDrawActorCB
Definition: classgeneralpage.h:90
QLabel * m_pTagL[N_STEREOATTRS]
Definition: classgeneralpage.h:96
UMLWidget * m_pInstanceWidget
Definition: classgeneralpage.h:86
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: classgeneralpage.h:100
UMLStereotypeWidget * m_stereotypeWidget
Definition: classgeneralpage.h:95
void insertStereotypesSorted(const QString &type)
ObjectWidget * m_pWidget
Definition: classgeneralpage.h:85
ClassGeneralPage(UMLDoc *d, QWidget *parent, UMLObject *o)
Definition: classgeneralpage.cpp:57
UMLObjectNameWidget * m_nameWidget
Definition: classgeneralpage.h:93
UMLObjectNameWidget * m_instanceNameWidget
Definition: classgeneralpage.h:94
QCheckBox * m_pDeconCB
Definition: classgeneralpage.h:90
void slotActorToggled(bool state)
Definition: classgeneralpage.cpp:415
QCheckBox * m_pAbstractCB
Definition: classgeneralpage.h:90
UMLDoc * m_pUmldoc
Definition: classgeneralpage.h:87
UMLArtifactTypeWidget * m_artifactTypeWidget
Definition: classgeneralpage.h:99
UMLPackageWidget * m_packageWidget
Definition: classgeneralpage.h:98
void setInstanceWidgetNameIfApplicable(const QString &name) const
Definition: classgeneralpage.cpp:426
QCheckBox * m_pMultiCB
Definition: classgeneralpage.h:90
void slotStereoTextChanged(const QString &)
Definition: classgeneralpage.cpp:306
QGridLayout * m_pNameLayout
Definition: classgeneralpage.h:89
KLineEdit * m_pTagLE[N_STEREOATTRS]
Definition: classgeneralpage.h:97
~ClassGeneralPage()
Definition: classgeneralpage.cpp:302
void apply()
Definition: classgeneralpage.cpp:315
UMLObject * m_pObject
Definition: classgeneralpage.h:84
QCheckBox * m_pExecutableCB
Definition: classgeneralpage.h:91
DocumentationWidget * m_docWidget
Definition: classgeneralpage.h:92
Definition: dialogpagebase.h:25
Definition: documentationwidget.h:27
Displays an instance of a Concept.
Definition: objectwidget.h:33
Definition: umlartifacttypewidget.h:24
Definition: umldoc.h:75
Definition: umlobjectnamewidget.h:22
The base class for UML objects.
Definition: umlobject.h:75
Definition: umlpackagewidget.h:24
Definition: umlstereotypewidget.h:20
The base class for graphical UML objects.
Definition: umlwidget.h:41
Definition: visibilityenumwidget.h:27
#define N_STEREOATTRS
Definition: n_stereoattrs.h:15