1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

LimeRFE USB support (1)

This commit is contained in:
f4exb
2020-01-12 01:10:51 +01:00
parent 664dc41550
commit 1cae76ded7
14 changed files with 1987 additions and 1 deletions
+18
View File
@@ -80,6 +80,10 @@
#include <QDebug>
#include <QSplashScreen>
#if defined(HAS_LIMERFE) and not defined(__APPLE__)
#include "limerfegui/limerfeusbdialog.h"
#endif
MESSAGE_CLASS_DEFINITION(MainWindow::MsgLoadPreset, Message)
MESSAGE_CLASS_DEFINITION(MainWindow::MsgSavePreset, Message)
MESSAGE_CLASS_DEFINITION(MainWindow::MsgDeletePreset, Message)
@@ -246,6 +250,9 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
#ifdef __APPLE__
ui->menuPreferences->removeAction(ui->action_AMBE);
#endif
#if not defined(HAS_LIMERFE) or defined(__APPLE__)
ui->menuPreferences->removeAction(ui->action_LimeRFE);
#endif
delete splash;
@@ -1695,6 +1702,17 @@ void MainWindow::on_action_AMBE_triggered()
#endif
}
void MainWindow::on_action_LimeRFE_triggered()
{
qDebug("MainWindow::on_action_LimeRFE_triggered");
#if defined(HAS_LIMERFE) and not defined(__APPLE__)
qDebug("MainWindow::on_action_LimeRFE_triggered: activated");
LimeRFEUSBDialog *limeRFEUSBDialog = new LimeRFEUSBDialog(this);
limeRFEUSBDialog->setModal(false);
limeRFEUSBDialog->show();
#endif
}
void MainWindow::sampleSourceChanged()
{
// Do it in the currently selected source tab