#include <ProgressDialog.h>
Public Member Functions | |
bool | isBlocking () const |
Returns true if the running sequencer is blocking any user input. | |
void | pause () |
Breaks the sequencer if needed. | |
void | resume () |
Continues with progress. | |
Static Public Member Functions | |
static SequencerDialog * | instance () |
Protected Member Functions | |
void | nextStep (bool canAbort) |
Increase the step indicator of the progress dialog. | |
void | resetData () |
Resets the sequencer. | |
SequencerDialog () | |
Construction. | |
void | setText (const char *pszTxt) |
Puts text to the progress dialog. | |
void | showRemainingTime () |
void | startStep () |
Starts the progress dialog. | |
~SequencerDialog () | |
Destruction. | |
Friends | |
class | ProgressDialog |
Definition at line 38 of file ProgressDialog.h.
SequencerDialog::SequencerDialog | ( | ) | [protected] |
Construction.
Definition at line 55 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, Gui::getMainWindow(), Gui::SequencerDialogPrivate::guiThread, and ProgressDialog.
Referenced by instance().
SequencerDialog::~SequencerDialog | ( | ) | [protected] |
Destruction.
Definition at line 62 of file ProgressDialog.cpp.
SequencerDialog * SequencerDialog::instance | ( | void | ) | [static] |
Definition at line 47 of file ProgressDialog.cpp.
References SequencerDialog().
bool SequencerDialog::isBlocking | ( | ) | const [virtual] |
Returns true if the running sequencer is blocking any user input.
This might be only of interest of the GUI where the progress bar or dialog is used from a thread. If started from a thread this method should return false, otherwise true. The default implementation always returns true.
Reimplemented from Base::SequencerBase.
Definition at line 264 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::guiThread.
void SequencerDialog::nextStep | ( | bool | canAbort | ) | [protected, virtual] |
Increase the step indicator of the progress dialog.
Reimplemented from Base::SequencerBase.
Definition at line 114 of file ProgressDialog.cpp.
References Gui::ProgressDialog::canAbort(), Gui::SequencerDialogPrivate::dlg, Base::SequencerBase::nProgress, pause(), Base::SequencerBase::rejectCancel(), resume(), and Base::SequencerBase::wasCanceled().
void SequencerDialog::pause | ( | ) | [virtual] |
Breaks the sequencer if needed.
The default implementation does nothing. Every pause() must eventually be followed by a corresponding resume().
Reimplemented from Base::SequencerBase.
Definition at line 67 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, and Gui::ProgressDialog::leaveControlEvents().
Referenced by nextStep().
void SequencerDialog::resetData | ( | ) | [protected, virtual] |
Resets the sequencer.
Reimplemented from Base::SequencerBase.
Definition at line 213 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, and Gui::ProgressDialog::leaveControlEvents().
void SequencerDialog::resume | ( | ) | [virtual] |
Continues with progress.
The default implementation does nothing.
Reimplemented from Base::SequencerBase.
Definition at line 76 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, and Gui::ProgressDialog::enterControlEvents().
Referenced by nextStep().
void SequencerDialog::setText | ( | const char * | pszTxt | ) | [protected, virtual] |
Puts text to the progress dialog.
Reimplemented from Base::SequencerBase.
Definition at line 246 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, and Gui::SequencerDialogPrivate::text.
void SequencerDialog::showRemainingTime | ( | ) | [protected] |
Definition at line 179 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, Py::int, Gui::SequencerDialogPrivate::measureTime, and Gui::SequencerDialogPrivate::text.
void SequencerDialog::startStep | ( | ) | [protected, virtual] |
Starts the progress dialog.
Reimplemented from Base::SequencerBase.
Definition at line 84 of file ProgressDialog.cpp.
References Gui::SequencerDialogPrivate::dlg, Gui::ProgressDialog::enterControlEvents(), Gui::SequencerDialogPrivate::guiThread, Gui::SequencerDialogPrivate::measureTime, Base::SequencerBase::nTotalSteps, and Gui::SequencerDialogPrivate::progressTime.
friend class ProgressDialog [friend] |
Definition at line 73 of file ProgressDialog.h.
Referenced by SequencerDialog().