v2.0.0
Loading...
Searching...
No Matches
progressview.h
Go to the documentation of this file.
1//=============================================================================================================
20
21#ifndef PROGRESSVIEW_H
22#define PROGRESSVIEW_H
23
24//=============================================================================================================
25// INCLUDES
26//=============================================================================================================
27
28#include "../disp_global.h"
29#include "abstractview.h"
30
31#include <memory>
32
33//=============================================================================================================
34// FORWARD DECLARATIONS
35//=============================================================================================================
36
37namespace Ui
38{
39class ProgressViewWidget;
40}
41
42//=============================================================================================================
43// DEFINE NAMESPACE DISPLIB
44//=============================================================================================================
45
46namespace DISPLIB
47{
48
49//=============================================================================================================
57{
58public:
59 //=========================================================================================================
66 ProgressView(bool bHorizontalMessage = false,
67 const QString& sStyleSheet = "");
68
69 //=========================================================================================================
74
75 //=========================================================================================================
79 virtual void saveSettings();
80
81 //=========================================================================================================
85 virtual void loadSettings();
86
87 //=========================================================================================================
93 virtual void updateGuiMode(GuiMode mode);
94
95 //=========================================================================================================
101 virtual void updateProcessingMode(ProcessingMode mode);
102
103 //=========================================================================================================
107 void setHorizontal();
108
109 //=========================================================================================================
113 void setVertical();
114
115 //=========================================================================================================
121 void setTextStyleSheet(const QString& styleSheet);
122
123 //=========================================================================================================
127 void clearView();
128
129public slots:
130 //=========================================================================================================
136 void setMessage(const QString& sMessage);
137
138 //=========================================================================================================
145 void updateProgress(int iPercentage,
146 const QString& sMessage = "");
147
148 //=========================================================================================================
154 void setLoadingBarVisible(bool bVisible);
155
156private:
157 std::unique_ptr<Ui::ProgressViewWidget> m_pUi;
158};
159} //Namespace
160
161#endif // PROGRESSVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void updateProgress(int iPercentage, const QString &sMessage="")
virtual void updateGuiMode(GuiMode mode)
void setLoadingBarVisible(bool bVisible)
void setMessage(const QString &sMessage)
virtual void updateProcessingMode(ProcessingMode mode)
virtual void saveSettings()
void setTextStyleSheet(const QString &styleSheet)
virtual void loadSettings()
ProgressView(bool bHorizontalMessage=false, const QString &sStyleSheet="")