pqProgressManager is progress manager. More...
#include <pqProgressManager.h>
Inherits QObject.
Public Slots | |
| void | setProgress (const QString &message, int progress, bool processEvents=false) |
| Update progress. More... | |
| void | setEnableProgress (bool) |
| Enables progress. More... | |
| void | beginProgress () |
| Convenience slots that simply call setEnableProgress(). More... | |
| void | endProgress () |
| void | setEnableAbort (bool) |
| Enables abort. More... | |
| void | triggerAbort () |
| This is called when the user clicks on the "Abort" button. More... | |
| bool | unblockEvents (bool) |
| Noop, use addNonBlockableObject/removeNonBlockableObject instead. More... | |
Signals | |
| void | progress (const QString &message, int progress) |
| void | enableProgress (bool) |
| void | enableAbort (bool) |
| void | progressStartEvent () |
| void | progressEndEvent () |
Public Member Functions | |
| pqProgressManager (QObject *parent=nullptr) | |
| ~pqProgressManager () override | |
| void | lockProgress (QObject *object) |
Locks progress to respond to progress signals set by the object alone. More... | |
| void | unlockProgress (QObject *object) |
| Releases the progress lock. More... | |
| bool | isLocked () const |
| Returns if the progress is currently locked by any object. More... | |
| void | addNonBlockableObject (QObject *o) |
| When progress is enabled, the manager disable all widgets except for those objects which are in the non-blockable list. More... | |
| void | removeNonBlockableObject (QObject *o) |
| const QList< QPointer< QObject > > & | nonBlockableObjects () const |
| Returns the list of non-blockable objects. More... | |
Protected Slots | |
| void | onStartProgress () |
| callbacks for signals fired from vtkProcessModule. More... | |
| void | onEndProgress () |
| void | onProgress (vtkObject *) |
| void | onServerAdded (pqServer *) |
Protected Attributes | |
| QPointer< QObject > | Lock |
| QList< QPointer< QObject > > | NonBlockableObjects |
| int | ProgressCount |
| bool | InUpdate |
| bool | EnableProgress |
| bool | ReadyEnableProgress |
pqProgressManager is progress manager.
It centralizes progress raising/ handling. Provides ability for any object to lock progress so that only progress fired by itself will be notified to the rest of the world. Also, when progress is enabled, it disables handling of mouse/key events except on those objects in the NonBlockableObjects list.
Definition at line 23 of file pqProgressManager.h.
| pqProgressManager::pqProgressManager | ( | QObject * | parent = nullptr | ) |
|
override |
| void pqProgressManager::lockProgress | ( | QObject * | object | ) |
Locks progress to respond to progress signals set by the object alone.
All signals sent by other objects are ignored until Unlock is called.
| void pqProgressManager::unlockProgress | ( | QObject * | object | ) |
Releases the progress lock.
| bool pqProgressManager::isLocked | ( | ) | const |
Returns if the progress is currently locked by any object.
|
inline |
When progress is enabled, the manager disable all widgets except for those objects which are in the non-blockable list.
This is the API to add/remove non-blockable objects.
Definition at line 51 of file pqProgressManager.h.
|
inline |
Definition at line 52 of file pqProgressManager.h.
|
inline |
Returns the list of non-blockable objects.
Definition at line 57 of file pqProgressManager.h.
|
slot |
Update progress.
The progress must be enabled by calling enableProgress(true) before calling this method for the progress to be updated.
|
slot |
Enables progress.
|
inlineslot |
Convenience slots that simply call setEnableProgress().
Definition at line 75 of file pqProgressManager.h.
|
inlineslot |
Definition at line 76 of file pqProgressManager.h.
|
slot |
Enables abort.
Disable all widget except the non-blockable ones.
|
slot |
This is called when the user clicks on the "Abort" button.
It is used to abort the current operation on a vtkAlgorithm object.
|
inlineslot |
Noop, use addNonBlockableObject/removeNonBlockableObject instead.
Definition at line 95 of file pqProgressManager.h.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedslot |
callbacks for signals fired from vtkProcessModule.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
Definition at line 118 of file pqProgressManager.h.
|
protected |
Definition at line 119 of file pqProgressManager.h.
|
protected |
Definition at line 120 of file pqProgressManager.h.
|
protected |
Definition at line 121 of file pqProgressManager.h.
|
protected |
Definition at line 123 of file pqProgressManager.h.
|
protected |
Definition at line 124 of file pqProgressManager.h.
1.8.13 on Fri Dec 4 2026