//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QWidget;
import org.kde.qt.QProgressBar;

/**

 KProgress is derived from QProgressBar, so
 you can use all the methods from that class. The only real difference
 is that a signal is emitted on changes to the value and you do not need
 to subclass KProgress just to change the format of the indicator text.
 <li><b>Details </b></li>
 \image html kprogress.png "KDE Progress Widget"
 See {@link KProgressSignals} for signals emitted by KProgress
		@author Aaron Seigo
 
		@short A progress indicator widget.

*/
public class KProgress extends QProgressBar  {
	protected KProgress(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Construct a progress bar.
		   		@short    Construct a progress bar.
	*/
	public KProgress(QWidget parent, String name, int f) {
		super((Class) null);
		newKProgress(parent,name,f);
	}
	private native void newKProgress(QWidget parent, String name, int f);
	public KProgress(QWidget parent, String name) {
		super((Class) null);
		newKProgress(parent,name);
	}
	private native void newKProgress(QWidget parent, String name);
	public KProgress(QWidget parent) {
		super((Class) null);
		newKProgress(parent);
	}
	private native void newKProgress(QWidget parent);
	public KProgress() {
		super((Class) null);
		newKProgress();
	}
	private native void newKProgress();
	/**	
		 Construct a progress bar with a total number of steps.
		 The totalSteps is the total number of steps that need to be completed for the operation which this progress
		 bar represents. For example, if the operation is to examine 50 files, this value would be 50. Before examining
		 the first file, call setProgress(0); call setProgress(50) after examining the last file.
		   		@short    Construct a progress bar with a total number of steps.
	*/
	public KProgress(int totalSteps, QWidget parent, String name, int f) {
		super((Class) null);
		newKProgress(totalSteps,parent,name,f);
	}
	private native void newKProgress(int totalSteps, QWidget parent, String name, int f);
	public KProgress(int totalSteps, QWidget parent, String name) {
		super((Class) null);
		newKProgress(totalSteps,parent,name);
	}
	private native void newKProgress(int totalSteps, QWidget parent, String name);
	public KProgress(int totalSteps, QWidget parent) {
		super((Class) null);
		newKProgress(totalSteps,parent);
	}
	private native void newKProgress(int totalSteps, QWidget parent);
	public KProgress(int totalSteps) {
		super((Class) null);
		newKProgress(totalSteps);
	}
	private native void newKProgress(int totalSteps);
	/**	
		 If this is set to <code>true</code>, the progress text will be displayed.
			   		@short    If this is set to <code>true</code>, the progress text will be displayed.
	*/
	public native void setTextEnabled(boolean arg1);
	/**	
		 Returns <code>true</code> if progress text will be displayed,
		 <code>false</code> otherwise.
				@short    Returns <code>true</code> if progress text will be displayed,  <code>false</code> otherwise.
		@see #setFormat
	*/
	public native boolean textEnabled();
	/**	
		 Retrieve the current format for printing status text.
				@short    Retrieve the current format for printing status text.
		@see #setFormat
	*/
	public native String format();
	/**	
		 Set the format of the text to use to display status.
			 The default format is "%p%" (which looks like "42%".)
			 Note: Setting the format to anything other then "%p%" will force centerIndicator to true,
		 since it's often impossible to layout a progressbar with a more general format with the
		 indicator string anywhere else.
			@param format "%p" is replaced by percentage done, "%v" is replaced by actual
		 value, "%m" is replaced by the maximum value.
		   		@short    Set the format of the text to use to display status.
	*/
	public native void setFormat(String format);
	/**	
		 Set the current total number of steps in the action tat the progress bar
		 is representing.
		    		@short    Set the current total number of steps in the action tat the progress bar  is representing.
	*/
	public native void setTotalSteps(int totalSteps);
	/**	
		 Set the current value of the progress bar to <code>progress.</code>
		    		@short    Set the current value of the progress bar to <code>progress.</code>
	*/
	public native void setProgress(int progress);
	/**	
		 Advance the progress bar by <code>offset.</code>
			 This method is
		 provided for convenience and is equivalent with
		 setProgress(progress()+offset).
		   		@short    Advance the progress bar by <code>offset.</code>
	*/
	public native void advance(int offset);
	protected native boolean setIndicator(StringBuffer indicator, int progress, int totalSteps);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
