/***************************************************************************
                            QSpinBox.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QSpinBoxSignals} for signals emitted by QSpinBox.

 See {@link QSpinBoxEventHandling} for event handlers to override in subclasses of QSpinBox.

*/
public class QSpinBox extends QWidget implements  QRangeControlInterface {
	protected QSpinBox(Class dummy){super((Class) null);}

	private native void newQSpinBox( QWidget parent, String name);
	public QSpinBox( QWidget parent, String name) {
		super((Class) null);
		newQSpinBox( parent, name);
	}
	public QSpinBox( QWidget parent) {
		this( parent, null);
	}
	private native void newQSpinBox();
	public QSpinBox() {
		super((Class) null);
		newQSpinBox();
	}
	private native void newQSpinBox( int minValue, int maxValue, int step, QWidget parent, String name);
	public QSpinBox( int minValue, int maxValue, int step, QWidget parent, String name) {
		super((Class) null);
		newQSpinBox( minValue, maxValue, step, parent, name);
	}
	public QSpinBox( int minValue, int maxValue, int step, QWidget parent) {
		this( minValue, maxValue, step, parent, null);
	}
	private native void newQSpinBox( int minValue, int maxValue);
	public QSpinBox( int minValue, int maxValue) {
		super((Class) null);
		newQSpinBox( minValue, maxValue);
	}
	protected native void finalize() throws InternalError;
	public native String text();
	public native String prefix();
	public native String suffix();
	public native String cleanText();
	public native void setSpecialValueText( String text);
	public native String specialValueText();
	public native void setWrapping( boolean on);
	public native boolean wrapping();
	public native void setButtonSymbols( int arg1);
	public native int buttonSymbols();
	public native void setValidator( QValidator v);
	public native QValidator validator();
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native int minValue();
	public native int maxValue();
	public native void setMinValue( int arg1);
	public native void setMaxValue( int arg1);
	public native int lineStep();
	public native void setLineStep( int arg1);
	public native int value();
	public native QRect upRect();
	public native QRect downRect();
	public native void setValue( int value);
	public native void setPrefix( String text);
	public native void setSuffix( String text);
	public native void stepUp();
	public native void stepDown();
	public native void setEnabled( boolean enabled);
	public native void selectAll();
	protected native String mapValueToText( int value);
	protected native int mapTextToValue( int[] ok);
	protected native String currentValueText();
	protected native void updateDisplay();
	protected native void interpretText();
	protected native QLineEdit editor();
	protected native void valueChange();
	protected native void rangeChange();
	public native boolean eventFilter( QObject obj, QEvent ev);
	protected native void styleChange( QStyle arg1);
	protected native void textChanged();
	public static final int UpDownArrows = 0;
	public static final int PlusMinus = 1;

        //
        // From QRangeControlInterface
        //
        public native void addPage();
        public native void subtractPage();
        public native void addLine();
        public native void subtractLine();
        public native void setRange( int minValue, int maxValue);
        public native int pageStep();
        public native void setSteps( int line, int page);
        public native int bound( int arg1);

}
