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

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:66
DCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition dcodegenerator.cpp:178
DCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition dcodegenerator.cpp:46
DCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition dcodegenerator.cpp:93
DCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition dcodegenerator.cpp:75
DCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition dcodegenerator.cpp:132
DCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition dcodegenerator.cpp:55
DCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition dcodegenerator.cpp:84
DCodeGenerator::capitalizeFirstLetter
static QString capitalizeFirstLetter(const QString &item)
Definition dcodegenerator.cpp:103
DCodeGenerator::~DCodeGenerator
virtual ~DCodeGenerator()
Definition dcodegenerator.cpp:38
DCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes() const
Definition dcodegenerator.cpp:143
DCodeGenerator::fixTypeName
static QString fixTypeName(const QString &item)
Definition dcodegenerator.cpp:118
DCodeGenerator::DCodeGenerator
DCodeGenerator()
Definition dcodegenerator.cpp:27
Settings::CodeViewerState
configurable params for the code viewer tool
Definition codeviewerstate.h:15
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
codeblockwithcomments.h
codeviewerstate.h
dclassifiercodedocument.h
dcodegenerationpolicy.h
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
umldoc.h