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 //=========================================================================================================
77 SpectrumSettingsView(const QString& sSettingsPath = "",
78 QWidget* parent = Q_NULLPTR,
79 Qt::WindowFlags f = Qt::Widget);
80
81 //=========================================================================================================
86
87 //=========================================================================================================
93 void updateValue(qint32 value);
94
95 //=========================================================================================================
99 void saveSettings();
100
101 //=========================================================================================================
105 void loadSettings();
106
107 //=========================================================================================================
115 void setBoundaries(float fSFreq,
116 float fLowerBound,
117 float fUpperBound);
118
119 //=========================================================================================================
125 float getLowerBound();
126
127 //=========================================================================================================
133 float getUpperBound();
134
135 //=========================================================================================================
139 void clearView();
140
141protected:
142 //=========================================================================================================
148 void updateGuiMode(GuiMode mode);
149
150 //=========================================================================================================
157
158 QPointer<QSlider> m_pSliderLowerBound;
159 QPointer<QSlider> m_pSliderUpperBound;
160
161signals:
162 //=========================================================================================================
167};
168} // NAMESPACE
169
170#endif // SPECTRUMSETTINGSVIEW_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 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)