Brief description of class still missing. More...
#include <AbstractProgress.h>
Public Member Functions | |
AbstractProgress () | |
const QString & | caption () const |
void | increaseValue (int val=1) |
int | maximum () const |
virtual void | setCaption (QString c) |
virtual void | setMaximum (int val) |
void | setValue (int val) |
int | value () const |
virtual | ~AbstractProgress () |
Protected Member Functions | |
virtual void | paint (QString caption, int value, int maximum)=0 |
QString | valueString (int value, int maximum) |
Protected Attributes | |
QString | _caption |
int | _maximum |
QMutex | _mutex |
int | _value |
Brief description of class still missing.
Full description of class still missing
virtual QGpCoreTools::AbstractProgress::~AbstractProgress | ( | ) | [inline, virtual] |
{}
const QString & QGpCoreTools::AbstractProgress::caption | ( | ) | const |
void QGpCoreTools::AbstractProgress::increaseValue | ( | int | val = 1 | ) | [inline] |
References TRACE.
Referenced by createManyCurves(), GeopsyMainWindow::increaseProgressValue(), and GeopsyCore::GeopsyCoreEngine::showMessage().
{ TRACE; _deltaValue+=val; // Several increments may stack up if they arrive too fast. int now=time(0); if(_lastTime.fetchAndStoreOrdered(now)!=now) { increaseValueInternal(); _deltaValue=0; } }
int QGpCoreTools::AbstractProgress::maximum | ( | ) | const |
Reimplemented in QGpGuiTools::ProgressBar.
virtual void QGpCoreTools::AbstractProgress::paint | ( | QString | caption, |
int | value, | ||
int | maximum | ||
) | [protected, pure virtual] |
Implemented in QGpGuiTools::ProgressBar, SciFigs::PaintProgress, and QGpCoreTools::ConsoleProgress.
void QGpCoreTools::AbstractProgress::setCaption | ( | QString | c | ) | [virtual] |
void QGpCoreTools::AbstractProgress::setMaximum | ( | int | val | ) | [virtual] |
Reimplemented in QGpGuiTools::ProgressBar.
References _maximum, _mutex, _value, and TRACE.
Referenced by addManyCurvePlot(), createManyCurves(), MaxEntryList::keepComponent(), MaxEntryList::keepRing(), MaxEntryList::rejectAmplitudeHorizontalAbsolute(), MaxEntryList::rejectAmplitudeVerticalAbsolute(), MaxEntryList::rejectAmplitudeVerticalFactor(), MaxEntryList::rejectDelay(), MaxEntryList::rejectNPeaksPerFrequency(), MaxEntryList::rejectNPeaksPerMinute(), MaxEntryList::rejectPower(), MaxEntryList::rejectTime(), MaxEntryList::rejectValue(), GeopsyCore::GeopsyCoreEngine::setProgressMaximum(), SciFigs::GraphContent::setProgressMaximum(), and MaxEntryList::toStream().
void QGpCoreTools::AbstractProgress::setValue | ( | int | val | ) | [inline] |
Reimplemented in QGpGuiTools::ProgressBar.
References _maximum, and TRACE.
Referenced by addManyCurvePlot(), DinverCore::ImportanceSampling::generate(), MaxEntryList::keepComponent(), MaxEntryList::keepRing(), MaxEntryList::load(), HistogramReader::parse(), MaxEntryList::rejectAmplitudeHorizontalAbsolute(), MaxEntryList::rejectAmplitudeVerticalAbsolute(), MaxEntryList::rejectAmplitudeVerticalFactor(), MaxEntryList::rejectDelay(), MaxEntryList::rejectNPeaksPerFrequency(), MaxEntryList::rejectNPeaksPerMinute(), MaxEntryList::rejectPower(), MaxEntryList::rejectTime(), MaxEntryList::rejectValue(), SciFigs::GraphContent::setProgressValue(), and MaxEntryList::toStream().
int QGpCoreTools::AbstractProgress::value | ( | ) | const [inline] |
Reimplemented in QGpGuiTools::ProgressBar.
{return _value+_deltaValue;}
QString QGpCoreTools::AbstractProgress::valueString | ( | int | value, |
int | maximum | ||
) | [protected] |
Referenced by QGpCoreTools::ConsoleProgress::paint(), and SciFigs::PaintProgress::paint().
QString QGpCoreTools::AbstractProgress::_caption [protected] |
Referenced by caption(), QGpCoreTools::ConsoleProgress::end(), QGpCoreTools::ConsoleProgress::setCaption(), and setCaption().
int QGpCoreTools::AbstractProgress::_maximum [protected] |
Referenced by AbstractProgress(), QGpCoreTools::ConsoleProgress::end(), maximum(), setMaximum(), and setValue().
QMutex QGpCoreTools::AbstractProgress::_mutex [mutable, protected] |
int QGpCoreTools::AbstractProgress::_value [protected] |
Referenced by AbstractProgress(), and setMaximum().