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

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

- File List
- File Members

dcodegenerator.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2007 Jari-Matti Mäkelä <jmjm@iki.fi>
5 SPDX-FileCopyrightText: 2008-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef DCODEGENERATOR_H
9#define DCODEGENERATOR_H
10
11#include "codeviewerstate.h"
12#include "advancedcodegenerator.h"
13#include "codeblockwithcomments.h"
14#include "dclassifiercodedocument.h"
15#include "dcodegenerationpolicy.h"
16#include "umldoc.h"
17
18#include <QString>
19
20 class CodeViewerDialog;
21
22 class DCodeGenerator : public AdvancedCodeGenerator
23{
24 Q_OBJECT
25 public:
26
27 DCodeGenerator();
28 virtual ~DCodeGenerator();
29
30 bool getAutoGenerateAttribAccessors();
31 bool getAutoGenerateAssocAccessors();
32
33 static QString getListFieldClassName();
34
35 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
36 Settings::CodeViewerState & state);
37
38 static QString capitalizeFirstLetter(const QString &item);
39
40 DCodeGenerationPolicy * getDPolicy();
41
42 CodeDocument * newClassifierCodeDocument (UMLClassifier * classifier);
43
44 Uml::ProgrammingLanguage::Enum language() const;
45
46 virtual QStringList defaultDatatypes() const;
47
48 static QString fixTypeName(const QString &item);
49
50 virtual QStringList reservedKeywords() const;
51
52 protected:
53
54// /**
55// * Create the codeblock that will represent the class declaration
56// * for this classifier.
57// */
58// CodeBlockWithComments * createClassDecl (UMLClassifier *c, DClassifierCodeDocument * doc);
59
60 private:
61
62};
63
64#endif // DCODEGENERATOR_H
advancedcodegenerator.h
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:18
CodeDocument
Definition: codedocument.h:30
CodeViewerDialog
Definition: codeviewerdialog.h:23
DCodeGenerationPolicy
Definition: dcodegenerationpolicy.h:19
DCodeGenerator
Definition: dcodegenerator.h:23
DCodeGenerator::getDPolicy
DCodeGenerationPolicy * getDPolicy()
Definition: dcodegenerator.cpp:65
DCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: dcodegenerator.cpp:177
DCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: dcodegenerator.cpp:45
DCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: dcodegenerator.cpp:92
DCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: dcodegenerator.cpp:74
DCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: dcodegenerator.cpp:131
DCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: dcodegenerator.cpp:54
DCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: dcodegenerator.cpp:83
DCodeGenerator::capitalizeFirstLetter
static QString capitalizeFirstLetter(const QString &item)
Definition: dcodegenerator.cpp:102
DCodeGenerator::~DCodeGenerator
virtual ~DCodeGenerator()
Definition: dcodegenerator.cpp:37
DCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes() const
Definition: dcodegenerator.cpp:142
DCodeGenerator::fixTypeName
static QString fixTypeName(const QString &item)
Definition: dcodegenerator.cpp:117
DCodeGenerator::DCodeGenerator
DCodeGenerator()
Definition: dcodegenerator.cpp:26
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:15
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
codeblockwithcomments.h
codeviewerstate.h
dclassifiercodedocument.h
dcodegenerationpolicy.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
umldoc.h