00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef Fl_File_Input_H
00033 # define Fl_File_Input_H
00034
00035 # include <FL/Fl_Input.H>
00036
00054 class FL_EXPORT Fl_File_Input : public Fl_Input
00055 {
00056 Fl_Color errorcolor_;
00057 char ok_entry_;
00058 uchar down_box_;
00059 short buttons_[200];
00060 short pressed_;
00061
00062 void draw_buttons();
00063 int handle_button(int event);
00064 void update_buttons();
00065
00066 public:
00067
00068 Fl_File_Input(int X, int Y, int W, int H, const char *L=0);
00069
00070 virtual int handle(int event);
00071
00072 protected:
00073 virtual void draw();
00074
00075 public:
00077 Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
00079 void down_box(Fl_Boxtype b) { down_box_ = b; }
00080
00085 Fl_Color errorcolor() const { return errorcolor_; }
00087 void errorcolor(Fl_Color c) { errorcolor_ = c; }
00088
00089 int value(const char *str);
00090 int value(const char *str, int len);
00091
00096 const char *value() { return Fl_Input_::value(); }
00097 };
00098
00099 #endif // !Fl_File_Input_H
00100
00101
00102
00103
00104