diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
commit | 48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (patch) | |
tree | 2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /src/ftvhelp.h | |
parent | dd7602fdd31d8f3e0f88be553da084a1e3fdec45 (diff) | |
download | Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.zip Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.gz Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.bz2 |
Release-1.7.2-20101224
Diffstat (limited to 'src/ftvhelp.h')
-rw-r--r-- | src/ftvhelp.h | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/src/ftvhelp.h b/src/ftvhelp.h index a857f16..cdac6c8 100644 --- a/src/ftvhelp.h +++ b/src/ftvhelp.h @@ -33,40 +33,6 @@ class QFile; struct FTVNode; class FTextStream; -struct FTVImageInfo -{ - const char *alt; - const char *name; - const unsigned char *data; - unsigned int len; - unsigned short width, height; -}; - -extern FTVImageInfo image_info[]; - -#define FTVIMG_blank 0 -#define FTVIMG_doc 1 -#define FTVIMG_folderclosed 2 -#define FTVIMG_folderopen 3 -#define FTVIMG_lastnode 4 -#define FTVIMG_link 5 -#define FTVIMG_mlastnode 6 -#define FTVIMG_mnode 7 -#define FTVIMG_node 8 -#define FTVIMG_plastnode 9 -#define FTVIMG_pnode 10 -#define FTVIMG_vertline 11 - -#define FTV_S(name) #name -#define FTV_ICON_FILE(name) "ftv2" FTV_S(name) ".png" -#define FTVIMG_INDEX(name) FTVIMG_ ## name -#define FTV_INFO(name) ( image_info[FTVIMG_INDEX(name)] ) -#define FTV_IMGATTRIBS(name) \ - "src=\"" FTV_ICON_FILE(name) "\" " \ - "alt=\"" << FTV_INFO(name).alt << "\" " \ - "width=\"" << FTV_INFO(name).width << "\" " \ - "height=\"" << FTV_INFO(name).height << "\" " - /*! A class that generates a dynamic tree view side panel. */ class FTVHelp : public IndexIntf @@ -93,11 +59,14 @@ class FTVHelp : public IndexIntf void generateTreeView(); void generateTreeViewInline(FTextStream &t); static void generateTreeViewImages(); + void generateTreeViewScripts(); private: void generateScript(FTextStream &t); void generateTree(FTextStream &t,const QList<FTVNode> &nl,int level); + bool generateJSTree(FTextStream &t,const QList<FTVNode> &nl,int level,bool &first); void generateIndent(FTextStream &t,FTVNode *n,int level); void generateLink(FTextStream &t,FTVNode *n); + void generateJSLink(FTextStream &t,FTVNode *n); QList<FTVNode> *m_indentNodes; int m_indent; bool m_topLevelIndex; |