umbrello: umbrello/dialogs/pages/classoptionspage.h Source File

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

classoptionspage.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
12 #ifndef CLASSOPTIONSPAGE_H
13 #define CLASSOPTIONSPAGE_H
14
15 #include "optionstate.h"
16
17 #include <QWidget>
18
19 class ClassifierWidget;
20 class EntityWidget;
21 class UMLScene;
22 class KComboBox;
23 class QCheckBox;
24 class QGroupBox;
25 class QLabel;
26
39 class ClassOptionsPage : public QWidget
40 {
41 public:
42 ClassOptionsPage(QWidget* pParent, ClassifierWidget* pWidget);
43 ClassOptionsPage(QWidget* pParent, UMLScene *scene);
44 ClassOptionsPage(QWidget* pParent, Settings::OptionState *options, bool isDiagram=true);
45 ClassOptionsPage(QWidget* pParent, EntityWidget* widget);
46 virtual ~ClassOptionsPage();
47
48 void setDefaults();
49 void apply();
50
51 void setWidget(ClassifierWidget * pWidget);
52
53 protected:
54 void init();
55
56 void setupPage();
57 void setupPageFromScene();
58 void setupClassPageOption();
59 void setupPageFromEntityWidget();
60
61 void applyWidget();
62 void applyOptionState();
63 void applyScene();
64 void applyEntityWidget();
65
66 KComboBox * createShowStereotypeCB(QGroupBox * grpBox);
67 void insertAttribScope(const QString& type, int index = -1);
68 void insertOperationScope(const QString& type, int index = -1);
69
70 //GUI widgets
71 QGroupBox * m_visibilityGB;
72 QCheckBox * m_showVisibilityCB, * m_showAttSigCB;
73 QCheckBox * m_showOpSigCB, * m_showAttsCB, * m_showOpsCB;
74 KComboBox * m_showStereotypeCB;
75 QCheckBox * m_showPackageCB, * m_showPublicOnlyCB;
76 QCheckBox * m_showAttribAssocsCB;
77 QCheckBox * m_showDocumentationCB;
78 QCheckBox * m_drawAsCircleCB;
79
80 QGroupBox * m_scopeGB;
81 QLabel * m_attributeLabel;
82 QLabel * m_operationLabel;
83 KComboBox * m_attribScopeCB;
84 KComboBox * m_operationScopeCB;
85
86 ClassifierWidget* m_pWidget;
87 EntityWidget* m_entityWidget;
88 UMLScene* m_scene;
89 Settings::OptionState *m_options;
90 bool m_isDiagram;
91 };
92 #endif
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:40
ClassOptionsPage::m_showAttribAssocsCB
QCheckBox * m_showAttribAssocsCB
Definition: classoptionspage.h:76
ClassOptionsPage::m_showPackageCB
QCheckBox * m_showPackageCB
Definition: classoptionspage.h:75
ClassOptionsPage::m_pWidget
ClassifierWidget * m_pWidget
The classifier widget to represent in the dialog page.
Definition: classoptionspage.h:86
ClassOptionsPage::setWidget
void setWidget(ClassifierWidget *pWidget)
Definition: classoptionspage.cpp:131
ClassOptionsPage::createShowStereotypeCB
KComboBox * createShowStereotypeCB(QGroupBox *grpBox)
Definition: classoptionspage.cpp:445
ClassOptionsPage::~ClassOptionsPage
virtual ~ClassOptionsPage()
Definition: classoptionspage.cpp:91
ClassOptionsPage::m_showAttSigCB
QCheckBox * m_showAttSigCB
Definition: classoptionspage.h:72
ClassOptionsPage::m_showOpSigCB
QCheckBox * m_showOpSigCB
Definition: classoptionspage.h:73
ClassOptionsPage::applyEntityWidget
void applyEntityWidget()
Definition: classoptionspage.cpp:417
ClassOptionsPage::m_isDiagram
bool m_isDiagram
Flag indicating that page is for diagram property dialog.
Definition: classoptionspage.h:90
ClassOptionsPage::applyOptionState
void applyOptionState()
Definition: classoptionspage.cpp:380
ClassOptionsPage::m_scene
UMLScene * m_scene
The scene to represent in the dialog page.
Definition: classoptionspage.h:88
ClassOptionsPage::m_scopeGB
QGroupBox * m_scopeGB
Definition: classoptionspage.h:80
ClassOptionsPage::m_drawAsCircleCB
QCheckBox * m_drawAsCircleCB
Definition: classoptionspage.h:78
ClassOptionsPage::m_showStereotypeCB
KComboBox * m_showStereotypeCB
Definition: classoptionspage.h:74
ClassOptionsPage::setupClassPageOption
void setupClassPageOption()
Definition: classoptionspage.cpp:237
ClassOptionsPage::setupPageFromEntityWidget
void setupPageFromEntityWidget()
Definition: classoptionspage.cpp:330
ClassOptionsPage::m_entityWidget
EntityWidget * m_entityWidget
The entity widget to represent in the dialog page.
Definition: classoptionspage.h:87
ClassOptionsPage::init
void init()
Definition: classoptionspage.cpp:427
ClassOptionsPage::setDefaults
void setDefaults()
Definition: classoptionspage.cpp:95
ClassOptionsPage::applyScene
void applyScene()
Definition: classoptionspage.cpp:407
ClassOptionsPage::m_attributeLabel
QLabel * m_attributeLabel
Definition: classoptionspage.h:81
ClassOptionsPage::m_operationScopeCB
KComboBox * m_operationScopeCB
Definition: classoptionspage.h:84
ClassOptionsPage::m_showDocumentationCB
QCheckBox * m_showDocumentationCB
Definition: classoptionspage.h:77
ClassOptionsPage::m_visibilityGB
QGroupBox * m_visibilityGB
Definition: classoptionspage.h:71
ClassOptionsPage::m_operationLabel
QLabel * m_operationLabel
Definition: classoptionspage.h:82
ClassOptionsPage::m_showPublicOnlyCB
QCheckBox * m_showPublicOnlyCB
Definition: classoptionspage.h:75
ClassOptionsPage::insertOperationScope
void insertOperationScope(const QString &type, int index=-1)
Definition: classoptionspage.cpp:467
ClassOptionsPage::setupPage
void setupPage()
Definition: classoptionspage.cpp:139
ClassOptionsPage::insertAttribScope
void insertAttribScope(const QString &type, int index=-1)
Definition: classoptionspage.cpp:458
ClassOptionsPage::m_showAttsCB
QCheckBox * m_showAttsCB
Definition: classoptionspage.h:73
ClassOptionsPage::m_showOpsCB
QCheckBox * m_showOpsCB
Definition: classoptionspage.h:73
ClassOptionsPage::m_attribScopeCB
KComboBox * m_attribScopeCB
Definition: classoptionspage.h:83
ClassOptionsPage::ClassOptionsPage
ClassOptionsPage(QWidget *pParent, ClassifierWidget *pWidget)
Definition: classoptionspage.cpp:35
ClassOptionsPage::setupPageFromScene
void setupPageFromScene()
Definition: classoptionspage.cpp:215
ClassOptionsPage::apply
void apply()
Definition: classoptionspage.cpp:115
ClassOptionsPage::applyWidget
void applyWidget()
Definition: classoptionspage.cpp:356
ClassOptionsPage::m_options
Settings::OptionState * m_options
The OptionState structure to represent in the dialog page.
Definition: classoptionspage.h:89
ClassOptionsPage::m_showVisibilityCB
QCheckBox * m_showVisibilityCB
Definition: classoptionspage.h:72
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:30
Settings::OptionState
Definition: optionstate.h:315
UMLScene
Definition: umlscene.h:70
optionstate.h