2017-10-21 06:11:49 +01:00
|
|
|
#ifndef SCOPERANGEENTERDIALOG_H
|
|
|
|
#define SCOPERANGEENTERDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QDebug>
|
2017-11-07 02:54:38 +00:00
|
|
|
#include "desktop_settings.h"
|
2017-10-21 06:11:49 +01:00
|
|
|
|
|
|
|
//ScopeRangeEnterDialog is the class for the "Enter Scope Range" dialog (Oscilloscope->Range->Enter Manually; shortcut is "M").
|
|
|
|
//This code in particular controls the voltageSpinBoxes in the dialog, to ensure they don't go out of range.
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class scopeRangeEnterDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class scopeRangeEnterDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-09-04 11:24:08 +01:00
|
|
|
explicit scopeRangeEnterDialog(QWidget *parent = 0, bool buttonVisible = true, double yTop = 20, double yBot = -20, double window = -10, double delay = 0);
|
2017-10-21 06:11:49 +01:00
|
|
|
~scopeRangeEnterDialog();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::scopeRangeEnterDialog *ui;
|
2018-09-04 11:24:08 +01:00
|
|
|
double delay = 130065506;
|
|
|
|
double timeWindow = 130065506;
|
|
|
|
double yBot = 130065506;
|
|
|
|
double yTop = 130065506;
|
2017-10-21 06:11:49 +01:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void yTopUpdated(double val);
|
|
|
|
void yBotUpdated(double val);
|
|
|
|
void windowUpdated(double val);
|
2017-11-07 02:54:38 +00:00
|
|
|
void delayUpdated(double val);
|
2017-10-21 06:11:49 +01:00
|
|
|
private slots:
|
|
|
|
void toUpdateYTop(double val);
|
|
|
|
void toUpdateYBot(double val);
|
|
|
|
void toUpdateWindow(double val);
|
2017-11-07 02:54:38 +00:00
|
|
|
void toUpdateDelay(double val);
|
2018-09-04 11:24:08 +01:00
|
|
|
void yTopChanged(double val);
|
|
|
|
void yBotChanged(double val);
|
|
|
|
void windowChanged(double val);
|
|
|
|
void delayChanged(double val);
|
2017-10-21 06:11:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCOPERANGEENTERDIALOG_H
|