/***************************************************************************
                            kde_KIntSpinBox.h -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KDE_KINTSPINBOX
#define KDE_KINTSPINBOX

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**

  An integer inputline with scrollbar and slider.

  The class provides an easy interface to use other
  numeric systems then the decimal.

 @short A spin box widget for non-decimal numbers.
 
*/

/** 
  Constructor.

  Constructs a widget with an integer inputline with a little scrollbar
  and a slider, with minimal value 0, maximal value 99, step 1, base 10
  and initial value 0.
     
*/
kde_KIntSpinBox * kde_new_KIntSpinBox(qt_QWidget * parent, char* name);

/** 
  Constructor.

  Constructs a widget with an integer inputline with a little scrollbar
  and a slider.

*/
kde_KIntSpinBox * kde_new_KIntSpinBox1(int lower, int upper, int step, int value, int base, qt_QWidget * parent, char* name);

/** 
  Destructor.
     
*/
void kde_del_KIntSpinBox( kde_KIntSpinBox* p );

/** 
 Sets the base in which the numbers in the spin box are represented.
     
*/
void kde_KIntSpinBox_setBase(kde_KIntSpinBox* instPointer,int base);

/** 

*/
int kde_KIntSpinBox_base(kde_KIntSpinBox* instPointer);

/** 
 sets focus and optionally marks all text

     
*/
void kde_KIntSpinBox_setEditFocus(kde_KIntSpinBox* instPointer,int mark);

/** 
  Overloaded the method in QSpinBox
  to make use of the base given in the constructor.
     
*/
qt_QString * kde_KIntSpinBox_mapValueToText(kde_KIntSpinBox* instPointer,int arg1);

/** 
  Overloaded the method in QSpinBox
  to make use of the base given in the constructor.
     
*/
int kde_KIntSpinBox_mapTextToValue(kde_KIntSpinBox* instPointer,int* arg1);

#endif
