umbrello: umbrello/codegenwizard/codegenoptionspage.h Source File

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

codegenoptionspage.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 *
8 * Luis De la Parra <luis@delaparra.org> *
9 * copyright (C) 2003-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12 #ifndef CODEGENOPTIONSPAGE_H
13 #define CODEGENOPTIONSPAGE_H
14
15 // app includes
16 #include "ui_codegenoptionspage.h"
17 #include "basictypes.h"
18 #include "codegenerationpolicy.h"
19
20 // qt includes
21 #include <QWizardPage>
22
23 class QRadioButton;
24 class CodeGenerationPolicy;
25 class CodeGenerationPolicyPage;
26
35 class CodeGenOptionsPage : public QWizardPage, private Ui::CodeGenOptionsPage
36 {
37 Q_OBJECT
38 public:
39 explicit CodeGenOptionsPage(QWidget *parent = 0);
40 ~CodeGenOptionsPage();
41 QString getLanguage();
42 void apply();
43 bool save();
44 bool validatePage();
45
46 protected:
47 CodeGenerationPolicy *m_parentPolicy;
48
49 private:
50 CodeGenerationPolicyPage *m_pCodePolicyPage;
51
52 QRadioButton* overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value);
53 CodeGenerationPolicy::OverwritePolicy widgetToOverwrite();
54 static int newLineToInteger(CodeGenerationPolicy::NewLineType value);
55 static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value);
56 void setupActiveLanguageBox();
57
58 protected slots:
59 void activeLanguageChanged(int id);
60 void updateCodeGenerationPolicyTab();
61 void browseClicked();
62
63 private slots:
64 void changeLanguage();
65
66 signals:
67 void applyClicked();
68 void languageChanged();
69 void syncCodeDocumentsToParent();
70
71 };
72
73 #endif
basictypes.h
CodeGenOptionsPage
Definition: codegenoptionspage.h:36
CodeGenOptionsPage::newLineToInteger
static int newLineToInteger(CodeGenerationPolicy::NewLineType value)
Definition: codegenoptionspage.cpp:125
CodeGenOptionsPage::changeLanguage
void changeLanguage()
Definition: codegenoptionspage.cpp:311
CodeGenOptionsPage::save
bool save()
Definition: codegenoptionspage.cpp:247
CodeGenOptionsPage::languageChanged
void languageChanged()
CodeGenOptionsPage::widgetToOverwrite
CodeGenerationPolicy::OverwritePolicy widgetToOverwrite()
Definition: codegenoptionspage.cpp:162
CodeGenOptionsPage::getLanguage
QString getLanguage()
Definition: codegenoptionspage.cpp:349
CodeGenOptionsPage::apply
void apply()
Definition: codegenoptionspage.cpp:220
CodeGenOptionsPage::setupActiveLanguageBox
void setupActiveLanguageBox()
Definition: codegenoptionspage.cpp:89
CodeGenOptionsPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
CodeGenOptionsPage::validatePage
bool validatePage()
Definition: codegenoptionspage.cpp:211
CodeGenOptionsPage::applyClicked
void applyClicked()
CodeGenOptionsPage::updateCodeGenerationPolicyTab
void updateCodeGenerationPolicyTab()
Definition: codegenoptionspage.cpp:179
CodeGenOptionsPage::indentTypeToInteger
static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value)
Definition: codegenoptionspage.cpp:106
CodeGenOptionsPage::activeLanguageChanged
void activeLanguageChanged(int id)
Definition: codegenoptionspage.cpp:300
CodeGenOptionsPage::CodeGenOptionsPage
CodeGenOptionsPage(QWidget *parent=0)
Definition: codegenoptionspage.cpp:41
CodeGenOptionsPage::m_pCodePolicyPage
CodeGenerationPolicyPage * m_pCodePolicyPage
Definition: codegenoptionspage.h:50
CodeGenOptionsPage::~CodeGenOptionsPage
~CodeGenOptionsPage()
Definition: codegenoptionspage.cpp:81
CodeGenOptionsPage::overwriteToWidget
QRadioButton * overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value)
Definition: codegenoptionspage.cpp:144
CodeGenOptionsPage::m_parentPolicy
CodeGenerationPolicy * m_parentPolicy
Definition: codegenoptionspage.h:47
CodeGenOptionsPage::browseClicked
void browseClicked()
Definition: codegenoptionspage.cpp:326
CodeGenerationPolicyPage
Definition: codegenerationpolicypage.h:31
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerationPolicy::NewLineType
NewLineType
Definition: codegenerationpolicy.h:48
CodeGenerationPolicy::IndentationType
IndentationType
Definition: codegenerationpolicy.h:49
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition: codegenerationpolicy.h:46
codegenerationpolicy.h