diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-12-27 19:12:07 (GMT) |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2018-10-22 19:21:42 (GMT) |
commit | 3a97099d5e6afd298486f219694a7fb5eff67fea (patch) | |
tree | 979abad6dd502a4d28dac1f29a1bce9e4bb3b336 /src/ftvhelp.cpp | |
parent | d94c10574f44c10ff0df9ce24c09cb6fcaac37c0 (diff) | |
download | Doxygen-3a97099d5e6afd298486f219694a7fb5eff67fea.zip Doxygen-3a97099d5e6afd298486f219694a7fb5eff67fea.tar.gz Doxygen-3a97099d5e6afd298486f219694a7fb5eff67fea.tar.bz2 |
Added *.ice files as a recognized file type.
Added a Slice-optimized output mode.
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r-- | src/ftvhelp.cpp | 69 |
1 files changed, 65 insertions, 4 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index 8c46fd5..a13d45f 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -35,6 +35,7 @@ #include "docparser.h" #include "htmldocvisitor.h" #include "filedef.h" +#include "classdef.h" #include "util.h" #include "resourcemgr.h" @@ -359,11 +360,41 @@ void FTVHelp::generateTree(FTextStream &t, const QList<FTVNode> &nl,int level,in } else if (n->def && n->def->definitionType()==Definition::TypeNamespace) { - t << "<span class=\"icona\"><span class=\"icon\">N</span></span>"; + if (n->def->getLanguage() == SrcLangExt_Slice) + { + t << "<span class=\"icona\"><span class=\"icon\">M</span></span>"; + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">N</span></span>"; + } } else if (n->def && n->def->definitionType()==Definition::TypeClass) { - t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + if (n->def->getLanguage() == SrcLangExt_Slice) + { + ClassDef *cd = dynamic_cast<ClassDef*>(n->def); + if (cd->isInterface()) + { + t << "<span class=\"icona\"><span class=\"icon\">I</span></span>"; + } + else if (cd->isStruct()) + { + t << "<span class=\"icona\"><span class=\"icon\">S</span></span>"; + } + else if (cd->isException()) + { + t << "<span class=\"icona\"><span class=\"icon\">E</span></span>"; + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + } + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + } } else { @@ -407,11 +438,41 @@ void FTVHelp::generateTree(FTextStream &t, const QList<FTVNode> &nl,int level,in } else if (n->def && n->def->definitionType()==Definition::TypeNamespace) { - t << "<span class=\"icona\"><span class=\"icon\">N</span></span>"; + if (n->def->getLanguage() == SrcLangExt_Slice) + { + t << "<span class=\"icona\"><span class=\"icon\">M</span></span>"; + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">N</span></span>"; + } } else if (n->def && n->def->definitionType()==Definition::TypeClass) { - t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + if (n->def->getLanguage() == SrcLangExt_Slice) + { + ClassDef *cd = dynamic_cast<ClassDef*>(n->def); + if (cd->isInterface()) + { + t << "<span class=\"icona\"><span class=\"icon\">I</span></span>"; + } + else if (cd->isStruct()) + { + t << "<span class=\"icona\"><span class=\"icon\">S</span></span>"; + } + else if (cd->isException()) + { + t << "<span class=\"icona\"><span class=\"icon\">E</span></span>"; + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + } + } + else + { + t << "<span class=\"icona\"><span class=\"icon\">C</span></span>"; + } } else { |