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