umbrello: umbrello/codegenerators/cpp/cppcodegenerationform.h Source File

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

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
10class QListWidgetItem;
11
15
16 class CPPCodeGenerationForm : public QWidget, private Ui::CPPCodeGenerationFormBase
17{
18 Q_OBJECT
19public:
20
21 explicit CPPCodeGenerationForm (QWidget *parent = nullptr, const char *name = nullptr);
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
52public Q_SLOTS:
53
54 virtual void browseClicked();
55
56private Q_SLOTS:
57
58 virtual void generalOptionsListWidgetClicked(QListWidgetItem *);
59
60private:
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::setGenerateMakefileDocument
void setGenerateMakefileDocument(bool bFlag=true)
CPPCodeGenerationForm::m_optionAccessorsAreInline
QListWidgetItem * m_optionAccessorsAreInline
Definition cppcodegenerationform.h:70
CPPCodeGenerationForm::getGenerateEmptyConstructors
bool getGenerateEmptyConstructors()
Definition cppcodegenerationform.cpp:338
CPPCodeGenerationForm::getDocToolTag
QString getDocToolTag()
Definition cppcodegenerationform.cpp:410
CPPCodeGenerationForm::getGenerateAccessorMethods
bool getGenerateAccessorMethods()
Definition cppcodegenerationform.cpp:347
CPPCodeGenerationForm::generalOptionsListWidgetClicked
virtual void generalOptionsListWidgetClicked(QListWidgetItem *)
Definition cppcodegenerationform.cpp:127
CPPCodeGenerationForm::getClassMemberPrefix
QString getClassMemberPrefix()
Definition cppcodegenerationform.cpp:419
CPPCodeGenerationForm::getPackageIsANamespace
bool getPackageIsANamespace()
Definition cppcodegenerationform.cpp:320
CPPCodeGenerationForm::getRemovePrefixFromAccessorMethodName
bool getRemovePrefixFromAccessorMethodName()
Definition cppcodegenerationform.cpp:392
CPPCodeGenerationForm::getGenerateMakefileDocument
bool getGenerateMakefileDocument()
CPPCodeGenerationForm::toCheckState
static Qt::CheckState toCheckState(bool value)
Definition cppcodegenerationform.cpp:429
CPPCodeGenerationForm::getAccessorMethodsStartWithUpperCase
bool getAccessorMethodsStartWithUpperCase()
Definition cppcodegenerationform.cpp:401
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:284
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:329
CPPCodeGenerationForm::setGenerateAccessorMethods
void setGenerateAccessorMethods(bool bFlag=true)
Definition cppcodegenerationform.cpp:231
CPPCodeGenerationForm::getOperationsAreInline
bool getOperationsAreInline()
Definition cppcodegenerationform.cpp:356
CPPCodeGenerationForm::getAccessorsArePublic
bool getAccessorsArePublic()
Definition cppcodegenerationform.cpp:374
CPPCodeGenerationForm::setAccessorsArePublic
void setAccessorsArePublic(bool bFlag=true)
Definition cppcodegenerationform.cpp:266
CPPCodeGenerationForm::setClassMemberPrefix
void setClassMemberPrefix(const QString &value)
Definition cppcodegenerationform.cpp:311
CPPCodeGenerationForm::m_optionDocToolTag
QListWidgetItem * m_optionDocToolTag
Definition cppcodegenerationform.h:72
CPPCodeGenerationForm::setAccessorsAreInline
void setAccessorsAreInline(bool bFlag=true)
Definition cppcodegenerationform.cpp:257
CPPCodeGenerationForm::m_optionPackageIsANamespace
QListWidgetItem * m_optionPackageIsANamespace
Definition cppcodegenerationform.h:65
CPPCodeGenerationForm::setGenerateEmptyConstructors
void setGenerateEmptyConstructors(bool bFlag=true)
Definition cppcodegenerationform.cpp:222
CPPCodeGenerationForm::setGetterWithoutGetPrefix
void setGetterWithoutGetPrefix(bool bFlag=true)
Definition cppcodegenerationform.cpp:275
CPPCodeGenerationForm::setOperationsAreInline
void setOperationsAreInline(bool bFlag=true)
Definition cppcodegenerationform.cpp:248
CPPCodeGenerationForm::m_optionOperationsAreInline
QListWidgetItem * m_optionOperationsAreInline
Definition cppcodegenerationform.h:69
CPPCodeGenerationForm::setPackageIsANamespace
void setPackageIsANamespace(bool bFlag=true)
Definition cppcodegenerationform.cpp:204
CPPCodeGenerationForm::setAccessorMethodsStartWithUpperCase
void setAccessorMethodsStartWithUpperCase(bool bFlag)
Definition cppcodegenerationform.cpp:293
CPPCodeGenerationForm::~CPPCodeGenerationForm
virtual ~CPPCodeGenerationForm()
Definition cppcodegenerationform.cpp:98
CPPCodeGenerationForm::browseClicked
virtual void browseClicked()
Definition cppcodegenerationform.cpp:105
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:383
CPPCodeGenerationForm::setDocToolTag
void setDocToolTag(const QString &value)
Definition cppcodegenerationform.cpp:302
CPPCodeGenerationForm::CPPCodeGenerationForm
CPPCodeGenerationForm(QWidget *parent=nullptr, const char *name=nullptr)
Definition cppcodegenerationform.cpp:24
CPPCodeGenerationForm::CPPCodeGenerationPolicyPage
friend class CPPCodeGenerationPolicyPage
Definition cppcodegenerationform.h:62
CPPCodeGenerationForm::setVirtualDestructors
void setVirtualDestructors(bool bFlag=true)
Definition cppcodegenerationform.cpp:213
CPPCodeGenerationForm::getAccessorsAreInline
bool getAccessorsAreInline()
Definition cppcodegenerationform.cpp:365