From ba892d265222409f0887b9cb92923c501b48decd Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 21 May 2003 16:12:14 +0000 Subject: Add find() method to help widget and search box to help dialog. Default to blue for the selection color on OSX; otherwise links and other visual elements are not the correct color. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Help_Dialog.H | 5 +++++ FL/Fl_Help_View.H | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Help_Dialog.H b/FL/Fl_Help_Dialog.H index f73597e5e..b76752be6 100644 --- a/FL/Fl_Help_Dialog.H +++ b/FL/Fl_Help_Dialog.H @@ -6,12 +6,14 @@ #include #include #include +#include class FL_EXPORT Fl_Help_Dialog { int index_; int max_; int line_[100]; char file_[100][256]; + int find_pos_; public: Fl_Help_Dialog(); private: @@ -33,6 +35,9 @@ private: Fl_Button *larger_; inline void cb_larger__i(Fl_Button*, void*); static void cb_larger_(Fl_Button*, void*); + Fl_Input *find_; + inline void cb_find__i(Fl_Input*, void*); + static void cb_find_(Fl_Input*, void*); public: ~Fl_Help_Dialog(); int h(); diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H index b6b03fdc6..b12055e2d 100644 --- a/FL/Fl_Help_View.H +++ b/FL/Fl_Help_View.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.H,v 1.1.2.11 2003/01/30 21:39:13 easysw Exp $" +// "$Id: Fl_Help_View.H,v 1.1.2.12 2003/05/21 16:12:14 easysw Exp $" // // Help Viewer widget definitions. // @@ -164,6 +164,7 @@ class FL_EXPORT Fl_Help_View : public Fl_Group //// Help viewer widget else return ((const char *)0); } const char *filename() const { if (filename_[0]) return (filename_); else return ((const char *)0); } + int find(const char *s, int p = 0); void link(Fl_Help_Func *fn) { link_ = fn; } int load(const char *f); void resize(int,int,int,int); @@ -187,5 +188,5 @@ class FL_EXPORT Fl_Help_View : public Fl_Group //// Help viewer widget #endif // !Fl_Help_View_H // -// End of "$Id: Fl_Help_View.H,v 1.1.2.11 2003/01/30 21:39:13 easysw Exp $". +// End of "$Id: Fl_Help_View.H,v 1.1.2.12 2003/05/21 16:12:14 easysw Exp $". // -- cgit v1.2.3