#include <ProgressBar.h>
Public Slots | |
bool | canAbort () const |
void | setMinimumDuration (int ms) |
Sets the time that must pass before the progress bar appears to ms. | |
Public Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
Handles all incoming events while the progress bar is running. | |
int | minimumDuration () const |
Returns the time in milliseconds that must pass before the progress bar appears. | |
ProgressBar (Sequencer *s, QWidget *parent=0) | |
Construction. | |
~ProgressBar () | |
Destruction. | |
Protected Slots | |
void | aboutToShow () |
void | delayedShow () |
Protected Member Functions | |
void | hideEvent (QHideEvent *) |
void | showEvent (QShowEvent *) |
Friends | |
class | Sequencer |
Definition at line 136 of file ProgressBar.h.
ProgressBar::ProgressBar | ( | Sequencer * | s, | |
QWidget * | parent = 0 | |||
) |
Construction.
Definition at line 336 of file ProgressBar.cpp.
References draftlibs::fcgeo::connect(), delayedShow(), Gui::ProgressBarPrivate::delayShowTimer, Mod::PartDesign::Scripts::Gear::hide(), Gui::ProgressBarPrivate::minimumDuration, and Gui::ProgressBarPrivate::observeEventFilter.
ProgressBar::~ProgressBar | ( | ) |
Destruction.
Definition at line 353 of file ProgressBar.cpp.
References delayedShow(), and Gui::ProgressBarPrivate::delayShowTimer.
void ProgressBar::aboutToShow | ( | ) | [protected, slot] |
Definition at line 376 of file ProgressBar.cpp.
References Gui::ProgressBarPrivate::delayShowTimer, and Gui::ProgressBarPrivate::minimumDuration.
Referenced by Gui::Sequencer::startStep().
bool ProgressBar::canAbort | ( | ) | const [slot] |
Definition at line 388 of file ProgressBar.cpp.
References Gui::getMainWindow().
Referenced by Gui::Sequencer::nextStep().
void ProgressBar::delayedShow | ( | ) | [protected, slot] |
Definition at line 382 of file ProgressBar.cpp.
References Base::SequencerBase::isRunning(), show(), and Base::SequencerBase::wasCanceled().
Referenced by ProgressBar(), and ~ProgressBar().
bool ProgressBar::eventFilter | ( | QObject * | o, | |
QEvent * | e | |||
) |
Handles all incoming events while the progress bar is running.
All key and mouse events are ignored to block user input.
Definition at line 431 of file ProgressBar.cpp.
References Gui::getMainWindow(), Gui::ProgressBarPrivate::isModalDialog(), Base::SequencerBase::isRunning(), Gui::ProgressBarPrivate::observeEventFilter, Gui::Sequencer::resetData(), and Base::SequencerBase::tryToCancel().
void ProgressBar::hideEvent | ( | QHideEvent * | e | ) | [protected] |
Definition at line 403 of file ProgressBar.cpp.
References Gui::ProgressBarPrivate::delayShowTimer.
int ProgressBar::minimumDuration | ( | ) | const |
Returns the time in milliseconds that must pass before the progress bar appears.
Definition at line 360 of file ProgressBar.cpp.
References Gui::ProgressBarPrivate::minimumDuration.
void ProgressBar::setMinimumDuration | ( | int | ms | ) | [slot] |
Sets the time that must pass before the progress bar appears to ms.
Definition at line 365 of file ProgressBar.cpp.
References Gui::ProgressBarPrivate::delayShowTimer, Gui::ProgressBarPrivate::minimumDuration, and Py::value().
void ProgressBar::showEvent | ( | QShowEvent * | e | ) | [protected] |
Definition at line 397 of file ProgressBar.cpp.
References Gui::ProgressBarPrivate::delayShowTimer.
friend class Sequencer [friend] |
Definition at line 184 of file ProgressBar.h.