umbrello: umbrello/dialogs/pages/generaloptionpage.h Source File

umbrello 2.32.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 * 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
28 class SelectLayoutTypeWidget;
29
37 class GeneralOptionPage : public DialogPageBase
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;
82 } m_GeneralWidgets;
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
DialogPageBase
Definition: dialogpagebase.h:25
GeneralOptionPage
Definition: generaloptionpage.h:38
GeneralOptionPage::apply
void apply()
Definition: generaloptionpage.cpp:198
GeneralOptionPage::insertDiagram
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:221
GeneralOptionPage::insertLayoutType
void insertLayoutType(const QString &type, int index)
GeneralOptionPage::m_GeneralWidgets
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage::GeneralOptionPage
GeneralOptionPage(QWidget *parent=0)
Definition: generaloptionpage.cpp:43
GeneralOptionPage::applyClicked
void applyClicked()
GeneralOptionPage::setDefaults
void setDefaults()
Definition: generaloptionpage.cpp:184
GeneralOptionPage::~GeneralOptionPage
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:177
GeneralOptionPage::slotAutosaveCBClicked
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:230
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:19
dialogpagebase.h
GeneralOptionPage::GeneralWidgets
Definition: generaloptionpage.h:51
GeneralOptionPage::GeneralWidgets::diagramKB
KComboBox * diagramKB
Definition: generaloptionpage.h:61
GeneralOptionPage::GeneralWidgets::languageKB
KComboBox * languageKB
Definition: generaloptionpage.h:62
GeneralOptionPage::GeneralWidgets::autosaveSuffixT
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:75
GeneralOptionPage::GeneralWidgets::newcodegenCB
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:66
GeneralOptionPage::GeneralWidgets::footerPrintingCB
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:67
GeneralOptionPage::GeneralWidgets::loadlastCB
QCheckBox * loadlastCB
Definition: generaloptionpage.h:71
GeneralOptionPage::GeneralWidgets::defaultLanguageL
QLabel * defaultLanguageL
Definition: generaloptionpage.h:81
GeneralOptionPage::GeneralWidgets::autosaveCB
QCheckBox * autosaveCB
Definition: generaloptionpage.h:70
GeneralOptionPage::GeneralWidgets::autosaveGB
QGroupBox * autosaveGB
Definition: generaloptionpage.h:53
GeneralOptionPage::GeneralWidgets::tabdiagramsCB
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:65
GeneralOptionPage::GeneralWidgets::undoCB
QCheckBox * undoCB
Definition: generaloptionpage.h:64
GeneralOptionPage::GeneralWidgets::timeISB
KIntSpinBox * timeISB
Definition: generaloptionpage.h:59
GeneralOptionPage::GeneralWidgets::miscGB
QGroupBox * miscGB
Definition: generaloptionpage.h:52
GeneralOptionPage::GeneralWidgets::startupGB
QGroupBox * startupGB
Definition: generaloptionpage.h:54
GeneralOptionPage::GeneralWidgets::autosaveL
QLabel * autosaveL
Definition: generaloptionpage.h:80
GeneralOptionPage::GeneralWidgets::uml2CB
QCheckBox * uml2CB
Definition: generaloptionpage.h:68
GeneralOptionPage::GeneralWidgets::startL
QLabel * startL
Definition: generaloptionpage.h:79
GeneralOptionPage::GeneralWidgets::autosaveSuffixL
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:76