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