umbrello: umbrello/codegenerators/ruby/rubycodegenerator.h Source File

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

rubycodegenerator.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) 2005 *
8 * Richard Dale <Richard_Dale@tipitina.demon.co.uk> *
9 * copyright (C) 2006-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef RUBYCODEGENERATOR_H
14 #define RUBYCODEGENERATOR_H
15
16 #include "codeviewerstate.h"
17 #include "advancedcodegenerator.h"
18 #include "rubyclassifiercodedocument.h"
19 #include "rubycodegenerationpolicy.h"
20 #include "umldoc.h"
21
22 #include <QString>
23
24 class CodeBlockWithComments;
25 class CodeViewerDialog;
26
27 class RubyCodeGenerator : public AdvancedCodeGenerator
28 {
29 Q_OBJECT
30 public:
31
32 RubyCodeGenerator();
33 virtual ~RubyCodeGenerator();
34
35 bool getAutoGenerateAttribAccessors();
36 bool getAutoGenerateAssocAccessors();
37
38 static QString getListFieldClassName();
39
40 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
41 Settings::CodeViewerState & state);
42
43 RubyCodeGenerationPolicy * getRubyPolicy();
44
45 CodeDocument * newClassifierCodeDocument(UMLClassifier * classifier);
46
47 Uml::ProgrammingLanguage::Enum language() const;
48
49 static QString cppToRubyType(const QString &cppType);
50 static QString cppToRubyName(const QString &cppName);
51
52 virtual QStringList reservedKeywords() const;
53
54 protected:
55
56 // CodeBlockWithComments * createClassDecl(UMLClassifier *c, RubyClassifierCodeDocument * doc);
57
58 };
59
60 #endif // RUBYCODEGENERATOR_H
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
codeviewerdialog.h
RubyCodeGenerator::~RubyCodeGenerator
virtual ~RubyCodeGenerator()
Definition: rubycodegenerator.cpp:45
Uml::ProgrammingLanguage::Ruby
@ Ruby
Definition: basictypes.h:287
RubyCodeGenerationPolicy::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: rubycodegenerationpolicy.cpp:73
CodeDocument
Definition: codedocument.h:33
rubyclassifiercodedocument.h
RubyCodeGenerator::getRubyPolicy
RubyCodeGenerationPolicy * getRubyPolicy()
Definition: rubycodegenerator.cpp:73
rubycodecomment.h
RubyCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: rubycodegenerator.cpp:82
RubyCodeGenerationPolicy::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: rubycodegenerationpolicy.cpp:64
advancedcodegenerator.h
RubyCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: rubycodegenerator.cpp:53
RubyCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: rubycodegenerator.cpp:100
ClassifierCodeDocument::initCodeClassFields
virtual void initCodeClassFields()
Definition: classifiercodedocument.cpp:540
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:22
AdvancedCodeGenerator::connectSlots
void connectSlots()
Definition: advancedcodegenerator.cpp:112
RubyCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: rubycodegenerator.cpp:160
CodeBlockWithComments
Definition: codeblockwithcomments.h:24
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
RubyCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: rubycodegenerator.cpp:62
CodeViewerDialog
Definition: codeviewerdialog.h:28
RubyCodeGenerationPolicy
Definition: rubycodegenerationpolicy.h:24
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2290
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
codeviewerstate.h
RubyClassifierCodeDocument
Definition: rubyclassifiercodedocument.h:37
RubyCodeGenerator
Definition: rubycodegenerator.h:28
RubyCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: rubycodegenerator.cpp:149
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
RubyCodeGenerator::cppToRubyType
static QString cppToRubyType(const QString &cppType)
Definition: rubycodegenerator.cpp:111
rubycodegenerator.h
umldoc.h
RubyCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: rubycodegenerator.cpp:91
rubycodegenerationpolicy.h
RubyCodeGenerator::RubyCodeGenerator
RubyCodeGenerator()
Definition: rubycodegenerator.cpp:32
RubyCodeGenerator::cppToRubyName
static QString cppToRubyName(const QString &cppName)
Definition: rubycodegenerator.cpp:135