diff options
author | kanje <kanje@users.noreply.github.com> | 2016-10-05 13:59:09 (GMT) |
---|---|---|
committer | kanje <kanje@users.noreply.github.com> | 2016-10-05 13:59:09 (GMT) |
commit | f50d9ed4cdc7d4e7884bb64fddb01b017b880778 (patch) | |
tree | 5fc2604997f700eb9afd7f2eb8d8d0194700cc01 | |
parent | 8074d26746e58056b8aa1444439368b038f1dcd7 (diff) | |
download | Doxygen-f50d9ed4cdc7d4e7884bb64fddb01b017b880778.zip Doxygen-f50d9ed4cdc7d4e7884bb64fddb01b017b880778.tar.gz Doxygen-f50d9ed4cdc7d4e7884bb64fddb01b017b880778.tar.bz2 |
Add mscgen images to index.qhp
Include mscgen images to QtHelp *.qch output.
-rw-r--r-- | src/msc.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/msc.cpp b/src/msc.cpp index b093403..5b73d65 100644 --- a/src/msc.cpp +++ b/src/msc.cpp @@ -21,6 +21,7 @@ #include "message.h" #include "docparser.h" #include "doxygen.h" +#include "index.h" #include "util.h" #include "ftextstream.h" @@ -103,20 +104,20 @@ void writeMscGraphFromFile(const char *inFile,const char *outDir, //printf("Going to dir %s\n",QDir::currentDirPath().data()); QCString mscExe = Config_getString(MSCGEN_PATH)+"mscgen"+portable_commandExtension(); QCString mscArgs; - QCString extension; + QCString imgName = outFile; switch (format) { case MSC_BITMAP: mscArgs+="-T png"; - extension=".png"; + imgName+=".png"; break; case MSC_EPS: mscArgs+="-T eps"; - extension=".eps"; + imgName+=".eps"; break; case MSC_SVG: mscArgs+="-T svg"; - extension=".svg"; + imgName+=".svg"; break; default: goto error; // I am not very fond of goto statements, but when in Rome... @@ -125,8 +126,7 @@ void writeMscGraphFromFile(const char *inFile,const char *outDir, mscArgs+=inFile; mscArgs+="\" -o \""; - mscArgs+=outFile; - mscArgs+=extension+"\""; + mscArgs+=imgName+"\""; int exitCode; // printf("*** running: %s %s outDir:%s %s\n",mscExe.data(),mscArgs.data(),outDir,outFile); portable_sysTimerStart(); @@ -149,6 +149,8 @@ void writeMscGraphFromFile(const char *inFile,const char *outDir, portable_sysTimerStop(); } + Doxygen::indexList->addImageFile(imgName); + error: QDir::setCurrent(oldDir); } |