umbrello 2.39.0
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
11class QLineEdit;
12class KComboBox;
13class QGroupBox;
14class QCheckBox;
15class QLabel;
16class QSpinBox;
17
19
28{
29 Q_OBJECT
30public:
31 explicit GeneralOptionPage(QWidget *parent = nullptr);
32 virtual ~GeneralOptionPage();
33
34 void setDefaults();
35 void apply();
36
37Q_SIGNALS:
39
40protected:
42 QGroupBox * miscGB;
43 QGroupBox * autosaveGB;
44 QGroupBox * startupGB;
45
46 QSpinBox * timeISB;
47 KComboBox * diagramKB;
48 KComboBox * languageKB;
49
50 QCheckBox * undoCB;
51 QCheckBox * tabdiagramsCB;
52 QCheckBox * newcodegenCB;
53 QCheckBox * footerPrintingCB;
54 QCheckBox * uml2CB;
55
56 QCheckBox * autosaveCB;
57 QCheckBox * loadlastCB;
58
59 // Allow definition of Suffix for autosave
60 // (Default: ".xmi"), private Ui::GeneralOptionPage
61 QLineEdit * autosaveSuffixT;
63 // End AutoSave Suffix
64
65 QLabel * startL;
66 QLabel * autosaveL;
69
70 void insertDiagram(const QString& type, int index);
71 void insertLayoutType(const QString& type, int index);
72
73protected Q_SLOTS:
75
76};
77#endif
Definition dialogpagebase.h:20
Definition generaloptionpage.h:28
void apply()
Definition generaloptionpage.cpp:172
GeneralOptionPage(QWidget *parent=nullptr)
Definition generaloptionpage.cpp:32
void insertDiagram(const QString &type, int index)
Definition generaloptionpage.cpp:195
void insertLayoutType(const QString &type, int index)
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
void setDefaults()
Definition generaloptionpage.cpp:158
virtual ~GeneralOptionPage()
Definition generaloptionpage.cpp:151
void slotAutosaveCBClicked()
Definition generaloptionpage.cpp:204
Definition selectlayouttypewidget.h:14
Definition generaloptionpage.h:41
KComboBox * diagramKB
Definition generaloptionpage.h:47
KComboBox * languageKB
Definition generaloptionpage.h:48
QCheckBox * newcodegenCB
Definition generaloptionpage.h:52
QCheckBox * footerPrintingCB
Definition generaloptionpage.h:53
QCheckBox * loadlastCB
Definition generaloptionpage.h:57
QLabel * defaultLanguageL
Definition generaloptionpage.h:67
QCheckBox * autosaveCB
Definition generaloptionpage.h:56
QGroupBox * autosaveGB
Definition generaloptionpage.h:43
QSpinBox * timeISB
Definition generaloptionpage.h:46
QCheckBox * tabdiagramsCB
Definition generaloptionpage.h:51
QCheckBox * undoCB
Definition generaloptionpage.h:50
QGroupBox * miscGB
Definition generaloptionpage.h:42
QGroupBox * startupGB
Definition generaloptionpage.h:44
QLineEdit * autosaveSuffixT
Definition generaloptionpage.h:61
QLabel * autosaveL
Definition generaloptionpage.h:66
QCheckBox * uml2CB
Definition generaloptionpage.h:54
QLabel * startL
Definition generaloptionpage.h:65
QLabel * autosaveSuffixL
Definition generaloptionpage.h:62