//Auto-generated by kalyptus. DO NOT EDIT. package org.trinitydesktop.koala; import org.trinitydesktop.qt.Qt; import org.trinitydesktop.qt.TQMetaObject; import org.trinitydesktop.qt.QtSupport; import org.trinitydesktop.qt.TQWidget; import org.trinitydesktop.qt.TQProgressBar; /** KProgress is derived from TQProgressBar, 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.
true
, the progress text will be displayed.
@short If this is set to true
, the progress text will be displayed.
*/
public native void setTextEnabled(boolean arg1);
/**
Returns true
if progress text will be displayed,
false
otherwise.
@short Returns true
if progress text will be displayed, false
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 progress.
@short Set the current value of the progress bar to progress.
*/
public native void setProgress(int progress);
/**
Advance the progress bar by offset.
This method is
provided for convenience and is equivalent with
setProgress(progress()+offset).
@short Advance the progress bar by offset.
*/
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();
}