2001-08-02 22:39:01 +04:00
|
|
|
//
|
|
|
|
// Fl_Wizard widget definitions.
|
|
|
|
//
|
2010-11-29 00:06:39 +03:00
|
|
|
// Copyright 1999-2010 by Easy Software Products.
|
2020-04-20 14:28:59 +03:00
|
|
|
// Copyright 2011-2020 by Bill Spitzak and others.
|
2001-08-02 22:39:01 +04:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
|
|
|
// file is missing or damaged, see the license at:
|
2001-08-02 22:39:01 +04:00
|
|
|
//
|
2020-04-20 14:28:59 +03:00
|
|
|
// https://www.fltk.org/COPYING.php
|
2001-08-02 22:39:01 +04:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// Please see the following page on how to report bugs and issues:
|
2005-04-16 04:13:17 +04:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// https://www.fltk.org/bugs.php
|
2001-08-02 22:39:01 +04:00
|
|
|
//
|
|
|
|
|
2008-10-15 17:46:06 +04:00
|
|
|
/* \file
|
2008-09-16 11:26:22 +04:00
|
|
|
Fl_Wizard widget . */
|
|
|
|
|
2001-08-02 22:39:01 +04:00
|
|
|
//
|
|
|
|
// Include necessary header files...
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _Fl_Wizard_H_
|
2020-04-20 14:28:59 +03:00
|
|
|
#define _Fl_Wizard_H_
|
2001-08-02 22:39:01 +04:00
|
|
|
|
2020-04-20 14:28:59 +03:00
|
|
|
#include <FL/Fl_Group.H>
|
2001-08-02 22:39:01 +04:00
|
|
|
|
2008-09-15 20:39:05 +04:00
|
|
|
/**
|
2020-04-20 14:28:59 +03:00
|
|
|
This widget is based off the Fl_Tabs widget, but instead of
|
|
|
|
displaying tabs it only changes "tabs" under program control.
|
|
|
|
|
|
|
|
Its primary purpose is to support "wizards" that step a user
|
|
|
|
through configuration or troubleshooting tasks.
|
2001-08-02 22:39:01 +04:00
|
|
|
|
2020-04-20 14:28:59 +03:00
|
|
|
As with Fl_Tabs, wizard panes are composed of child (usually
|
|
|
|
Fl_Group) widgets. Navigation buttons must be added separately.
|
2008-09-15 20:39:05 +04:00
|
|
|
*/
|
2011-01-24 20:04:22 +03:00
|
|
|
class FL_EXPORT Fl_Wizard : public Fl_Group {
|
|
|
|
|
2001-08-02 22:39:01 +04:00
|
|
|
Fl_Widget *value_;
|
|
|
|
|
2020-04-20 14:28:59 +03:00
|
|
|
protected:
|
|
|
|
|
2022-12-30 21:14:36 +03:00
|
|
|
void draw() FL_OVERRIDE;
|
2001-08-02 22:39:01 +04:00
|
|
|
|
2020-04-20 14:28:59 +03:00
|
|
|
public:
|
2001-08-02 22:39:01 +04:00
|
|
|
|
|
|
|
Fl_Wizard(int, int, int, int, const char * = 0);
|
|
|
|
|
2020-04-20 14:28:59 +03:00
|
|
|
void next();
|
|
|
|
void prev();
|
|
|
|
Fl_Widget *value();
|
|
|
|
void value(Fl_Widget *);
|
2001-08-02 22:39:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !_Fl_Wizard_H_
|