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

/**

 $Id: QScrollBar.java,v 1.4 2001/11/22 00:50:27 rdale Exp $

 Definition of QtTableView class

 Created : 941115

 Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.

 This file contains a class moved out of the Qt GUI Toolkit API. It
 may be used, distributed and modified without limitation.


 See {@link QScrollBarSignals} for signals emitted by QScrollBar.

 See {@link QScrollBarEventHandling} for event handlers to override in subclasses of QScrollBar.

 @short 
* $Id:  qt/qttableview.
*/
public class QScrollBar extends QWidget implements  QRangeControlInterface {
	protected QScrollBar(Class dummy){super((Class) null);}

	private native void newQScrollBar( QWidget parent, String name);
	public QScrollBar( QWidget parent, String name) {
		super((Class) null);
		newQScrollBar( parent, name);
	}
	private native void newQScrollBar( QWidget parent);
	public QScrollBar( QWidget parent) {
		super((Class) null);
		newQScrollBar( parent);
	}
	private native void newQScrollBar( int arg1, QWidget parent, String name);
	public QScrollBar( int arg1, QWidget parent, String name) {
		super((Class) null);
		newQScrollBar( arg1, parent, name);
	}
	private native void newQScrollBar( int arg1, QWidget parent);
	public QScrollBar( int arg1, QWidget parent) {
		super((Class) null);
		newQScrollBar( arg1, parent);
	}
	private native void newQScrollBar( int minValue, int maxValue, int LineStep, int PageStep, int value, int arg1, QWidget parent, String name);
	public QScrollBar( int minValue, int maxValue, int LineStep, int PageStep, int value, int arg1, QWidget parent, String name) {
		super((Class) null);
		newQScrollBar( minValue, maxValue, LineStep, PageStep, value, arg1, parent, name);
	}
	private native void newQScrollBar( int minValue, int maxValue, int LineStep, int PageStep, int value, int arg1, QWidget parent);
	public QScrollBar( int minValue, int maxValue, int LineStep, int PageStep, int value, int arg1, QWidget parent) {
		super((Class) null);
		newQScrollBar( minValue, maxValue, LineStep, 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 boolean draggingSlider();
	public native void setPalette( QPalette arg1);
	public native QSize sizeHint();
	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 int sliderStart();
	public native QRect sliderRect();
	public native void setValue( int arg1);
	protected native void valueChange();
	protected native void stepChange();
	protected native void rangeChange();
	protected native void styleChange( QStyle arg1);

        //
        // 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);
	protected native int positionFromValue( int val, int space);
	protected native int valueFromPosition( int pos, int space);
	protected native void directSetValue( int val);
	protected native int prevValue();
}
