summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-04 21:23:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-05 14:48:56 -0800
commit956b45ddfda060fcd818659ee05618ed2e4bfcab (patch)
tree1acb6ff91cba57e059e7eac8868ecd066539b230
parent6ce4239884780fafdf641fa52a2a8c7a0a02450d (diff)
downloadsubsurface-956b45ddfda060fcd818659ee05618ed2e4bfcab.tar.gz
map-widget: move the widget and its resources to 'map-widget'
Move all the map widget platform agnostic files to the <subsurface-root>/map-widget folder. This avoids the confusion about the desktop version of subsurface using mobile components. The map widget is planned as a shared component between the mobile and desktop versions. desktop-widgets/mapwidget[.h/.cpp] still remain as those are specific to the desktop version. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--desktop-widgets/CMakeLists.txt2
-rw-r--r--desktop-widgets/mapwidget.cpp2
-rw-r--r--map-widget/qml/MapWidget.qml (renamed from mobile-widgets/qml/MapWidget.qml)0
-rw-r--r--map-widget/qml/MapWidgetContextMenu.qml (renamed from mobile-widgets/qml/MapWidgetContextMenu.qml)0
-rw-r--r--map-widget/qml/MapWidgetError.qml (renamed from mobile-widgets/qml/MapWidgetError.qml)0
-rw-r--r--map-widget/qml/icons/mapwidget-context-menu.png (renamed from mobile-widgets/qml/icons/mapwidget-context-menu.png)bin242 -> 242 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-marker-gray.png (renamed from mobile-widgets/qml/icons/mapwidget-marker-gray.png)bin2033 -> 2033 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-marker-selected.png (renamed from mobile-widgets/qml/icons/mapwidget-marker-selected.png)bin1995 -> 1995 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-marker.png (renamed from mobile-widgets/qml/icons/mapwidget-marker.png)bin1801 -> 1801 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-toggle-satellite.png (renamed from mobile-widgets/qml/icons/mapwidget-toggle-satellite.png)bin6288 -> 6288 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-toggle-street.png (renamed from mobile-widgets/qml/icons/mapwidget-toggle-street.png)bin5916 -> 5916 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-zoom-in.png (renamed from mobile-widgets/qml/icons/mapwidget-zoom-in.png)bin256 -> 256 bytes
-rw-r--r--map-widget/qml/icons/mapwidget-zoom-out.png (renamed from mobile-widgets/qml/icons/mapwidget-zoom-out.png)bin242 -> 242 bytes
-rw-r--r--map-widget/qmlmapwidgethelper.cpp (renamed from mobile-widgets/qmlmapwidgethelper.cpp)0
-rw-r--r--map-widget/qmlmapwidgethelper.h (renamed from mobile-widgets/qmlmapwidgethelper.h)0
-rw-r--r--subsurface.qrc22
16 files changed, 13 insertions, 13 deletions
diff --git a/desktop-widgets/CMakeLists.txt b/desktop-widgets/CMakeLists.txt
index 6a7e1313b..b94b840d1 100644
--- a/desktop-widgets/CMakeLists.txt
+++ b/desktop-widgets/CMakeLists.txt
@@ -69,7 +69,7 @@ set(SUBSURFACE_INTERFACE
kmessagewidget.cpp
mainwindow.cpp
mapwidget.cpp
- ../mobile-widgets/qmlmapwidgethelper.cpp
+ ../map-widget/qmlmapwidgethelper.cpp
modeldelegates.cpp
notificationwidget.cpp
simplewidgets.cpp
diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp
index 806b82c2d..aefda2a32 100644
--- a/desktop-widgets/mapwidget.cpp
+++ b/desktop-widgets/mapwidget.cpp
@@ -7,7 +7,7 @@
#include "mapwidget.h"
#include "core/dive.h"
#include "core/divesite.h"
-#include "mobile-widgets/qmlmapwidgethelper.h"
+#include "map-widget/qmlmapwidgethelper.h"
#include "qt-models/maplocationmodel.h"
#include "mainwindow.h"
#include "divelistview.h"
diff --git a/mobile-widgets/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml
index 2a3283482..2a3283482 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/map-widget/qml/MapWidget.qml
diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/map-widget/qml/MapWidgetContextMenu.qml
index 17450a729..17450a729 100644
--- a/mobile-widgets/qml/MapWidgetContextMenu.qml
+++ b/map-widget/qml/MapWidgetContextMenu.qml
diff --git a/mobile-widgets/qml/MapWidgetError.qml b/map-widget/qml/MapWidgetError.qml
index 346e95f07..346e95f07 100644
--- a/mobile-widgets/qml/MapWidgetError.qml
+++ b/map-widget/qml/MapWidgetError.qml
diff --git a/mobile-widgets/qml/icons/mapwidget-context-menu.png b/map-widget/qml/icons/mapwidget-context-menu.png
index 6ab7cf77d..6ab7cf77d 100644
--- a/mobile-widgets/qml/icons/mapwidget-context-menu.png
+++ b/map-widget/qml/icons/mapwidget-context-menu.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-marker-gray.png b/map-widget/qml/icons/mapwidget-marker-gray.png
index 856db9f5b..856db9f5b 100644
--- a/mobile-widgets/qml/icons/mapwidget-marker-gray.png
+++ b/map-widget/qml/icons/mapwidget-marker-gray.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-marker-selected.png b/map-widget/qml/icons/mapwidget-marker-selected.png
index 57f4efa27..57f4efa27 100644
--- a/mobile-widgets/qml/icons/mapwidget-marker-selected.png
+++ b/map-widget/qml/icons/mapwidget-marker-selected.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-marker.png b/map-widget/qml/icons/mapwidget-marker.png
index a1be73866..a1be73866 100644
--- a/mobile-widgets/qml/icons/mapwidget-marker.png
+++ b/map-widget/qml/icons/mapwidget-marker.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-toggle-satellite.png b/map-widget/qml/icons/mapwidget-toggle-satellite.png
index 7ee536929..7ee536929 100644
--- a/mobile-widgets/qml/icons/mapwidget-toggle-satellite.png
+++ b/map-widget/qml/icons/mapwidget-toggle-satellite.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-toggle-street.png b/map-widget/qml/icons/mapwidget-toggle-street.png
index 04a668c3f..04a668c3f 100644
--- a/mobile-widgets/qml/icons/mapwidget-toggle-street.png
+++ b/map-widget/qml/icons/mapwidget-toggle-street.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-zoom-in.png b/map-widget/qml/icons/mapwidget-zoom-in.png
index 8c2521c3e..8c2521c3e 100644
--- a/mobile-widgets/qml/icons/mapwidget-zoom-in.png
+++ b/map-widget/qml/icons/mapwidget-zoom-in.png
Binary files differ
diff --git a/mobile-widgets/qml/icons/mapwidget-zoom-out.png b/map-widget/qml/icons/mapwidget-zoom-out.png
index bd372f17d..bd372f17d 100644
--- a/mobile-widgets/qml/icons/mapwidget-zoom-out.png
+++ b/map-widget/qml/icons/mapwidget-zoom-out.png
Binary files differ
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp
index ba197f63f..ba197f63f 100644
--- a/mobile-widgets/qmlmapwidgethelper.cpp
+++ b/map-widget/qmlmapwidgethelper.cpp
diff --git a/mobile-widgets/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h
index 36d25d178..36d25d178 100644
--- a/mobile-widgets/qmlmapwidgethelper.h
+++ b/map-widget/qmlmapwidgethelper.h
diff --git a/subsurface.qrc b/subsurface.qrc
index 6bfb7785d..83b93cc29 100644
--- a/subsurface.qrc
+++ b/subsurface.qrc
@@ -1,16 +1,16 @@
<RCC>
<qresource prefix="/">
- <file alias="MapWidget.qml">mobile-widgets/qml/MapWidget.qml</file>
- <file alias="MapWidgetError.qml">mobile-widgets/qml/MapWidgetError.qml</file>
- <file alias="MapWidgetContextMenu.qml">mobile-widgets/qml/MapWidgetContextMenu.qml</file>
- <file alias="mapwidget-marker">mobile-widgets/qml/icons/mapwidget-marker.png</file>
- <file alias="mapwidget-marker-gray">mobile-widgets/qml/icons/mapwidget-marker-gray.png</file>
- <file alias="mapwidget-marker-selected">mobile-widgets/qml/icons/mapwidget-marker-selected.png</file>
- <file alias="mapwidget-toggle-satellite">mobile-widgets/qml/icons/mapwidget-toggle-satellite.png</file>
- <file alias="mapwidget-toggle-street">mobile-widgets/qml/icons/mapwidget-toggle-street.png</file>
- <file alias="mapwidget-context-menu">mobile-widgets/qml/icons/mapwidget-context-menu.png</file>
- <file alias="mapwidget-zoom-in">mobile-widgets/qml/icons/mapwidget-zoom-in.png</file>
- <file alias="mapwidget-zoom-out">mobile-widgets/qml/icons/mapwidget-zoom-out.png</file>
+ <file alias="MapWidget.qml">map-widget/qml/MapWidget.qml</file>
+ <file alias="MapWidgetError.qml">map-widget/qml/MapWidgetError.qml</file>
+ <file alias="MapWidgetContextMenu.qml">map-widget/qml/MapWidgetContextMenu.qml</file>
+ <file alias="mapwidget-marker">map-widget/qml/icons/mapwidget-marker.png</file>
+ <file alias="mapwidget-marker-gray">map-widget/qml/icons/mapwidget-marker-gray.png</file>
+ <file alias="mapwidget-marker-selected">map-widget/qml/icons/mapwidget-marker-selected.png</file>
+ <file alias="mapwidget-toggle-satellite">map-widget/qml/icons/mapwidget-toggle-satellite.png</file>
+ <file alias="mapwidget-toggle-street">map-widget/qml/icons/mapwidget-toggle-street.png</file>
+ <file alias="mapwidget-context-menu">map-widget/qml/icons/mapwidget-context-menu.png</file>
+ <file alias="mapwidget-zoom-in">map-widget/qml/icons/mapwidget-zoom-in.png</file>
+ <file alias="mapwidget-zoom-out">map-widget/qml/icons/mapwidget-zoom-out.png</file>
<file alias="satellite.svg">icons/satellite.svg</file>
<file alias="star">icons/star.svg</file>
<file alias="subsurface-icon">icons/subsurface-icon.png</file>