00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _FL_VALUE_INPUT_H_
00023 #define _FL_VALUE_INPUT_H_
00024
00025 #include "Fl_Valuator.h"
00026 #include "Fl_Float_Input.h"
00027
00029 class FL_API Fl_Value_Input : public Fl_Valuator {
00030 public:
00032 Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
00033
00035 Fl_Value_Input(const char* l = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP,int label_w=100);
00036
00038 ~Fl_Value_Input();
00039
00040 Fl_Float_Input input;
00041
00042 virtual void reset() { input.reset(); }
00043 virtual int handle(int);
00044 virtual void draw();
00045 virtual void layout();
00046
00047 private:
00048 void ctor_init();
00049
00050 virtual void value_damage();
00051 static void input_cb(Fl_Widget*,void*);
00052
00053 void increment_cb();
00054 static void repeat_callback(void* v);
00055 };
00056
00057 #endif