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
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
virtual int preferredHeight()
Preferred height of the widget.
void run()
start moving bar animation
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
virtual int preferredWidth()
Preferred width of the widget.
void stop()
stop moving bar animation
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual void setAlive(bool newAlive)
Send a keep allive message.
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 bool setKeyboardFocus()
Accept the keyboard focus.
YQBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000)
Constructor.
virtual ~YQBusyIndicator()
Destructor.