1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

GCS - IFDEFed everything pathplanner related.

This commit is contained in:
PT_Dreamer 2012-08-07 21:36:26 +01:00
parent 3e23163dde
commit 74cd57e8a0

View File

@ -214,7 +214,7 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
if(m_map->GPS)
m_map->GPS->SetUAVPos(m_home_position.coord, 0.0); // set the GPS position
#ifdef USE_PATHPLANNER
model=new flightDataModel(this);
table=new pathPlanner();
selectionModel=new QItemSelectionModel(model);
@ -224,7 +224,7 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
UAVProxy=new modelUavoProxy(this,model);
connect(table,SIGNAL(sendPathPlanToUAV()),UAVProxy,SLOT(modelToObjects()));
connect(table,SIGNAL(receivePathPlanFromUAV()),UAVProxy,SLOT(objectsToModel()));
#endif
magicWayPoint=m_map->magicWPCreate();
magicWayPoint->setVisible(false);
@ -481,7 +481,7 @@ void OPMapGadgetWidget::contextMenuEvent(QContextMenuEvent *event)
uav_menu.addAction(goUAVAct);
// *********
#ifdef USE_PATHPLANNER
switch (m_map_mode)
{
case Normal_MapMode:
@ -513,7 +513,7 @@ void OPMapGadgetWidget::contextMenuEvent(QContextMenuEvent *event)
contextMenu.addAction(homeMagicWaypointAct);
break;
}
#endif
// *********
QMenu overlaySubMenu(tr("&Overlay Opacity "),this);
@ -1318,7 +1318,7 @@ void OPMapGadgetWidget::createActions()
TODO: Waypoint support is disabled for v1.0
*/
#ifdef USE_PATHPLANNER
wayPointEditorAct = new QAction(tr("&Waypoint editor"), this);
wayPointEditorAct->setShortcut(tr("Ctrl+W"));
wayPointEditorAct->setStatusTip(tr("Open the waypoint editor"));
@ -1355,7 +1355,7 @@ void OPMapGadgetWidget::createActions()
clearWayPointsAct->setShortcut(tr("Ctrl+C"));
clearWayPointsAct->setStatusTip(tr("Clear waypoints"));
connect(clearWayPointsAct, SIGNAL(triggered()), this, SLOT(onClearWayPointsAct_triggered()));
#endif
overlayOpacityActGroup = new QActionGroup(this);
connect(overlayOpacityActGroup, SIGNAL(triggered(QAction *)), this, SLOT(onOverlayOpacityActGroup_triggered(QAction *)));
overlayOpacityAct.clear();