umbrello/umbrello
#include <dcodegenerator.h>

Static Public Member Functions | |
static QString | capitalizeFirstLetter (const QString &item) |
static QString | fixTypeName (const QString &item) |
static QString | getListFieldClassName () |
![]() | |
static QString | cleanName (const QString &name) |
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
static QString | formatDoc (const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80) |
static QString | formatSourceCode (const QString &code, const QString &indentation) |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
![]() | |
virtual void | checkAddUMLObject (UMLObject *obj) |
virtual void | checkRemoveUMLObject (UMLObject *obj) |
virtual void | syncCodeToDocument () |
![]() | |
void | codeGenerated (UMLClassifier *concept, bool generated) |
void | showGeneratedFile (const QString &filename) |
![]() | |
virtual void | finalizeRun () |
bool | openFile (QFile &file, const QString &name) |
QString | overwritableName (const QString &name, const QString &extension) |
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
bool | m_applyToAllRemaining |
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
UMLDoc * | m_document |
![]() | |
objectName | |
Detailed Description
Definition at line 26 of file dcodegenerator.h.
Constructor & Destructor Documentation
DCodeGenerator::DCodeGenerator | ( | ) |
Constructor.
Definition at line 31 of file dcodegenerator.cpp.
|
virtual |
Destructor.
Definition at line 41 of file dcodegenerator.cpp.
Member Function Documentation
General purpose function we may reuse for all types of D code documents.
- Parameters
-
item the item to change
- Returns
- the changed item
Definition at line 106 of file dcodegenerator.cpp.
|
virtual |
Adds D's primitives as datatypes.
- Returns
- the list of primitive datatypes
Reimplemented from CodeGenerator.
Definition at line 146 of file dcodegenerator.cpp.
IF the type is "string" we need to declare it as the D Object "String" (there is no string primative in D).
Same thing again for "bool" to "boolean".
- Parameters
-
item the item to change
- Returns
- the changed item
Definition at line 121 of file dcodegenerator.cpp.
bool DCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
- Returns
- value of flag
Definition at line 87 of file dcodegenerator.cpp.
bool DCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
- Returns
- value of flag
Definition at line 78 of file dcodegenerator.cpp.
|
virtual |
Get the editing dialog for this code document.
In the D version, we make the ANT build file also available.
Reimplemented from CodeGenerator.
Definition at line 58 of file dcodegenerator.cpp.
DCodeGenerationPolicy * DCodeGenerator::getDPolicy | ( | ) |
Utility function for getting the d code generation policy.
- Returns
- generation policy object
Definition at line 69 of file dcodegenerator.cpp.
|
static |
Get the list variable class name to use.
For D, we have set this to "Vector".
- Returns
- name of list field class
Definition at line 96 of file dcodegenerator.cpp.
|
virtual |
Return our language.
- Returns
- language identifier
Implements CodeGenerator.
Definition at line 49 of file dcodegenerator.cpp.
|
virtual |
Create a new classifier code document.
- Parameters
-
classifier the UML classifier
- Returns
- the created classifier code document object
Implements CodeGenerator.
Definition at line 135 of file dcodegenerator.cpp.
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 180 of file dcodegenerator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.