From fe25f19767f1cd2393c4d1796fb42d5aa82b194c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 24 Jan 2011 17:04:22 +0000 Subject: Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Help_View.H | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'FL/Fl_Help_View.H') diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H index c3a4af7e9..cf61a9d44 100644 --- a/FL/Fl_Help_View.H +++ b/FL/Fl_Help_View.H @@ -57,8 +57,7 @@ typedef const char *(Fl_Help_Func)(Fl_Widget *, const char *); // Fl_Help_Block structure... // -struct Fl_Help_Block -{ +struct Fl_Help_Block { const char *start, // Start of text *end; // End of text uchar border; // Draw border? @@ -74,8 +73,7 @@ struct Fl_Help_Block // Fl_Help_Link structure... // /** Definition of a link for the html viewer. */ -struct Fl_Help_Link -{ +struct Fl_Help_Link { char filename[192], ///< Reference filename name[32]; ///< Link target (blank if none) int x, ///< X offset of link text @@ -138,8 +136,7 @@ protected: /** Fl_Help_Target structure */ -struct Fl_Help_Target -{ +struct Fl_Help_Target { char name[32]; ///< Target name int y; ///< Y offset of target }; @@ -209,8 +206,8 @@ struct Fl_Help_Target - yen Yuml yuml */ -class FL_EXPORT Fl_Help_View : public Fl_Group // Help viewer widget -{ +class FL_EXPORT Fl_Help_View : public Fl_Group { // Help viewer widget + enum { RIGHT = -1, CENTER, LEFT }; ///< Alignments char title_[1024]; ///< Title string -- cgit v1.2.3