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

dcodegenerator.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) 2007 Jari-Matti Mäkelä <jmjm@iki.fi> *
8 * copyright (C) 2008-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DCODEGENERATOR_H
13 #define DCODEGENERATOR_H
14
15 #include "codeviewerstate.h"
16 #include "advancedcodegenerator.h"
17 #include "codeblockwithcomments.h"
18 #include "dclassifiercodedocument.h"
19 #include "dcodegenerationpolicy.h"
20 #include "umldoc.h"
21
22 #include <QString>
23
24 class CodeViewerDialog;
25
26 class DCodeGenerator : public AdvancedCodeGenerator
27 {
28 Q_OBJECT
29 public:
30
31 DCodeGenerator();
32 virtual ~DCodeGenerator();
33
34 bool getAutoGenerateAttribAccessors();
35 bool getAutoGenerateAssocAccessors();
36
37 static QString getListFieldClassName();
38
39 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
40 Settings::CodeViewerState & state);
41
42 static QString capitalizeFirstLetter(const QString &item);
43
44 DCodeGenerationPolicy * getDPolicy();
45
46 CodeDocument * newClassifierCodeDocument (UMLClassifier * classifier);
47
48 Uml::ProgrammingLanguage::Enum language() const;
49
50 virtual QStringList defaultDatatypes();
51
52 static QString fixTypeName(const QString &item);
53
54 virtual QStringList reservedKeywords() const;
55
56 protected:
57
58 // /**
59 // * Create the codeblock that will represent the class declaration
60 // * for this classifier.
61 // */
62 // CodeBlockWithComments * createClassDecl (UMLClassifier *c, DClassifierCodeDocument * doc);
63
64 private:
65
66 };
67
68 #endif // DCODEGENERATOR_H
DCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes()
Definition: dcodegenerator.cpp:147
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
dcodecomment.h
codeblockwithcomments.h
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
dcodegenerationpolicy.h
DCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: dcodegenerator.cpp:182
codeviewerdialog.h
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
DCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: dcodegenerator.cpp:79
DCodeGenerationPolicy::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: dcodegenerationpolicy.cpp:82
DCodeGenerator::fixTypeName
static QString fixTypeName(const QString &item)
Definition: dcodegenerator.cpp:122
CodeDocument
Definition: codedocument.h:33
DCodeGenerator::DCodeGenerator
DCodeGenerator()
Definition: dcodegenerator.cpp:31
dcodegenerator.h
DCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: dcodegenerator.cpp:59
DCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: dcodegenerator.cpp:136
DCodeGenerationPolicy::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: dcodegenerationpolicy.cpp:73
Uml::ProgrammingLanguage::D
@ D
Definition: basictypes.h:276
advancedcodegenerator.h
DCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: dcodegenerator.cpp:88
ClassifierCodeDocument::initCodeClassFields
virtual void initCodeClassFields()
Definition: classifiercodedocument.cpp:540
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:22
AdvancedCodeGenerator::connectSlots
void connectSlots()
Definition: advancedcodegenerator.cpp:112
dclassifiercodedocument.h
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
CodeViewerDialog
Definition: codeviewerdialog.h:28
DCodeGenerator
Definition: dcodegenerator.h:27
DCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: dcodegenerator.cpp:50
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2299
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
codeviewerstate.h
DCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: dcodegenerator.cpp:97
DCodeGenerationPolicy
Definition: dcodegenerationpolicy.h:23
DCodeGenerator::capitalizeFirstLetter
static QString capitalizeFirstLetter(const QString &item)
Definition: dcodegenerator.cpp:107
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
DCodeGenerator::getDPolicy
DCodeGenerationPolicy * getDPolicy()
Definition: dcodegenerator.cpp:70
DCodeGenerator::~DCodeGenerator
virtual ~DCodeGenerator()
Definition: dcodegenerator.cpp:42
umldoc.h