25#define _KPROGRES_H "$Id$"
28#include <tqrangecontrol.h>
55 TQ_PROPERTY(
int value READ value WRITE setValue)
56 TQ_PROPERTY(
BarStyle barStyle READ barStyle WRITE setBarStyle )
57 TQ_PROPERTY( TQColor barColor READ barColor WRITE setBarColor )
58 TQ_PROPERTY( TQPixmap barPixmap READ barPixmap WRITE setBarPixmap )
59 TQ_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
60 TQ_PROPERTY(
bool textEnabled READ textEnabled WRITE setTextEnabled )
79 KGameProgress(Orientation orient, TQWidget *parent=0,
const char *name=0);
85 TQWidget *parent=0,
const char *name=0);
102 void setBarColor(
const TQColor &);
107 void setBarPixmap(
const TQPixmap &);
114 void setOrientation(Orientation);
120 void setTextEnabled(
bool);
133 const TQColor &barColor()
const;
140 const TQPixmap *barPixmap()
const;
147 int value()
const {
return TQRangeControl::value(); }
153 Orientation orientation()
const;
161 bool textEnabled()
const;
165 virtual TQSize sizeHint()
const;
169 virtual TQSize minimumSizeHint()
const;
173 virtual TQSizePolicy sizePolicy()
const;
179 TQString format()
const;
191 void setFormat(
const TQString & format);
198 void setValue(
int value);
207 void advance(
int prog);
224 void styleChange( TQStyle& );
227 void paletteChange(
const TQPalette & );
230 void drawContents( TQPainter * );
233 void paletteChange();
236 TQPixmap *bar_pixmap;
237 bool use_supplied_bar_color;
239 TQColor bar_text_color;
247 int recalcValue(
int);
248 void drawText(TQPainter *);
251 class KGameProgressPrivate;
252 KGameProgressPrivate *d;
A progress indicator widget.
void percentageChanged(int)
Emitted when the state of the progress bar changes.
KGameProgress(Orientation orient, TQWidget *parent=0, const char *name=0)
Construct a progress bar with orientation orient.
BarStyle
Possible values for bar style.
int value() const
Retrive the current status.
KGameProgress(int minValue, int maxValue, int value, Orientation, TQWidget *parent=0, const char *name=0)
Construct a progress bar with minimum, maximum and initial values.