umbrello: umbrello/codegenwizard/codegenoptionspage.h Source File

umbrello 2.32.3 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 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2002 Luis De la Parra <luis@delaparra.org>
5 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7#ifndef CODEGENOPTIONSPAGE_H
8#define CODEGENOPTIONSPAGE_H
9
10// app includes
11#include "ui_codegenoptionspage.h"
12#include "basictypes.h"
13#include "codegenerationpolicy.h"
14
15// qt includes
16#include <QWizardPage>
17
18class QRadioButton;
19class CodeGenerationPolicy;
20class CodeGenerationPolicyPage;
21
30 class CodeGenOptionsPage : public QWizardPage, private Ui::CodeGenOptionsPage
31{
32 Q_OBJECT
33public:
34 explicit CodeGenOptionsPage(QWidget *parent = 0);
35 ~CodeGenOptionsPage();
36 QString getLanguage();
37 void apply();
38 bool save();
39 bool validatePage();
40
41protected:
42 CodeGenerationPolicy *m_parentPolicy;
43
44private:
45 CodeGenerationPolicyPage *m_pCodePolicyPage;
46
47 QRadioButton* overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value);
48 CodeGenerationPolicy::OverwritePolicy widgetToOverwrite();
49 static int newLineToInteger(CodeGenerationPolicy::NewLineType value);
50 static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value);
51 void setupActiveLanguageBox();
52
53protected slots:
54 void activeLanguageChanged(int id);
55 void updateCodeGenerationPolicyTab();
56 void browseClicked();
57
58private slots:
59 void changeLanguage();
60
61signals:
62 void applyClicked();
63 void languageChanged();
64 void syncCodeDocumentsToParent();
65
66};
67
68#endif
basictypes.h
CodeGenOptionsPage
Definition: codegenoptionspage.h:31
CodeGenOptionsPage::newLineToInteger
static int newLineToInteger(CodeGenerationPolicy::NewLineType value)
Definition: codegenoptionspage.cpp:120
CodeGenOptionsPage::changeLanguage
void changeLanguage()
Definition: codegenoptionspage.cpp:306
CodeGenOptionsPage::save
bool save()
Definition: codegenoptionspage.cpp:242
CodeGenOptionsPage::languageChanged
void languageChanged()
CodeGenOptionsPage::widgetToOverwrite
CodeGenerationPolicy::OverwritePolicy widgetToOverwrite()
Definition: codegenoptionspage.cpp:157
CodeGenOptionsPage::getLanguage
QString getLanguage()
Definition: codegenoptionspage.cpp:344
CodeGenOptionsPage::apply
void apply()
Definition: codegenoptionspage.cpp:215
CodeGenOptionsPage::setupActiveLanguageBox
void setupActiveLanguageBox()
Definition: codegenoptionspage.cpp:84
CodeGenOptionsPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
CodeGenOptionsPage::validatePage
bool validatePage()
Definition: codegenoptionspage.cpp:206
CodeGenOptionsPage::applyClicked
void applyClicked()
CodeGenOptionsPage::updateCodeGenerationPolicyTab
void updateCodeGenerationPolicyTab()
Definition: codegenoptionspage.cpp:174
CodeGenOptionsPage::indentTypeToInteger
static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value)
Definition: codegenoptionspage.cpp:101
CodeGenOptionsPage::activeLanguageChanged
void activeLanguageChanged(int id)
Definition: codegenoptionspage.cpp:295
CodeGenOptionsPage::CodeGenOptionsPage
CodeGenOptionsPage(QWidget *parent=0)
Definition: codegenoptionspage.cpp:36
CodeGenOptionsPage::m_pCodePolicyPage
CodeGenerationPolicyPage * m_pCodePolicyPage
Definition: codegenoptionspage.h:45
CodeGenOptionsPage::~CodeGenOptionsPage
~CodeGenOptionsPage()
Definition: codegenoptionspage.cpp:76
CodeGenOptionsPage::overwriteToWidget
QRadioButton * overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value)
Definition: codegenoptionspage.cpp:139
CodeGenOptionsPage::m_parentPolicy
CodeGenerationPolicy * m_parentPolicy
Definition: codegenoptionspage.h:42
CodeGenOptionsPage::browseClicked
void browseClicked()
Definition: codegenoptionspage.cpp:321
CodeGenerationPolicyPage
Definition: codegenerationpolicypage.h:17
CodeGenerationPolicy
Definition: codegenerationpolicy.h:26
CodeGenerationPolicy::NewLineType
NewLineType
Definition: codegenerationpolicy.h:44
CodeGenerationPolicy::IndentationType
IndentationType
Definition: codegenerationpolicy.h:45
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition: codegenerationpolicy.h:42
codegenerationpolicy.h