umbrello 2.32.3 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 * 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) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10 #ifndef CPPCODEGENERATIONFORM_H
11 #define CPPCODEGENERATIONFORM_H
12
13 #include "ui_cppcodegenerationformbase.h"
14
15 class QListWidgetItem;
16
21 class CPPCodeGenerationForm : public QWidget, private Ui::CPPCodeGenerationFormBase
22 {
23 Q_OBJECT
24 public:
25
26 explicit CPPCodeGenerationForm (QWidget *parent = 0, const char *name = 0);
27 virtual ~CPPCodeGenerationForm();
28
29 void setPackageIsANamespace(bool bFlag = true);
30 void setVirtualDestructors(bool bFlag = true);
31 void setGenerateEmptyConstructors(bool bFlag = true);
32 void setGenerateAccessorMethods(bool bFlag = true);
33 void setOperationsAreInline(bool bFlag = true);
34 void setAccessorsAreInline(bool bFlag = true);
35 void setAccessorsArePublic(bool bFlag = true);
36 void setGenerateMakefileDocument(bool bFlag = true);
37 void setDocToolTag(const QString &value);
38 void setGetterWithoutGetPrefix(bool bFlag = true);
39 void setRemovePrefixFromAccessorMethodName(bool bFlag = true);
40 void setAccessorMethodsStartWithUpperCase(bool bFlag);
41 void setClassMemberPrefix(const QString &value);
42
43 bool getPackageIsANamespace();
44 bool getVirtualDestructors();
45 bool getGenerateEmptyConstructors();
46 bool getGenerateAccessorMethods();
47 bool getOperationsAreInline();
48 bool getAccessorsAreInline();
49 bool getAccessorsArePublic();
50 bool getGenerateMakefileDocument();
51 QString getDocToolTag();
52 bool getGettersWithGetPrefix();
53 bool getRemovePrefixFromAccessorMethodName();
54 bool getAccessorMethodsStartWithUpperCase();
55 QString getClassMemberPrefix();
56
57 public slots:
58
59 virtual void browseClicked();
60
61 private slots:
62
63 virtual void generalOptionsListWidgetClicked(QListWidgetItem *);
64
65 private:
66
67 friend class CPPCodeGenerationPolicyPage;
68
69 // check boxes for the available options
70 QListWidgetItem *m_optionPackageIsANamespace;
71 QListWidgetItem *m_optionVirtualDestructors;
72 QListWidgetItem *m_optionGenerateEmptyConstructors;
73 QListWidgetItem *m_optionGenerateAccessorMethods;
74 QListWidgetItem *m_optionOperationsAreInline;
75 QListWidgetItem *m_optionAccessorsAreInline;
76 QListWidgetItem *m_optionAccessorsArePublic;
77 QListWidgetItem *m_optionDocToolTag;
78 QListWidgetItem *m_optionGetterWithGetPrefix;
79 QListWidgetItem *m_optionRemovePrefixFromAccessorMethodName;
80 QListWidgetItem *m_optionAccessorMethodsStartWithUpperCase;
81
82 static Qt::CheckState toCheckState(bool value);
83
84 };
85
86 #endif
87
CPPCodeGenerationForm::m_optionGenerateEmptyConstructors
QListWidgetItem * m_optionGenerateEmptyConstructors
Definition: cppcodegenerationform.h:72
CPPCodeGenerationForm::generalOptionsListWidgetClicked
virtual void generalOptionsListWidgetClicked(QListWidgetItem *)
Definition: cppcodegenerationform.cpp:131
CPPCodeGenerationForm::setGenerateAccessorMethods
void setGenerateAccessorMethods(bool bFlag=true)
Definition: cppcodegenerationform.cpp:235
Ui_CPPCodeGenerationFormBase::ui_listIncludeFileHistoryCombo
KHistoryComboBox * ui_listIncludeFileHistoryCombo
Definition: ui_cppcodegenerationformbase.h:64
CPPCodeGenerationForm::getGenerateEmptyConstructors
bool getGenerateEmptyConstructors()
Definition: cppcodegenerationform.cpp:342
CPPCodeGenerationForm::toCheckState
static Qt::CheckState toCheckState(bool value)
Definition: cppcodegenerationform.cpp:433
CPPCodeGenerationForm::getRemovePrefixFromAccessorMethodName
bool getRemovePrefixFromAccessorMethodName()
Definition: cppcodegenerationform.cpp:396
CPPCodeGenerationForm::m_optionAccessorMethodsStartWithUpperCase
QListWidgetItem * m_optionAccessorMethodsStartWithUpperCase
Definition: cppcodegenerationform.h:80
CPPCodeGenerationForm::m_optionGetterWithGetPrefix
QListWidgetItem * m_optionGetterWithGetPrefix
Definition: cppcodegenerationform.h:78
CPPCodeGenerationForm::m_optionVirtualDestructors
QListWidgetItem * m_optionVirtualDestructors
Definition: cppcodegenerationform.h:71
cppcodegenerationform.h
CPPCodeGenerationForm::browseClicked
virtual void browseClicked()
Definition: cppcodegenerationform.cpp:105
CPPCodeGenerationForm::m_optionAccessorsAreInline
QListWidgetItem * m_optionAccessorsAreInline
Definition: cppcodegenerationform.h:75
CPPCodeGenerationForm::getAccessorMethodsStartWithUpperCase
bool getAccessorMethodsStartWithUpperCase()
Definition: cppcodegenerationform.cpp:405
CPPCodeGenerationForm::setGetterWithoutGetPrefix
void setGetterWithoutGetPrefix(bool bFlag=true)
Definition: cppcodegenerationform.cpp:279
CPPCodeGenerationForm::m_optionOperationsAreInline
QListWidgetItem * m_optionOperationsAreInline
Definition: cppcodegenerationform.h:74
Ui_CPPCodeGenerationFormBase::setupUi
void setupUi(QWidget *CPPCodeGenerationFormBase)
Definition: ui_cppcodegenerationformbase.h:74
CPPCodeGenerationForm::setVirtualDestructors
void setVirtualDestructors(bool bFlag=true)
Definition: cppcodegenerationform.cpp:217
CPPCodeGenerationForm::setClassMemberPrefix
void setClassMemberPrefix(const QString &value)
Definition: cppcodegenerationform.cpp:315
CPPCodeGenerationForm::~CPPCodeGenerationForm
virtual ~CPPCodeGenerationForm()
Definition: cppcodegenerationform.cpp:98
CPPCodeGenerationForm::m_optionDocToolTag
QListWidgetItem * m_optionDocToolTag
Definition: cppcodegenerationform.h:77
CPPCodeGenerationForm::setAccessorsAreInline
void setAccessorsAreInline(bool bFlag=true)
Definition: cppcodegenerationform.cpp:261
CPPCodeGenerationForm::setAccessorsArePublic
void setAccessorsArePublic(bool bFlag=true)
Definition: cppcodegenerationform.cpp:270
CPPCodeGenerationForm::setGenerateEmptyConstructors
void setGenerateEmptyConstructors(bool bFlag=true)
Definition: cppcodegenerationform.cpp:226
CPPCodeGenerationForm
Definition: cppcodegenerationform.h:22
Ui_CPPCodeGenerationFormBase::ui_classMemberPrefixEdit
QLineEdit * ui_classMemberPrefixEdit
Definition: ui_cppcodegenerationformbase.h:46
CPPCodeGenerationForm::getAccessorsArePublic
bool getAccessorsArePublic()
Definition: cppcodegenerationform.cpp:378
CPPCodeGenerationForm::setDocToolTag
void setDocToolTag(const QString &value)
Definition: cppcodegenerationform.cpp:306
CPPCodeGenerationForm::getVirtualDestructors
bool getVirtualDestructors()
Definition: cppcodegenerationform.cpp:333
i18n
#define i18n
Definition: main.cpp:39
CPPCodeGenerationForm::m_optionAccessorsArePublic
QListWidgetItem * m_optionAccessorsArePublic
Definition: cppcodegenerationform.h:76
CPPCodeGenerationForm::m_optionRemovePrefixFromAccessorMethodName
QListWidgetItem * m_optionRemovePrefixFromAccessorMethodName
Definition: cppcodegenerationform.h:79
CPPCodeGenerationForm::getGenerateAccessorMethods
bool getGenerateAccessorMethods()
Definition: cppcodegenerationform.cpp:351
CPPCodeGenerationForm::getClassMemberPrefix
QString getClassMemberPrefix()
Definition: cppcodegenerationform.cpp:423
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
CPPCodeGenerationForm::m_optionGenerateAccessorMethods
QListWidgetItem * m_optionGenerateAccessorMethods
Definition: cppcodegenerationform.h:73
Ui_CPPCodeGenerationFormBase::ui_stringIncludeFileHistoryCombo
KHistoryComboBox * ui_stringIncludeFileHistoryCombo
Definition: ui_cppcodegenerationformbase.h:65
CPPCodeGenerationForm::getGenerateMakefileDocument
bool getGenerateMakefileDocument()
Ui_CPPCodeGenerationFormBase::ui_generalOptionsListWidget
QListWidget * ui_generalOptionsListWidget
Definition: ui_cppcodegenerationformbase.h:47
CPPCodeGenerationForm::getGettersWithGetPrefix
bool getGettersWithGetPrefix()
Definition: cppcodegenerationform.cpp:387
CPPCodeGenerationForm::setPackageIsANamespace
void setPackageIsANamespace(bool bFlag=true)
Definition: cppcodegenerationform.cpp:208
CPPCodeGenerationForm::setAccessorMethodsStartWithUpperCase
void setAccessorMethodsStartWithUpperCase(bool bFlag)
Definition: cppcodegenerationform.cpp:297
CPPCodeGenerationForm::setOperationsAreInline
void setOperationsAreInline(bool bFlag=true)
Definition: cppcodegenerationform.cpp:252
ui_cppcodegenerationformbase.h
CPPCodeGenerationForm::getAccessorsAreInline
bool getAccessorsAreInline()
Definition: cppcodegenerationform.cpp:369
CPPCodeGenerationForm::CPPCodeGenerationForm
CPPCodeGenerationForm(QWidget *parent=0, const char *name=0)
Definition: cppcodegenerationform.cpp:35
CPPCodeGenerationForm::setRemovePrefixFromAccessorMethodName
void setRemovePrefixFromAccessorMethodName(bool bFlag=true)
Definition: cppcodegenerationform.cpp:288
CPPCodeGenerationForm::getDocToolTag
QString getDocToolTag()
Definition: cppcodegenerationform.cpp:414
CPPCodeGenerationPolicyPage
Definition: cppcodegenerationpolicypage.h:21
CPPCodeGenerationForm::m_optionPackageIsANamespace
QListWidgetItem * m_optionPackageIsANamespace
Definition: cppcodegenerationform.h:70
CPPCodeGenerationForm::setGenerateMakefileDocument
void setGenerateMakefileDocument(bool bFlag=true)
CPPCodeGenerationForm::getPackageIsANamespace
bool getPackageIsANamespace()
Definition: cppcodegenerationform.cpp:324
CPPCodeGenerationForm::getOperationsAreInline
bool getOperationsAreInline()
Definition: cppcodegenerationform.cpp:360
Ui::CPPCodeGenerationFormBase
Definition: ui_cppcodegenerationformbase.h:515