Skip to content
Snippets Groups Projects
Commit 1f3225f7 authored by beuchatp's avatar beuchatp
Browse files

Added load yaml drop down menu to flying agent GUI

parent d03f76cc
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@
<x>0</x>
<y>0</y>
<width>1862</width>
<height>25</height>
<height>40</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
......@@ -160,7 +160,15 @@
</property>
<addaction name="actionShowHide_Coordinator"/>
</widget>
<widget class="QMenu" name="menuLoad_YAML">
<property name="title">
<string>LoadYAML</string>
</property>
<addaction name="action_LoadYAML_BatteryMonitor"/>
<addaction name="action_LoadYAML_ClientConfig"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuLoad_YAML"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
......@@ -176,6 +184,16 @@
<string>Hide Coordinator</string>
</property>
</action>
<action name="action_LoadYAML_BatteryMonitor">
<property name="text">
<string>BatteryMonitor</string>
</property>
</action>
<action name="action_LoadYAML_ClientConfig">
<property name="text">
<string>ClientConfig</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
......
......@@ -58,6 +58,8 @@ public:
private slots:
void on_actionShowHide_Coordinator_triggered();
void on_action_LoadYAML_BatteryMonitor_triggered();
void on_action_LoadYAML_ClientConfig_triggered();
private:
Ui::MainWindow *ui;
......
......@@ -76,3 +76,21 @@ void MainWindow::on_actionShowHide_Coordinator_triggered()
ui->actionShowHide_Coordinator->setText(qstr);
}
}
void MainWindow::on_action_LoadYAML_BatteryMonitor_triggered()
{
#ifdef CATKIN_MAKE
// Send a message that the "BatteryMonitor" Yaml should be loaded
// by the appropriate Parameter Service
#endif
}
void MainWindow::on_action_LoadYAML_ClientConfig_triggered()
{
#ifdef CATKIN_MAKE
// Send a message that the "ClientConfig" Yaml should be loaded
// by the appropriate Parameter Service
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment