26 #ifndef YQBusyIndicator_h
27 #define YQBusyIndicator_h
32 #include <yui/YBusyIndicator.h>
48 const std::string & label,
60 virtual void setLabel(
const std::string & label );
83 virtual void setAlive(
bool newAlive );
111 virtual void setSize(
int newWidth,
int newHeight );
152 void paintEvent(QPaintEvent *event);
166 #endif // YQBusyIndicator_h
void stop()
stop moving bar animation
virtual int preferredWidth()
Preferred width of the widget.
virtual void setAlive(bool newAlive)
Send a keep allive message.
virtual ~YQBusyIndicator()
Destructor.
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
virtual void setTimeout(int newTimeout)
Set the timeout is ms after that the widget shows 'stalled' when no new tick is received.
int timeout() const
Return the timeout is ms after that the widget shows 'stalled' when no new tick is received.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
void run()
start moving bar animation
YQBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000)
Constructor.
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).