1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

GCS/OPMap- Small visual changes to the pathplanner editor.

Add buttons to synchronize planner data with UAVObjects.
This commit is contained in:
PT_Dreamer 2012-06-24 20:00:35 +01:00
parent 3466420a32
commit ff48babb46
4 changed files with 51 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -91,3 +91,13 @@ void pathPlanner::on_tbDetails_clicked()
if(wid) if(wid)
wid->show(); wid->show();
} }
void pathPlanner::on_tbSendToUAV_clicked()
{
emit sendPathPlanToUAV();
}
void pathPlanner::on_tbFetchFromUAV_clicked()
{
emit receivePathPlanFromUAV();
}

View File

@ -36,10 +36,17 @@ private slots:
void on_tbDetails_clicked(); void on_tbDetails_clicked();
void on_tbSendToUAV_clicked();
void on_tbFetchFromUAV_clicked();
private: private:
Ui::testTable *ui; Ui::testTable *ui;
opmap_edit_waypoint_dialog * wid; opmap_edit_waypoint_dialog * wid;
flightDataModel * myModel; flightDataModel * myModel;
signals:
void sendPathPlanToUAV();
void receivePathPlanFromUAV();
}; };
#endif // TESTTABLE_H #endif // TESTTABLE_H

View File

@ -11,7 +11,11 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>PathPlanner</string>
</property>
<property name="windowIcon">
<iconset resource="../coreplugin/core.qrc">
<normaloff>:/core/images/openpilot_logo_64.png</normaloff>:/core/images/openpilot_logo_64.png</iconset>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
@ -86,6 +90,34 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QToolButton" name="tbSendToUAV">
<property name="toolTip">
<string>Send to UAV</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/up_alt.png</normaloff>:/opmap/images/up_alt.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbFetchFromUAV">
<property name="toolTip">
<string>Fetch from UAV</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/down_alt.png</normaloff>:/opmap/images/down_alt.png</iconset>
</property>
</widget>
</item>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
@ -125,6 +157,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../coreplugin/core.qrc"/>
<include location="opmap.qrc"/> <include location="opmap.qrc"/>
</resources> </resources>
<connections/> <connections/>