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

classimport.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-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CLASSIMPORT_H
12 #define CLASSIMPORT_H
13
14 #include <QStringList>
15
16 class CodeImpThread;
17
25 class ClassImport
26 {
27 public:
28 ClassImport(CodeImpThread* thread = 0);
29 virtual ~ClassImport();
30
31 bool importFiles(const QStringList& fileNames);
32 bool importFile(const QString& fileName);
33 void setRootPath(const QString &path);
34
40 bool enabled() { return m_enabled; }
41
42 static ClassImport *createImporterByFileExt(const QString &fileName, CodeImpThread* thread = 0);
43
44 protected:
45
52 virtual void initialize() = 0;
53
54 virtual void initPerFile();
55
62 virtual bool parseFile(const QString& fileName) = 0;
63
64 void log(const QString& file, const QString& text);
65 void log(const QString& text);
66
67 CodeImpThread* m_thread;
68 bool m_enabled;
69 QString m_rootPath;
70 };
71
72 #endif
UMLDoc::setImporting
void setImporting(bool state=true)
Definition: umldoc.cpp:1598
pythonimport.h
javaimport.h
ClassImport::log
void log(const QString &file, const QString &text)
Definition: classimport.cpp:133
idlimport.h
ClassImport::importFile
bool importFile(const QString &fileName)
Definition: classimport.cpp:117
pascalimport.h
ClassImport::~ClassImport
virtual ~ClassImport()
Definition: classimport.cpp:75
ClassImport::initPerFile
virtual void initPerFile()
Definition: classimport.cpp:84
CSharpImport
Definition: csharpimport.h:25
ClassImport
Definition: classimport.h:26
AdaImport
Definition: adaimport.h:26
JavaImport
Definition: javaimport.h:25
CppImport
Definition: cppimport.h:26
classimport.h
ClassImport::m_enabled
bool m_enabled
state of importer
Definition: classimport.h:68
csharpimport.h
PascalImport
Definition: pascalimport.h:22
adaimport.h
phpimport.h
UMLDoc::setLoading
void setLoading(bool state=true)
Definition: umldoc.cpp:1581
IDLImport
Definition: idlimport.h:21
folder.h
i18n
#define i18n
Definition: main.cpp:39
ClassImport::setRootPath
void setRootPath(const QString &path)
Definition: classimport.cpp:123
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1208
uDebug
#define uDebug()
Definition: debug_utils.h:122
ClassImport::enabled
bool enabled()
Definition: classimport.h:40
cppimport.h
CodeImpThread
Definition: codeimpthread.h:36
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
sqlimport.h
UMLDoc
Definition: umldoc.h:75
CodeImpThread::emitMessageToLog
void emitMessageToLog(const QString &file, const QString &text)
Definition: codeimpthread.cpp:102
ClassImport::initialize
virtual void initialize()=0
PythonImport
Definition: pythonimport.h:24
ClassImport::importFiles
bool importFiles(const QStringList &fileNames)
Definition: classimport.cpp:92
ClassImport::createImporterByFileExt
static ClassImport * createImporterByFileExt(const QString &fileName, CodeImpThread *thread=0)
Definition: classimport.cpp:43
uml.h
debug_utils.h
ClassImport::m_rootPath
QString m_rootPath
root path of import
Definition: classimport.h:69
PHPImport
Definition: phpimport.h:26
ClassImport::m_thread
CodeImpThread * m_thread
thread in which the work of importing is done
Definition: classimport.h:67
codeimpthread.h
SQLImport
Definition: sqlimport.h:36
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
ClassImport::ClassImport
ClassImport(CodeImpThread *thread=0)
Definition: classimport.cpp:69
ClassImport::parseFile
virtual bool parseFile(const QString &fileName)=0