26,8 → 26,8 |
|
cb_Maps->removeItem(5); |
cb_Maps->removeItem(4); |
cb_Maps->removeItem(3); |
cb_Maps->removeItem(2); |
// cb_Maps->removeItem(3); |
// cb_Maps->removeItem(2); |
|
pb_Add->setEnabled(false); |
pb_Goto->setEnabled(false); |
46,6 → 46,7 |
connect(pb_Delete, SIGNAL(clicked()), this, SLOT(slot_DeleteWayPoints())); |
connect(pb_Goto, SIGNAL(clicked()), this, SLOT(slot_GotoTarget())); |
connect(pb_SendWaypoints, SIGNAL(clicked()), this, SLOT(slot_SendWayPoints())); |
connect(pb_LoadPic, SIGNAL(clicked()), this, SLOT(slot_LoadMapPic())); |
|
connect(pb_Load, SIGNAL(clicked()), this, SLOT(slot_LoadWayPoints())); |
connect(pb_Save, SIGNAL(clicked()), this, SLOT(slot_SaveWayPoints())); |
422,10 → 423,43 |
} |
|
o_Map->updateRequestNew(); |
|
// qDebug(QString("%1").arg(Coord.x()).toLatin1().data()); |
// qDebug(QString("%1").arg(Coord.y()).toLatin1().data()); |
} |
|
|
void dlg_Map::slot_LoadMapPic() |
{ |
QString Filename = QFileDialog::getOpenFileName(this, "Bild als Karte", o_Settings->DIR.Logging, "Bilddatei(*.jpg *.png *.gif);;Alle Dateien (*)"); |
|
if (!Filename.isEmpty()) |
{ |
QFile f_Points(Filename + ".pos"); |
|
if (f_Points.exists()) |
{ |
f_Points.open(QIODevice::ReadOnly | QIODevice::Text); |
|
QString s_Points; |
|
while (!f_Points.atEnd()) |
{ |
s_Points.append(f_Points.readLine()); |
} |
|
f_Points.close(); |
|
QStringList s_Pos = s_Points.split(","); |
|
FixedImageOverlay* fip = new FixedImageOverlay(s_Pos[0].toDouble(), s_Pos[1].toDouble(), s_Pos[2].toDouble(), s_Pos[3].toDouble(), Filename); |
|
o_Layer->addGeometry(fip); |
o_Map->updateRequestNew(); |
} |
} |
} |
|
// auf Veränderung der Fenstergröße reagieren |
void dlg_Map::resizeEvent ( QResizeEvent * event ) |
{ |