00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _FLU_CHOICE_GROUP_H
00017 #define _FLU_CHOICE_GROUP_H
00018
00019 #include <stdio.h>
00020 #include <string.h>
00021
00022
00023 #include <FL/Fl.H>
00024 #include <FL/Fl_Choice.H>
00025 #include <FL/fl_draw.H>
00026 #include <FL/Fl_Group.H>
00027
00028 #include "FLU/Flu_Enumerations.h"
00029
00031 class FLU_EXPORT Flu_Choice_Group : public Fl_Group
00032 {
00033
00034 public:
00035
00037 Flu_Choice_Group( int x, int y, int w, int h, const char *l = 0 );
00038
00040
00041 inline Fl_Widget* wvalue()
00042 { return selected; }
00043
00045
00046 int value();
00047
00049
00050 int value( Fl_Widget *newvalue );
00051
00053 void value( int v );
00054
00056 void draw();
00057
00059 inline int size()
00060 { return children()-1; }
00061
00062 protected:
00063
00064 static void _choiceCB( Fl_Widget *w, void *arg )
00065 { ((Flu_Choice_Group*)arg)->choiceCB(); }
00066 void choiceCB();
00067
00068 Fl_Choice *choice;
00069 Fl_Widget *selected;
00070
00071 };
00072
00073 #endif