umbrello  2.31.90
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
associationgeneralpage.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) 2003-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef ASSOCIATIONGENERALPAGE_H
12 #define ASSOCIATIONGENERALPAGE_H
13 
14 #include "basictypes.h"
15 #include "dialogpagebase.h"
16 
17 #include <QList>
18 #include <QWidget>
19 
20 class AssociationWidget;
22 class QCheckBox;
23 class QGridLayout;
24 class QLabel;
25 class KComboBox;
26 class KLineEdit;
27 class ObjectWidget;
28 class UMLDoc;
29 class UMLObject;
30 
40 {
41  Q_OBJECT
42 public:
43  AssociationGeneralPage(QWidget *parent, AssociationWidget *a);
45 
46  void apply();
47 
48 private:
49  QGridLayout *m_pNameAndTypeLayout;
50  QLabel *m_pAssocNameL;
51  KLineEdit *m_pAssocNameLE; // is used if m_pStereoChkB is unchecked
52  KComboBox *m_pAssocNameComB; // is used if m_pStereoChkB is checked
53  QCheckBox *m_pStereoChkB;
54  KComboBox *m_pTypeCB;
55 
56  /* Choices for the QComboBox, and we store ints and strings
57  so we can translate both ways */
58  QList<Uml::AssociationType::Enum> m_AssocTypes;
59  QStringList m_AssocTypeStrings;
61 
64 
65  void constructWidget();
66 
67 public slots:
68  void slotStereoCheckboxChanged(int state);
69 
70 };
71 
72 #endif
Display properties on a UMLObject.
Definition: associationgeneralpage.h:40
QGridLayout * m_pNameAndTypeLayout
Definition: associationgeneralpage.h:49
QLabel * m_pAssocNameL
Definition: associationgeneralpage.h:50
QStringList m_AssocTypeStrings
Definition: associationgeneralpage.h:59
AssociationWidget * m_pAssociationWidget
Definition: associationgeneralpage.h:62
KComboBox * m_pAssocNameComB
Definition: associationgeneralpage.h:52
void apply()
Definition: associationgeneralpage.cpp:211
ObjectWidget * m_pWidget
Definition: associationgeneralpage.h:63
KComboBox * m_pTypeCB
Definition: associationgeneralpage.h:54
QList< Uml::AssociationType::Enum > m_AssocTypes
Definition: associationgeneralpage.h:58
QCheckBox * m_pStereoChkB
Definition: associationgeneralpage.h:53
DocumentationWidget * m_docWidget
Definition: associationgeneralpage.h:60
~AssociationGeneralPage()
Definition: associationgeneralpage.cpp:63
AssociationGeneralPage(QWidget *parent, AssociationWidget *a)
Definition: associationgeneralpage.cpp:47
void slotStereoCheckboxChanged(int state)
Definition: associationgeneralpage.cpp:187
void constructWidget()
Definition: associationgeneralpage.cpp:70
KLineEdit * m_pAssocNameLE
Definition: associationgeneralpage.h:51
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
Definition: dialogpagebase.h:25
Definition: documentationwidget.h:27
Displays an instance of a Concept.
Definition: objectwidget.h:33
Definition: umldoc.h:75
The base class for UML objects.
Definition: umlobject.h:75
QString a
Definition: petalnode.cpp:18