1998-10-20 01:39:29 +04:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// "$Id$"
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
// Value input header file for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// Copyright 1998-2005 by Bill Spitzak and others.
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Library General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Library General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Library General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
// USA.
|
|
|
|
//
|
2005-04-16 04:13:17 +04:00
|
|
|
// Please report all bugs and problems on the following page:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/str.php
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
#ifndef Fl_Value_Input_H
|
|
|
|
#define Fl_Value_Input_H
|
|
|
|
|
|
|
|
#include "Fl_Valuator.H"
|
|
|
|
#include "Fl_Input.H"
|
|
|
|
|
2002-08-14 20:49:38 +04:00
|
|
|
class FL_EXPORT Fl_Value_Input : public Fl_Valuator {
|
1998-10-06 22:21:25 +04:00
|
|
|
public:
|
|
|
|
Fl_Input input;
|
|
|
|
private:
|
|
|
|
char soft_;
|
2002-08-14 20:49:38 +04:00
|
|
|
static void input_cb(Fl_Widget*,void*);
|
|
|
|
virtual void value_damage(); // cause damage() due to value() changing
|
1998-10-06 22:21:25 +04:00
|
|
|
public:
|
2002-08-14 20:49:38 +04:00
|
|
|
int handle(int);
|
|
|
|
void draw();
|
|
|
|
void resize(int,int,int,int);
|
|
|
|
Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2002-08-09 05:09:49 +04:00
|
|
|
void soft(char s) {soft_ = s;}
|
1998-10-06 22:21:25 +04:00
|
|
|
char soft() const {return soft_;}
|
|
|
|
|
2008-04-23 18:19:58 +04:00
|
|
|
int shortcut() const {return input.shortcut();}
|
|
|
|
void shortcut(int s) {input.shortcut(s);}
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Font textfont() const {return input.textfont();}
|
2008-04-23 23:09:28 +04:00
|
|
|
void textfont(Fl_Font s) {input.textfont(s);}
|
|
|
|
Fl_Font_Size textsize() const {return input.textsize();}
|
|
|
|
void textsize(Fl_Font_Size s) {input.textsize(s);}
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Color textcolor() const {return input.textcolor();}
|
2001-10-29 06:44:33 +03:00
|
|
|
void textcolor(unsigned n) {input.textcolor(n);}
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Color cursor_color() const {return input.cursor_color();}
|
2001-10-29 06:44:33 +03:00
|
|
|
void cursor_color(unsigned n) {input.cursor_color(n);}
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-10-20 01:39:29 +04:00
|
|
|
|
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// End of "$Id$".
|
1998-10-20 01:39:29 +04:00
|
|
|
//
|