casa
5.7.0-16
|
GUI for displaying progress information. More...
#include <QtProgressWidget.qo.h>
Public Slots | |
void | initialize (const QString &operationName) |
Initializes the GUI with the given operation name. More... | |
void | setStatus (const QString &status) |
Sets the status to the given. More... | |
void | setProgress (unsigned int progress) |
Sets the progress percentage (0 - 100) to the given. More... | |
void | setProgress (unsigned int progress, const QString &status) |
Sets the progress percentage (0 - 100) and the status to the given. More... | |
void | finalize () |
Finalizes the GUI. More... | |
Signals | |
void | backgroundRequested () |
Signal for when the user requests "background" for the thread. More... | |
void | pauseRequested () |
Signal for when the user requests "pause" for the thread. More... | |
void | resumeRequested () |
Signal for when the user requests "resume" for the thread. More... | |
void | cancelRequested () |
Signal for when the user requests "cancel" for the thread. More... | |
Public Member Functions | |
QtProgressWidget (bool allowBackground=true, bool allowPauseResume=true, bool allowCancel=true, bool isDialog=true, bool useCompact=false, QWidget *parent=NULL) | |
Constructor which takes the PlotMS parent an optional parent widget. More... | |
~QtProgressWidget () | |
Destructor. More... | |
void | setAllowedOperations (bool background, bool pauseResume, bool cancel) |
Sets which operations the user can request using this widget. More... | |
QMutex & | mutex () |
Returns the mutex used for this widget. More... | |
void | initialize (const casacore::String &operationName) |
Initialize the monitor with the identifying operation. More... | |
void | setProgress (unsigned int progress, const casacore::String &status) |
Set the progress to a specific amount and status. More... | |
Public Member Functions inherited from casa::ProgressMonitor | |
virtual void | finalize ()=0 |
Stop the progress. More... | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Overrides QWidget::closeEvent(). More... | |
Protected Member Functions inherited from casa::ProgressMonitor | |
ProgressMonitor () | |
virtual | ~ProgressMonitor () |
Private Slots | |
void | background () |
For the "background" button. More... | |
void | pauseResume (bool pause) |
For the "pause"/"resume" button. More... | |
void | cancel () |
For the "cancel" button. More... | |
Private Attributes | |
QMutex | itsMutex_ |
Mutex. More... | |
Ui::ProgressWidget * | itsProgress_ |
casacore::Normal widget. More... | |
Ui::ProgressCompactWidget * | itsCompactProgress_ |
Compact widget. More... | |
GUI for displaying progress information.
It also shows "background", "cancel", and "pause/resume" buttons for the user. The parent of this widget is responsible for implementing these behaviors as needed.
Definition at line 41 of file QtProgressWidget.qo.h.
casa::QtProgressWidget::QtProgressWidget | ( | bool | allowBackground = true , |
bool | allowPauseResume = true , |
||
bool | allowCancel = true , |
||
bool | isDialog = true , |
||
bool | useCompact = false , |
||
QWidget * | parent = NULL |
||
) |
Constructor which takes the PlotMS parent an optional parent widget.
casa::QtProgressWidget::~QtProgressWidget | ( | ) |
Destructor.
|
privateslot |
For the "background" button.
|
signal |
Signal for when the user requests "background" for the thread.
|
privateslot |
For the "cancel" button.
|
signal |
Signal for when the user requests "cancel" for the thread.
|
protected |
Overrides QWidget::closeEvent().
Connects closing to the "background" signal.
|
slot |
Finalizes the GUI.
Should be called after the operation ends.
|
virtual |
Initialize the monitor with the identifying operation.
Implements casa::ProgressMonitor.
|
slot |
Initializes the GUI with the given operation name.
Should be called before the operation starts.
QMutex& casa::QtProgressWidget::mutex | ( | ) |
Returns the mutex used for this widget.
|
signal |
Signal for when the user requests "pause" for the thread.
|
privateslot |
For the "pause"/"resume" button.
|
signal |
Signal for when the user requests "resume" for the thread.
|
virtual |
Sets which operations the user can request using this widget.
Implements casa::ProgressMonitor.
|
virtual |
Set the progress to a specific amount and status.
Implements casa::ProgressMonitor.
|
slot |
Sets the progress percentage (0 - 100) to the given.
|
slot |
Sets the progress percentage (0 - 100) and the status to the given.
|
slot |
Sets the status to the given.
|
private |
Compact widget.
Definition at line 107 of file QtProgressWidget.qo.h.
|
private |
Mutex.
Definition at line 101 of file QtProgressWidget.qo.h.
|
private |
casacore::Normal widget.
Definition at line 104 of file QtProgressWidget.qo.h.