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

umbrello 2.31.1 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 * 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 #ifndef UMLWIDGETSTYLEPAGE_H
12 #define UMLWIDGETSTYLEPAGE_H
13
14 #include "optionstate.h"
15
16 #include <QWidget>
17
18 class SelectLayoutTypeWidget;
19 class UMLScene;
20 class WidgetBase;
21 class KColorButton;
22 #if QT_VERSION < 0x050000
23 class KIntSpinBox;
24 #endif
25 class QLabel;
26 class QPushButton;
27 class QCheckBox;
28 class QGroupBox;
29 #if QT_VERSION >= 0x050000
30 class QSpinBox;
31 #endif
32
37 class UMLWidgetStylePage : public QWidget
38 {
39 Q_OBJECT
40 public:
41
42 UMLWidgetStylePage(QWidget * pParent, WidgetBase * pWidget);
43 UMLWidgetStylePage(QWidget * pParent, Settings::OptionState *options);
44 UMLWidgetStylePage(QWidget * pParent, UMLScene *scene);
45
46 virtual ~UMLWidgetStylePage();
47
48 void apply();
49
50 public slots:
51
52 void slotTextButtonClicked();
53 void slotLineButtonClicked();
54 void slotFillButtonClicked();
55 void slotBackgroundButtonClicked();
56 void slotGridDotButtonClicked();
57 void slotLineWidthButtonClicked();
58
59 protected:
60
61 WidgetBase * m_pUMLWidget;
62 UMLScene *m_scene;
63
64 Settings::OptionState * m_options;
65
66 //GUI widgets
67 QGroupBox * m_pColorGB;
68 QGroupBox * m_pStyleGB;
69 QLabel * m_pTextColorL;
70 QLabel * m_pLineColorL;
71 QLabel * m_pFillColorL;
72 QLabel * m_BackgroundColorL;
73 QLabel * m_GridDotColorL;
74 QLabel * m_lineWidthL;
75 QCheckBox * m_pUseFillColorCB;
76 QPushButton * m_pTextDefaultB;
77 QPushButton * m_pLineDefaultB;
78 QPushButton * m_pFillDefaultB;
79 QPushButton * m_BackgroundDefaultB;
80 QPushButton * m_GridDotDefaultB;
81 QPushButton * m_lineWidthDefaultB;
82 KColorButton * m_pTextColorB;
83 KColorButton * m_pLineColorB;
84 KColorButton * m_pFillColorB;
85 KColorButton * m_BackgroundColorB;
86 KColorButton * m_GridDotColorB;
87 SelectLayoutTypeWidget *m_layoutTypeW;
88
89 #if QT_VERSION >= 0x050000
90 QSpinBox * m_lineWidthB;
91 #else
92 KIntSpinBox * m_lineWidthB;
93 #endif
94
95 private:
96 void init();
97
98 };
99
100 #endif
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:336
WidgetBase::setLineWidth
virtual void setLineWidth(uint width)
Definition: widgetbase.cpp:408
associationline.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLWidgetStylePage::m_GridDotDefaultB
QPushButton * m_GridDotDefaultB
Definition: umlwidgetstylepage.h:80
UMLWidgetStylePage::slotGridDotButtonClicked
void slotGridDotButtonClicked()
Definition: umlwidgetstylepage.cpp:270
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
umlview.h
UMLWidgetStylePage::m_options
Settings::OptionState * m_options
Definition: umlwidgetstylepage.h:64
UMLWidgetStylePage::~UMLWidgetStylePage
virtual ~UMLWidgetStylePage()
Definition: umlwidgetstylepage.cpp:226
UMLWidgetStylePage::m_BackgroundColorL
QLabel * m_BackgroundColorL
Definition: umlwidgetstylepage.h:72
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:38
WidgetBase::setUseFillColor
virtual void setUseFillColor(bool state)
Definition: widgetbase.cpp:429
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:19
AssociationWidget::associationLine
AssociationLine * associationLine() const
Definition: associationwidget.cpp:658
UMLWidgetStylePage::m_pLineColorL
QLabel * m_pLineColorL
Definition: umlwidgetstylepage.h:70
Settings::UIState::textColor
QColor textColor
Definition: optionstate.h:99
UMLWidgetStylePage::slotLineButtonClicked
void slotLineButtonClicked()
Definition: umlwidgetstylepage.cpp:243
UMLWidgetStylePage::m_lineWidthDefaultB
QPushButton * m_lineWidthDefaultB
Definition: umlwidgetstylepage.h:81
UMLWidgetStylePage::UMLWidgetStylePage
UMLWidgetStylePage(QWidget *pParent, WidgetBase *pWidget)
Definition: umlwidgetstylepage.cpp:43
UMLWidgetStylePage::apply
void apply()
Definition: umlwidgetstylepage.cpp:287
UMLWidgetStylePage::slotTextButtonClicked
void slotTextButtonClicked()
Definition: umlwidgetstylepage.cpp:234
UMLWidgetStylePage::m_pColorGB
QGroupBox * m_pColorGB
Definition: umlwidgetstylepage.h:67
Settings::UIState::backgroundColor
QColor backgroundColor
Definition: optionstate.h:101
UMLWidgetStylePage::m_BackgroundColorB
KColorButton * m_BackgroundColorB
Definition: umlwidgetstylepage.h:85
UMLWidgetStylePage::m_pUseFillColorCB
QCheckBox * m_pUseFillColorCB
Definition: umlwidgetstylepage.h:75
UMLWidgetStylePage::m_scene
UMLScene * m_scene
Definition: umlwidgetstylepage.h:62
UMLWidgetStylePage::slotBackgroundButtonClicked
void slotBackgroundButtonClicked()
Definition: umlwidgetstylepage.cpp:261
optionstate.h
WidgetBase::asAssociationWidget
AssociationWidget * asAssociationWidget()
Definition: widgetbase.cpp:1468
UMLWidgetStylePage::init
void init()
Definition: umlwidgetstylepage.cpp:105
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:370
UMLWidgetStylePage::slotLineWidthButtonClicked
void slotLineWidthButtonClicked()
Definition: umlwidgetstylepage.cpp:279
UMLWidgetStylePage::m_layoutTypeW
SelectLayoutTypeWidget * m_layoutTypeW
Definition: umlwidgetstylepage.h:87
Settings::UIState::lineColor
QColor lineColor
Definition: optionstate.h:97
UMLWidgetStylePage::m_lineWidthB
KIntSpinBox * m_lineWidthB
Definition: umlwidgetstylepage.h:92
UMLWidgetStylePage::m_pFillColorB
KColorButton * m_pFillColorB
Definition: umlwidgetstylepage.h:84
Settings::UIState::gridDotColor
QColor gridDotColor
Definition: optionstate.h:102
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
UMLWidgetStylePage::m_pLineColorB
KColorButton * m_pLineColorB
Definition: umlwidgetstylepage.h:83
WidgetBase::setTextColor
virtual void setTextColor(const QColor &color)
Definition: widgetbase.cpp:345
i18n
#define i18n
Definition: main.cpp:39
Settings::UIState::useFillColor
bool useFillColor
Definition: optionstate.h:95
UMLWidgetStylePage::m_pTextColorB
KColorButton * m_pTextColorB
Definition: umlwidgetstylepage.h:82
UMLWidgetStylePage::m_pFillDefaultB
QPushButton * m_pFillDefaultB
Definition: umlwidgetstylepage.h:78
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
UMLWidgetStylePage::m_GridDotColorL
QLabel * m_GridDotColorL
Definition: umlwidgetstylepage.h:73
UMLWidgetStylePage::m_pTextDefaultB
QPushButton * m_pTextDefaultB
Definition: umlwidgetstylepage.h:76
AssociationLine::setLayout
void setLayout(Uml::LayoutType::Enum layout)
Definition: associationline.cpp:851
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
WidgetBase::setFillColor
virtual void setFillColor(const QColor &color)
Definition: widgetbase.cpp:387
UMLWidgetStylePage::m_pLineDefaultB
QPushButton * m_pLineDefaultB
Definition: umlwidgetstylepage.h:77
associationwidget.h
UMLWidgetStylePage::m_pStyleGB
QGroupBox * m_pStyleGB
Definition: umlwidgetstylepage.h:68
Settings::OptionState
Definition: optionstate.h:322
widgetbase.h
WidgetBase::lineColor
QColor lineColor() const
Definition: widgetbase.cpp:356
umlscene.h
uml.h
umlwidgetstylepage.h
UMLWidgetStylePage::m_lineWidthL
QLabel * m_lineWidthL
Definition: umlwidgetstylepage.h:74
UMLWidgetStylePage::slotFillButtonClicked
void slotFillButtonClicked()
Definition: umlwidgetstylepage.cpp:252
debug_utils.h
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
UMLScene
Definition: umlscene.h:69
WidgetBase::lineWidth
uint lineWidth() const
Definition: widgetbase.cpp:398
UMLWidgetStylePage::m_pTextColorL
QLabel * m_pTextColorL
Definition: umlwidgetstylepage.h:69
UMLScene::setOptionState
void setOptionState(const Settings::OptionState &options)
Definition: umlscene.cpp:579
Settings::UIState::fillColor
QColor fillColor
Definition: optionstate.h:96
WidgetBase::setLineColor
virtual void setLineColor(const QColor &color)
Definition: widgetbase.cpp:366
AssociationLine::layout
Uml::LayoutType::Enum layout() const
Definition: associationline.cpp:842
WidgetBase::isAssociationWidget
bool isAssociationWidget()
Definition: widgetbase.h:244
UMLWidgetStylePage::m_pFillColorL
QLabel * m_pFillColorL
Definition: umlwidgetstylepage.h:71
UMLWidgetStylePage::m_BackgroundDefaultB
QPushButton * m_BackgroundDefaultB
Definition: umlwidgetstylepage.h:79
UMLWidgetStylePage::m_pUMLWidget
WidgetBase * m_pUMLWidget
the widget to set the style for
Definition: umlwidgetstylepage.h:61
UMLWidgetStylePage::m_GridDotColorB
KColorButton * m_GridDotColorB
Definition: umlwidgetstylepage.h:86
SelectLayoutTypeWidget::currentLayout
Uml::LayoutType::Enum currentLayout()
Definition: selectlayouttypewidget.cpp:32