mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:23:23 +00:00
mapwidget: add public slot endGetDiveCoordinates()
Later this has to be replaced / renamed if needed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
39af5bb05b
commit
0d3d9c01eb
3 changed files with 10 additions and 0 deletions
|
@ -1032,7 +1032,11 @@ void MainWindow::on_actionEditDive_triggered()
|
|||
disableShortcuts();
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
|
||||
graphics()->setAddState();
|
||||
#ifndef NO_MARBLE
|
||||
GlobeGPS::instance()->endGetDiveCoordinates();
|
||||
#else
|
||||
MapWidget::instance()->endGetDiveCoordinates();
|
||||
#endif
|
||||
setApplicationState("EditDive");
|
||||
DivePlannerPointsModel::instance()->loadFromDive(current_dive);
|
||||
information()->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||
|
|
|
@ -32,6 +32,11 @@ void MapWidget::reload()
|
|||
// TODO;
|
||||
}
|
||||
|
||||
void MapWidget::endGetDiveCoordinates()
|
||||
{
|
||||
// TODO;
|
||||
}
|
||||
|
||||
MapWidget::~MapWidget()
|
||||
{
|
||||
m_instance = NULL;
|
||||
|
|
|
@ -22,6 +22,7 @@ public:
|
|||
|
||||
public slots:
|
||||
void centerOnDiveSite(struct dive_site *);
|
||||
void endGetDiveCoordinates();
|
||||
|
||||
private:
|
||||
static MapWidget *m_instance;
|
||||
|
|
Loading…
Add table
Reference in a new issue