Move the sources to trunk
[opencv] / otherlibs / _fltk / include / FL / Fl_File_Input.H
1 //
2 // "$Id: Fl_File_Input.H,v 1.1 2002/12/01 15:38:37 neurosurg Exp $"
3 //
4 // File_Input header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2002 by Bill Spitzak and others.
7 // Original version Copyright 1998 by Curtis Edwards.
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Library General Public
11 // License as published by the Free Software Foundation; either
12 // version 2 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 // Library General Public License for more details.
18 //
19 // You should have received a copy of the GNU Library General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 // USA.
23 //
24 // Please report all bugs and problems to "fltk-bugs@fltk.org".
25 //
26
27 #ifndef Fl_File_Input_H
28 #  define Fl_File_Input_H
29
30 #  include <FL/Fl_Input.H>
31
32
33 class FL_EXPORT Fl_File_Input : public Fl_Input
34 {
35   Fl_Color      errorcolor_;
36   char          ok_entry_;
37   uchar         down_box_;
38   short         buttons_[200];
39   short         pressed_;
40
41   void          draw_buttons();
42   int           handle_button(int event);
43   void          update_buttons();
44
45 public:
46
47   Fl_File_Input(int,int,int,int,const char *t=0);
48
49   virtual int handle(int);
50   virtual void draw();
51
52   Fl_Boxtype    down_box() const { return (Fl_Boxtype)down_box_; }
53   void          down_box(Fl_Boxtype b) { down_box_ = b; }
54   Fl_Color      errorcolor() const { return errorcolor_; }
55   void          errorcolor(Fl_Color c) { errorcolor_ = c; }
56   int   value(const char*);
57   int   value(const char*, int);
58   const char    *value() { return Fl_Input_::value(); }
59 };
60
61 #endif // !Fl_File_Input_H
62
63
64 //
65 // End of "$Id: Fl_File_Input.H,v 1.1 2002/12/01 15:38:37 neurosurg Exp $".
66 //