Indeterminate progress bar widget shown during long-running operations. 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 |
Indeterminate progress bar widget shown during long-running operations.
Definition at line 63 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 52 of file progressview.cpp.
| ProgressView::~ProgressView | ( | ) |
Deletes this instance of a ProgressView object
Definition at line 77 of file progressview.cpp.
|
virtual |
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 90 of file progressview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 84 of file progressview.cpp.
| void ProgressView::setHorizontal | ( | ) |
Sets message to appear next to loading bar
Definition at line 110 of file progressview.cpp.
|
slot |
Sets whether loading bar is visible
| [in] | bVisible | whether the bar visible - True = visible, False = hidden. |
Definition at line 152 of file progressview.cpp.
|
slot |
Dsiplays a new message below/beside the loading bar
| [in] | sMessage | message to be displayed. |
Definition at line 126 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 118 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 96 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 103 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 134 of file progressview.cpp.