SEPIA
Software documentation for the APEX SEPIA receivers
tuningtable.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef TUNINGTABLE_H
3 #define TUNINGTABLE_H
4 
5 #include <QDialog>
6 #include <QTableView>
7 #include <QSqlTableModel>
8 
9 class TuningTable : public QDialog
10 {
11  Q_OBJECT
12 
13  public:
14  explicit TuningTable(int band, bool flag, QDialog *parent = 0);
15  ~TuningTable();
16 
17  private slots:
18  void submit();
19  void selectBand(int index);
20 
21  private:
22  QTableView *tuningTableView;
23 
24  QSqlTableModel *sqlModel;
25  int m_band;
26  bool m_editable;
27 };
28 
29 #endif // TUNINGTABLE_H