/***************************************************************************
                            QSlider.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 QSliderSignals} for signals emitted by QSlider.

 See {@link QSliderEventHandling} for event handlers to override in subclasses of QSlider.

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

	private native void newQSlider( QWidget parent, String name);
	public QSlider( QWidget parent, String name) {
		super((Class) null);
		newQSlider( parent, name);
	}
	private native void newQSlider( QWidget parent);
	public QSlider( QWidget parent) {
		super((Class) null);
		newQSlider( parent);
	}
	private native void newQSlider( int arg1, QWidget parent, String name);
	public QSlider( int arg1, QWidget parent, String name) {
		super((Class) null);
		newQSlider( arg1, parent, name);
	}
	private native void newQSlider( int arg1, QWidget parent);
	public QSlider( int arg1, QWidget parent) {
		super((Class) null);
		newQSlider( arg1, parent);
	}
	private native void newQSlider( int minValue, int maxValue, int pageStep, int value, int arg1, QWidget parent, String name);
	public QSlider( int minValue, int maxValue, int pageStep, int value, int arg1, QWidget parent, String name) {
		super((Class) null);
		newQSlider( minValue, maxValue, pageStep, value, arg1, parent, name);
	}
	private native void newQSlider( int minValue, int maxValue, int pageStep, int value, int arg1, QWidget parent);
	public QSlider( int minValue, int maxValue, int pageStep, int value, int arg1, QWidget parent) {
		super((Class) null);
		newQSlider( minValue, maxValue, pageStep, value, arg1, parent);
	}
	public native void setOrientation( int arg1);
	public native int orientation();
	public native void setTracking( boolean enable);
	public native boolean tracking();
	public native void setPalette( QPalette arg1);
	public native int sliderStart();
	public native QRect sliderRect();
	public native QSize sizeHint();
	public native QSizePolicy sizePolicy();
	public native QSize minimumSizeHint();
	public native void setTickmarks( int arg1);
	public native int tickmarks();
	public native void setTickInterval( int arg1);
	public native int tickInterval();
	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 int pageStep();
	public native void setLineStep( int arg1);
	public native void setPageStep( int arg1);
	public native int value();
	public native void setValue( int arg1);
	public native void addStep();
	public native void subtractStep();
	protected native void styleChange( QStyle arg1);
	protected native void valueChange();
	protected native void rangeChange();
	public static final int NoMarks = 0;
	public static final int Above = 1;
	public static final int Left = Above;
	public static final int Below = 2;
	public static final int Right = Below;
	public static final int Both = 3;

        //
        // 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 void setSteps( int line, int page);
        public native int bound( int arg1);

}
