v2.0.0
Loading...
Searching...
No Matches
spectrumsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
19
20#ifndef SPECTRUMSETTINGSVIEW_H
21#define SPECTRUMSETTINGSVIEW_H
22
23//=============================================================================================================
24// INCLUDES
25//=============================================================================================================
26
27#include "../disp_global.h"
28#include "abstractview.h"
29
30//=============================================================================================================
31// QT INCLUDES
32//=============================================================================================================
33
34#include <QPointer>
35
36//=============================================================================================================
37// FORWARD DECLARATIONS
38//=============================================================================================================
39
40class QSlider;
41
42//=============================================================================================================
43// DEFINE NAMESPACE DISPLIB
44//=============================================================================================================
45
46namespace DISPLIB
47{
48
49//=============================================================================================================
50// DISPLIB FORWARD DECLARATIONS
51//=============================================================================================================
52
53//=============================================================================================================
62{
63 Q_OBJECT
64
65public:
66 typedef QSharedPointer<SpectrumSettingsView> SPtr;
67 typedef QSharedPointer<const SpectrumSettingsView> ConstSPtr;
68
69 //=========================================================================================================
75 SpectrumSettingsView(const QString& sSettingsPath = "",
76 QWidget *parent = Q_NULLPTR,
77 Qt::WindowFlags f = Qt::Widget);
78
79 //=========================================================================================================
84
85 //=========================================================================================================
91 void updateValue(qint32 value);
92
93 //=========================================================================================================
97 void saveSettings();
98
99 //=========================================================================================================
103 void loadSettings();
104
105 //=========================================================================================================
113 void setBoundaries(float fSFreq,
114 float fLowerBound,
115 float fUpperBound);
116
117 //=========================================================================================================
123 float getLowerBound();
124
125 //=========================================================================================================
131 float getUpperBound();
132
133 //=========================================================================================================
137 void clearView();
138
139protected:
140 //=========================================================================================================
146 void updateGuiMode(GuiMode mode);
147
148 //=========================================================================================================
155
156 QPointer<QSlider> m_pSliderLowerBound;
157 QPointer<QSlider> m_pSliderUpperBound;
158
159signals:
160 //=========================================================================================================
165};
166} // NAMESPACE
167
168#endif // SPECTRUMSETTINGSVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void updateProcessingMode(ProcessingMode mode)
QSharedPointer< const SpectrumSettingsView > ConstSPtr
void setBoundaries(float fSFreq, float fLowerBound, float fUpperBound)
QSharedPointer< SpectrumSettingsView > SPtr
SpectrumSettingsView(const QString &sSettingsPath="", QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget)