mirror of https://github.com/EspoTek/Labrador.git
36 lines
939 B
C++
36 lines
939 B
C++
#ifndef SCOPERANGEENTERDIALOG_H
|
|
#define SCOPERANGEENTERDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QDebug>
|
|
|
|
//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:
|
|
explicit scopeRangeEnterDialog(QWidget *parent = 0, double yTop = 20, double yBot = -20, double window = -10, double delay = 0);
|
|
~scopeRangeEnterDialog();
|
|
|
|
private:
|
|
Ui::scopeRangeEnterDialog *ui;
|
|
|
|
signals:
|
|
void yTopUpdated(double val);
|
|
void yBotUpdated(double val);
|
|
void windowUpdated(double val);
|
|
private slots:
|
|
void toUpdateYTop(double val);
|
|
void toUpdateYBot(double val);
|
|
void toUpdateWindow(double val);
|
|
};
|
|
|
|
#endif // SCOPERANGEENTERDIALOG_H
|