Implemented multiple Feature Sets in GUI

pull/997/head
f4exb 2021-08-21 22:05:05 +02:00
rodzic e2286cc741
commit 96cf34591a
3 zmienionych plików z 46 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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