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

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

- File List
- File Members

generaloptionpage.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 GENERALOPTIONPAGE_H
7#define GENERALOPTIONPAGE_H
8
9#include "dialogpagebase.h"
10
11#if QT_VERSION < 0x050000
12 class KIntSpinBox;
13#endif
14 class KLineEdit;
15 class KComboBox;
16 class QGroupBox;
17 class QCheckBox;
18 class QLabel;
19#if QT_VERSION >= 0x050000
20 class QSpinBox;
21#endif
22
23 class SelectLayoutTypeWidget;
24
32 class GeneralOptionPage : public DialogPageBase
33{
34 Q_OBJECT
35 public:
36 explicit GeneralOptionPage(QWidget* parent = 0);
37 virtual ~GeneralOptionPage();
38
39 void setDefaults();
40 void apply();
41
42signals:
43 void applyClicked();
44
45 protected:
46 struct GeneralWidgets {
47 QGroupBox * miscGB;
48 QGroupBox * autosaveGB;
49 QGroupBox * startupGB;
50
51#if QT_VERSION >= 0x050000
52 QSpinBox * timeISB;
53#else
54 KIntSpinBox * timeISB;
55#endif
56 KComboBox * diagramKB;
57 KComboBox * languageKB;
58
59 QCheckBox * undoCB;
60 QCheckBox * tabdiagramsCB;
61 QCheckBox * newcodegenCB;
62 QCheckBox * footerPrintingCB;
63 QCheckBox * uml2CB;
64
65 QCheckBox * autosaveCB;
66 QCheckBox * loadlastCB;
67
68 // Allow definition of Suffix for autosave
69 // (Default: ".xmi"), private Ui::GeneralOptionPage
70 KLineEdit * autosaveSuffixT;
71 QLabel * autosaveSuffixL;
72 // End AutoSave Suffix
73
74 QLabel * startL;
75 QLabel * autosaveL;
76 QLabel * defaultLanguageL;
77 } m_GeneralWidgets;
78
79 void insertDiagram(const QString& type, int index);
80 void insertLayoutType(const QString& type, int index);
81
82 protected slots:
83 void slotAutosaveCBClicked();
84
85};
86#endif
DialogPageBase
Definition: dialogpagebase.h:20
GeneralOptionPage
Definition: generaloptionpage.h:33
GeneralOptionPage::apply
void apply()
Definition: generaloptionpage.cpp:193
GeneralOptionPage::insertDiagram
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:216
GeneralOptionPage::insertLayoutType
void insertLayoutType(const QString &type, int index)
GeneralOptionPage::m_GeneralWidgets
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage::applyClicked
void applyClicked()
Definition: moc_generaloptionpage.cpp:138
GeneralOptionPage::setDefaults
void setDefaults()
Definition: generaloptionpage.cpp:179
GeneralOptionPage::~GeneralOptionPage
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:172
GeneralOptionPage::slotAutosaveCBClicked
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:225
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:14
dialogpagebase.h
GeneralOptionPage::GeneralWidgets
Definition: generaloptionpage.h:46
GeneralOptionPage::GeneralWidgets::diagramKB
KComboBox * diagramKB
Definition: generaloptionpage.h:56
GeneralOptionPage::GeneralWidgets::languageKB
KComboBox * languageKB
Definition: generaloptionpage.h:57
GeneralOptionPage::GeneralWidgets::autosaveSuffixT
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:70
GeneralOptionPage::GeneralWidgets::newcodegenCB
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:61
GeneralOptionPage::GeneralWidgets::footerPrintingCB
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:62
GeneralOptionPage::GeneralWidgets::loadlastCB
QCheckBox * loadlastCB
Definition: generaloptionpage.h:66
GeneralOptionPage::GeneralWidgets::defaultLanguageL
QLabel * defaultLanguageL
Definition: generaloptionpage.h:76
GeneralOptionPage::GeneralWidgets::autosaveCB
QCheckBox * autosaveCB
Definition: generaloptionpage.h:65
GeneralOptionPage::GeneralWidgets::autosaveGB
QGroupBox * autosaveGB
Definition: generaloptionpage.h:48
GeneralOptionPage::GeneralWidgets::tabdiagramsCB
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:60
GeneralOptionPage::GeneralWidgets::undoCB
QCheckBox * undoCB
Definition: generaloptionpage.h:59
GeneralOptionPage::GeneralWidgets::timeISB
KIntSpinBox * timeISB
Definition: generaloptionpage.h:54
GeneralOptionPage::GeneralWidgets::miscGB
QGroupBox * miscGB
Definition: generaloptionpage.h:47
GeneralOptionPage::GeneralWidgets::startupGB
QGroupBox * startupGB
Definition: generaloptionpage.h:49
GeneralOptionPage::GeneralWidgets::autosaveL
QLabel * autosaveL
Definition: generaloptionpage.h:75
GeneralOptionPage::GeneralWidgets::uml2CB
QCheckBox * uml2CB
Definition: generaloptionpage.h:63
GeneralOptionPage::GeneralWidgets::startL
QLabel * startL
Definition: generaloptionpage.h:74
GeneralOptionPage::GeneralWidgets::autosaveSuffixL
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:71