From 743cd4f95d6b3e9ad2cfe7c299647f2260791b76 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 10 Sep 2001 03:09:43 +0000 Subject: HelpView/HelpDialog updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_HelpView.H | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'FL/Fl_HelpView.H') diff --git a/FL/Fl_HelpView.H b/FL/Fl_HelpView.H index 2cf6b7349..eea75ea04 100644 --- a/FL/Fl_HelpView.H +++ b/FL/Fl_HelpView.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_HelpView.H,v 1.1.2.2 2001/08/06 23:51:39 easysw Exp $" +// "$Id: Fl_HelpView.H,v 1.1.2.3 2001/09/10 03:09:43 easysw Exp $" // // Help Viewer widget definitions. // @@ -101,6 +101,7 @@ struct Fl_HelpImage hattr[8]; // Height attribute Fl_Image *image; // FLTK image representation unsigned char *data; // Raw image data + int copy; // Data is a copy? int w, h, d; // Image size & depth }; @@ -157,12 +158,14 @@ class Fl_HelpView : public Fl_Group //// Help viewer widget int load_png(Fl_HelpImage *img, FILE *fp); Fl_HelpBlock *add_block(const char *s, int xx, int yy, int ww, int hh, uchar border = 0); + static int compare_blocks(const void *a, const void *b); void add_link(const char *n, int xx, int yy, int ww, int hh); void add_target(const char *n, int yy); static int compare_targets(const Fl_HelpTarget *t0, const Fl_HelpTarget *t1); int do_align(Fl_HelpBlock *block, int line, int xx, int a, int &l); void draw(); void format(); + void format_table(int *table_width, int *columns, const char *table); int get_align(const char *p, int a); const char *get_attr(const char *p, const char *n, char *buf, int bufsize); Fl_Color get_color(const char *n, Fl_Color c); @@ -207,5 +210,5 @@ class Fl_HelpView : public Fl_Group //// Help viewer widget #endif // !_Fl_HelpView_H_ // -// End of "$Id: Fl_HelpView.H,v 1.1.2.2 2001/08/06 23:51:39 easysw Exp $". +// End of "$Id: Fl_HelpView.H,v 1.1.2.3 2001/09/10 03:09:43 easysw Exp $". // -- cgit v1.2.3