00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __FLTK_COMPLEX_BUTTON_HH__
00021 #define __FLTK_COMPLEX_BUTTON_HH__
00022
00023 #include <FL/Fl_Group.H>
00024
00025 extern FL_EXPORT Fl_Shortcut fl_old_shortcut(const char*);
00026
00027 namespace dw {
00028 namespace fltk {
00029 namespace ui {
00030
00031 class FL_EXPORT ComplexButton : public Fl_Group {
00032
00033 int shortcut_;
00034 char value_;
00035 char oldval;
00036 uchar down_box_;
00037
00038 protected:
00039 virtual void draw();
00040
00041 public:
00042 virtual int handle(int);
00043
00044 ComplexButton(int X, int Y, int W, int H, const char *L = 0);
00045 ~ComplexButton();
00046
00047 int value(int v);
00048
00052 char value() const {return value_;}
00053
00058 Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
00059
00065 void down_box(Fl_Boxtype b) {down_box_ = b;}
00066 };
00067
00068 }
00069 }
00070 }
00071
00072 #endif
00073
00074
00075