27 #ifndef QPROGRESSPANEL_H_
28 #define QPROGRESSPANEL_H_
30 #include <casaqt/QtBrowser/QProgressPanel.ui.h>
void setLabel(casacore::String newLabel)
Sets the text of the label to the given String.
void hideRequested()
The hideRequested signal is emitted whenever the "Hide" button is clicked.
void cancel()
Slot to handle the "Cancel" button's clicked() signal.
void step()
Indicates that one step of progress has been made.
QProgressBar * bar
Pointer to the progress meter.
void updateValue(int value)
This is the signal used by setValue() to get around Qt's GUI thread issues.
void setValue(int value)
Sets the value of the progress meter to the given value.
void done()
Indicate that the task has been completed; the label and progress meter are updated accordingly...
void cancelRequested()
The cancelRequested signal is emitted whenever the "Cancel" button is clicked.
void hide()
Slot to handle the "Hide" button's clicked() signal.
Wrapper around a QProgressPanel or other QLabel/QProgressBar pairing.
void setLabel(casacore::String label)
Set the text of the QLabel to the given String.
QProgressBar * getProgressBar()
Returns the progress meter (QProgressBar).
QLabel * getLabel()
Returns the label (QLabel).
void reset(casacore::String newLabel)
Rest the progress meter and set the label with the given text.
ProgressHelper(QProgressPanel *qpp)
Constructor that takes a pointer to a QProgressPanel.
QProgressPanel(casacore::String label, bool hideable=true, bool cancelable=true)
Builds a QProgressPanel with the given label and a progress meter at 0% completion.
void setSteps(int steps)
Set the total number of steps in the task.
QLabel * label
Pointer to the label.
Convenience class with a label and progress meter.
String: the storage and methods of handling collections of characters.
QLabel * getLabel()
Returns the label (QLabel).
QProgressBar * getBar()
Returns the progress meter (QProgressBar).
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
bool valid
Indicates whether this object is valid or not.