1 /* -*- c++ -*- */ 2 /* 3 * Gqrx SDR: Software defined radio receiver powered by GNU Radio and Qt 4 * https://gqrx.dk/ 5 * 6 * Copyright 2013 Alexandru Csete OZ9AEC. 7 * 8 * Gqrx is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 3, or (at your option) 11 * any later version. 12 * 13 * Gqrx is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with Gqrx; see the file COPYING. If not, write to 20 * the Free Software Foundation, Inc., 51 Franklin Street, 21 * Boston, MA 02110-1301, USA. 22 */ 23 #ifndef NB_OPTIONS_H 24 #define NB_OPTIONS_H 25 26 #include <QDialog> 27 #include <QCloseEvent> 28 29 namespace Ui { 30 class CNbOptions; 31 } 32 33 class CNbOptions : public QDialog 34 { 35 Q_OBJECT 36 37 public: 38 explicit CNbOptions(QWidget *parent = 0); 39 ~CNbOptions(); 40 41 void closeEvent(QCloseEvent *event); 42 43 double nbThreshold(int nbid); 44 45 signals: 46 void thresholdChanged(int nb, double val); 47 48 private slots: 49 void on_nb1Threshold_valueChanged(double val); 50 void on_nb2Threshold_valueChanged(double val); 51 52 private: 53 Ui::CNbOptions *ui; 54 }; 55 56 #endif // NB_OPTIONS_H 57