SEPIA
Software documentation for the APEX SEPIA receivers
tunedialog.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef TUNEDIALOG_H
3 #define TUNEDIALOG_H
4 
5 #include <QDialog>
6 #include <QPushButton>
7 #include <QDoubleValidator>
8 #include <QRadioButton>
9 #include <QLineEdit>
10 #include <QDialogButtonBox>
11 
12 #include "localoscillator.h"
13 
14 class TuneDialog : public QDialog
15 {
16  Q_OBJECT
17 
18  public:
26  explicit TuneDialog(QWidget *parent, double f, LocalOscillator::Sideband sb, double bottom, double top);
27  ~TuneDialog();
28  double frequency();
29  LocalOscillator::Sideband sideband();
30 
31  private slots:
32  void enableOkButton();
33 
34  private:
35  QRadioButton *lsbButton;
36  QRadioButton *usbButton;
37  QLineEdit *frequencyEdit;
38  QDialogButtonBox *buttonBox;
39  QDoubleValidator *freqValidator;
40  double tuneFreq;
41 };
42 
43 #endif // TUNEDIALOG_H
Sideband
This enum specifies the various sideband configurations.
Definition: localoscillator.h:42
A QWidget presenting a dialog for tuning.
Definition: tunedialog.h:14