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

 See {@link QDialEventHandling} for event handlers to override in subclasses of QDial.

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

	private native void newQDial( QWidget parent, String name, int f);
	public QDial( QWidget parent, String name, int f) {
		super((Class) null);
		newQDial( parent, name, f);
	}
	private native void newQDial();
	public QDial() {
		super((Class) null);
		newQDial();
	}
	private native void newQDial( int minValue, int maxValue, int pageStep, int value, QWidget parent, String name);
	public QDial( int minValue, int maxValue, int pageStep, int value, QWidget parent, String name) {
		super((Class) null);
		newQDial( minValue, maxValue, pageStep, value, parent, name);
	}
	private native void newQDial( int minValue, int maxValue, int pageStep, int value);
	public QDial( int minValue, int maxValue, int pageStep, int value) {
		super((Class) null);
		newQDial( minValue, maxValue, pageStep, value);
	}
	protected native void finalize() throws InternalError;
	public native boolean tracking();
	public native boolean wrapping();
	public native int notchSize();
	public native void setNotchTarget( double arg1);
	public native double notchTarget();
	public native boolean notchesVisible();
	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 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 addLine();
	public native void subtractLine();
	public native void addPage();
	public native void subtractPage();
	public native void setNotchesVisible( boolean b);
	public native void setWrapping( boolean on);
	public native void setTracking( boolean enable);
	protected native void valueChange();
	protected native void rangeChange();
	protected native void repaintScreen( QRect cr);
	protected native void repaintScreen();

	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();
	protected native void stepChange();
}
