summaryrefslogtreecommitdiffstats
path: root/src/plantuml.cpp
diff options
context:
space:
mode:
authorAnders Wallander <anders.wallander@volvocars.com>2016-10-15 13:12:40 (GMT)
committerAnders Wallander <anders.wallander@volvocars.com>2016-10-18 12:23:21 (GMT)
commitc7b740d96288f19e31bd35405306c49bb9fc20c4 (patch)
tree5fa6e7e9f4dcb18d90f4bd4e2e2ae8590f62e79e /src/plantuml.cpp
parentadb44ae6ef1d102caea1338373be078bf4a5d640 (diff)
downloadDoxygen-c7b740d96288f19e31bd35405306c49bb9fc20c4.zip
Doxygen-c7b740d96288f19e31bd35405306c49bb9fc20c4.tar.gz
Doxygen-c7b740d96288f19e31bd35405306c49bb9fc20c4.tar.bz2
Adds plantuml support Qt compressed help file
Plantuml generated diagrams will be included in the index.qcp file which defines what files to include in the Qt compressed help file. This means that plantuml diagrams will work in the Qt creator help viewer. Signed-off-by: Anders Wallander <anders.wallander@volvocars.com>
Diffstat (limited to 'src/plantuml.cpp')
-rw-r--r--src/plantuml.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plantuml.cpp b/src/plantuml.cpp
index 1171289..3b113fb 100644
--- a/src/plantuml.cpp
+++ b/src/plantuml.cpp
@@ -16,6 +16,8 @@
#include "plantuml.h"
#include "portable.h"
#include "config.h"
+#include "doxygen.h"
+#include "index.h"
#include "message.h"
#include <qdir.h>
@@ -84,28 +86,30 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp
pumlArgs+="-o \"";
pumlArgs+=outDir;
pumlArgs+="\" ";
- QCString extension;
+ QCString imgName = baseName;
switch (format)
{
case PUML_BITMAP:
pumlArgs+="-tpng";
- extension=".png";
+ imgName+=".png";
break;
case PUML_EPS:
pumlArgs+="-teps";
- extension=".eps";
+ imgName+=".eps";
break;
case PUML_SVG:
pumlArgs+="-tsvg";
- extension=".svg";
+ imgName+=".svg";
break;
}
pumlArgs+=" \"";
+ pumlArgs+=outDir;
+ pumlArgs+="/";
pumlArgs+=baseName;
pumlArgs+=".pu\" ";
pumlArgs+="-charset UTF-8 ";
int exitCode;
- //printf("*** running: %s %s outDir:%s %s\n",pumlExe.data(),pumlArgs.data(),outDir,outFile);
+ //printf("*** running: %s %s outDir:%s %s\n",pumlExe.data(),pumlArgs.data(),outDir,baseName);
msg("Running PlantUML on generated file %s.pu\n",baseName);
portable_sysTimerStart();
if ((exitCode=portable_system(pumlExe,pumlArgs,TRUE))!=0)
@@ -129,5 +133,6 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp
}
portable_sysTimerStop();
}
+ Doxygen::indexList->addImageFile(imgName);
}