summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-08-08 12:54:22 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-08-08 12:54:22 (GMT)
commitd09056a74447fe1c841ffd469986afdffd99765b (patch)
tree7c2d3f65b509d762729291b5341f0751138192fd /src/ftvhelp.h
parent8c1096fc0147c36d3e026ec093b2c5f9158ae01d (diff)
downloadDoxygen-d09056a74447fe1c841ffd469986afdffd99765b.zip
Doxygen-d09056a74447fe1c841ffd469986afdffd99765b.tar.gz
Doxygen-d09056a74447fe1c841ffd469986afdffd99765b.tar.bz2
Release-1.3.3-20030808
Diffstat (limited to 'src/ftvhelp.h')
-rw-r--r--src/ftvhelp.h41
1 files changed, 37 insertions, 4 deletions
diff --git a/src/ftvhelp.h b/src/ftvhelp.h
index 3bcd7b9..8fdca6a 100644
--- a/src/ftvhelp.h
+++ b/src/ftvhelp.h
@@ -18,10 +18,41 @@
class QFile;
struct FTVNode;
-/*! A class that generated the FTV Help specific file.
- * This file is used in conjunction with additional FTV web browser code
- * that can be obtained from:
- * http://www.geocities.com/Paris/LeftBank/2178/ftexample.html
+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
{
@@ -38,6 +69,7 @@ class FTVHelp
const char *file,
const char *anchor,
const char *name);
+ static void generateTreeViewImages();
private:
void generateTreeView();
@@ -54,5 +86,6 @@ class FTVHelp
int m_indent;
};
+
#endif /* FTVHELP_H */