umbrello: umbrello/codegenerators/advancedcodegenerator.h Source File

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

advancedcodegenerator.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) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef ADVANCEDCODEGENERATOR_H
13 #define ADVANCEDCODEGENERATOR_H
14
15 #include "codegenerator.h"
16
21 class AdvancedCodeGenerator : public CodeGenerator
22 {
23 Q_OBJECT
24 public:
25 AdvancedCodeGenerator();
26 virtual ~AdvancedCodeGenerator();
27
28 virtual CodeDocument * newClassifierCodeDocument(UMLClassifier * classifier) = 0;
29 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
30 Settings::CodeViewerState & state);
31
32 public slots:
33 virtual void checkAddUMLObject(UMLObject * obj);
34 virtual void checkRemoveUMLObject(UMLObject * obj);
35
36 protected:
37 virtual void initFromParentDocument();
38 void connectSlots();
39 };
40
41 #endif // ADVANCEDCODEGENERATOR_H
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
CodeGenerator::syncCodeToDocument
virtual void syncCodeToDocument()
Definition: codegenerator.cpp:285
codeviewerdialog.h
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
AdvancedCodeGenerator::initFromParentDocument
virtual void initFromParentDocument()
Definition: advancedcodegenerator.cpp:93
AdvancedCodeGenerator::AdvancedCodeGenerator
AdvancedCodeGenerator()
Definition: advancedcodegenerator.cpp:23
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
CodeGenerator::findCodeDocumentByClassifier
CodeDocument * findCodeDocumentByClassifier(UMLClassifier *classifier)
Definition: codegenerator.cpp:300
CodeDocument
Definition: codedocument.h:33
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
classifiercodedocument.h
advancedcodegenerator.h
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:22
CodeGenerator::removeCodeDocument
bool removeCodeDocument(CodeDocument *remove_object)
Definition: codegenerator.cpp:150
AdvancedCodeGenerator::connectSlots
void connectSlots()
Definition: advancedcodegenerator.cpp:112
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
AdvancedCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: advancedcodegenerator.cpp:37
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
AdvancedCodeGenerator::~AdvancedCodeGenerator
virtual ~AdvancedCodeGenerator()
Definition: advancedcodegenerator.cpp:30
UMLDoc::classesAndInterfaces
UMLClassifierList classesAndInterfaces(bool includeNested=true)
Definition: umldoc.cpp:3007
CodeViewerDialog
Definition: codeviewerdialog.h:28
AdvancedCodeGenerator::checkAddUMLObject
virtual void checkAddUMLObject(UMLObject *obj)
Definition: advancedcodegenerator.cpp:46
classifier.h
AdvancedCodeGenerator::checkRemoveUMLObject
virtual void checkRemoveUMLObject(UMLObject *obj)
Definition: advancedcodegenerator.cpp:62
uml.h
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
codegenerator.h
CodeGenerator
Definition: codegenerator.h:57
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
CodeGenerator::addCodeDocument
bool addCodeDocument(CodeDocument *add_object)
Definition: codegenerator.cpp:125
CodeGenerator::m_document
UMLDoc * m_document
Definition: codegenerator.h:148
umldoc.h
AdvancedCodeGenerator::newClassifierCodeDocument
virtual CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)=0