2018-11-06 19:33:17 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2018 Edouard Griffiths, F4EXB //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
2019-04-11 08:43:33 -04:00
|
|
|
// (at your option) any later version. //
|
2018-11-06 19:33:17 -05:00
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef SDRGUI_SOAPYGUI_INTERVALSLIDERGUI_H_
|
|
|
|
#define SDRGUI_SOAPYGUI_INTERVALSLIDERGUI_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QString>
|
|
|
|
|
2018-11-07 08:00:19 -05:00
|
|
|
#include "export.h"
|
2018-11-07 07:38:42 -05:00
|
|
|
#include "itemsettinggui.h"
|
|
|
|
|
2018-11-06 19:33:17 -05:00
|
|
|
namespace Ui {
|
|
|
|
class IntervalSliderGUI;
|
|
|
|
}
|
|
|
|
|
2018-11-07 08:00:19 -05:00
|
|
|
class SDRGUI_API IntervalSliderGUI : public ItemSettingGUI
|
2018-11-06 19:33:17 -05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit IntervalSliderGUI(QWidget* parent = 0);
|
|
|
|
virtual ~IntervalSliderGUI();
|
|
|
|
|
|
|
|
void setLabel(const QString& text);
|
|
|
|
void setUnits(const QString& units);
|
|
|
|
void setInterval(double minimum, double maximum);
|
|
|
|
virtual double getCurrentValue();
|
|
|
|
virtual void setValue(double value);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_intervalSlider_valueChanged(int value);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::IntervalSliderGUI* ui;
|
|
|
|
double m_minimum;
|
|
|
|
double m_maximum;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SDRGUI_SOAPYGUI_INTERVALSLIDERGUI_H_ */
|