diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-06-16 19:45:13 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-06-16 19:45:13 +0000 |
| commit | b51dd39f073cb3341f0406ef22b7e3eb8e1ffba7 (patch) | |
| tree | 2fbd6ae19d0912f0c3df76ff477c7bc39d2b000e /FL | |
| parent | ec8ab0f22d4771082d347ab8b70af753b5e03b9e (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Help_View.H | 12 |
1 files changed, 11 insertions, 1 deletions
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 |
