1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Implemented multiple Feature Sets in GUI

This commit is contained in:
f4exb 2021-08-21 22:05:05 +02:00
parent e2286cc741
commit 96cf34591a
3 changed files with 46 additions and 0 deletions

View File

@ -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();

View File

@ -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);

View File

@ -130,9 +130,17 @@
<addaction name="action_LimeRFE"/>
<addaction name="menuDevices"/>
</widget>
<widget class="QMenu" name="menuFeatureSets">
<property name="title">
<string>F&amp;eatureSets</string>
</property>
<addaction name="action_addFeatureSet"/>
<addaction name="action_removeLastFeatureSet"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_View"/>
<addaction name="menu_Devices"/>
<addaction name="menuFeatureSets"/>
<addaction name="menu_Window"/>
<addaction name="menuPreferences"/>
<addaction name="menu_Help"/>
@ -940,6 +948,30 @@
<string>LimeRFE</string>
</property>
</action>
<action name="action_addFeatureSet">
<property name="text">
<string>Add feature set</string>
</property>
<property name="font">
<font>
<family>Liberation Sans</family>
<pointsize>9</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
</action>
<action name="action_removeLastFeatureSet">
<property name="text">
<string>Remove last feature set</string>
</property>
<property name="font">
<font>
<family>Liberation Sans</family>
<pointsize>9</pointsize>
</font>
</property>
</action>
<zorder>presetDock</zorder>
<zorder>channelDock</zorder>
<zorder>commandsDock</zorder>