umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
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
12class KIntSpinBox;
13#endif
14class KLineEdit;
15class KComboBox;
16class QGroupBox;
17class QCheckBox;
18class QLabel;
19#if QT_VERSION >= 0x050000
20class QSpinBox;
21#endif
22
24
33{
34 Q_OBJECT
35public:
36 explicit GeneralOptionPage(QWidget* parent = 0);
37 virtual ~GeneralOptionPage();
38
39 void setDefaults();
40 void apply();
41
42signals:
43 void applyClicked();
44
45protected:
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;
72 // End AutoSave Suffix
73
74 QLabel * startL;
75 QLabel * autosaveL;
78
79 void insertDiagram(const QString& type, int index);
80 void insertLayoutType(const QString& type, int index);
81
82protected slots:
84
85};
86#endif
Definition: dialogpagebase.h:20
Definition: generaloptionpage.h:33
void apply()
Definition: generaloptionpage.cpp:193
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:216
void insertLayoutType(const QString &type, int index)
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage(QWidget *parent=0)
Definition: generaloptionpage.cpp:38
void applyClicked()
Definition: moc_generaloptionpage.cpp:138
void setDefaults()
Definition: generaloptionpage.cpp:179
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:172
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:225
Definition: selectlayouttypewidget.h:14
Definition: generaloptionpage.h:46
KComboBox * diagramKB
Definition: generaloptionpage.h:56
KComboBox * languageKB
Definition: generaloptionpage.h:57
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:70
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:61
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:62
QCheckBox * loadlastCB
Definition: generaloptionpage.h:66
QLabel * defaultLanguageL
Definition: generaloptionpage.h:76
QCheckBox * autosaveCB
Definition: generaloptionpage.h:65
QGroupBox * autosaveGB
Definition: generaloptionpage.h:48
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:60
QCheckBox * undoCB
Definition: generaloptionpage.h:59
KIntSpinBox * timeISB
Definition: generaloptionpage.h:54
QGroupBox * miscGB
Definition: generaloptionpage.h:47
QGroupBox * startupGB
Definition: generaloptionpage.h:49
QLabel * autosaveL
Definition: generaloptionpage.h:75
QCheckBox * uml2CB
Definition: generaloptionpage.h:63
QLabel * startL
Definition: generaloptionpage.h:74
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:71