SEPIA
Software documentation for the APEX SEPIA receivers
backenddlg.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef BACKENDDLG_H
3 #define BACKENDDLG_H
4 
5 #include <QDialog>
6 #include <QCheckBox>
7 #include <QRadioButton>
8 #include <QPushButton>
9 #include <QButtonGroup>
10 #include <QDialogButtonBox>
11 
12 class BackendDlg : public QDialog
13 {
14  Q_OBJECT
15  Q_PROPERTY(uint pattern READ pattern WRITE setPattern)
16 
17  public:
18  explicit BackendDlg(uint initial, QWidget *parent = 0);
19  ~BackendDlg();
20  uint pattern() { return m_setting; }
21  void setPattern(uint pattern);
22 
23  private slots:
24  void facilityConfiguration();
25  void powermeterConfiguration();
26  void analyzerConfiguration();
27  void selectIFChannel(int i);
28 
29  private:
30  QCheckBox *bits[8];
31  QRadioButton *IF[4];
32  QButtonGroup *IFgroup;
33  QButtonGroup *configuration;
34  QPushButton *facility;
35  QPushButton *powermeter;
36  QPushButton *analyzer;
37 
38  QDialogButtonBox *buttonBox;
39 
40  uint m_setting;
41  uint m_IF;
42 };
43 
44 #endif // BACKENDDLG_H