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

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

- File List
- File Members

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
18 class QRadioButton;
19 class CodeGenerationPolicy;
20 class CodeGenerationPolicyPage;
21
30 class CodeGenOptionsPage : public QWizardPage, private Ui::CodeGenOptionsPage
31{
32 Q_OBJECT
33 public:
34 explicit CodeGenOptionsPage(QWidget *parent = 0);
35 ~CodeGenOptionsPage();
36 QString getLanguage();
37 void apply();
38 bool save();
39 bool validatePage();
40
41 protected:
42 CodeGenerationPolicy *m_parentPolicy;
43
44 private:
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
53 protected slots:
54 void activeLanguageChanged(int id);
55 void updateCodeGenerationPolicyTab();
56 void browseClicked();
57
58 private 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:114
CodeGenOptionsPage::changeLanguage
void changeLanguage()
Definition codegenoptionspage.cpp:301
CodeGenOptionsPage::save
bool save()
Definition codegenoptionspage.cpp:237
CodeGenOptionsPage::languageChanged
void languageChanged()
CodeGenOptionsPage::widgetToOverwrite
CodeGenerationPolicy::OverwritePolicy widgetToOverwrite()
Definition codegenoptionspage.cpp:151
CodeGenOptionsPage::getLanguage
QString getLanguage()
Definition codegenoptionspage.cpp:335
CodeGenOptionsPage::apply
void apply()
Definition codegenoptionspage.cpp:209
CodeGenOptionsPage::setupActiveLanguageBox
void setupActiveLanguageBox()
Definition codegenoptionspage.cpp:78
CodeGenOptionsPage::syncCodeDocumentsToParent
void syncCodeDocumentsToParent()
CodeGenOptionsPage::validatePage
bool validatePage()
Definition codegenoptionspage.cpp:200
CodeGenOptionsPage::applyClicked
void applyClicked()
CodeGenOptionsPage::updateCodeGenerationPolicyTab
void updateCodeGenerationPolicyTab()
Definition codegenoptionspage.cpp:168
CodeGenOptionsPage::indentTypeToInteger
static int indentTypeToInteger(CodeGenerationPolicy::IndentationType value)
Definition codegenoptionspage.cpp:95
CodeGenOptionsPage::activeLanguageChanged
void activeLanguageChanged(int id)
Definition codegenoptionspage.cpp:290
CodeGenOptionsPage::CodeGenOptionsPage
CodeGenOptionsPage(QWidget *parent=0)
Definition codegenoptionspage.cpp:30
CodeGenOptionsPage::m_pCodePolicyPage
CodeGenerationPolicyPage * m_pCodePolicyPage
Definition codegenoptionspage.h:45
CodeGenOptionsPage::~CodeGenOptionsPage
~CodeGenOptionsPage()
Definition codegenoptionspage.cpp:70
CodeGenOptionsPage::overwriteToWidget
QRadioButton * overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value)
Definition codegenoptionspage.cpp:133
CodeGenOptionsPage::m_parentPolicy
CodeGenerationPolicy * m_parentPolicy
Definition codegenoptionspage.h:42
CodeGenOptionsPage::browseClicked
void browseClicked()
Definition codegenoptionspage.cpp:316
CodeGenerationPolicyPage
Definition codegenerationpolicypage.h:17
CodeGenerationPolicy
Definition codegenerationpolicy.h:26
CodeGenerationPolicy::NewLineType
NewLineType
Definition codegenerationpolicy.h:45
CodeGenerationPolicy::IndentationType
IndentationType
Definition codegenerationpolicy.h:46
CodeGenerationPolicy::OverwritePolicy
OverwritePolicy
Definition codegenerationpolicy.h:42
codegenerationpolicy.h