Gui::ProgressBar Class Reference

#include <ProgressBar.h>

List of all members.

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

Detailed Description

Definition at line 136 of file ProgressBar.h.


Constructor & Destructor Documentation

ProgressBar::ProgressBar ( Sequencer s,
QWidget *  parent = 0 
)
ProgressBar::~ProgressBar (  ) 

Destruction.

Definition at line 353 of file ProgressBar.cpp.

References delayedShow(), and Gui::ProgressBarPrivate::delayShowTimer.


Member Function Documentation

void ProgressBar::aboutToShow (  )  [protected, slot]
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]
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.


Friends And Related Function Documentation

friend class Sequencer [friend]

Definition at line 184 of file ProgressBar.h.


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

Generated on Wed Nov 23 19:02:01 2011 for FreeCAD by  doxygen 1.6.1