1 // ----------------------------------------------------------------------------
2 //      flslider2.h
3 //
4 // Copyright (C) 2010
5 //              Stelios Bounanos, M0GLD
6 //
7 // This file is part of FLAMP.
8 //
9 // This is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // This software 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
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 //
22 // ----------------------------------------------------------------------------
23 
24 #ifndef FL_SLIDER2_
25 #define FL_SLIDER2_
26 
27 #include <FL/Fl_Slider.H>
28 #include <FL/Fl_Value_Slider.H>
29 #include <FL/Fl_Counter.H>
30 #include <FL/Fl_Value_Input.H>
31 #include <FL/Fl_Spinner.H>
32 
33 class Fl_Slider2 : public Fl_Slider
34 {
35 public:
36 	Fl_Slider2(int x, int y, int w, int h, const char* l = 0)
Fl_Slider(x,y,w,h,l)37 	: Fl_Slider(x, y, w, h, l) { }
38 	int handle(int event);
39 };
40 
41 class Fl_Value_Slider2 : public Fl_Value_Slider
42 {
43 public:
44 	Fl_Value_Slider2(int x, int y, int w, int h, const char* l = 0)
Fl_Value_Slider(x,y,w,h,l)45 	: Fl_Value_Slider(x, y, w, h, l) { }
46 	int handle(int event);
47 };
48 
49 class Fl_Counter2 : public Fl_Counter
50 {
51 public:
52 	Fl_Counter2(int x, int y, int w, int h, const char* l = 0)
Fl_Counter(x,y,w,h,l)53 	: Fl_Counter(x, y, w, h, l) { }
54 	int handle(int event);
55 };
56 
57 class Fl_Value_Input2 : public Fl_Value_Input
58 {
59 public:
60 	Fl_Value_Input2(int x, int y, int w, int h, const char* l = 0)
Fl_Value_Input(x,y,w,h,l)61 	: Fl_Value_Input(x, y, w, h, l) { }
62 	int handle(int event);
63 };
64 
65 class Fl_Spinner2 : public Fl_Spinner
66 {
67 public:
68 	Fl_Spinner2(int x, int y, int w, int h, const char* l = 0)
Fl_Spinner(x,y,w,h,l)69 	: Fl_Spinner(x, y, w, h, l) { }
70 	int handle(int event);
71 };
72 
73 #endif // FL_SLIDER2_
74