Benoît Minisini 056094e27e [DEVELOPMENT ENVIRONMENT]
* BUG: Revert constructor arguments where it is needed.

[WIKI CGI SCRIPT]
* NEW: Display the CC-BY-SA logo on all pages.

[GB.FORM]
* BUG: Revert constructor arguments where it is needed.

[GB.GTK]
* NEW: SpinBox.Border is a new boolean property to remove the frame around 
  SpinBox.

[GB.QT4]
* NEW: SpinBox.Border is a new boolean property to remove the frame around 
  SpinBox. Beware that most of Qt4 style do not implement them!


git-svn-id: svn://localhost/gambas/trunk@2449 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2009-11-30 04:30:37 +00:00

59 lines
1.5 KiB
C++

/***************************************************************************
gspinbox.h
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
***************************************************************************/
#ifndef __GSPINBOX_H
#define __GSPINBOX_H
class gSpinBox : public gControl
{
public:
gSpinBox(gContainer *parent);
//"Properties"
int maxValue() const { return _max; }
int minValue() const { return _min; }
int step();
int value();
bool wrap();
bool hasBorder() const;
void setMaxValue (int vl);
void setMinValue (int vl);
void setStep (int vl);
void setValue (int vl);
void setWrap (bool vl);
void setBorder(bool vl);
//"Methods"
void selectAll();
//"Signals"
void (*onChange) (gSpinBox *sender);
//"Private"
private:
int _min;
int _max;
virtual void updateCursor(GdkCursor *cursor);
};
#endif