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

umbrello 2.31.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 * 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) 2018-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UIOPTIONSPAGE_H
12 #define UIOPTIONSPAGE_H
13
14 #include "dialogpagebase.h"
15
16 namespace Settings {
17 class OptionState;
18 }
19
20 class SelectLayoutTypeWidget;
21
22 class KColorButton;
23 class KComboBox;
24 class KIntSpinBox;
25
26 class QCheckBox;
27 class QGroupBox;
28 class QSpinBox;
29 class QLabel;
30
41 class UIOptionsPage : public DialogPageBase
42 {
43 Q_OBJECT
44 public:
45 UIOptionsPage(QWidget* parent, Settings::OptionState *options);
46 virtual ~UIOptionsPage();
47
48 void setDefaults();
49 void apply();
50
51 protected:
52 Settings::OptionState *m_options;
53
54 QCheckBox * m_rightToLeftUI;
55 QGroupBox * m_colorGB;
56 QCheckBox * m_textColorCB;
57 QCheckBox * m_lineColorCB;
58 QCheckBox * m_fillColorCB;
59 QCheckBox * m_lineWidthCB;
60 QCheckBox * m_gridColorCB;
61 QCheckBox * m_bgColorCB;
62 KColorButton * m_textColorB;
63 KColorButton * m_lineColorB;
64 KColorButton * m_fillColorB;
65 KColorButton * m_gridColorB;
66 KColorButton * m_bgColorB;
67 #if QT_VERSION >= 0x050000
68 QSpinBox * m_lineWidthB;
69 #else
70 KIntSpinBox * m_lineWidthB;
71 #endif
72 QCheckBox * m_useFillColorCB;
73 QCheckBox *m_angularLinesCB;
74 SelectLayoutTypeWidget *m_layoutTypeW;
75 void setupPage();
76
77 protected slots:
78 void slotTextCBChecked(bool value);
79 void slotLineCBChecked(bool value);
80 void slotFillCBChecked(bool value);
81 void slotGridCBChecked(bool value);
82 void slotBgCBChecked(bool value);
83 void slotLineWidthCBChecked(bool value);
84 };
85 #endif
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:336
TEXT_COLOR
#define TEXT_COLOR
Definition: uioptionspage.cpp:36
UIOptionsPage::setDefaults
void setDefaults()
Definition: uioptionspage.cpp:165
UIOptionsPage::m_colorGB
QGroupBox * m_colorGB
Definition: uioptionspage.h:55
UIOptionsPage::m_lineWidthB
KIntSpinBox * m_lineWidthB
Definition: uioptionspage.h:70
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:18
UIOptionsPage::m_textColorCB
QCheckBox * m_textColorCB
Definition: uioptionspage.h:56
Settings::UIState::textColor
QColor textColor
Definition: optionstate.h:99
Settings::GeneralState::layoutType
Uml::LayoutType::Enum layoutType
Definition: optionstate.h:68
FILL_COLOR
#define FILL_COLOR
Definition: uioptionspage.cpp:34
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:334
UIOptionsPage::m_layoutTypeW
SelectLayoutTypeWidget * m_layoutTypeW
Definition: uioptionspage.h:74
dialogpagebase.h
UIOptionsPage::~UIOptionsPage
virtual ~UIOptionsPage()
Definition: uioptionspage.cpp:54
UIOptionsPage::m_gridColorB
KColorButton * m_gridColorB
Definition: uioptionspage.h:65
Settings::UIState::backgroundColor
QColor backgroundColor
Definition: optionstate.h:101
UIOptionsPage::m_lineWidthCB
QCheckBox * m_lineWidthCB
Definition: uioptionspage.h:59
uioptionspage.h
optionstate.h
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:370
Settings::UIState::lineColor
QColor lineColor
Definition: optionstate.h:97
UIOptionsPage::m_options
Settings::OptionState * m_options
Definition: uioptionspage.h:52
Settings::UIState::gridDotColor
QColor gridDotColor
Definition: optionstate.h:102
UIOptionsPage
A dialog page to display the user interface options.
Definition: uioptionspage.h:41
SelectLayoutTypeWidget::setCurrentLayout
void setCurrentLayout(Uml::LayoutType::Enum layout)
Definition: selectlayouttypewidget.cpp:27
UIOptionsPage::m_rightToLeftUI
QCheckBox * m_rightToLeftUI
Definition: uioptionspage.h:54
UIOptionsPage::setupPage
void setupPage()
Definition: uioptionspage.cpp:61
Settings::GeneralState::angularlines
bool angularlines
Definition: optionstate.h:67
UIOptionsPage::m_useFillColorCB
QCheckBox * m_useFillColorCB
Definition: uioptionspage.h:72
UIOptionsPage::m_textColorB
KColorButton * m_textColorB
Definition: uioptionspage.h:62
Uml::LayoutType::Direct
@ Direct
Definition: basictypes.h:163
DialogPageBase
Definition: dialogpagebase.h:24
i18n
#define i18n
Definition: main.cpp:39
UIOptionsPage::slotLineWidthCBChecked
void slotLineWidthCBChecked(bool value)
Definition: uioptionspage.cpp:260
Settings::UIState::useFillColor
bool useFillColor
Definition: optionstate.h:95
UIOptionsPage::m_bgColorCB
QCheckBox * m_bgColorCB
Definition: uioptionspage.h:61
UIOptionsPage::slotGridCBChecked
void slotGridCBChecked(bool value)
Definition: uioptionspage.cpp:236
Settings::UIState::lineWidth
uint lineWidth
Definition: optionstate.h:98
ComboBoxWidgetBase::addToLayout
void addToLayout(QGridLayout *layout, int row, int startColumn=0)
Definition: comboboxwidgetbase.cpp:51
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
selectlayouttypewidget.h
UIOptionsPage::m_bgColorB
KColorButton * m_bgColorB
Definition: uioptionspage.h:66
UIOptionsPage::slotTextCBChecked
void slotTextCBChecked(bool value)
Definition: uioptionspage.cpp:203
UIOptionsPage::m_fillColorCB
QCheckBox * m_fillColorCB
Definition: uioptionspage.h:58
Settings
Definition: codeviewerstate.cpp:15
Settings::OptionState
Definition: optionstate.h:322
UIOptionsPage::m_lineColorB
KColorButton * m_lineColorB
Definition: uioptionspage.h:63
UIOptionsPage::m_gridColorCB
QCheckBox * m_gridColorCB
Definition: uioptionspage.h:60
UIOptionsPage::slotLineCBChecked
void slotLineCBChecked(bool value)
Definition: uioptionspage.cpp:214
UIOptionsPage::slotBgCBChecked
void slotBgCBChecked(bool value)
Definition: uioptionspage.cpp:248
UIOptionsPage::slotFillCBChecked
void slotFillCBChecked(bool value)
Definition: uioptionspage.cpp:225
UIOptionsPage::m_fillColorB
KColorButton * m_fillColorB
Definition: uioptionspage.h:64
LINK_COLOR
#define LINK_COLOR
Definition: uioptionspage.cpp:35
UIOptionsPage::m_lineColorCB
QCheckBox * m_lineColorCB
Definition: uioptionspage.h:57
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:96
UIOptionsPage::UIOptionsPage
UIOptionsPage(QWidget *parent, Settings::OptionState *options)
Definition: uioptionspage.cpp:44
UIOptionsPage::apply
void apply()
Definition: uioptionspage.cpp:188
UIOptionsPage::m_angularLinesCB
QCheckBox * m_angularLinesCB
Definition: uioptionspage.h:73
SelectLayoutTypeWidget::currentLayout
Uml::LayoutType::Enum currentLayout()
Definition: selectlayouttypewidget.cpp:32