00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef Fl_File_Input_H
00024 # define Fl_File_Input_H
00025
00026 # include <FL/Fl_Input.H>
00027
00047 class FL_EXPORT Fl_File_Input : public Fl_Input {
00048
00049 Fl_Color errorcolor_;
00050 char ok_entry_;
00051 uchar down_box_;
00052 short buttons_[200];
00053 short pressed_;
00054
00055 void draw_buttons();
00056 int handle_button(int event);
00057 void update_buttons();
00058
00059 public:
00060
00061 Fl_File_Input(int X, int Y, int W, int H, const char *L=0);
00062
00063 virtual int handle(int event);
00064
00065 protected:
00066 virtual void draw();
00067
00068 public:
00070 Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
00072 void down_box(Fl_Boxtype b) { down_box_ = b; }
00073
00078 Fl_Color errorcolor() const { return errorcolor_; }
00080 void errorcolor(Fl_Color c) { errorcolor_ = c; }
00081
00082 int value(const char *str);
00083 int value(const char *str, int len);
00084
00089 const char *value() { return Fl_Input_::value(); }
00090 };
00091
00092 #endif // !Fl_File_Input_H
00093
00094
00095
00096
00097