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

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

umlwidgetstylepage.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#ifndef UMLWIDGETSTYLEPAGE_H
7#define UMLWIDGETSTYLEPAGE_H
8
9#include "optionstate.h"
10
11#include <QWidget>
12
13class SelectLayoutTypeWidget;
14class UMLScene;
15class WidgetBase;
16class KColorButton;
17#if QT_VERSION < 0x050000
18class KIntSpinBox;
19#endif
20class QLabel;
21class QPushButton;
22class QCheckBox;
23class QGroupBox;
24#if QT_VERSION >= 0x050000
25class QSpinBox;
26#endif
27
32 class UMLWidgetStylePage : public QWidget
33{
34 Q_OBJECT
35public:
36
37 UMLWidgetStylePage(QWidget * pParent, WidgetBase * pWidget);
38 UMLWidgetStylePage(QWidget * pParent, Settings::OptionState *options);
39 UMLWidgetStylePage(QWidget * pParent, UMLScene *scene);
40
41 virtual ~UMLWidgetStylePage();
42
43 void apply();
44
45public slots:
46
47 void slotTextButtonClicked();
48 void slotLineButtonClicked();
49 void slotFillButtonClicked();
50 void slotBackgroundButtonClicked();
51 void slotGridDotButtonClicked();
52 void slotLineWidthButtonClicked();
53
54protected:
55
56 WidgetBase * m_pUMLWidget;
57 UMLScene *m_scene;
58
59 Settings::OptionState * m_options;
60
61 //GUI widgets
62 QGroupBox * m_pColorGB;
63 QGroupBox * m_pStyleGB;
64 QLabel * m_pTextColorL;
65 QLabel * m_pLineColorL;
66 QLabel * m_pFillColorL;
67 QLabel * m_BackgroundColorL;
68 QLabel * m_GridDotColorL;
69 QLabel * m_lineWidthL;
70 QCheckBox * m_pUseFillColorCB;
71 QPushButton * m_pTextDefaultB;
72 QPushButton * m_pLineDefaultB;
73 QPushButton * m_pFillDefaultB;
74 QPushButton * m_BackgroundDefaultB;
75 QPushButton * m_GridDotDefaultB;
76 QPushButton * m_lineWidthDefaultB;
77 KColorButton * m_pTextColorB;
78 KColorButton * m_pLineColorB;
79 KColorButton * m_pFillColorB;
80 KColorButton * m_BackgroundColorB;
81 KColorButton * m_GridDotColorB;
82 SelectLayoutTypeWidget *m_layoutTypeW;
83
84#if QT_VERSION >= 0x050000
85 QSpinBox * m_lineWidthB;
86#else
87 KIntSpinBox * m_lineWidthB;
88#endif
89
90private:
91 void init();
92
93};
94
95#endif
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:14
Settings::OptionState
Definition: optionstate.h:310
UMLScene
Definition: umlscene.h:65
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:33
UMLWidgetStylePage::m_pLineDefaultB
QPushButton * m_pLineDefaultB
Definition: umlwidgetstylepage.h:72
UMLWidgetStylePage::apply
void apply()
Definition: umlwidgetstylepage.cpp:282
UMLWidgetStylePage::~UMLWidgetStylePage
virtual ~UMLWidgetStylePage()
Definition: umlwidgetstylepage.cpp:221
UMLWidgetStylePage::slotGridDotButtonClicked
void slotGridDotButtonClicked()
Definition: umlwidgetstylepage.cpp:265
UMLWidgetStylePage::m_pUseFillColorCB
QCheckBox * m_pUseFillColorCB
Definition: umlwidgetstylepage.h:70
UMLWidgetStylePage::m_GridDotColorL
QLabel * m_GridDotColorL
Definition: umlwidgetstylepage.h:68
UMLWidgetStylePage::m_pUMLWidget
WidgetBase * m_pUMLWidget
the widget to set the style for
Definition: umlwidgetstylepage.h:56
UMLWidgetStylePage::m_BackgroundDefaultB
QPushButton * m_BackgroundDefaultB
Definition: umlwidgetstylepage.h:74
UMLWidgetStylePage::slotFillButtonClicked
void slotFillButtonClicked()
Definition: umlwidgetstylepage.cpp:247
UMLWidgetStylePage::m_pTextColorL
QLabel * m_pTextColorL
Definition: umlwidgetstylepage.h:64
UMLWidgetStylePage::m_BackgroundColorL
QLabel * m_BackgroundColorL
Definition: umlwidgetstylepage.h:67
UMLWidgetStylePage::m_lineWidthL
QLabel * m_lineWidthL
Definition: umlwidgetstylepage.h:69
UMLWidgetStylePage::m_scene
UMLScene * m_scene
Definition: umlwidgetstylepage.h:57
UMLWidgetStylePage::m_pTextDefaultB
QPushButton * m_pTextDefaultB
Definition: umlwidgetstylepage.h:71
UMLWidgetStylePage::m_pTextColorB
KColorButton * m_pTextColorB
Definition: umlwidgetstylepage.h:77
UMLWidgetStylePage::m_pLineColorB
KColorButton * m_pLineColorB
Definition: umlwidgetstylepage.h:78
UMLWidgetStylePage::m_lineWidthDefaultB
QPushButton * m_lineWidthDefaultB
Definition: umlwidgetstylepage.h:76
UMLWidgetStylePage::m_lineWidthB
KIntSpinBox * m_lineWidthB
Definition: umlwidgetstylepage.h:87
UMLWidgetStylePage::m_GridDotColorB
KColorButton * m_GridDotColorB
Definition: umlwidgetstylepage.h:81
UMLWidgetStylePage::init
void init()
Definition: umlwidgetstylepage.cpp:100
UMLWidgetStylePage::slotTextButtonClicked
void slotTextButtonClicked()
Definition: umlwidgetstylepage.cpp:229
UMLWidgetStylePage::slotBackgroundButtonClicked
void slotBackgroundButtonClicked()
Definition: umlwidgetstylepage.cpp:256
UMLWidgetStylePage::m_pFillDefaultB
QPushButton * m_pFillDefaultB
Definition: umlwidgetstylepage.h:73
UMLWidgetStylePage::m_pStyleGB
QGroupBox * m_pStyleGB
Definition: umlwidgetstylepage.h:63
UMLWidgetStylePage::slotLineButtonClicked
void slotLineButtonClicked()
Definition: umlwidgetstylepage.cpp:238
UMLWidgetStylePage::m_options
Settings::OptionState * m_options
Definition: umlwidgetstylepage.h:59
UMLWidgetStylePage::slotLineWidthButtonClicked
void slotLineWidthButtonClicked()
Definition: umlwidgetstylepage.cpp:274
UMLWidgetStylePage::UMLWidgetStylePage
UMLWidgetStylePage(QWidget *pParent, WidgetBase *pWidget)
Definition: umlwidgetstylepage.cpp:38
UMLWidgetStylePage::m_pLineColorL
QLabel * m_pLineColorL
Definition: umlwidgetstylepage.h:65
UMLWidgetStylePage::m_layoutTypeW
SelectLayoutTypeWidget * m_layoutTypeW
Definition: umlwidgetstylepage.h:82
UMLWidgetStylePage::m_BackgroundColorB
KColorButton * m_BackgroundColorB
Definition: umlwidgetstylepage.h:80
UMLWidgetStylePage::m_pColorGB
QGroupBox * m_pColorGB
Definition: umlwidgetstylepage.h:62
UMLWidgetStylePage::m_GridDotDefaultB
QPushButton * m_GridDotDefaultB
Definition: umlwidgetstylepage.h:75
UMLWidgetStylePage::m_pFillColorB
KColorButton * m_pFillColorB
Definition: umlwidgetstylepage.h:79
UMLWidgetStylePage::m_pFillColorL
QLabel * m_pFillColorL
Definition: umlwidgetstylepage.h:66
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:101
optionstate.h