Rev 750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 750 | Rev 801 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | cb_CenterPos->setChecked(o_Settings->CONFIG.cb_CenterPos); |
59 | cb_CenterPos->setChecked(o_Settings->CONFIG.cb_CenterPos); |
60 | cb_ShowRoute->setChecked(o_Settings->CONFIG.cb_ShowRoute); |
60 | cb_ShowRoute->setChecked(o_Settings->CONFIG.cb_ShowRoute); |
61 | cb_ShowWPs->setChecked(o_Settings->CONFIG.cb_ShowWPs); |
61 | cb_ShowWPs->setChecked(o_Settings->CONFIG.cb_ShowWPs); |
62 | cb_Goto->setChecked(o_Settings->CONFIG.cb_Goto); |
62 | cb_Goto->setChecked(o_Settings->CONFIG.cb_Goto); |
Line 63... | Line 63... | ||
63 | 63 | ||
64 | tb_More->addWidget(cb_Maps); |
64 | // tb_More->addWidget(cb_Maps); |
Line 65... | Line 65... | ||
65 | cb_Maps->setVisible(false); |
65 | cb_Maps->setVisible(false); |
Line 66... | Line 66... | ||
66 | 66 | ||
Line 167... | Line 167... | ||
167 | o_Map->addLayer(o_Info); |
167 | o_Map->addLayer(o_Info); |
168 | o_Map->addLayer(o_RouteWP); |
168 | o_Map->addLayer(o_RouteWP); |
169 | o_Map->addLayer(o_RouteFL); |
169 | o_Map->addLayer(o_RouteFL); |
Line 170... | Line 170... | ||
170 | 170 | ||
171 | o_Map->setZoom(17); |
171 | o_Map->setZoom(17); |
172 | // o_Map->setView(QPointF(o_Settings->NAVI.Longitude,o_Settings->NAVI.Latitude)); |
172 | o_Map->setView(QPointF(o_Settings->NAVI.Longitude,o_Settings->NAVI.Latitude)); |
173 | // o_Map->setView(QPointF(13.5,52.5)); |
173 | // o_Map->setView(QPointF(13.5,52.5)); |
174 | o_Map->setView(QPointF(13.419805,52.431787)); |
174 | // o_Map->setView(QPointF(13.419805,52.431787)); |
Line 175... | Line 175... | ||
175 | connect(o_Map, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)), this, SLOT(slot_Click(const QMouseEvent*, const QPointF))); |
175 | connect(o_Map, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)), this, SLOT(slot_Click(const QMouseEvent*, const QPointF))); |
Line 176... | Line 176... | ||
176 | 176 | ||
Line 207... | Line 207... | ||
207 | int zoomValue = sl_Zoom->value(); |
207 | int zoomValue = sl_Zoom->value(); |
208 | int numDegrees = event->delta() / 8; |
208 | int numDegrees = event->delta() / 8; |
209 | int numSteps = numDegrees / 15; |
209 | int numSteps = numDegrees / 15; |
210 | zoomValue += numSteps; |
210 | zoomValue += numSteps; |
211 | if (zoomValue < 0) { zoomValue = 0;} |
211 | if (zoomValue < 0) { zoomValue = 0;} |
212 | if (zoomValue > 17) { zoomValue = 17;} |
212 | if (zoomValue > 18) { zoomValue = 18;} |
213 | sl_Zoom->setValue(zoomValue); |
213 | sl_Zoom->setValue(zoomValue); |
214 | } |
214 | } |
Line 215... | Line 215... | ||
215 | 215 | ||
216 | QList<sWayPoint> dlg_Main::parse_WayPointKML(QString s_File) |
216 | QList<sWayPoint> dlg_Main::parse_WayPointKML(QString s_File) |
Line 430... | Line 430... | ||
430 | s_WayPoint.Position.Status = NEWDATA; |
430 | s_WayPoint.Position.Status = NEWDATA; |
431 | s_WayPoint.Heading = -1; |
431 | s_WayPoint.Heading = -1; |
432 | s_WayPoint.ToleranceRadius = 5; |
432 | s_WayPoint.ToleranceRadius = 5; |
433 | s_WayPoint.HoldTime = sb_Time->value(); |
433 | s_WayPoint.HoldTime = sb_Time->value(); |
434 | s_WayPoint.Event_Flag = 0; |
434 | s_WayPoint.Event_Flag = 0; |
- | 435 | s_WayPoint.Index = 1; |
|
435 | s_WayPoint.reserve[0] = 0; // reserve |
436 | s_WayPoint.reserve[0] = 0; // reserve |
436 | s_WayPoint.reserve[1] = 0; // reserve |
437 | s_WayPoint.reserve[1] = 0; // reserve |
437 | s_WayPoint.reserve[2] = 0; // reserve |
438 | s_WayPoint.reserve[2] = 0; // reserve |
438 | s_WayPoint.reserve[3] = 0; |
439 | s_WayPoint.reserve[3] = 0; |
Line 478... | Line 479... | ||
478 | s_WayPoint.Position.Status = NEWDATA; |
479 | s_WayPoint.Position.Status = NEWDATA; |
479 | s_WayPoint.Heading = -1; |
480 | s_WayPoint.Heading = -1; |
480 | s_WayPoint.ToleranceRadius = 5; |
481 | s_WayPoint.ToleranceRadius = 5; |
481 | s_WayPoint.HoldTime = t_WayPoints[z].Time; |
482 | s_WayPoint.HoldTime = t_WayPoints[z].Time; |
482 | s_WayPoint.Event_Flag = 0; |
483 | s_WayPoint.Event_Flag = 0; |
- | 484 | s_WayPoint.Index = t_Pos; |
|
483 | s_WayPoint.reserve[0] = 0; // reserve |
485 | s_WayPoint.reserve[0] = 0; // reserve |
484 | s_WayPoint.reserve[1] = 0; // reserve |
486 | s_WayPoint.reserve[1] = 0; // reserve |
485 | s_WayPoint.reserve[2] = 0; // reserve |
487 | s_WayPoint.reserve[2] = 0; // reserve |
486 | s_WayPoint.reserve[3] = 0; // reserve |
488 | s_WayPoint.reserve[3] = 0; // reserve |
Line 549... | Line 551... | ||
549 | 551 | ||
550 | le_WP->setText(QString("%1/").arg(ps_MK_NaviData.WaypointIndex) + QString("%1").arg(ps_MK_NaviData.WaypointNumber)); |
552 | le_WP->setText(QString("%1/").arg(ps_MK_NaviData.WaypointIndex) + QString("%1").arg(ps_MK_NaviData.WaypointNumber)); |
551 | le_WPTime->setText(QString("%1:").arg(ps_MK_NaviData.TargetHoldTime / 60) + (QString("%1").arg(ps_MK_NaviData.TargetHoldTime % 60)).rightJustified(2, '0')); |
553 | le_WPTime->setText(QString("%1:").arg(ps_MK_NaviData.TargetHoldTime / 60) + (QString("%1").arg(ps_MK_NaviData.TargetHoldTime % 60)).rightJustified(2, '0')); |
552 | le_WPDist->setText(QString("%1m").arg(ps_MK_NaviData.TargetPositionDeviation.Distance / 10)); |
554 | le_WPDist->setText(QString("%1m").arg(ps_MK_NaviData.TargetPositionDeviation.Distance / 10)); |
- | 555 | le_HomeDist->setText(QString("%1m").arg(ps_MK_NaviData.HomePositionDeviation.Distance / 10)); |
|
Line 553... | Line 556... | ||
553 | le_HomeDist->setText(QString("%1m").arg(ps_MK_NaviData.HomePositionDeviation.Distance / 10)); |
556 | le_Sats->setText(QString("%1").arg(ps_MK_NaviData.SatsInUse)); |
554 | 557 | ||
Line 555... | Line 558... | ||
555 | add_Position(ps_MK_NaviData); |
558 | add_Position(ps_MK_NaviData); |