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

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

uioptionspage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UIOPTIONSPAGE_H
7#define UIOPTIONSPAGE_H
8
9#include "dialogpagebase.h"
10
11namespace Settings {
12 class OptionState;
13}
14
15class SelectLayoutTypeWidget;
16
17class KColorButton;
18class KComboBox;
19class KIntSpinBox;
20
21class QCheckBox;
22class QGroupBox;
23class QSpinBox;
24class QLabel;
25
36 class UIOptionsPage : public DialogPageBase
37{
38 Q_OBJECT
39public:
40 UIOptionsPage(QWidget* parent, Settings::OptionState *options);
41 virtual ~UIOptionsPage();
42
43 void setDefaults();
44 void apply();
45
46protected:
47 Settings::OptionState *m_options;
48
49 QCheckBox * m_rightToLeftUI;
50 QGroupBox * m_colorGB;
51 QCheckBox * m_textColorCB;
52 QCheckBox * m_lineColorCB;
53 QCheckBox * m_fillColorCB;
54 QCheckBox * m_lineWidthCB;
55 QCheckBox * m_gridColorCB;
56 QCheckBox * m_bgColorCB;
57 KColorButton * m_textColorB;
58 KColorButton * m_lineColorB;
59 KColorButton * m_fillColorB;
60 KColorButton * m_gridColorB;
61 KColorButton * m_bgColorB;
62#if QT_VERSION >= 0x050000
63 QSpinBox * m_lineWidthB;
64#else
65 KIntSpinBox * m_lineWidthB;
66#endif
67 QCheckBox * m_useFillColorCB;
68 QCheckBox *m_angularLinesCB;
69 SelectLayoutTypeWidget *m_layoutTypeW;
70 void setupPage();
71
72protected slots:
73 void slotTextCBChecked(bool value);
74 void slotLineCBChecked(bool value);
75 void slotFillCBChecked(bool value);
76 void slotGridCBChecked(bool value);
77 void slotBgCBChecked(bool value);
78 void slotLineWidthCBChecked(bool value);
79};
80#endif
DialogPageBase
Definition: dialogpagebase.h:20
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:14
Settings::OptionState
Definition: optionstate.h:310
UIOptionsPage
A dialog page to display the user interface options.
Definition: uioptionspage.h:37
UIOptionsPage::m_lineWidthCB
QCheckBox * m_lineWidthCB
Definition: uioptionspage.h:54
UIOptionsPage::m_lineColorCB
QCheckBox * m_lineColorCB
Definition: uioptionspage.h:52
UIOptionsPage::m_rightToLeftUI
QCheckBox * m_rightToLeftUI
Definition: uioptionspage.h:49
UIOptionsPage::m_lineColorB
KColorButton * m_lineColorB
Definition: uioptionspage.h:58
UIOptionsPage::slotLineWidthCBChecked
void slotLineWidthCBChecked(bool value)
Definition: uioptionspage.cpp:250
UIOptionsPage::m_colorGB
QGroupBox * m_colorGB
Definition: uioptionspage.h:50
UIOptionsPage::m_lineWidthB
KIntSpinBox * m_lineWidthB
Definition: uioptionspage.h:65
UIOptionsPage::slotBgCBChecked
void slotBgCBChecked(bool value)
Definition: uioptionspage.cpp:238
UIOptionsPage::UIOptionsPage
UIOptionsPage(QWidget *parent, Settings::OptionState *options)
Definition: uioptionspage.cpp:34
UIOptionsPage::slotLineCBChecked
void slotLineCBChecked(bool value)
Definition: uioptionspage.cpp:204
UIOptionsPage::m_gridColorCB
QCheckBox * m_gridColorCB
Definition: uioptionspage.h:55
UIOptionsPage::m_angularLinesCB
QCheckBox * m_angularLinesCB
Definition: uioptionspage.h:68
UIOptionsPage::apply
void apply()
Definition: uioptionspage.cpp:178
UIOptionsPage::slotGridCBChecked
void slotGridCBChecked(bool value)
Definition: uioptionspage.cpp:226
UIOptionsPage::setupPage
void setupPage()
Definition: uioptionspage.cpp:51
UIOptionsPage::m_useFillColorCB
QCheckBox * m_useFillColorCB
Definition: uioptionspage.h:67
UIOptionsPage::m_fillColorCB
QCheckBox * m_fillColorCB
Definition: uioptionspage.h:53
UIOptionsPage::m_options
Settings::OptionState * m_options
Definition: uioptionspage.h:47
UIOptionsPage::m_textColorCB
QCheckBox * m_textColorCB
Definition: uioptionspage.h:51
UIOptionsPage::m_bgColorCB
QCheckBox * m_bgColorCB
Definition: uioptionspage.h:56
UIOptionsPage::m_gridColorB
KColorButton * m_gridColorB
Definition: uioptionspage.h:60
UIOptionsPage::m_fillColorB
KColorButton * m_fillColorB
Definition: uioptionspage.h:59
UIOptionsPage::slotTextCBChecked
void slotTextCBChecked(bool value)
Definition: uioptionspage.cpp:193
UIOptionsPage::setDefaults
void setDefaults()
Definition: uioptionspage.cpp:155
UIOptionsPage::m_bgColorB
KColorButton * m_bgColorB
Definition: uioptionspage.h:61
UIOptionsPage::m_textColorB
KColorButton * m_textColorB
Definition: uioptionspage.h:57
UIOptionsPage::slotFillCBChecked
void slotFillCBChecked(bool value)
Definition: uioptionspage.cpp:215
UIOptionsPage::m_layoutTypeW
SelectLayoutTypeWidget * m_layoutTypeW
Definition: uioptionspage.h:69
UIOptionsPage::~UIOptionsPage
virtual ~UIOptionsPage()
Definition: uioptionspage.cpp:44
dialogpagebase.h
Settings
Definition: codeviewerstate.cpp:10