diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-21 16:12:14 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-21 16:12:14 +0000 |
| commit | ba892d265222409f0887b9cb92923c501b48decd (patch) | |
| tree | 032e0ba3d8ceca83af23f4ccb8d01b53aca0cbf7 /FL | |
| parent | 2549a4ad6285fe28341979b0a64f289feaedb531 (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Help_Dialog.H | 5 | ||||
| -rw-r--r-- | FL/Fl_Help_View.H | 5 |
2 files changed, 8 insertions, 2 deletions
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 <FL/Fl_Double_Window.H> #include <FL/Fl_Help_View.H> #include <FL/Fl_Button.H> +#include <FL/Fl_Input.H> 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 $". // |
