|
umbrello
2.38.5
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <rubycodegenerator.h>
Static Public Member Functions | |
| static QString | getListFieldClassName () |
| static QString | cppToRubyType (const QString &cppType) |
| static QString | cppToRubyName (const QString &cppName) |
Static Public Member Functions inherited from CodeGenerator | |
| static QString | cleanName (const QString &name) |
| static QString | formatDoc (const QString &text, const QString &linePrefix=QStringLiteral(" *"), int lineWidth=80) |
| static QString | formatFullDocBlock (const QString &text, const QString &blockHeader=QStringLiteral("/* "), const QString &blockFooter=QStringLiteral(" */"), const QString &linePrefix=QStringLiteral(" *"), int lineWidth=80) |
| static QString | formatSourceCode (const QString &code, const QString &indentation) |
| static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
Additional Inherited Members | |
Public Types inherited from CodeGenerator | |
| enum | GenerationState { Generated, Failed, Skipped } |
Public Slots inherited from AdvancedCodeGenerator | |
| virtual void | checkAddUMLObject (UMLObject *obj) |
| virtual void | checkRemoveUMLObject (UMLObject *obj) |
Public Slots inherited from CodeGenerator | |
| virtual void | syncCodeToDocument () |
Signals inherited from CodeGenerator | |
| void | codeGenerated (UMLClassifier *concept, bool generated) |
| void | codeGenerated (UMLClassifier *concept, CodeGenerator::GenerationState result) |
| void | showGeneratedFile (const QString &filename) |
Protected Member Functions inherited from AdvancedCodeGenerator | |
| virtual void | initFromParentDocument () |
| void | connectSlots () |
Protected Member Functions inherited from CodeGenerator | |
| QString | overwritableName (const QString &name, const QString &extension) |
| bool | openFile (QFile &file, const QString &name) |
| void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
| virtual void | finalizeRun () |
Protected Attributes inherited from CodeGenerator | |
| QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
| bool | m_applyToAllRemaining |
| UMLDoc * | m_document |
| RubyCodeGenerator::RubyCodeGenerator | ( | ) |
Constructor.
|
virtual |
Destructor.
|
static |
Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.
| cppName | the C++ name to be converted |
|
static |
Convert a C++ type such as 'int' or 'QWidget' to ruby types Integer and Qt::Widget.
| cppType | the C++ type to be converted |
| bool RubyCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
| bool RubyCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
|
virtual |
Get the editing dialog for this code document.
Reimplemented from AdvancedCodeGenerator.
|
static |
Get the list variable class name to use. For Ruby, we have set this to "Array".
| RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy | ( | ) |
Utility function for getting the ruby code generation policy.
|
virtual |
|
virtual |
Create a new classifier code document.
| classifier | the UML classifier |
Implements AdvancedCodeGenerator.
|
virtual |
Get list of reserved keywords.
Reimplemented from CodeGenerator.
1.8.10