diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-17 12:58:54 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-22 20:45:21 (GMT) |
commit | fcf21307020ad4565d2da1f3e3fa13c56d604bef (patch) | |
tree | 6dff67a8c5ae308e07d438d9e82e999a01bdc404 /src/ftvhelp.h | |
parent | d0b76baca69b5a08a5cf3f756b365f1350f88271 (diff) | |
download | Doxygen-fcf21307020ad4565d2da1f3e3fa13c56d604bef.zip Doxygen-fcf21307020ad4565d2da1f3e3fa13c56d604bef.tar.gz Doxygen-fcf21307020ad4565d2da1f3e3fa13c56d604bef.tar.bz2 |
Refactoring: modernize FTVHelp
Diffstat (limited to 'src/ftvhelp.h')
-rw-r--r-- | src/ftvhelp.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ftvhelp.h b/src/ftvhelp.h index 42fe707..b04247c 100644 --- a/src/ftvhelp.h +++ b/src/ftvhelp.h @@ -1,6 +1,6 @@ /****************************************************************************** * - * Copyright (C) 1997-2015 by Dimitri van Heesch. + * Copyright (C) 1997-2021 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -24,7 +24,7 @@ #ifndef FTVHELP_H #define FTVHELP_H -#include <qlist.h> +#include <vector> #include "index.h" class QFile; @@ -60,14 +60,11 @@ class FTVHelp : public IndexIntf static void generateTreeViewImages(); void generateTreeViewScripts(); private: - void generateTree(FTextStream &t,const QList<FTVNode> &nl,int level,int maxLevel,int &index); - //bool generateJSTree(FTextStream &tidx,FTextStream &t,const QList<FTVNode> &nl,int level,bool &first); - //bool generateJSTreeTopLevel(FTextStream &tidx,FTextStream &t,const QList<FTVNode> &nl,int level,bool &first); + void generateTree(FTextStream &t,const std::vector<FTVNode*> &nl,int level,int maxLevel,int &index); QCString generateIndentLabel(FTVNode *n,int level); void generateIndent(FTextStream &t,FTVNode *n,bool opened); void generateLink(FTextStream &t,FTVNode *n); - //void generateJSLink(FTextStream &t,FTVNode *n); - QList<FTVNode> *m_indentNodes; + std::vector< std::vector<FTVNode*> > m_indentNodes; int m_indent; bool m_topLevelIndex; }; |