mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add menu entry for creating GPS location
And disable it if there is no satellite based location service (but see the comment in the previous commit - this doesn't appear to work reliably). Nothing happens when you use the menu entry. This just allows us to hook this up later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ca5b751610
commit
9295b3aa37
2 changed files with 10 additions and 0 deletions
|
@ -206,6 +206,9 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
GpsLocation *locationProvider = new GpsLocation(&report_message, this);
|
GpsLocation *locationProvider = new GpsLocation(&report_message, this);
|
||||||
|
if (!locationProvider->hasLocationsSource()) {
|
||||||
|
ui.menuFile->removeAction(ui.add_GPS_location_here);
|
||||||
|
}
|
||||||
ui.mainErrorMessage->hide();
|
ui.mainErrorMessage->hide();
|
||||||
graphics()->setEmptyState();
|
graphics()->setEmptyState();
|
||||||
initialUiSetup();
|
initialUiSetup();
|
||||||
|
|
|
@ -92,6 +92,8 @@
|
||||||
<addaction name="copy"/>
|
<addaction name="copy"/>
|
||||||
<addaction name="paste"/>
|
<addaction name="paste"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="add_GPS_location_here"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionRenumber"/>
|
<addaction name="actionRenumber"/>
|
||||||
<addaction name="actionAutoGroup"/>
|
<addaction name="actionAutoGroup"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
@ -738,6 +740,11 @@
|
||||||
<string>Facebook</string>
|
<string>Facebook</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="add_GPS_location_here">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add GPS location here</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
Loading…
Add table
Reference in a new issue