umbrello  2.39.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 = 0);
32  virtual ~GeneralOptionPage();
33 
34  void setDefaults();
35  void apply();
36 
37 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 
56  QCheckBox * autosaveCB;
57  QCheckBox * loadlastCB;
58 
59  // Allow definition of Suffix for autosave
60  // (Default: ".xmi"), private Ui::GeneralOptionPage
61  QLineEdit * autosaveSuffixT;
62  QLabel * autosaveSuffixL;
63  // End AutoSave Suffix
64 
65  QLabel * startL;
66  QLabel * autosaveL;
67  QLabel * defaultLanguageL;
69 
70  void insertDiagram(const QString& type, int index);
71  void insertLayoutType(const QString& type, int index);
72 
73 protected slots:
74  void slotAutosaveCBClicked();
75 
76 };
77 #endif
Definition: dialogpagebase.h:20
Definition: generaloptionpage.h:28
void apply()
Definition: generaloptionpage.cpp:173
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:196
void insertLayoutType(const QString &type, int index)
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage(QWidget *parent=0)
Definition: generaloptionpage.cpp:32
void applyClicked()
Definition: moc_generaloptionpage.cpp:138
void setDefaults()
Definition: generaloptionpage.cpp:159
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:152
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:205
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