umbrello: umbrello/codegenwizard/codegenoptionspage.h Source File

umbrello 2.32.1 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
CodeGenerationPolicy::Ok
@ Ok
Definition: codegenerationpolicy.h:46
CodeGenOptionsPage::save
bool save()
Definition: codegenoptionspage.cpp:245
CodeGenerationPolicy::NONE
@ NONE
Definition: codegenerationpolicy.h:49
codegenfactory.h
CodeGenerationPolicy::setIndentationType
void setIndentationType(IndentationType type)
Definition: codegenerationpolicy.cpp:263
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
CodeGenOptionsPage::newLineToInteger
static int newLineToInteger(CodeGenerationPolicy::NewLineType value)
Definition: codegenoptionspage.cpp:125
CodeGenerationPolicy::Ask
@ Ask
Definition: codegenerationpolicy.h:46
defaultcodegenpolicypage.h
CodeGenerationPolicy::IndentationType
IndentationType
Definition: codegenerationpolicy.h:49
CodeGenerationPolicy::setCodeVerboseDocumentComments
void setCodeVerboseDocumentComments(bool new_var)
Definition: codegenerationpolicy.cpp:139
CodeGenOptionsPage::validatePage
bool validatePage()
Definition: codegenoptionspage.cpp:209
CodeGenOptionsPage::overwriteToWidget
QRadioButton * overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value)
Definition: codegenoptionspage.cpp:144
CodeGenerationPolicy::setCodeVerboseSectionComments
void setCodeVerboseSectionComments(bool new_var)
Definition: codegenerationpolicy.cpp:115
CodeGenerationPolicy::MAC
@ MAC
Definition: codegenerationpolicy.h:48
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:975
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
codegenoptionspage.h
CodeGenerationPolicy::UNIX
@ UNIX
Definition: codegenerationpolicy.h:48
CodeGenerationPolicy::Never
@ Never
Definition: codegenerationpolicy.h:46
CodeGenOptionsPage::indentTypeToInteger
static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value)
Definition: codegenoptionspage.cpp:106
CodeGenerationPolicy::SPACE
@ SPACE
Definition: codegenerationpolicy.h:49
CodeGenerationPolicy::setOverwritePolicy
void setOverwritePolicy(OverwritePolicy new_var)
Definition: codegenerationpolicy.cpp:74
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
CodeGenerationPolicy::getIncludeHeadings
bool getIncludeHeadings() const
Definition: codegenerationpolicy.cpp:191
codegenerationpolicypage.h
CodeGenerationPolicy::setHeadingFileDir
void setHeadingFileDir(const QString &path)
Definition: codegenerationpolicy.cpp:162
DefaultCodeGenPolicyPage
Definition: defaultcodegenpolicypage.h:19
CodeGenerationPolicy::getLineEndingType
NewLineType getLineEndingType()
Definition: codegenerationpolicy.cpp:244
CodeGenOptionsPage
Definition: codegenoptionspage.h:36
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
CodeGenOptionsPage::CodeGenOptionsPage
CodeGenOptionsPage(QWidget *parent=0)
Definition: codegenoptionspage.cpp:41
CodeGenOptionsPage::updateCodeGenerationPolicyTab
void updateCodeGenerationPolicyTab()
Definition: codegenoptionspage.cpp:179
CodeGenOptionsPage::apply
void apply()
Definition: codegenoptionspage.cpp:218
CodeGenerationPolicy::setIncludeHeadings
void setIncludeHeadings(bool new_var)
Definition: codegenerationpolicy.cpp:181
CodeGenOptionsPage::activeLanguageChanged
void activeLanguageChanged(int id)
Definition: codegenoptionspage.cpp:298
CodeGenOptionsPage::m_parentPolicy
CodeGenerationPolicy * m_parentPolicy
Definition: codegenoptionspage.h:47
CodeGenOptionsPage::browseClicked
void browseClicked()
Definition: codegenoptionspage.cpp:324
Uml::ProgrammingLanguage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:925
CodeGenerationPolicy::TAB
@ TAB
Definition: codegenerationpolicy.h:49
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2337
i18n
#define i18n
Definition: main.cpp:39
CodeGenOptionsPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
CodeGenerationPolicy::getHeadingFileDir
QString getHeadingFileDir() const
Definition: codegenerationpolicy.cpp:172
basictypes.h
CodeGenPolicyExt::createPage
virtual CodeGenerationPolicyPage * createPage(QWidget *parent=0, const char *name=0)=0
codegenerationpolicy.h
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition: codegenerationpolicy.h:46
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerationPolicy::getCodeVerboseDocumentComments
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:152
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2500
CodeGenerationPolicyPage
Definition: codegenerationpolicypage.h:31
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
CodeGenerationPolicy::getIndentationType
IndentationType getIndentationType()
Definition: codegenerationpolicy.cpp:273
CodeGenerationPolicy::setLineEndingType
void setLineEndingType(NewLineType type)
Definition: codegenerationpolicy.cpp:221
CodeGenerationPolicy::getOverwritePolicy
OverwritePolicy getOverwritePolicy() const
Definition: codegenerationpolicy.cpp:85
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
CodeGenOptionsPage::changeLanguage
void changeLanguage()
Definition: codegenoptionspage.cpp:309
CodeGenerationPolicy::getIndentationAmount
int getIndentationAmount()
Definition: codegenerationpolicy.cpp:295
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
CodeGenerationPolicy::setIndentationAmount
void setIndentationAmount(int amount)
Definition: codegenerationpolicy.cpp:282
CodeGenerationPolicy::DOS
@ DOS
Definition: codegenerationpolicy.h:48
uml.h
CodeGenerationPolicy::setOutputDirectory
void setOutputDirectory(QDir new_var)
Definition: codegenerationpolicy.cpp:201
CodeGenerationPolicyPage::apply
virtual void apply()
Definition: codegenerationpolicypage.cpp:44
CodeGenerationPolicy::NewLineType
NewLineType
Definition: codegenerationpolicy.h:48
CodeGenerationPolicy::getOutputDirectory
QDir getOutputDirectory()
Definition: codegenerationpolicy.cpp:211
CodeGenOptionsPage::widgetToOverwrite
CodeGenerationPolicy::OverwritePolicy widgetToOverwrite()
Definition: codegenoptionspage.cpp:162
CodeGenOptionsPage::applyClicked
void applyClicked()
codegenpolicyext.h
CodeGenOptionsPage::languageChanged
void languageChanged()
CodeGenOptionsPage::getLanguage
QString getLanguage()
Definition: codegenoptionspage.cpp:347
codegenerator.h
CodeGenerator
Definition: codegenerator.h:57
CodeGenFactory::newCodeGenPolicyExt
CodeGenPolicyExt * newCodeGenPolicyExt(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:435
CodeGenOptionsPage::m_pCodePolicyPage
CodeGenerationPolicyPage * m_pCodePolicyPage
Definition: codegenoptionspage.h:50
CodeGenerationPolicy::getCodeVerboseSectionComments
bool getCodeVerboseSectionComments() const
Definition: codegenerationpolicy.cpp:127
CodeGenOptionsPage::setupActiveLanguageBox
void setupActiveLanguageBox()
Definition: codegenoptionspage.cpp:89
CodeGenOptionsPage::~CodeGenOptionsPage
~CodeGenOptionsPage()
Definition: codegenoptionspage.cpp:81