Labelled QProgressBar with optional auto-hide on completion.
More...
#include <progressview.h>
Public Slots | |
| void | setMessage (const QString &sMessage) |
| void | updateProgress (int iPercentage, const QString &sMessage="") |
| void | setLoadingBarVisible (bool bVisible) |
Public Member Functions | |
| ProgressView (bool bHorizontalMessage=false, const QString &sStyleSheet="") | |
| ~ProgressView () | |
| virtual void | saveSettings () |
| virtual void | loadSettings () |
| virtual void | updateGuiMode (GuiMode mode) |
| virtual void | updateProcessingMode (ProcessingMode mode) |
| void | setHorizontal () |
| void | setVertical () |
| void | setTextStyleSheet (const QString &styleSheet) |
| void | clearView () |
| Public Member Functions inherited from DISPLIB::AbstractView | |
| AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual void | setGuiMode (GuiMode mode) |
| virtual void | setProcessingMode (ProcessingMode mode) |
Additional Inherited Members | |
| Public Types inherited from DISPLIB::AbstractView | |
| enum | StyleMode { Default , Dark } |
| enum | GuiMode { Clinical , Research } |
| enum | ProcessingMode { RealTime , Offline } |
| typedef QSharedPointer< AbstractView > | SPtr |
| typedef QSharedPointer< const AbstractView > | ConstSPtr |
| Signals inherited from DISPLIB::AbstractView | |
| void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
| Protected Attributes inherited from DISPLIB::AbstractView | |
| bool | m_bResearchModeIsActive |
| bool | m_bOfflineModeIsActive |
| QString | m_sSettingsPath |
Labelled QProgressBar with optional auto-hide on completion.
Standard progress widget used by DISPLIB plugins to report long-running jobs (BEM solving, recording write-out, …).
Definition at line 53 of file progressview.h.

| ProgressView::ProgressView | ( | bool | bHorizontalMessage = false, |
| const QString & | sStyleSheet = "" ) |
Creates an instance of a ProgressView object
| [in] | bHorizontalMessage | Whether message id beside(true) or under(false) the loading bar. |
| [in] | sStyleSheet | Set the stylesheet of the QLabels that display the loading message. |
Definition at line 31 of file progressview.cpp.
| ProgressView::~ProgressView | ( | ) |
Deletes this instance of a ProgressView object
Definition at line 56 of file progressview.cpp.
|
virtual |
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 69 of file progressview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 63 of file progressview.cpp.
| void ProgressView::setHorizontal | ( | ) |
Sets message to appear next to loading bar
Definition at line 89 of file progressview.cpp.
|
slot |
Sets whether loading bar is visible
| [in] | bVisible | whether the bar visible - True = visible, False = hidden. |
Definition at line 131 of file progressview.cpp.
|
slot |
Dsiplays a new message below/beside the loading bar
| [in] | sMessage | message to be displayed. |
Definition at line 105 of file progressview.cpp.
| void DISPLIB::ProgressView::setTextStyleSheet | ( | const QString & | styleSheet | ) |
Sets stylesheet parameters for the QLabels that display loading message
| [in] | styleSheet | string with parameters for the QLabels. |
| void ProgressView::setVertical | ( | ) |
Sets message to appear under the loading bar
Definition at line 97 of file progressview.cpp.
|
virtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
| [in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 75 of file progressview.cpp.
|
virtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
| [in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 82 of file progressview.cpp.
|
slot |
Sets new completion percentage and updates message
| [in] | iPercentage | percentage to show on the loading bar. |
| [in] | sMessage | message to be displayed. |
Definition at line 113 of file progressview.cpp.