diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 22:33:19 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 22:33:19 +0200 |
commit | 84802dd00c14ac98164fc9a7bfa1990cbf36d91c (patch) | |
tree | 824b08a52a2b918346735f29b24afeb19ca0bca3 /src/Fl_Search_Chooser.H | |
parent | 4c001eebef3a0c8201293e2dbfb27c2aa65c0591 (diff) |
Fl_Search_Chooser cleanup
Diffstat (limited to 'src/Fl_Search_Chooser.H')
-rw-r--r-- | src/Fl_Search_Chooser.H | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Fl_Search_Chooser.H b/src/Fl_Search_Chooser.H index aacb57e..bf5f1a7 100644 --- a/src/Fl_Search_Chooser.H +++ b/src/Fl_Search_Chooser.H @@ -12,31 +12,30 @@ #include <FL/Fl_Input.H> class Fl_Search_Browser : public Fl_Select_Browser { - public: + private: + int find_prefix(const char *p, int s, int e); + public: Fl_Search_Browser(int X, int Y, int W, int H, const char *c):Fl_Select_Browser(X,Y,W,H,c){}; int find_prefix(const char *p); - - private: - int find_prefix(const char *p, int s, int e); }; class Fl_Search_Chooser : public Fl_Window { private: + Fl_Search_Browser *sb; int visible_focus; + + static void input_cb(Fl_Input* in, void*c); + static void ok_cb(Fl_Input* in, void*c); + static void cancel_cb(Fl_Input* in, void*c); public: - Fl_Search_Browser *sb; - Fl_Search_Chooser(const char *title); void close(); - void add(const char *t, void *d); - void *data(); - int handle(int event); }; |