27 #define _KPROGRESS_H "$Id$"
29 #include <tqprogressbar.h>
30 #include <kdialogbase.h>
54 KProgress(TQWidget *parent=0,
const char *name=0, WFlags f = 0);
62 KProgress(
int totalSteps, TQWidget *parent=0,
const char *name=0, WFlags f = 0);
73 void setTextEnabled(
bool);
81 int value()
const TDE_DEPRECATED;
89 bool textEnabled()
const;
95 TQString format()
const;
102 void setRange(
int min,
int max) TDE_DEPRECATED;
108 int maxValue() TDE_DEPRECATED;
124 void setFormat(
const TQString & format);
130 void setTotalSteps(
int totalSteps);
135 virtual void setProgress(
int progress);
141 void setValue(
int progress);
150 virtual void advance(
int offset);
159 virtual bool setIndicator(TQString & indicator,
int progress,
int totalSteps);
165 virtual void virtual_hook(
int id,
void* data );
167 class KProgressPrivate;
202 const TQString& caption = TQString::null,
203 const TQString& text = TQString::null,
230 void setLabel(
const TQString & text);
237 TQString labelText() TDE_DEPRECATED;
242 TQString labelText()
const;
253 void setAllowCancel(
bool allowCancel);
260 bool allowCancel() TDE_DEPRECATED;
265 bool allowCancel()
const;
273 void showCancelButton(
bool show);
279 void setAutoClose(
bool close);
292 bool autoClose()
const;
299 void setAutoReset(
bool autoReset);
312 bool autoReset()
const;
327 bool wasCancelled()
const;
340 void setButtonText(
const TQString&);
347 TQString buttonText() TDE_DEPRECATED;
352 TQString buttonText()
const;
358 void setMinimumDuration(
int ms);
365 int minimumDuration() TDE_DEPRECATED;
370 int minimumDuration()
const;
379 void slotAutoActions(
int percentage);
389 TQString mCancelText;
395 virtual void virtual_hook(
int id,
void* data );
397 struct KProgressDialogPrivate;
398 KProgressDialogPrivate *d;
A dialog base class with standard buttons and predefined layouts.
KProgressDialog provides a dialog with a text label, a progress bar and an optional cancel button wit...
A progress indicator widget.
void percentageChanged(int)
Emitted when the state of the progress bar changes.