Public Member Functions | |
WizardGroup (int x, int y, int w, int h, const char *l=0, bool begin=false) | |
void | draw () |
void | next () |
void | prev () |
void | value (Widget *) |
Widget * | value () const |
// some useful callbacks: void done_cb(Widget*, void*) { G_win->hide(); } void back_cb(Widget*, void*) { G_wiz->prev(); } void next_cb(Widget*, void*) { G_wiz->next(); } // main code: int main(int argc, char **argv) { G_win = new Window(WIDTH,HEIGHT); // create main window G_win->begin(); G_wiz = new WizardGroup(0,0,WIDTH, HEIGHT);// create Wizard G_wiz->begin(); add_group("This is the\nFirst\npage", RED,true, false ); // Wz p.1 add_group("This is the\nSecond\npage", YELLOW, false, false); // Wz p.2 add_group("This is the\nLast\npage", GREEN, false, true); // Wz p.3 G_wiz->end(); G_win->end(); G_win->show(argc, argv); return run(); }
|
draw WizardGroup and make sure before that only one child is visible Reimplemented from Group. |
|
show next (or last if no more next) child, usually a group. |
|
show previous (or first if no more previous) child, usually a group. |
|
return the current visible child.
|
|
Set the visible child, look in the Wizard for this widget, make it visible, hide all others. |