diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index 4dbce3af1..02994878e 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -2213,6 +2213,18 @@ void MainWindow::on_action_removeLastDevice_triggered() } } +void MainWindow::on_action_addFeatureSet_triggered() +{ + addFeatureSet(); +} + +void MainWindow::on_action_removeLastFeatureSet_triggered() +{ + if (m_featureUIs.size() > 1) { + removeFeatureSet(m_featureUIs.size() - 1); + } +} + void MainWindow::tabInputViewIndexChanged() { int inputViewIndex = ui->tabInputsView->currentIndex(); diff --git a/sdrgui/mainwindow.h b/sdrgui/mainwindow.h index 654007946..0266ed34e 100644 --- a/sdrgui/mainwindow.h +++ b/sdrgui/mainwindow.h @@ -186,6 +186,8 @@ private slots: void on_action_addSinkDevice_triggered(); void on_action_addMIMODevice_triggered(); void on_action_removeLastDevice_triggered(); + void on_action_addFeatureSet_triggered(); + void on_action_removeLastFeatureSet_triggered(); void tabInputViewIndexChanged(); void tabChannelsIndexChanged(); void commandKeyPressed(Qt::Key key, Qt::KeyboardModifiers keyModifiers, bool release); diff --git a/sdrgui/mainwindow.ui b/sdrgui/mainwindow.ui index 5d77ba6d8..d48c3bffa 100644 --- a/sdrgui/mainwindow.ui +++ b/sdrgui/mainwindow.ui @@ -130,9 +130,17 @@ + + + F&eatureSets + + + + + @@ -940,6 +948,30 @@ LimeRFE + + + Add feature set + + + + Liberation Sans + 9 + 50 + false + + + + + + Remove last feature set + + + + Liberation Sans + 9 + + + presetDock channelDock commandsDock