DRC | 2ff39b8 | 2011-07-28 08:38:59 +0000 | [diff] [blame] | 1 | // |
| 2 | // "$Id: Fl_Wizard.H 8306 2011-01-24 17:04:22Z matt $" |
| 3 | // |
| 4 | // Fl_Wizard widget definitions. |
| 5 | // |
| 6 | // Copyright 1999-2010 by Easy Software Products. |
| 7 | // |
| 8 | // This library is free software; you can redistribute it and/or |
| 9 | // modify it under the terms of the GNU Library General Public |
| 10 | // License as published by the Free Software Foundation; either |
| 11 | // version 2 of the License, or (at your option) any later version. |
| 12 | // |
| 13 | // This library is distributed in the hope that it will be useful, |
| 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | // Library General Public License for more details. |
| 17 | // |
| 18 | // You should have received a copy of the GNU Library General Public |
| 19 | // License along with this library; if not, write to the Free Software |
| 20 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 21 | // USA. |
| 22 | // |
| 23 | // Please report all bugs and problems on the following page: |
| 24 | // |
| 25 | // http://www.fltk.org/str.php |
| 26 | // |
| 27 | |
| 28 | /* \file |
| 29 | Fl_Wizard widget . */ |
| 30 | |
| 31 | // |
| 32 | // Include necessary header files... |
| 33 | // |
| 34 | |
| 35 | #ifndef _Fl_Wizard_H_ |
| 36 | # define _Fl_Wizard_H_ |
| 37 | |
| 38 | # include <FL/Fl_Group.H> |
| 39 | |
| 40 | |
| 41 | /** |
| 42 | This widget is based off the Fl_Tabs |
| 43 | widget, but instead of displaying tabs it only changes "tabs" under |
| 44 | program control. Its primary purpose is to support "wizards" that |
| 45 | step a user through configuration or troubleshooting tasks. |
| 46 | |
| 47 | <P>As with Fl_Tabs, wizard panes are composed of child (usually |
| 48 | Fl_Group) widgets. Navigation buttons must be added separately. |
| 49 | */ |
| 50 | class FL_EXPORT Fl_Wizard : public Fl_Group { |
| 51 | |
| 52 | Fl_Widget *value_; |
| 53 | |
| 54 | void draw(); |
| 55 | |
| 56 | public: |
| 57 | |
| 58 | Fl_Wizard(int, int, int, int, const char * = 0); |
| 59 | |
| 60 | void next(); |
| 61 | void prev(); |
| 62 | Fl_Widget *value(); |
| 63 | void value(Fl_Widget *); |
| 64 | }; |
| 65 | |
| 66 | #endif // !_Fl_Wizard_H_ |
| 67 | |
| 68 | // |
| 69 | // End of "$Id: Fl_Wizard.H 8306 2011-01-24 17:04:22Z matt $". |
| 70 | // |