tuchulcha  0.10.1
Graphical Workflow Configuration Editor
DocGenerator.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17 */
24 #ifndef DOCGENERATOR_H_
25 #define DOCGENERATOR_H_
26 
27 #include <QObject>
28 #include <vector>
29 
30 class QTextBrowser;
31 class QUrl;
32 class MetaData ;
33 
35 class DocGenerator : public QObject {
36  Q_OBJECT
37 
38 public:
40 
43  DocGenerator(QTextBrowser* viewer, QObject* parent = 0);
44 
45  virtual ~DocGenerator();
46 
47 public slots:
49  void showHelp();
50 
52  void showIntro();
53 
55 
59  void showDocPage(const QString& fileName);
60 
62 
63  void showClassDoc(const QString& className);
64 
66 
70  void showDocString(const QString& doc);
71 
73  void updateMetaData() ;
74 
75 protected:
77 
84  QString _docList(
85  QStringList parList, QString className,
86  QString slotType = "") const;
87 
89  QTextBrowser* _viewer;
90 
92  QString _stylesheet;
93 
95  QString _footer;
96 
98  QString _helpDoc;
99 
100 private:
101 
104 };
105 
106 #endif /*DOCGENERATOR_H_*/
void showDocString(const QString &doc)
Show the given html-formatted string.
Handle metadata management for ParameterFileModel classes.
Definition: MetaData.h:31
QString _docList(QStringList parList, QString className, QString slotType="") const
Generate documentation for the given list of parameters.
QString _footer
footer for doc pages
Definition: DocGenerator.h:95
QString _helpDoc
current docstring in help browser
Definition: DocGenerator.h:98
void showHelp()
show help page in help browser
QTextBrowser * _viewer
pointer to used viewer instance
Definition: DocGenerator.h:89
void showIntro()
show introduction message in help browser
DocGenerator(QTextBrowser *viewer, QObject *parent=0)
Default constructor.
void showClassDoc(const QString &className)
show documentation page
QString _stylesheet
stylesheet for help doc
Definition: DocGenerator.h:92
handle documentation page generation
Definition: DocGenerator.h:35
void updateMetaData()
update internal MetaData Object, call when plugins are updated
MetaData * _meta
MetaData of all loaded Plugins.
Definition: DocGenerator.h:103
void showDocPage(const QString &fileName)
Show documentation page.