| 1 | // This file is part of SmallBASIC |
| 2 | // |
| 3 | // Copyright(C) 2001-2019 Chris Warren-Smith. |
| 4 | // |
| 5 | // This program is distributed under the terms of the GPL v2.0 or later |
| 6 | // Download the GNU Public License (GPL) from www.gnu.org |
| 7 | // |
| 8 | |
| 9 | #ifndef Fl_HELP_VIEW |
| 10 | #define Fl_HELP_VIEW |
| 11 | |
| 12 | #include "platform/fltk/HelpWidget.h" |
| 13 | |
| 14 | const char *getBriefHelp(const char *selection); |
| 15 | |
| 16 | struct HelpView : public HelpWidget { |
| 17 | HelpView(Fl_Widget *rect, int fontSize); |
| 18 | ~HelpView(); |
| 19 | |
| 20 | void about(); |
| 21 | void anchorClick(); |
| 22 | void helpIndex(); |
| 23 | bool loadHelp(const char *path); |
| 24 | void showContextHelp(const char *selection); |
| 25 | |
| 26 | private: |
| 27 | void showHelp(const char *node); |
| 28 | |
| 29 | int _openKeyword; |
| 30 | int _openPackage; |
| 31 | }; |
| 32 | |
| 33 | #endif |
| 34 | |