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

cppcodegenerationform.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5#ifndef CPPCODEGENERATIONFORM_H
6#define CPPCODEGENERATIONFORM_H
7
8#include "ui_cppcodegenerationformbase.h"
9
10 class QListWidgetItem;
11
16 class CPPCodeGenerationForm : public QWidget, private Ui::CPPCodeGenerationFormBase
17{
18 Q_OBJECT
19 public:
20
21 explicit CPPCodeGenerationForm (QWidget *parent = 0, const char *name = 0);
22 virtual ~CPPCodeGenerationForm();
23
24 void setPackageIsANamespace(bool bFlag = true);
25 void setVirtualDestructors(bool bFlag = true);
26 void setGenerateEmptyConstructors(bool bFlag = true);
27 void setGenerateAccessorMethods(bool bFlag = true);
28 void setOperationsAreInline(bool bFlag = true);
29 void setAccessorsAreInline(bool bFlag = true);
30 void setAccessorsArePublic(bool bFlag = true);
31 void setGenerateMakefileDocument(bool bFlag = true);
32 void setDocToolTag(const QString &value);
33 void setGetterWithoutGetPrefix(bool bFlag = true);
34 void setRemovePrefixFromAccessorMethodName(bool bFlag = true);
35 void setAccessorMethodsStartWithUpperCase(bool bFlag);
36 void setClassMemberPrefix(const QString &value);
37
38 bool getPackageIsANamespace();
39 bool getVirtualDestructors();
40 bool getGenerateEmptyConstructors();
41 bool getGenerateAccessorMethods();
42 bool getOperationsAreInline();
43 bool getAccessorsAreInline();
44 bool getAccessorsArePublic();
45 bool getGenerateMakefileDocument();
46 QString getDocToolTag();
47 bool getGettersWithGetPrefix();
48 bool getRemovePrefixFromAccessorMethodName();
49 bool getAccessorMethodsStartWithUpperCase();
50 QString getClassMemberPrefix();
51
52 public slots:
53
54 virtual void browseClicked();
55
56 private slots:
57
58 virtual void generalOptionsListWidgetClicked(QListWidgetItem *);
59
60 private:
61
62 friend class CPPCodeGenerationPolicyPage;
63
64 // check boxes for the available options
65 QListWidgetItem *m_optionPackageIsANamespace;
66 QListWidgetItem *m_optionVirtualDestructors;
67 QListWidgetItem *m_optionGenerateEmptyConstructors;
68 QListWidgetItem *m_optionGenerateAccessorMethods;
69 QListWidgetItem *m_optionOperationsAreInline;
70 QListWidgetItem *m_optionAccessorsAreInline;
71 QListWidgetItem *m_optionAccessorsArePublic;
72 QListWidgetItem *m_optionDocToolTag;
73 QListWidgetItem *m_optionGetterWithGetPrefix;
74 QListWidgetItem *m_optionRemovePrefixFromAccessorMethodName;
75 QListWidgetItem *m_optionAccessorMethodsStartWithUpperCase;
76
77 static Qt::CheckState toCheckState(bool value);
78
79};
80
81#endif
82
CPPCodeGenerationForm
Definition cppcodegenerationform.h:17
CPPCodeGenerationForm::setGenerateMakefileDocument
void setGenerateMakefileDocument(bool bFlag=true)
CPPCodeGenerationForm::m_optionAccessorsAreInline
QListWidgetItem * m_optionAccessorsAreInline
Definition cppcodegenerationform.h:70
CPPCodeGenerationForm::getGenerateEmptyConstructors
bool getGenerateEmptyConstructors()
Definition cppcodegenerationform.cpp:336
CPPCodeGenerationForm::getDocToolTag
QString getDocToolTag()
Definition cppcodegenerationform.cpp:408
CPPCodeGenerationForm::getGenerateAccessorMethods
bool getGenerateAccessorMethods()
Definition cppcodegenerationform.cpp:345
CPPCodeGenerationForm::generalOptionsListWidgetClicked
virtual void generalOptionsListWidgetClicked(QListWidgetItem *)
Definition cppcodegenerationform.cpp:125
CPPCodeGenerationForm::getClassMemberPrefix
QString getClassMemberPrefix()
Definition cppcodegenerationform.cpp:417
CPPCodeGenerationForm::getPackageIsANamespace
bool getPackageIsANamespace()
Definition cppcodegenerationform.cpp:318
CPPCodeGenerationForm::getRemovePrefixFromAccessorMethodName
bool getRemovePrefixFromAccessorMethodName()
Definition cppcodegenerationform.cpp:390
CPPCodeGenerationForm::getGenerateMakefileDocument
bool getGenerateMakefileDocument()
CPPCodeGenerationForm::toCheckState
static Qt::CheckState toCheckState(bool value)
Definition cppcodegenerationform.cpp:427
CPPCodeGenerationForm::getAccessorMethodsStartWithUpperCase
bool getAccessorMethodsStartWithUpperCase()
Definition cppcodegenerationform.cpp:399
CPPCodeGenerationForm::m_optionAccessorMethodsStartWithUpperCase
QListWidgetItem * m_optionAccessorMethodsStartWithUpperCase
Definition cppcodegenerationform.h:75
CPPCodeGenerationForm::m_optionVirtualDestructors
QListWidgetItem * m_optionVirtualDestructors
Definition cppcodegenerationform.h:66
CPPCodeGenerationForm::m_optionGenerateAccessorMethods
QListWidgetItem * m_optionGenerateAccessorMethods
Definition cppcodegenerationform.h:68
CPPCodeGenerationForm::setRemovePrefixFromAccessorMethodName
void setRemovePrefixFromAccessorMethodName(bool bFlag=true)
Definition cppcodegenerationform.cpp:282
CPPCodeGenerationForm::m_optionGetterWithGetPrefix
QListWidgetItem * m_optionGetterWithGetPrefix
Definition cppcodegenerationform.h:73
CPPCodeGenerationForm::m_optionAccessorsArePublic
QListWidgetItem * m_optionAccessorsArePublic
Definition cppcodegenerationform.h:71
CPPCodeGenerationForm::getVirtualDestructors
bool getVirtualDestructors()
Definition cppcodegenerationform.cpp:327
CPPCodeGenerationForm::setGenerateAccessorMethods
void setGenerateAccessorMethods(bool bFlag=true)
Definition cppcodegenerationform.cpp:229
CPPCodeGenerationForm::getOperationsAreInline
bool getOperationsAreInline()
Definition cppcodegenerationform.cpp:354
CPPCodeGenerationForm::getAccessorsArePublic
bool getAccessorsArePublic()
Definition cppcodegenerationform.cpp:372
CPPCodeGenerationForm::setAccessorsArePublic
void setAccessorsArePublic(bool bFlag=true)
Definition cppcodegenerationform.cpp:264
CPPCodeGenerationForm::setClassMemberPrefix
void setClassMemberPrefix(const QString &value)
Definition cppcodegenerationform.cpp:309
CPPCodeGenerationForm::m_optionDocToolTag
QListWidgetItem * m_optionDocToolTag
Definition cppcodegenerationform.h:72
CPPCodeGenerationForm::setAccessorsAreInline
void setAccessorsAreInline(bool bFlag=true)
Definition cppcodegenerationform.cpp:255
CPPCodeGenerationForm::m_optionPackageIsANamespace
QListWidgetItem * m_optionPackageIsANamespace
Definition cppcodegenerationform.h:65
CPPCodeGenerationForm::setGenerateEmptyConstructors
void setGenerateEmptyConstructors(bool bFlag=true)
Definition cppcodegenerationform.cpp:220
CPPCodeGenerationForm::setGetterWithoutGetPrefix
void setGetterWithoutGetPrefix(bool bFlag=true)
Definition cppcodegenerationform.cpp:273
CPPCodeGenerationForm::setOperationsAreInline
void setOperationsAreInline(bool bFlag=true)
Definition cppcodegenerationform.cpp:246
CPPCodeGenerationForm::m_optionOperationsAreInline
QListWidgetItem * m_optionOperationsAreInline
Definition cppcodegenerationform.h:69
CPPCodeGenerationForm::setPackageIsANamespace
void setPackageIsANamespace(bool bFlag=true)
Definition cppcodegenerationform.cpp:202
CPPCodeGenerationForm::setAccessorMethodsStartWithUpperCase
void setAccessorMethodsStartWithUpperCase(bool bFlag)
Definition cppcodegenerationform.cpp:291
CPPCodeGenerationForm::~CPPCodeGenerationForm
virtual ~CPPCodeGenerationForm()
Definition cppcodegenerationform.cpp:96
CPPCodeGenerationForm::browseClicked
virtual void browseClicked()
Definition cppcodegenerationform.cpp:103
CPPCodeGenerationForm::m_optionGenerateEmptyConstructors
QListWidgetItem * m_optionGenerateEmptyConstructors
Definition cppcodegenerationform.h:67
CPPCodeGenerationForm::m_optionRemovePrefixFromAccessorMethodName
QListWidgetItem * m_optionRemovePrefixFromAccessorMethodName
Definition cppcodegenerationform.h:74
CPPCodeGenerationForm::getGettersWithGetPrefix
bool getGettersWithGetPrefix()
Definition cppcodegenerationform.cpp:381
CPPCodeGenerationForm::CPPCodeGenerationForm
CPPCodeGenerationForm(QWidget *parent=0, const char *name=0)
Definition cppcodegenerationform.cpp:25
CPPCodeGenerationForm::setDocToolTag
void setDocToolTag(const QString &value)
Definition cppcodegenerationform.cpp:300
CPPCodeGenerationForm::setVirtualDestructors
void setVirtualDestructors(bool bFlag=true)
Definition cppcodegenerationform.cpp:211
CPPCodeGenerationForm::getAccessorsAreInline
bool getAccessorsAreInline()
Definition cppcodegenerationform.cpp:363
CPPCodeGenerationPolicyPage
Definition cppcodegenerationpolicypage.h:16