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

 See {@link QProgressBarEventHandling} for event handlers to override in subclasses of QProgressBar.

*/
public class QProgressBar extends QFrame  {
	protected QProgressBar(Class dummy){super((Class) null);}

	private native void newQProgressBar( QWidget parent, String name, int f);
	public QProgressBar( QWidget parent, String name, int f) {
		super((Class) null);
		newQProgressBar( parent, name, f);
	}
	public QProgressBar( QWidget parent, String name) {
		this( parent, name, 0);
	}
	private native void newQProgressBar();
	public QProgressBar() {
		super((Class) null);
		newQProgressBar();
	}
	private native void newQProgressBar( int totalSteps, QWidget parent, String name, int f);
	public QProgressBar( int totalSteps, QWidget parent, String name, int f) {
		super((Class) null);
		newQProgressBar( totalSteps, parent, name, f);
	}
	public QProgressBar( int totalSteps, QWidget parent, String name) {
		this( totalSteps, parent, name, 0);
	}
	public QProgressBar( int totalSteps, QWidget parent) {
		this( totalSteps, parent, null, 0);
	}
	private native void newQProgressBar( int totalSteps);
	public QProgressBar( int totalSteps) {
		super((Class) null);
		newQProgressBar( totalSteps);
	}
	public native int totalSteps();
	public native int progress();
	public native String progressString();
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native void setCenterIndicator( boolean on);
	public native boolean centerIndicator();
	public native void setIndicatorFollowsStyle( boolean arg1);
	public native boolean indicatorFollowsStyle();
	public native boolean percentageVisible();
	public native void setPercentageVisible( boolean arg1);
	public native void show();
	public native void reset();
	public native void setTotalSteps( int totalSteps);
	public native void setProgress( int progress);
	protected native void drawContents( QPainter arg1);
	protected native boolean setIndicator( String progress_str, int progress, int totalSteps);
	protected native void styleChange( QStyle arg1);
}
