27 #ifndef PLOTMSTHREAD_QO_H_
28 #define PLOTMSTHREAD_QO_H_
35 class QtProgressWidget;
75 virtual QString
getName()
const = 0;
void initProgress(const QString &operationName)
void resumeThread()
For when the user requests "resume" for the thread.
virtual bool isCacheThread() const
virtual void postThreadMethod()
Executes the post-thread method as needed.
virtual void finishProgress()
PlotMSThread(QtProgressWidget *progress, PMSPTMethod postThreadMethod=NULL, PMSPTObject postThreadObject=NULL)
Constructor which takes the progress widget to use, and an optional post-thread method that should be...
virtual QString getName() const =0
virtual void setProgress(unsigned int progress, const casacore::String &status)
void * PMSPTObject
Typedefs for using post-thread methods.
virtual void finished()
IMPLEMENTED METHODS //.
void pauseThread()
For when the user requests "pause" for the thread.
virtual void threadFinished()
Allows subclasses to override and do any clean-up they need to once the background thread has complet...
Abstract class to control a threaded operation from the GUI.
void PMSPTMethod(PMSPTObject, bool)
virtual void startOperation()=0
ABSTRACT METHODS //.
virtual ~PlotMSThread()
Destructor.
virtual void initializeProgress(const casacore::String &operationName)
Overridden from BackgroundThread in order to update the progress widget on the GUI thread...
String: the storage and methods of handling collections of characters.
void cancelThread()
For when the user requests "cancel" for the thread.
void finishedOperation(PlotMSThread *thread)
This signal MUST be emitted after start() has been called, and when the operation has finished...
void backgroundThread()
For when the user requests "background" for the thread.
void signalFinishedOperation(PlotMSThread *thread)
Signal that clean-up and thread work is done.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void updateProgress(unsigned int value, const QString &statusStr)