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
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
GeneralOptionPage::GeneralWidgets::undoCB
QCheckBox * undoCB
Definition: generaloptionpage.h:64
GeneralOptionPage::GeneralOptionPage
GeneralOptionPage(QWidget *parent=0)
Definition: generaloptionpage.cpp:43
Settings::GeneralState::tabdiagrams
bool tabdiagrams
Definition: optionstate.h:57
SelectLayoutTypeWidget
Definition: selectlayouttypewidget.h:19
GeneralOptionPage::apply
void apply()
Definition: generaloptionpage.cpp:198
GeneralOptionPage::GeneralWidgets::miscGB
QGroupBox * miscGB
Definition: generaloptionpage.h:52
GeneralOptionPage::GeneralWidgets
Definition: generaloptionpage.h:51
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
GeneralOptionPage::insertLayoutType
void insertLayoutType(const QString &type, int index)
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:975
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText, int columnOffset)
Definition: dialog_utils.cpp:52
Settings::GeneralState::newcodegen
bool newcodegen
Definition: optionstate.h:58
Settings::GeneralState::diagram
Uml::DiagramType::Enum diagram
Definition: optionstate.h:67
GeneralOptionPage::GeneralWidgets::newcodegenCB
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:66
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:326
GeneralOptionPage::GeneralWidgets::loadlastCB
QCheckBox * loadlastCB
Definition: generaloptionpage.h:71
dialogpagebase.h
GeneralOptionPage::GeneralWidgets::languageKB
KComboBox * languageKB
Definition: generaloptionpage.h:62
optionstate.h
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
GeneralOptionPage::GeneralWidgets::startL
QLabel * startL
Definition: generaloptionpage.h:79
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
GeneralOptionPage::GeneralWidgets::footerPrintingCB
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:67
Settings::GeneralState::autosave
bool autosave
Definition: optionstate.h:62
Uml::DiagramType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:267
GeneralOptionPage::GeneralWidgets::autosaveCB
QCheckBox * autosaveCB
Definition: generaloptionpage.h:70
GeneralOptionPage::GeneralWidgets::diagramKB
KComboBox * diagramKB
Definition: generaloptionpage.h:61
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
GeneralOptionPage::GeneralWidgets::uml2CB
QCheckBox * uml2CB
Definition: generaloptionpage.h:68
Settings::GeneralState::uml2
bool uml2
Definition: optionstate.h:70
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:274
Uml::DiagramType::toString
QString toString(Enum item)
Definition: basictypes.cpp:168
Settings::GeneralState::autosavetime
int autosavetime
Definition: optionstate.h:64
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
selectlayouttypewidget.h
Settings::GeneralState::footerPrinting
bool footerPrinting
Definition: optionstate.h:61
GeneralOptionPage::setDefaults
void setDefaults()
Definition: generaloptionpage.cpp:184
GeneralOptionPage::GeneralWidgets::tabdiagramsCB
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:65
GeneralOptionPage::insertDiagram
void insertDiagram(const QString &type, int index)
Definition: generaloptionpage.cpp:221
Settings::OptionState
Definition: optionstate.h:314
Settings::GeneralState::autosavesuffix
QString autosavesuffix
Text input field for suffix of autosave.
Definition: optionstate.h:65
GeneralOptionPage::GeneralWidgets::autosaveSuffixT
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:75
GeneralOptionPage::m_GeneralWidgets
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage::GeneralWidgets::timeISB
KIntSpinBox * timeISB
Definition: generaloptionpage.h:59
Settings::GeneralState::defaultLanguage
Uml::ProgrammingLanguage::Enum defaultLanguage
Definition: optionstate.h:68
GeneralOptionPage::slotAutosaveCBClicked
void slotAutosaveCBClicked()
Definition: generaloptionpage.cpp:230
GeneralOptionPage::GeneralWidgets::autosaveGB
QGroupBox * autosaveGB
Definition: generaloptionpage.h:53
GeneralOptionPage::GeneralWidgets::autosaveL
QLabel * autosaveL
Definition: generaloptionpage.h:80
GeneralOptionPage::GeneralWidgets::defaultLanguageL
QLabel * defaultLanguageL
Definition: generaloptionpage.h:81
dialog_utils.h
Settings::GeneralState::undo
bool undo
Definition: optionstate.h:56
GeneralOptionPage::GeneralWidgets::autosaveSuffixL
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:76
Settings::GeneralState::loadlast
bool loadlast
Definition: optionstate.h:66
GeneralOptionPage::applyClicked
void applyClicked()
Definition: moc_generaloptionpage.cpp:138
generaloptionpage.h
GeneralOptionPage::~GeneralOptionPage
virtual ~GeneralOptionPage()
Definition: generaloptionpage.cpp:177
GeneralOptionPage
Definition: generaloptionpage.h:38
GeneralOptionPage::GeneralWidgets::startupGB
QGroupBox * startupGB
Definition: generaloptionpage.h:54