libyui-qt  2.49.2
YQBusyIndicator Class Reference
Inheritance diagram for YQBusyIndicator:
Collaboration diagram for YQBusyIndicator:

Public Member Functions

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

Protected Attributes

YQWidgetCaption_caption
 
BusyBar_bar
 
QTimer * _timer
 
int _timeout
 

Detailed Description

Definition at line 39 of file YQBusyIndicator.h.

Member Function Documentation

◆ preferredHeight()

int YQBusyIndicator::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 210 of file YQBusyIndicator.cc.

◆ preferredWidth()

int YQBusyIndicator::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 201 of file YQBusyIndicator.cc.

◆ setAlive()

void YQBusyIndicator::setAlive ( bool  newAlive)
virtual

Send a keep allive message.

Reimplemented from YBusyIndicator.

Definition at line 163 of file YQBusyIndicator.cc.

Here is the call graph for this function:

◆ setEnabled()

void YQBusyIndicator::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 193 of file YQBusyIndicator.cc.

◆ setLabel()

void YQBusyIndicator::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the progress bar).

Reimplemented from YBusyIndicator.

Definition at line 156 of file YQBusyIndicator.cc.

Here is the call graph for this function:

◆ setSize()

void YQBusyIndicator::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 216 of file YQBusyIndicator.cc.

◆ setTimeout()

void YQBusyIndicator::setTimeout ( int  newTimeout)
virtual

Set the timeout is ms after that the widget shows 'stalled' when no new tick is received.

Reimplemented from YBusyIndicator.

Definition at line 186 of file YQBusyIndicator.cc.

◆ timeout()

int YQBusyIndicator::timeout ( ) const
inline

Return the timeout is ms after that the widget shows 'stalled' when no new tick is received.

Reimplemented from YBusyIndicator.

Definition at line 76 of file YQBusyIndicator.h.


The documentation for this class was generated from the following files: