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

umbrello 2.38.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
11class QLineEdit;
12class KComboBox;
13class QGroupBox;
14class QCheckBox;
15class QLabel;
16class QSpinBox;
17
18class SelectLayoutTypeWidget;
19
27 class GeneralOptionPage : public DialogPageBase
28{
29 Q_OBJECT
30public:
31 explicit GeneralOptionPage(QWidget* parent = 0);
32 virtual ~GeneralOptionPage();
33
34 void setDefaults();
35 void apply();
36
37signals:
38 void applyClicked();
39
40protected:
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;
68 } m_GeneralWidgets;
69
70 void insertDiagram(const QString& type, int index);
71 void insertLayoutType(const QString& type, int index);
72
73protected slots:
74 void slotAutosaveCBClicked();
75
76};
77#endif
DialogPageBase
Definition dialogpagebase.h:20
GeneralOptionPage
Definition generaloptionpage.h:28
GeneralOptionPage::apply
void apply()
Definition generaloptionpage.cpp:173
GeneralOptionPage::insertDiagram
void insertDiagram(const QString &type, int index)
Definition generaloptionpage.cpp:196
GeneralOptionPage::insertLayoutType
void insertLayoutType(const QString &type, int index)
GeneralOptionPage::m_GeneralWidgets
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage::applyClicked
void applyClicked()
GeneralOptionPage::setDefaults
void setDefaults()
Definition generaloptionpage.cpp:159
GeneralOptionPage::~GeneralOptionPage
virtual ~GeneralOptionPage()
Definition generaloptionpage.cpp:152
GeneralOptionPage::slotAutosaveCBClicked
void slotAutosaveCBClicked()
Definition generaloptionpage.cpp:205
SelectLayoutTypeWidget
Definition selectlayouttypewidget.h:14
dialogpagebase.h
GeneralOptionPage::GeneralWidgets
Definition generaloptionpage.h:41
GeneralOptionPage::GeneralWidgets::diagramKB
KComboBox * diagramKB
Definition generaloptionpage.h:47
GeneralOptionPage::GeneralWidgets::languageKB
KComboBox * languageKB
Definition generaloptionpage.h:48
GeneralOptionPage::GeneralWidgets::newcodegenCB
QCheckBox * newcodegenCB
Definition generaloptionpage.h:52
GeneralOptionPage::GeneralWidgets::footerPrintingCB
QCheckBox * footerPrintingCB
Definition generaloptionpage.h:53
GeneralOptionPage::GeneralWidgets::loadlastCB
QCheckBox * loadlastCB
Definition generaloptionpage.h:57
GeneralOptionPage::GeneralWidgets::defaultLanguageL
QLabel * defaultLanguageL
Definition generaloptionpage.h:67
GeneralOptionPage::GeneralWidgets::autosaveCB
QCheckBox * autosaveCB
Definition generaloptionpage.h:56
GeneralOptionPage::GeneralWidgets::autosaveGB
QGroupBox * autosaveGB
Definition generaloptionpage.h:43
GeneralOptionPage::GeneralWidgets::timeISB
QSpinBox * timeISB
Definition generaloptionpage.h:46
GeneralOptionPage::GeneralWidgets::tabdiagramsCB
QCheckBox * tabdiagramsCB
Definition generaloptionpage.h:51
GeneralOptionPage::GeneralWidgets::undoCB
QCheckBox * undoCB
Definition generaloptionpage.h:50
GeneralOptionPage::GeneralWidgets::miscGB
QGroupBox * miscGB
Definition generaloptionpage.h:42
GeneralOptionPage::GeneralWidgets::startupGB
QGroupBox * startupGB
Definition generaloptionpage.h:44
GeneralOptionPage::GeneralWidgets::autosaveSuffixT
QLineEdit * autosaveSuffixT
Definition generaloptionpage.h:61
GeneralOptionPage::GeneralWidgets::autosaveL
QLabel * autosaveL
Definition generaloptionpage.h:66
GeneralOptionPage::GeneralWidgets::uml2CB
QCheckBox * uml2CB
Definition generaloptionpage.h:54
GeneralOptionPage::GeneralWidgets::startL
QLabel * startL
Definition generaloptionpage.h:65
GeneralOptionPage::GeneralWidgets::autosaveSuffixL
QLabel * autosaveSuffixL
Definition generaloptionpage.h:62