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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

classoptionspage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6
7#ifndef CLASSOPTIONSPAGE_H
8#define CLASSOPTIONSPAGE_H
9
10#include "optionstate.h"
11
12#include <QWidget>
13
14 class ClassifierWidget;
15 class EntityWidget;
16 class UMLScene;
17 class KComboBox;
18 class QCheckBox;
19 class QGroupBox;
20 class QLabel;
21
34 class ClassOptionsPage : public QWidget
35{
36 public:
37 ClassOptionsPage(QWidget* pParent, ClassifierWidget* pWidget);
38 ClassOptionsPage(QWidget* pParent, UMLScene *scene);
39 ClassOptionsPage(QWidget* pParent, Settings::OptionState *options, bool isDiagram=true);
40 ClassOptionsPage(QWidget* pParent, EntityWidget* widget);
41 virtual ~ClassOptionsPage();
42
43 void setDefaults();
44 void apply();
45
46 void setWidget(ClassifierWidget * pWidget);
47
48 protected:
49 void init();
50
51 void setupPage();
52 void setupPageFromScene();
53 void setupClassPageOption();
54 void setupPageFromEntityWidget();
55
56 void applyWidget();
57 void applyOptionState();
58 void applyScene();
59 void applyEntityWidget();
60
61 KComboBox * createShowStereotypeCB(QGroupBox * grpBox);
62 void insertAttribScope(const QString& type, int index = -1);
63 void insertOperationScope(const QString& type, int index = -1);
64
65 //GUI widgets
66 QGroupBox * m_visibilityGB;
67 QCheckBox * m_showVisibilityCB, * m_showAttSigCB;
68 QCheckBox * m_showOpSigCB, * m_showAttsCB, * m_showOpsCB;
69 KComboBox * m_showStereotypeCB;
70 QCheckBox * m_showPackageCB, * m_showPublicOnlyCB;
71 QCheckBox * m_showAttribAssocsCB;
72 QCheckBox * m_showDocumentationCB;
73 QCheckBox * m_drawAsCircleCB;
74
75 QGroupBox * m_scopeGB;
76 QLabel * m_attributeLabel;
77 QLabel * m_operationLabel;
78 KComboBox * m_attribScopeCB;
79 KComboBox * m_operationScopeCB;
80
81 ClassifierWidget* m_pWidget;
82 EntityWidget* m_entityWidget;
83 UMLScene* m_scene;
84 Settings::OptionState *m_options;
85 bool m_isDiagram;
86};
87#endif
ClassOptionsPage
A dialog page to display the class related options.
Definition classoptionspage.h:35
ClassOptionsPage::m_showAttribAssocsCB
QCheckBox * m_showAttribAssocsCB
Definition classoptionspage.h:71
ClassOptionsPage::m_showPackageCB
QCheckBox * m_showPackageCB
Definition classoptionspage.h:70
ClassOptionsPage::m_pWidget
ClassifierWidget * m_pWidget
The classifier widget to represent in the dialog page.
Definition classoptionspage.h:81
ClassOptionsPage::setWidget
void setWidget(ClassifierWidget *pWidget)
Definition classoptionspage.cpp:126
ClassOptionsPage::createShowStereotypeCB
KComboBox * createShowStereotypeCB(QGroupBox *grpBox)
Definition classoptionspage.cpp:434
ClassOptionsPage::~ClassOptionsPage
virtual ~ClassOptionsPage()
Definition classoptionspage.cpp:86
ClassOptionsPage::m_showAttSigCB
QCheckBox * m_showAttSigCB
Definition classoptionspage.h:67
ClassOptionsPage::m_showOpSigCB
QCheckBox * m_showOpSigCB
Definition classoptionspage.h:68
ClassOptionsPage::applyEntityWidget
void applyEntityWidget()
Definition classoptionspage.cpp:406
ClassOptionsPage::m_isDiagram
bool m_isDiagram
Flag indicating that page is for diagram property dialog.
Definition classoptionspage.h:85
ClassOptionsPage::applyOptionState
void applyOptionState()
Definition classoptionspage.cpp:369
ClassOptionsPage::m_scene
UMLScene * m_scene
The scene to represent in the dialog page.
Definition classoptionspage.h:83
ClassOptionsPage::m_scopeGB
QGroupBox * m_scopeGB
Definition classoptionspage.h:75
ClassOptionsPage::m_drawAsCircleCB
QCheckBox * m_drawAsCircleCB
Definition classoptionspage.h:73
ClassOptionsPage::m_showStereotypeCB
KComboBox * m_showStereotypeCB
Definition classoptionspage.h:69
ClassOptionsPage::setupClassPageOption
void setupClassPageOption()
Definition classoptionspage.cpp:232
ClassOptionsPage::setupPageFromEntityWidget
void setupPageFromEntityWidget()
Definition classoptionspage.cpp:319
ClassOptionsPage::m_entityWidget
EntityWidget * m_entityWidget
The entity widget to represent in the dialog page.
Definition classoptionspage.h:82
ClassOptionsPage::init
void init()
Definition classoptionspage.cpp:416
ClassOptionsPage::setDefaults
void setDefaults()
Definition classoptionspage.cpp:90
ClassOptionsPage::applyScene
void applyScene()
Definition classoptionspage.cpp:396
ClassOptionsPage::m_attributeLabel
QLabel * m_attributeLabel
Definition classoptionspage.h:76
ClassOptionsPage::m_operationScopeCB
KComboBox * m_operationScopeCB
Definition classoptionspage.h:79
ClassOptionsPage::m_showDocumentationCB
QCheckBox * m_showDocumentationCB
Definition classoptionspage.h:72
ClassOptionsPage::m_visibilityGB
QGroupBox * m_visibilityGB
Definition classoptionspage.h:66
ClassOptionsPage::m_operationLabel
QLabel * m_operationLabel
Definition classoptionspage.h:77
ClassOptionsPage::m_showPublicOnlyCB
QCheckBox * m_showPublicOnlyCB
Definition classoptionspage.h:70
ClassOptionsPage::insertOperationScope
void insertOperationScope(const QString &type, int index=-1)
Definition classoptionspage.cpp:456
ClassOptionsPage::setupPage
void setupPage()
Definition classoptionspage.cpp:134
ClassOptionsPage::insertAttribScope
void insertAttribScope(const QString &type, int index=-1)
Definition classoptionspage.cpp:447
ClassOptionsPage::m_showAttsCB
QCheckBox * m_showAttsCB
Definition classoptionspage.h:68
ClassOptionsPage::m_showOpsCB
QCheckBox * m_showOpsCB
Definition classoptionspage.h:68
ClassOptionsPage::m_attribScopeCB
KComboBox * m_attribScopeCB
Definition classoptionspage.h:78
ClassOptionsPage::ClassOptionsPage
ClassOptionsPage(QWidget *pParent, ClassifierWidget *pWidget)
Definition classoptionspage.cpp:30
ClassOptionsPage::setupPageFromScene
void setupPageFromScene()
Definition classoptionspage.cpp:210
ClassOptionsPage::apply
void apply()
Definition classoptionspage.cpp:110
ClassOptionsPage::applyWidget
void applyWidget()
Definition classoptionspage.cpp:345
ClassOptionsPage::m_options
Settings::OptionState * m_options
The OptionState structure to represent in the dialog page.
Definition classoptionspage.h:84
ClassOptionsPage::m_showVisibilityCB
QCheckBox * m_showVisibilityCB
Definition classoptionspage.h:67
ClassifierWidget
Common implementation for class widget and interface widget.
Definition classifierwidget.h:28
EntityWidget
A graphical version of an entity.
Definition entitywidget.h:25
Settings::OptionState
Definition optionstate.h:308
UMLScene
Definition umlscene.h:65
optionstate.h