00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _FLU_INT_INPUT_H
00017 #define _FLU_INT_INPUT_H
00018
00019 #include <FL/Fl_Int_Input.H>
00020
00021 #include <stdlib.h>
00022 #include <string.h>
00023 #include <stdio.h>
00024
00025 #include "FLU/Flu_Enumerations.h"
00026
00028 class FLU_EXPORT Flu_Int_Input : public Fl_Int_Input
00029 {
00030 public:
00031
00033 Flu_Int_Input( int X,int Y,int W,int H,const char *l = 0 );
00034
00036 ~Flu_Int_Input();
00037
00039 inline void format( const char *f )
00040 { _format = f; }
00041
00043 inline const char *format() const
00044 { return _format; }
00045
00047 inline int ivalue() const { return atoi( value() ); }
00048
00050 inline void ivalue( int v, const char *format = 0 )
00051 { char buf[32]; sprintf(buf,format?format:_format,v); value(buf); }
00052
00053 private:
00054 const char *_format;
00055
00056 };
00057
00058 #endif