From b51dd39f073cb3341f0406ef22b7e3eb8e1ffba7 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 16 Jun 2006 19:45:13 +0000 Subject: Added text selection and copy/paste to Fl_Help_View. Text can be selected by clicking and dragging the mouse over text. After releasing the mouse button, a stripped down ASCII text is in the text clipboard. Press Ctrl-C to copy the text into the main clipboard. Pressing Ctrl-A selects all text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Help_View.H | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Help_View.H') diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H index 71e2a476c..d8a20fb17 100644 --- a/FL/Fl_Help_View.H +++ b/FL/Fl_Help_View.H @@ -158,7 +158,15 @@ class FL_EXPORT Fl_Help_View : public Fl_Group //// Help viewer widget fl_font(f = fonts_[nfonts_][0], s = fonts_[nfonts_][1]); } - public: + void hv_draw(const char *t, int x, int y); + char begin_selection(); + char extend_selection(); + void end_selection(int c=0); + void clear_global_selection(); + Fl_Help_Link *find_link(int, int); + void follow_link(Fl_Help_Link*); + +public: Fl_Help_View(int xx, int yy, int ww, int hh, const char *l = 0); ~Fl_Help_View(); @@ -186,6 +194,8 @@ class FL_EXPORT Fl_Help_View : public Fl_Group //// Help viewer widget int leftline() const { return (leftline_); } void value(const char *v); const char *value() const { return (value_); } + void clear_selection(); + void select_all(); }; #endif // !Fl_Help_View_H -- cgit v1.2.3