Songbook-Client  0.7
This application is a manager of customguitar songbooks
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Slots | Signals | Public Member Functions
CProgressBar Class Reference

CProgressBar is a custom cancelable progress bar. More...

#include <progress-bar.hh>

List of all members.

Public Slots

void show ()
void hide ()
void setValue (int value)

Signals

void canceled ()

Public Member Functions

 CProgressBar (QWidget *parent=0)
 Constructor.
 ~CProgressBar ()
 Destructor.
void setRange (int start, int stop)
void setTextVisible (bool value)
bool isCancelable () const
void setCancelable (bool value)

Detailed Description

CProgressBar is a custom cancelable progress bar.

A CProgressBar object displays a QProgressBar with a "cancel" button if it is cancelable.

If the "cancel" button is clicked, the signal canceled() is emitted and the CProgressBar object is hidden.

progress-bar.png

Member Function Documentation

void CProgressBar::canceled ( )
signal

This signal is emitted when the cancel button is clicked.

See also:
cancelable, setCancelable
void CProgressBar::hide ( )
slot

Hides the progress bar.

See also:
show
bool CProgressBar::isCancelable ( ) const

Returns true if the action of the progress can be canceled; false otherwise.

See also:
setCancelable
void CProgressBar::setCancelable ( bool  value)

Sets the cancelable property of the progress bar to value.

See also:
isCancelable
void CProgressBar::setRange ( int  start,
int  stop 
)

Sets the range for the progress bar.

See also:
QProgressBar::setRange
void CProgressBar::setTextVisible ( bool  value)

Sets the visibility of the text over the progress bar to value.

See also:
QProgressBar::setTextVisible
void CProgressBar::setValue ( int  value)
slot

Sets the current progress of the progress bar.

See also:
QProgressBar::setValue
void CProgressBar::show ( )
slot

Shows the progress bar. The cancel button is shown if the progress bar is cancelable.

See also:
hide

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