SEPIA
Software documentation for the APEX SEPIA receivers
siggendlg.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef SIGGENDLG_H
3 #define SIGGENDLG_H
4 
5 #include <QDialog>
6 #include <QRadioButton>
7 #include <QDoubleSpinBox>
8 #include <QDialogButtonBox>
9 // #include <QPushButton>
10 
11 #include "agilent.h"
12 
13 class SigGenDlg : public QDialog
14 {
15  Q_OBJECT
16 
17  public:
18  explicit SigGenDlg(Generator *generator, QDialog *parent = 0);
19  ~SigGenDlg();
20  bool output() const { return onButton->isChecked(); }
21  double MHz() const { return mhz->value(); }
22  double dBm() const { return dbm->value(); }
23 
24  private slots:
25  void switched(bool flag);
26 
27  private:
28  Generator *agilent;
29  QRadioButton *onButton;
30  // QPushButton *cancel;
31  // QPushButton *ok;
32  QDialogButtonBox *buttonBox;
33  QDoubleSpinBox *mhz;
34  QDoubleSpinBox *dbm;
35 };
36 
37 #endif // SIGGENDLG_H
A class to control the Agilent signal generator.
Definition: agilent.h:18