umbrello  2.32.3
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  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef GENERALOPTIONPAGE_H
12 #define GENERALOPTIONPAGE_H
13 
14 #include "dialogpagebase.h"
15 
16 #if QT_VERSION < 0x050000
17 class KIntSpinBox;
18 #endif
19 class KLineEdit;
20 class KComboBox;
21 class QGroupBox;
22 class QCheckBox;
23 class QLabel;
24 #if QT_VERSION >= 0x050000
25 class QSpinBox;
26 #endif
27 
29 
38 {
39  Q_OBJECT
40 public:
41  explicit GeneralOptionPage(QWidget* parent = 0);
42  virtual ~GeneralOptionPage();
43 
44  void setDefaults();
45  void apply();
46 
47 signals:
48  void applyClicked();
49 
50 protected:
51  struct GeneralWidgets {
52  QGroupBox * miscGB;
53  QGroupBox * autosaveGB;
54  QGroupBox * startupGB;
55 
56 #if QT_VERSION >= 0x050000
57  QSpinBox * timeISB;
58 #else
59  KIntSpinBox * timeISB;
60 #endif
61  KComboBox * diagramKB;
62  KComboBox * languageKB;
63 
64  QCheckBox * undoCB;
65  QCheckBox * tabdiagramsCB;
66  QCheckBox * newcodegenCB;
67  QCheckBox * footerPrintingCB;
68  QCheckBox * uml2CB;
69 
70  QCheckBox * autosaveCB;
71  QCheckBox * loadlastCB;
72 
73  // Allow definition of Suffix for autosave
74  // (Default: ".xmi"), private Ui::GeneralOptionPage
75  KLineEdit * autosaveSuffixT;
76  QLabel * autosaveSuffixL;
77  // End AutoSave Suffix
78 
79  QLabel * startL;
80  QLabel * autosaveL;
81  QLabel * defaultLanguageL;
83 
84  void insertDiagram(const QString& type, int index);
85  void insertLayoutType(const QString& type, int index);
86 
87 protected slots:
88  void slotAutosaveCBClicked();
89 
90 };
91 #endif
Definition: dialogpagebase.h:25
Definition: generaloptionpage.h:38
void apply()
Definition: generaloptionpage.cpp:198
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:221
void insertLayoutType(const QString &type, int index)
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage(QWidget *parent=0)
Definition: generaloptionpage.cpp:43
void setDefaults()
Definition: generaloptionpage.cpp:184
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:177
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:230
Definition: selectlayouttypewidget.h:19
Definition: generaloptionpage.h:51
KComboBox * diagramKB
Definition: generaloptionpage.h:61
KComboBox * languageKB
Definition: generaloptionpage.h:62
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:75
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:66
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:67
QCheckBox * loadlastCB
Definition: generaloptionpage.h:71
QLabel * defaultLanguageL
Definition: generaloptionpage.h:81
QCheckBox * autosaveCB
Definition: generaloptionpage.h:70
QGroupBox * autosaveGB
Definition: generaloptionpage.h:53
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:65
QCheckBox * undoCB
Definition: generaloptionpage.h:64
KIntSpinBox * timeISB
Definition: generaloptionpage.h:59
QGroupBox * miscGB
Definition: generaloptionpage.h:52
QGroupBox * startupGB
Definition: generaloptionpage.h:54
QLabel * autosaveL
Definition: generaloptionpage.h:80
QCheckBox * uml2CB
Definition: generaloptionpage.h:68
QLabel * startL
Definition: generaloptionpage.h:79
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:76