/** * @brief Select new demodulator. * @param demod Demodulator index corresponding to receiver::demod. */ void DockRxOpt::setCurrentDemod(int demod) { if ((demod >= MODE_OFF) && (demod < MODE_LAST)) { ui->modeSelector->setCurrentIndex(demod); updateDemodOptPage(demod); } }
/** * @brief Mode selector activated. * @param New mode selection. * * This slot is activated when the user selects a new demodulator (mode change). * It is connected automatically by the UI constructor, and it emits the demodSelected() * signal. * * Note that the modes listed in the selector are different from those defined by * receiver::demod (we want to list LSB/USB separately but they have identical demods). */ void DockRxOpt::on_modeSelector_activated(int index) { qDebug() << "New mode: " << index; if (index == MODE_RAW) { qDebug() << "Raw I/Q not implemented (fallback to FM-N)"; ui->modeSelector->setCurrentIndex(MODE_NFM); emit demodSelected(MODE_NFM); return; } updateDemodOptPage(index); emit demodSelected(index); }
/** * @brief Mode selector activated. * @param New mode selection. * * This slot is activated when the user selects a new demodulator (mode change). * It is connected automatically by the UI constructor, and it emits the demodSelected() * signal. * * Note that the modes listed in the selector are different from those defined by * receiver::demod (we want to list LSB/USB separately but they have identical demods). */ void DockRxOpt::on_modeSelector_activated(int index) { updateDemodOptPage(index); emit demodSelected(index); }