summaryrefslogtreecommitdiff
path: root/client/docgen
diff options
context:
space:
mode:
Diffstat (limited to 'client/docgen')
-rw-r--r--client/docgen/docgen.cc13
-rw-r--r--client/docgen/docgen.pro18
-rw-r--r--client/docgen/highlight.cc1
3 files changed, 25 insertions, 7 deletions
diff --git a/client/docgen/docgen.cc b/client/docgen/docgen.cc
index 4eb2e08..181b82c 100644
--- a/client/docgen/docgen.cc
+++ b/client/docgen/docgen.cc
@@ -41,6 +41,7 @@
#include "generate.h"
#define WIDGETS_DIR "../widgets"
+#define PRAXISDIF_DIR "../../praxisdif/curl"
#define SERVER_DIR "../../server/src"
#define CLIENT_DIR ".."
#define OUTPUT "html"
@@ -204,6 +205,18 @@ int main(int argc, char *argv[])
}
}
+ // Praxisdif
+ {
+ QDir dir(PRAXISDIF_DIR);
+ QStringList filter; filter << "*.h";
+ dir.setNameFilters(filter);
+ if(!dir.exists()) return 1;
+ QFileInfoList inflst = dir.entryInfoList(QDir::Files);
+ foreach(QFileInfo inf, inflst) {
+ files.append(inf.absoluteFilePath());
+ }
+ }
+
foreach(QString file, files) {
Doc doc = parse(file);
if(doc.title != "" || doc.tag != "" || doc.classname != "")
diff --git a/client/docgen/docgen.pro b/client/docgen/docgen.pro
index 4521347..73e7ed2 100644
--- a/client/docgen/docgen.pro
+++ b/client/docgen/docgen.pro
@@ -7,12 +7,12 @@ INCLUDEPATH += . .. ../widgets
QT += core gui xml svg network sql
RESOURCES += ../client.qrc
-include(../../VERSION)
+include(../VERSION)
DEFINES+=VERSION=\\\"$$VERSION\\\"
win32 {
LIBPATH += lua/lib
- INCLUDEPATH += lua/include
+ INCLUDEPATH += lua/include ../../praxisdif/qt
LIBS += -llua51
DEFINES += HOST_WIN32
}
@@ -34,8 +34,6 @@ SOURCES += \
../lua.cc \
../luawidget.cc \
../luadb.cc \
- ../luapraxisd.cc \
- ../praxisd.cc \
../messagebox.cc \
../macrowindow.cc \
../collapser.cc \
@@ -46,6 +44,7 @@ SOURCES += \
../header.cc \
../macrodrawer.cc \
../aboutbox.cc \
+ ../shortcuttooltip.cc \
../widgets/common.cc \
../widgets/widget.cc \
../widgets/label.cc \
@@ -64,7 +63,9 @@ SOURCES += \
../widgets/checkgroupbox.cc \
../widgets/window.cc \
../widgets/altcombobox.cc \
- ../widgets/metawidget.cc
+ ../widgets/metawidget.cc \
+ ../../praxisdif/qt/luapraxisd.cc \
+ ../../praxisdif/qt/praxisd.cc
HEADERS += \
genimage.h \
@@ -73,7 +74,6 @@ HEADERS += \
doc.h \
highlight.h \
../expandbutton.h \
- ../praxisd.h \
../template.h \
../debug.h \
../lua.h \
@@ -90,6 +90,7 @@ HEADERS += \
../header.h \
../macrodrawer.h \
../aboutbox.h \
+ ../shortcuttooltip.h \
../widgets.h \
../widgets/common.h \
../widgets/widget.h \
@@ -109,4 +110,7 @@ HEADERS += \
../widgets/checkgroupbox.h \
../widgets/window.h \
../widgets/altcombobox.h \
- ../widgets/metawidget.h
+ ../widgets/metawidget.h \
+ ../../praxisdif/qt/luapraxisd.h \
+ ../../praxisdif/curl/luapraxisd.h \
+ ../../praxisdif/qt/praxisd.h
diff --git a/client/docgen/highlight.cc b/client/docgen/highlight.cc
index 0857320..018cf4f 100644
--- a/client/docgen/highlight.cc
+++ b/client/docgen/highlight.cc
@@ -169,4 +169,5 @@ QString highlight(QString code, lang_t lang)
case xml:
return highlight_xml(code);
}
+ return "";
}