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