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