Labrador/Desktop_Interface/scoperangeenterdialog.h

39 lines
1.0 KiB
C++

#ifndef SCOPERANGEENTERDIALOG_H
#define SCOPERANGEENTERDIALOG_H
#include <QDialog>
#include <QDebug>
#include "desktop_settings.h"
//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);
void delayUpdated(double val);
private slots:
void toUpdateYTop(double val);
void toUpdateYBot(double val);
void toUpdateWindow(double val);
void toUpdateDelay(double val);
};
#endif // SCOPERANGEENTERDIALOG_H