Merge lp:~fransschreuder1/cachemere/trunk into lp:cachemere
- trunk
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~fransschreuder1/cachemere/trunk |
Merge into: | lp:cachemere |
Diff against target: |
2077 lines (+1347/-405) 16 files modified
CMakeLists.txt.user (+86/-375) app/cachemere.qml (+19/-0) app/ui/CMakeLists.txt (+1/-1) app/ui/CompassTab.qml (+200/-0) app/ui/DetailsTab.qml (+67/-4) app/ui/GeocachesTab.qml (+3/-3) app/ui/MapTab.qml (+39/-1) app/ui/NESW.svg (+166/-0) app/ui/WaypointDialog.qml (+284/-0) app/ui/compass.svg (+255/-0) app/ui/utils.js (+14/-0) backend/modules/Cachemere/backend.cpp (+1/-0) backend/modules/Cachemere/geocache.cpp (+128/-3) backend/modules/Cachemere/geocache.h (+45/-1) manifest.json.in (+1/-1) po/com.mikeasoft.cachemere.pot (+38/-16) |
To merge this branch: | bzr merge lp:~fransschreuder1/cachemere/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Sheldon | Pending | ||
Review via email:
|
This proposal has been superseded by a proposal from 2015-04-16.
Commit message
Description of the change
*Added a compass tab (with direction to the cache coordinate
*Changed metric units according to system settings
*Changed compass into SVG
*Changed colour of letters to white
- 7. By FransSchreuder
-
Added dialog to add waypoints (from compass page)
- 8. By FransSchreuder
-
fixed proper rotation of compass
- 9. By FransSchreuder
-
Waypoints are now saved into an .xml file
- 10. By Frans Schreuder
-
Added waypoints also to details page
- 11. By FransSchreuder
-
*Fixed index of Browsertab (is now 4)
*Added waypoints to map, however this doesn't view (just like the list of Geocaches) - 12. By FransSchreuder
-
Fixed size of pickers in WaypointDialog, to make it more usable
Also fixed font size of degree symbol and dot - 13. By Frans Schreuder
-
Added this line to all position sources:
preferredPositioningMethods: PositionSource. SatellitePositi oningMethod - 14. By Frans Schreuder
-
Added Dutch translation
- 15. By FransSchreuder
-
* Show distance in center of compass
* Show Accuracy of GPS on Compass tab - 16. By FransSchreuder
-
Added flickable delete action button to geocaches, now able to delete geocaches.
Confirmation dialog needed? - 17. By FransSchreuder
-
Added active waypoint to map
changed some button colours - 18. By FransSchreuder
-
*added current selected waypoint (if any) to map
*Added status information of GPS below compass - 19. By FransSchreuder
-
Fixed function call to updateGpsStatus
- 20. By FransSchreuder
-
*Fixed waypoints list on map
*Fixed geocache list on map
*Active geocache can also be selected from map - 21. By Frans Schreuder
-
*Improved waypoints dialog (3 digits now have 3 select controls)
*fixed typo in button colours - 22. By FransSchreuder
-
Added pin to mark waypoints on map: thanks to Jeroen Buurmans for the artwork
- 23. By Frans Schreuder
-
*Added images for geocaches (treasure chest open / closed)
*Added cachemere logo to current location - 24. By Frans Schreuder
-
Beep when near selected waypoint (not necessarily the starting point)
- 25. By Jeroen Buurmans <email address hidden>
-
Changed the waypoint icon to a red cross.
- 26. By Frans Schreuder
-
Animation for compass (rotation)
- 27. By FransSchreuder
-
fixed compass animation, now stop animation when compass is updated. Compass will stabilize around target rotation and looks more relaxed
- 28. By FransSchreuder
-
changed namespace, in order to publish the app under cachemere.
fransschreuder
Unmerged revisions
- 28. By FransSchreuder
-
changed namespace, in order to publish the app under cachemere.
fransschreuder - 27. By FransSchreuder
-
fixed compass animation, now stop animation when compass is updated. Compass will stabilize around target rotation and looks more relaxed
- 26. By Frans Schreuder
-
Animation for compass (rotation)
- 25. By Jeroen Buurmans <email address hidden>
-
Changed the waypoint icon to a red cross.
- 24. By Frans Schreuder
-
Beep when near selected waypoint (not necessarily the starting point)
- 23. By Frans Schreuder
-
*Added images for geocaches (treasure chest open / closed)
*Added cachemere logo to current location - 22. By FransSchreuder
-
Added pin to mark waypoints on map: thanks to Jeroen Buurmans for the artwork
- 21. By Frans Schreuder
-
*Improved waypoints dialog (3 digits now have 3 select controls)
*fixed typo in button colours - 20. By FransSchreuder
-
*Fixed waypoints list on map
*Fixed geocache list on map
*Active geocache can also be selected from map - 19. By FransSchreuder
-
Fixed function call to updateGpsStatus
Preview Diff
1 | === modified file 'CMakeLists.txt.user' | |||
2 | --- CMakeLists.txt.user 2014-12-26 20:50:55 +0000 | |||
3 | +++ CMakeLists.txt.user 2015-04-16 19:24:14 +0000 | |||
4 | @@ -1,10 +1,10 @@ | |||
5 | 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
6 | 2 | <!DOCTYPE QtCreatorProject> | 2 | <!DOCTYPE QtCreatorProject> |
8 | 3 | <!-- Written by QtCreator 3.1.1, 2014-12-26T20:29:42. --> | 3 | <!-- Written by QtCreator 3.1.1, 2015-04-16T21:23:14. --> |
9 | 4 | <qtcreator> | 4 | <qtcreator> |
10 | 5 | <data> | 5 | <data> |
11 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
13 | 7 | <value type="int">3</value> | 7 | <value type="int">1</value> |
14 | 8 | </data> | 8 | </data> |
15 | 9 | <data> | 9 | <data> |
16 | 10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | 10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
17 | @@ -56,13 +56,13 @@ | |||
18 | 56 | <valuemap type="QVariantMap"> | 56 | <valuemap type="QVariantMap"> |
19 | 57 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | 57 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
20 | 58 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | 58 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
22 | 59 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{897ebcf3-e88f-4573-bb26-c210d7efb2ef}</value> | 59 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{beace390-9ff2-42fe-ae55-1592c3a47384}</value> |
23 | 60 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | 60 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
24 | 61 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | 61 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
25 | 62 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | 62 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
26 | 63 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | 63 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
27 | 64 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> | 64 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> |
29 | 65 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/mike/src/build-cachemere-Desktop-Default</value> | 65 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/frans/build-cachemere-Desktop-Default</value> |
30 | 66 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | 66 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
31 | 67 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | 67 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
32 | 68 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> | 68 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> |
33 | @@ -172,375 +172,86 @@ | |||
34 | 172 | <valuemap type="QVariantMap"> | 172 | <valuemap type="QVariantMap"> |
35 | 173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic)</value> | 173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic)</value> |
36 | 174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic)</value> | 174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic)</value> |
406 | 175 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{bf187ee2-704d-4b3d-aaa9-27ca3cce46cc}</value> | 175 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{fd99a68b-4f93-48ba-87de-b3da78511de0}</value> |
407 | 176 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | 176 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
408 | 177 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | 177 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
409 | 178 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | 178 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
410 | 179 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | 179 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
411 | 180 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> | 180 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> |
412 | 181 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/mike/src/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default</value> | 181 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/frans/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default</value> |
413 | 182 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | 182 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
414 | 183 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | 183 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
415 | 184 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> | 184 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> |
416 | 185 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> | 185 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> |
417 | 186 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">false</value> | 186 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">false</value> |
418 | 187 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | 187 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> |
419 | 188 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | 188 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
420 | 189 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | 189 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> |
421 | 190 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 190 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
422 | 191 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | 191 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> |
423 | 192 | </valuemap> | 192 | </valuemap> |
424 | 193 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | 193 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
425 | 194 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | 194 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
426 | 195 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 195 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
427 | 196 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | 196 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
428 | 197 | </valuemap> | 197 | </valuemap> |
429 | 198 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | 198 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
430 | 199 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | 199 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
431 | 200 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments">clean</value> | 200 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments">clean</value> |
432 | 201 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> | 201 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> |
433 | 202 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">true</value> | 202 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">true</value> |
434 | 203 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | 203 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> |
435 | 204 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | 204 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
436 | 205 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | 205 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> |
437 | 206 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 206 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
438 | 207 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | 207 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> |
439 | 208 | </valuemap> | 208 | </valuemap> |
440 | 209 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | 209 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
441 | 210 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | 210 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
442 | 211 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 211 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
443 | 212 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | 212 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
444 | 213 | </valuemap> | 213 | </valuemap> |
445 | 214 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | 214 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
446 | 215 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | 215 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
447 | 216 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | 216 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
448 | 217 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Default</value> | 217 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Default</value> |
449 | 218 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Default</value> | 218 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Default</value> |
450 | 219 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.BuildConfiguration</value> | 219 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.BuildConfiguration</value> |
451 | 220 | </valuemap> | 220 | </valuemap> |
452 | 221 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | 221 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> |
453 | 222 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | 222 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
454 | 223 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | 223 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
455 | 224 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | 224 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
456 | 225 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | 225 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
457 | 226 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK Click build</value> | 226 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK Click build</value> |
458 | 227 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 227 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
459 | 228 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.ClickPackageStep</value> | 228 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.ClickPackageStep</value> |
460 | 229 | <value type="int" key="Ubuntu.UbuntuPackageStep.PackageMode">1</value> | 229 | <value type="int" key="Ubuntu.UbuntuPackageStep.PackageMode">1</value> |
461 | 230 | </valuemap> | 230 | </valuemap> |
462 | 231 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | 231 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
463 | 232 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | 232 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
464 | 233 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Upload files to Ubuntu Device</value> | 233 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Upload files to Ubuntu Device</value> |
465 | 234 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | 234 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
466 | 235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UploadStep</value> | 235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UploadStep</value> |
467 | 236 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"> | 236 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"> |
468 | 237 | <value type="QString">/home/mike/src/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default/com.mikeasoft.cachemere_0.1_armhf.click</value> | 237 | <value type="QString">/home/frans/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default/com.mikeasoft.cachemere_0.2_armhf.click</value> |
469 | 238 | <value type="QString">/usr/share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py</value> | 238 | <value type="QString">/usr/share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py</value> |
470 | 239 | </valuelist> | 239 | </valuelist> |
471 | 240 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"> | 240 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"> |
472 | 241 | <value type="QString">127.0.0.1</value> | 241 | <value type="QString">127.0.0.1</value> |
473 | 242 | <value type="QString">127.0.0.1</value> | 242 | <value type="QString">127.0.0.1</value> |
474 | 243 | </valuelist> | 243 | </valuelist> |
475 | 244 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"> | 244 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"> |
476 | 245 | <value type="QString">/tmp</value> | 245 | <value type="QString">/tmp</value> |
477 | 246 | <value type="QString">/tmp</value> | 246 | <value type="QString">/tmp</value> |
478 | 247 | </valuelist> | 247 | </valuelist> |
479 | 248 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedSysroots"> | 248 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedSysroots"> |
480 | 249 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> | 249 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> |
481 | 250 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> | 250 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> |
482 | 251 | </valuelist> | 251 | </valuelist> |
483 | 252 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"> | 252 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"> |
484 | 253 | <value type="QDateTime">2014-12-22T11:43:52</value> | 253 | <value type="QDateTime">2015-04-16T21:21:00</value> |
485 | 254 | <value type="QDateTime">2014-12-22T11:43:52</value> | 254 | <value type="QDateTime">2015-04-16T21:21:00</value> |
117 | 255 | </valuelist> | ||
118 | 256 | </valuemap> | ||
119 | 257 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | ||
120 | 258 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | ||
121 | 259 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
122 | 260 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | ||
123 | 261 | </valuemap> | ||
124 | 262 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | ||
125 | 263 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy to Ubuntu Device</value> | ||
126 | 264 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
127 | 265 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.DeployConfiguration</value> | ||
128 | 266 | </valuemap> | ||
129 | 267 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | ||
130 | 268 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | ||
131 | 269 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | ||
132 | 270 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | ||
133 | 271 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | ||
134 | 272 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | ||
135 | 273 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | ||
136 | 274 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | ||
137 | 275 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | ||
138 | 276 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | ||
139 | 277 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | ||
140 | 278 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | ||
141 | 279 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | ||
142 | 280 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | ||
143 | 281 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | ||
144 | 282 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | ||
145 | 283 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | ||
146 | 284 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | ||
147 | 285 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | ||
148 | 286 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | ||
149 | 287 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | ||
150 | 288 | <value type="int">0</value> | ||
151 | 289 | <value type="int">1</value> | ||
152 | 290 | <value type="int">2</value> | ||
153 | 291 | <value type="int">3</value> | ||
154 | 292 | <value type="int">4</value> | ||
155 | 293 | <value type="int">5</value> | ||
156 | 294 | <value type="int">6</value> | ||
157 | 295 | <value type="int">7</value> | ||
158 | 296 | <value type="int">8</value> | ||
159 | 297 | <value type="int">9</value> | ||
160 | 298 | <value type="int">10</value> | ||
161 | 299 | <value type="int">11</value> | ||
162 | 300 | <value type="int">12</value> | ||
163 | 301 | <value type="int">13</value> | ||
164 | 302 | <value type="int">14</value> | ||
165 | 303 | </valuelist> | ||
166 | 304 | <value type="int" key="PE.EnvironmentAspect.Base">1</value> | ||
167 | 305 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | ||
168 | 306 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value> | ||
169 | 307 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">cachemere</value> | ||
170 | 308 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.RemoteRunConfiguration.Appcachemere</value> | ||
171 | 309 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | ||
172 | 310 | <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | ||
173 | 311 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | ||
174 | 312 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | ||
175 | 313 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | ||
176 | 314 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | ||
177 | 315 | <value type="bool" key="UbuntuRemoteRunConfiguration.ForceInstall">false</value> | ||
178 | 316 | <value type="bool" key="UbuntuRemoteRunConfiguration.Uninstall">true</value> | ||
179 | 317 | </valuemap> | ||
180 | 318 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | ||
181 | 319 | </valuemap> | ||
182 | 320 | </data> | ||
183 | 321 | <data> | ||
184 | 322 | <variable>ProjectExplorer.Project.Target.2</variable> | ||
185 | 323 | <valuemap type="QVariantMap"> | ||
186 | 324 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK for amd64 (GCC ubuntu-sdk-14.10-utopic)</value> | ||
187 | 325 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">UbuntuSDK for amd64 (GCC ubuntu-sdk-14.10-utopic)</value> | ||
188 | 326 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{36b99870-db07-478b-861c-af2da9f17393}</value> | ||
189 | 327 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | ||
190 | 328 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | ||
191 | 329 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | ||
192 | 330 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | ||
193 | 331 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> | ||
194 | 332 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/mike/src/build-cachemere-UbuntuSDK_for_amd64_GCC_ubuntu_sdk_14_10_utopic-Default</value> | ||
195 | 333 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||
196 | 334 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
197 | 335 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> | ||
198 | 336 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> | ||
199 | 337 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">false</value> | ||
200 | 338 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | ||
201 | 339 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
202 | 340 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | ||
203 | 341 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
204 | 342 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | ||
205 | 343 | </valuemap> | ||
206 | 344 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||
207 | 345 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | ||
208 | 346 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
209 | 347 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | ||
210 | 348 | </valuemap> | ||
211 | 349 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | ||
212 | 350 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
213 | 351 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments">clean</value> | ||
214 | 352 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> | ||
215 | 353 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">true</value> | ||
216 | 354 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | ||
217 | 355 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
218 | 356 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | ||
219 | 357 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
220 | 358 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | ||
221 | 359 | </valuemap> | ||
222 | 360 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||
223 | 361 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | ||
224 | 362 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
225 | 363 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | ||
226 | 364 | </valuemap> | ||
227 | 365 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | ||
228 | 366 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | ||
229 | 367 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | ||
230 | 368 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Default</value> | ||
231 | 369 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Default</value> | ||
232 | 370 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.BuildConfiguration</value> | ||
233 | 371 | </valuemap> | ||
234 | 372 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | ||
235 | 373 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | ||
236 | 374 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||
237 | 375 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
238 | 376 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
239 | 377 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK Click build</value> | ||
240 | 378 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
241 | 379 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.ClickPackageStep</value> | ||
242 | 380 | <value type="int" key="Ubuntu.UbuntuPackageStep.PackageMode">1</value> | ||
243 | 381 | </valuemap> | ||
244 | 382 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | ||
245 | 383 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
246 | 384 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Upload files to Ubuntu Device</value> | ||
247 | 385 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
248 | 386 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UploadStep</value> | ||
249 | 387 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"/> | ||
250 | 388 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"/> | ||
251 | 389 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"/> | ||
252 | 390 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedSysroots"/> | ||
253 | 391 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"/> | ||
254 | 392 | </valuemap> | ||
255 | 393 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | ||
256 | 394 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | ||
257 | 395 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
258 | 396 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | ||
259 | 397 | </valuemap> | ||
260 | 398 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | ||
261 | 399 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy to Ubuntu Device</value> | ||
262 | 400 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
263 | 401 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.DeployConfiguration</value> | ||
264 | 402 | </valuemap> | ||
265 | 403 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | ||
266 | 404 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | ||
267 | 405 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | ||
268 | 406 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | ||
269 | 407 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | ||
270 | 408 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | ||
271 | 409 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | ||
272 | 410 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | ||
273 | 411 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | ||
274 | 412 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | ||
275 | 413 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | ||
276 | 414 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | ||
277 | 415 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | ||
278 | 416 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | ||
279 | 417 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | ||
280 | 418 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | ||
281 | 419 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | ||
282 | 420 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | ||
283 | 421 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | ||
284 | 422 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | ||
285 | 423 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | ||
286 | 424 | <value type="int">0</value> | ||
287 | 425 | <value type="int">1</value> | ||
288 | 426 | <value type="int">2</value> | ||
289 | 427 | <value type="int">3</value> | ||
290 | 428 | <value type="int">4</value> | ||
291 | 429 | <value type="int">5</value> | ||
292 | 430 | <value type="int">6</value> | ||
293 | 431 | <value type="int">7</value> | ||
294 | 432 | <value type="int">8</value> | ||
295 | 433 | <value type="int">9</value> | ||
296 | 434 | <value type="int">10</value> | ||
297 | 435 | <value type="int">11</value> | ||
298 | 436 | <value type="int">12</value> | ||
299 | 437 | <value type="int">13</value> | ||
300 | 438 | <value type="int">14</value> | ||
301 | 439 | </valuelist> | ||
302 | 440 | <value type="int" key="PE.EnvironmentAspect.Base">1</value> | ||
303 | 441 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | ||
304 | 442 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value> | ||
305 | 443 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">cachemere</value> | ||
306 | 444 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.RemoteRunConfiguration.Appcachemere</value> | ||
307 | 445 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | ||
308 | 446 | <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | ||
309 | 447 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | ||
310 | 448 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | ||
311 | 449 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | ||
312 | 450 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | ||
313 | 451 | <value type="bool" key="UbuntuRemoteRunConfiguration.ForceInstall">false</value> | ||
314 | 452 | <value type="bool" key="UbuntuRemoteRunConfiguration.Uninstall">true</value> | ||
315 | 453 | </valuemap> | ||
316 | 454 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | ||
317 | 455 | </valuemap> | ||
318 | 456 | </data> | ||
319 | 457 | <data> | ||
320 | 458 | <variable>ProjectExplorer.Project.Target.3</variable> | ||
321 | 459 | <valuemap type="QVariantMap"> | ||
322 | 460 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu Device2 (GCC armhf-ubuntu-sdk-14.10-utopic)</value> | ||
323 | 461 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Ubuntu Device2 (GCC armhf-ubuntu-sdk-14.10-utopic)</value> | ||
324 | 462 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{4c1399b6-f9f9-42aa-b0ab-92397136624f}</value> | ||
325 | 463 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | ||
326 | 464 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | ||
327 | 465 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | ||
328 | 466 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | ||
329 | 467 | <value type="bool" key="CMakeProjectManager.CMakeBuildConfiguration.UseNinja">false</value> | ||
330 | 468 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/mike/src/build-cachemere-Ubuntu_Device2_GCC_armhf_ubuntu_sdk_14_10_utopic-Default</value> | ||
331 | 469 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||
332 | 470 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
333 | 471 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments"></value> | ||
334 | 472 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"> | ||
335 | 473 | <value type="QString">all</value> | ||
336 | 474 | </valuelist> | ||
337 | 475 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">false</value> | ||
338 | 476 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | ||
339 | 477 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
340 | 478 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | ||
341 | 479 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
342 | 480 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | ||
343 | 481 | </valuemap> | ||
344 | 482 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||
345 | 483 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | ||
346 | 484 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
347 | 485 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | ||
348 | 486 | </valuemap> | ||
349 | 487 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | ||
350 | 488 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
351 | 489 | <value type="QString" key="CMakeProjectManager.MakeStep.AdditionalArguments">clean</value> | ||
352 | 490 | <valuelist type="QVariantList" key="CMakeProjectManager.MakeStep.BuildTargets"/> | ||
353 | 491 | <value type="bool" key="CMakeProjectManager.MakeStep.Clean">true</value> | ||
354 | 492 | <value type="bool" key="CMakeProjectManager.MakeStep.UseNinja">false</value> | ||
355 | 493 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
356 | 494 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Ubuntu SDK Make</value> | ||
357 | 495 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
358 | 496 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.MakeStep</value> | ||
359 | 497 | </valuemap> | ||
360 | 498 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | ||
361 | 499 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | ||
362 | 500 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
363 | 501 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | ||
364 | 502 | </valuemap> | ||
365 | 503 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | ||
366 | 504 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | ||
367 | 505 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | ||
368 | 506 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Default</value> | ||
369 | 507 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Default</value> | ||
370 | 508 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UbuntuCMake.BuildConfiguration</value> | ||
371 | 509 | </valuemap> | ||
372 | 510 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | ||
373 | 511 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | ||
374 | 512 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | ||
375 | 513 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | ||
376 | 514 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
377 | 515 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">UbuntuSDK Click build</value> | ||
378 | 516 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
379 | 517 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.ClickPackageStep</value> | ||
380 | 518 | <value type="int" key="Ubuntu.UbuntuPackageStep.PackageMode">1</value> | ||
381 | 519 | </valuemap> | ||
382 | 520 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | ||
383 | 521 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | ||
384 | 522 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Upload files to Ubuntu Device</value> | ||
385 | 523 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | ||
386 | 524 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">UbuntuProjectManager.UploadStep</value> | ||
387 | 525 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles"> | ||
388 | 526 | <value type="QString">/home/mike/src/build-cachemere-Ubuntu_Device2_GCC_armhf_ubuntu_sdk_14_10_utopic-Default/com.mikeasoft.cachemere_0.1_armhf.click</value> | ||
389 | 527 | <value type="QString">/usr/share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py</value> | ||
390 | 528 | </valuelist> | ||
391 | 529 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts"> | ||
392 | 530 | <value type="QString">127.0.0.1</value> | ||
393 | 531 | <value type="QString">127.0.0.1</value> | ||
394 | 532 | </valuelist> | ||
395 | 533 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths"> | ||
396 | 534 | <value type="QString">/tmp</value> | ||
397 | 535 | <value type="QString">/tmp</value> | ||
398 | 536 | </valuelist> | ||
399 | 537 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedSysroots"> | ||
400 | 538 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> | ||
401 | 539 | <value type="QString">/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf</value> | ||
402 | 540 | </valuelist> | ||
403 | 541 | <valuelist type="QVariantList" key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes"> | ||
404 | 542 | <value type="QDateTime">2014-12-26T20:00:20</value> | ||
405 | 543 | <value type="QDateTime">2014-12-26T20:00:20</value> | ||
486 | 544 | </valuelist> | 255 | </valuelist> |
487 | 545 | </valuemap> | 256 | </valuemap> |
488 | 546 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | 257 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
489 | @@ -609,11 +320,11 @@ | |||
490 | 609 | </data> | 320 | </data> |
491 | 610 | <data> | 321 | <data> |
492 | 611 | <variable>ProjectExplorer.Project.TargetCount</variable> | 322 | <variable>ProjectExplorer.Project.TargetCount</variable> |
494 | 612 | <value type="int">4</value> | 323 | <value type="int">2</value> |
495 | 613 | </data> | 324 | </data> |
496 | 614 | <data> | 325 | <data> |
497 | 615 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | 326 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
499 | 616 | <value type="QByteArray">{3ee15b72-49ad-410a-9e6d-9cdc390d3098}</value> | 327 | <value type="QByteArray">{301698f8-cb63-45e5-8611-02ab8c5ad174}</value> |
500 | 617 | </data> | 328 | </data> |
501 | 618 | <data> | 329 | <data> |
502 | 619 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | 330 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
503 | 620 | 331 | ||
504 | === modified file 'app/cachemere.qml' | |||
505 | --- app/cachemere.qml 2014-12-26 20:50:55 +0000 | |||
506 | +++ app/cachemere.qml 2015-04-16 19:24:14 +0000 | |||
507 | @@ -1,5 +1,6 @@ | |||
508 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.0 |
509 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.1 |
510 | 3 | import QtQml 2.2 | ||
511 | 3 | import Cachemere 1.0 | 4 | import Cachemere 1.0 |
512 | 4 | import "ui" | 5 | import "ui" |
513 | 5 | 6 | ||
514 | @@ -35,11 +36,29 @@ | |||
515 | 35 | objectName: "mapTab" | 36 | objectName: "mapTab" |
516 | 36 | } | 37 | } |
517 | 37 | 38 | ||
518 | 39 | CompassTab { | ||
519 | 40 | id: compassTab | ||
520 | 41 | objectName: "compassTab" | ||
521 | 42 | } | ||
522 | 43 | |||
523 | 38 | BrowserTab { | 44 | BrowserTab { |
524 | 39 | id: browserTab | 45 | id: browserTab |
525 | 40 | objectName: "browserTab" | 46 | objectName: "browserTab" |
526 | 41 | } | 47 | } |
527 | 42 | 48 | ||
528 | 43 | } | 49 | } |
529 | 50 | Component.onCompleted: { | ||
530 | 51 | |||
531 | 52 | console.log("Locale:", Qt.locale().measurementSystem, " ", Locale.MetricSystem); | ||
532 | 53 | if(Qt.locale().measurementSystem==Locale.MetricSystem) | ||
533 | 54 | { | ||
534 | 55 | root.miles = false; | ||
535 | 56 | } | ||
536 | 57 | else | ||
537 | 58 | { | ||
538 | 59 | root.miles = true; | ||
539 | 60 | } | ||
540 | 61 | } | ||
541 | 62 | |||
542 | 44 | } | 63 | } |
543 | 45 | 64 | ||
544 | 46 | 65 | ||
545 | === modified file 'app/ui/CMakeLists.txt' | |||
546 | --- app/ui/CMakeLists.txt 2014-12-26 20:50:55 +0000 | |||
547 | +++ app/ui/CMakeLists.txt 2015-04-16 19:24:14 +0000 | |||
548 | @@ -1,4 +1,4 @@ | |||
550 | 1 | file(GLOB UI_QML_JS_FILES *.qml *.js *.wav) | 1 | file(GLOB UI_QML_JS_FILES *.qml *.js *.wav *.svg) |
551 | 2 | 2 | ||
552 | 3 | # Make the files visible in the qtcreator tree | 3 | # Make the files visible in the qtcreator tree |
553 | 4 | add_custom_target(cachemere_ui_QMlFiles ALL SOURCES ${UI_QML_JS_FILES}) | 4 | add_custom_target(cachemere_ui_QMlFiles ALL SOURCES ${UI_QML_JS_FILES}) |
554 | 5 | 5 | ||
555 | === added file 'app/ui/CompassTab.qml' | |||
556 | --- app/ui/CompassTab.qml 1970-01-01 00:00:00 +0000 | |||
557 | +++ app/ui/CompassTab.qml 2015-04-16 19:24:14 +0000 | |||
558 | @@ -0,0 +1,200 @@ | |||
559 | 1 | /* | ||
560 | 2 | * Copyright 2014 Frans Schreuder <info@schreuderelectronics.com> | ||
561 | 3 | * | ||
562 | 4 | * This file is part of Cachemere. | ||
563 | 5 | * | ||
564 | 6 | * Cachemere is free software; you can redistribute it and/or modify | ||
565 | 7 | * it under the terms of the GNU General Public License as published by | ||
566 | 8 | * the Free Software Foundation; version 3. | ||
567 | 9 | * | ||
568 | 10 | * Cachemere is distributed in the hope that it will be useful, | ||
569 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
570 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
571 | 13 | * GNU General Public License for more details. | ||
572 | 14 | * | ||
573 | 15 | * You should have received a copy of the GNU General Public License | ||
574 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
575 | 17 | */ | ||
576 | 18 | |||
577 | 19 | import QtQuick 2.0 | ||
578 | 20 | import Ubuntu.Components 1.1 | ||
579 | 21 | import Ubuntu.Web 0.2 | ||
580 | 22 | import Ubuntu.Components.Popups 1.0 | ||
581 | 23 | import QtLocation 5.0 | ||
582 | 24 | import QtPositioning 5.2 | ||
583 | 25 | import Cachemere 1.0 | ||
584 | 26 | import "." | ||
585 | 27 | import "utils.js" as Utils | ||
586 | 28 | Tab { | ||
587 | 29 | title: i18n.tr("Compass") | ||
588 | 30 | |||
589 | 31 | page: Page { | ||
590 | 32 | Flickable { | ||
591 | 33 | id: compassPage | ||
592 | 34 | anchors.centerIn: parent | ||
593 | 35 | width: parent.width - units.gu(4) | ||
594 | 36 | height: parent.height - units.gu(4) | ||
595 | 37 | contentWidth: width; contentHeight: col.height | ||
596 | 38 | clip: true | ||
597 | 39 | Column{ | ||
598 | 40 | id: col | ||
599 | 41 | width: parent.width; | ||
600 | 42 | spacing: units.gu(2) | ||
601 | 43 | Label { | ||
602 | 44 | |||
603 | 45 | id: distance | ||
604 | 46 | width: parent.width | ||
605 | 47 | wrapMode: Text.WordWrap | ||
606 | 48 | text: i18n.tr("Waiting for fix...") | ||
607 | 49 | } | ||
608 | 50 | Row{ | ||
609 | 51 | width: parent.width | ||
610 | 52 | height: parent.width | ||
611 | 53 | Image { | ||
612 | 54 | anchors.top: distance.bottom | ||
613 | 55 | anchors.left: distance.left | ||
614 | 56 | anchors.topMargin: units.gu(2) | ||
615 | 57 | id: compass | ||
616 | 58 | width: parent.width | ||
617 | 59 | height: parent.width | ||
618 | 60 | source: "compass.svg" | ||
619 | 61 | } | ||
620 | 62 | Image { | ||
621 | 63 | id: nesw | ||
622 | 64 | anchors.centerIn: compass | ||
623 | 65 | width: parent.width | ||
624 | 66 | height: parent.width | ||
625 | 67 | source: "NESW.svg" | ||
626 | 68 | } | ||
627 | 69 | } | ||
628 | 70 | |||
629 | 71 | Label { | ||
630 | 72 | id: lPosition | ||
631 | 73 | width: parent.width | ||
632 | 74 | wrapMode: Text.WordWrap | ||
633 | 75 | text: "<b>" + i18n.tr("Position:") + " </b>" + ((src.position.latitudeValid == true)?Utils.displayCoordinates(src.position.coordinate.latitude, src.position.coordinate.longitude): i18n.tr("Waiting for fix")) | ||
634 | 76 | |||
635 | 77 | } | ||
636 | 78 | Column{ | ||
637 | 79 | width: parent.width | ||
638 | 80 | visible: root.activeGeocache!=null | ||
639 | 81 | spacing: units.gu(2) | ||
640 | 82 | OptionSelector{ | ||
641 | 83 | id: sWaypoints | ||
642 | 84 | width: parent.width | ||
643 | 85 | expanded: false | ||
644 | 86 | model: root.activeGeocache.waypoints | ||
645 | 87 | delegate: selectorDelegate | ||
646 | 88 | } | ||
647 | 89 | |||
648 | 90 | Component { | ||
649 | 91 | id: selectorDelegate | ||
650 | 92 | OptionSelectorDelegate { | ||
651 | 93 | text: model.name | ||
652 | 94 | subText: Utils.displayCoordinates(model.latitude, model.longitude) | ||
653 | 95 | } | ||
654 | 96 | } | ||
655 | 97 | |||
656 | 98 | |||
657 | 99 | |||
658 | 100 | Row{ | ||
659 | 101 | spacing: units.gu(2) | ||
660 | 102 | width: parent.width | ||
661 | 103 | Button { | ||
662 | 104 | id: addWaypoint | ||
663 | 105 | width: (parent.width-units.gu(4))/3 //parent.width | ||
664 | 106 | height: width | ||
665 | 107 | iconName: "add" | ||
666 | 108 | onClicked: { | ||
667 | 109 | var wpName; | ||
668 | 110 | wpName = "WP"+(root.activeGeocache.waypoints.length); | ||
669 | 111 | root.activeGeocache.modelData.addWaypoint(wpName, | ||
670 | 112 | src.position.coordinate.latitude, | ||
671 | 113 | src.position.coordinate.longitude); | ||
672 | 114 | PopupUtils.open(wpDialog); | ||
673 | 115 | } | ||
674 | 116 | } | ||
675 | 117 | Button { | ||
676 | 118 | id: editWaypoint | ||
677 | 119 | width: addWaypoint.width | ||
678 | 120 | height: width | ||
679 | 121 | iconName: "edit" | ||
680 | 122 | enabled: (sWaypoints.selectedIndex!=0) | ||
681 | 123 | onClicked: { | ||
682 | 124 | root.activeGeocache.currentwaypoint = sWaypoints.selectedIndex; | ||
683 | 125 | PopupUtils.open(wpDialog); | ||
684 | 126 | } | ||
685 | 127 | } | ||
686 | 128 | Button { | ||
687 | 129 | id: eraseWaypoint | ||
688 | 130 | width: addWaypoint.width | ||
689 | 131 | height: width | ||
690 | 132 | iconName: "delete" | ||
691 | 133 | enabled: (sWaypoints.selectedIndex!=0) | ||
692 | 134 | onClicked: { | ||
693 | 135 | root.activeGeocache.modelData.deleteWaypoint(sWaypoints.selectedIndex); | ||
694 | 136 | root.activeGeocache.modelData.updateWaypoints(); | ||
695 | 137 | } | ||
696 | 138 | } | ||
697 | 139 | |||
698 | 140 | } | ||
699 | 141 | } | ||
700 | 142 | WaypointDialog { | ||
701 | 143 | id: wpDialog | ||
702 | 144 | } | ||
703 | 145 | } | ||
704 | 146 | } | ||
705 | 147 | |||
706 | 148 | |||
707 | 149 | PositionSource { | ||
708 | 150 | id: src | ||
709 | 151 | active: true | ||
710 | 152 | updateInterval: 10000 | ||
711 | 153 | |||
712 | 154 | onPositionChanged: { | ||
713 | 155 | |||
714 | 156 | lPosition.update; | ||
715 | 157 | distance.update; | ||
716 | 158 | var coord = src.position.coordinate; | ||
717 | 159 | var targetDirection = 0; | ||
718 | 160 | var movingDirection = -1*nesw.rotation; | ||
719 | 161 | if(root.activeGeocache!=null){ | ||
720 | 162 | var targetlat = root.activeGeocache.waypoints[sWaypoints.selectedIndex].latitude; | ||
721 | 163 | var targetlon = root.activeGeocache.waypoints[sWaypoints.selectedIndex].longitude; | ||
722 | 164 | targetDirection = Utils.calculateDirection(coord.longitude, coord.latitude,targetlon, targetlat); | ||
723 | 165 | distance.text = src.position.latitudeValid ? "<b>" + i18n.tr("Distance:") + "</b> " + Utils.displayDistance(src.position.coordinate.latitude, src.position.coordinate.longitude, | ||
724 | 166 | targetlat, | ||
725 | 167 | targetlon, root.miles) : "<b>" + i18n.tr("Distance:") + "</b> " + i18n.tr("Waiting for fix..."); | ||
726 | 168 | } | ||
727 | 169 | if(Utils.lastCoordLon != coord.longitude || Utils.lastCoordLat != coord.latitude) | ||
728 | 170 | { | ||
729 | 171 | if(src.position.latitudeValid){ | ||
730 | 172 | movingDirection = Utils.calculateDirection(Utils.lastCoordLon,Utils.lastCoordLat,coord.longitude, coord.latitude); | ||
731 | 173 | nesw.rotation = -1*movingDirection; | ||
732 | 174 | Utils.lastCoordLon = coord.longitude; | ||
733 | 175 | Utils.lastCoordLat = coord.latitude; | ||
734 | 176 | } | ||
735 | 177 | } | ||
736 | 178 | else | ||
737 | 179 | { | ||
738 | 180 | nesw.rotation = nesw.rotation; | ||
739 | 181 | } | ||
740 | 182 | |||
741 | 183 | if(root.activeGeocache != null) | ||
742 | 184 | { | ||
743 | 185 | if(src.position.latitudeValid){ | ||
744 | 186 | compass.rotation = targetDirection - movingDirection; | ||
745 | 187 | } | ||
746 | 188 | } | ||
747 | 189 | else | ||
748 | 190 | { | ||
749 | 191 | if(src.position.latitudeValid){ | ||
750 | 192 | compass.rotation = -1*movingDirection; | ||
751 | 193 | } | ||
752 | 194 | } | ||
753 | 195 | } | ||
754 | 196 | } | ||
755 | 197 | } | ||
756 | 198 | } | ||
757 | 199 | |||
758 | 200 | |||
759 | 0 | 201 | ||
760 | === modified file 'app/ui/DetailsTab.qml' | |||
761 | --- app/ui/DetailsTab.qml 2014-12-26 20:50:55 +0000 | |||
762 | +++ app/ui/DetailsTab.qml 2015-04-16 19:24:14 +0000 | |||
763 | @@ -54,7 +54,7 @@ | |||
764 | 54 | Label { | 54 | Label { |
765 | 55 | width: parent.width | 55 | width: parent.width |
766 | 56 | wrapMode: Text.WordWrap | 56 | wrapMode: Text.WordWrap |
768 | 57 | text: "<b>" + i18n.tr("Name:") + " </b>" + root.activeGeocache.name + " (" + root.activeGeocache.id + ")" | 57 | text: root.activeGeocache!=null?"<b>" + i18n.tr("Name:") + " </b>" + root.activeGeocache.name + " (" + root.activeGeocache.id + ")":"" |
769 | 58 | } | 58 | } |
770 | 59 | 59 | ||
771 | 60 | Label { | 60 | Label { |
772 | @@ -113,8 +113,72 @@ | |||
773 | 113 | text: i18n.tr("View cache page") | 113 | text: i18n.tr("View cache page") |
774 | 114 | onClicked: { | 114 | onClicked: { |
775 | 115 | browserTab.url = root.activeGeocache.url; | 115 | browserTab.url = root.activeGeocache.url; |
778 | 116 | tabs.selectedTabIndex = 3; | 116 | tabs.selectedTabIndex = 4; |
779 | 117 | } | 117 | } |
780 | 118 | } | ||
781 | 119 | Label{ | ||
782 | 120 | width: parent.width | ||
783 | 121 | text: "<b>" + i18n.tr("Waypoints") + "</b>" | ||
784 | 122 | } | ||
785 | 123 | |||
786 | 124 | OptionSelector{ | ||
787 | 125 | id: sWaypoints | ||
788 | 126 | width: parent.width | ||
789 | 127 | expanded: false | ||
790 | 128 | model: root.activeGeocache.waypoints | ||
791 | 129 | delegate: selectorDelegate | ||
792 | 130 | } | ||
793 | 131 | |||
794 | 132 | Component { | ||
795 | 133 | id: selectorDelegate | ||
796 | 134 | OptionSelectorDelegate { | ||
797 | 135 | text: model.name | ||
798 | 136 | subText: Utils.displayCoordinates(model.latitude, model.longitude) | ||
799 | 137 | } | ||
800 | 138 | } | ||
801 | 139 | WaypointDialog { | ||
802 | 140 | id: wpDialog | ||
803 | 141 | } | ||
804 | 142 | Row{ | ||
805 | 143 | spacing: units.gu(2) | ||
806 | 144 | width: parent.width | ||
807 | 145 | Button { | ||
808 | 146 | id: addWaypoint | ||
809 | 147 | width: (parent.width-units.gu(4))/3 //parent.width | ||
810 | 148 | height: width | ||
811 | 149 | iconName: "add" | ||
812 | 150 | onClicked: { | ||
813 | 151 | var wpName; | ||
814 | 152 | wpName = "WP"+(root.activeGeocache.waypoints.length); | ||
815 | 153 | root.activeGeocache.modelData.addWaypoint(wpName, | ||
816 | 154 | src.position.coordinate.latitude, | ||
817 | 155 | src.position.coordinate.longitude); | ||
818 | 156 | PopupUtils.open(wpDialog); | ||
819 | 157 | } | ||
820 | 158 | } | ||
821 | 159 | Button { | ||
822 | 160 | id: editWaypoint | ||
823 | 161 | width: addWaypoint.width | ||
824 | 162 | height: width | ||
825 | 163 | iconName: "edit" | ||
826 | 164 | enabled: (sWaypoints.selectedIndex!=0) | ||
827 | 165 | onClicked: { | ||
828 | 166 | root.activeGeocache.currentwaypoint = sWaypoints.selectedIndex; | ||
829 | 167 | PopupUtils.open(wpDialog); | ||
830 | 168 | } | ||
831 | 169 | } | ||
832 | 170 | Button { | ||
833 | 171 | id: eraseWaypoint | ||
834 | 172 | width: addWaypoint.width | ||
835 | 173 | height: width | ||
836 | 174 | iconName: "delete" | ||
837 | 175 | enabled: (sWaypoints.selectedIndex!=0) | ||
838 | 176 | onClicked: { | ||
839 | 177 | root.activeGeocache.modelData.deleteWaypoint(sWaypoints.selectedIndex); | ||
840 | 178 | root.activeGeocache.modelData.updateWaypoints(); | ||
841 | 179 | } | ||
842 | 180 | } | ||
843 | 181 | |||
844 | 118 | } | 182 | } |
845 | 119 | } | 183 | } |
846 | 120 | } | 184 | } |
847 | @@ -132,7 +196,6 @@ | |||
848 | 132 | active: true | 196 | active: true |
849 | 133 | updateInterval: 60000 | 197 | updateInterval: 60000 |
850 | 134 | } | 198 | } |
851 | 135 | |||
852 | 136 | } | 199 | } |
853 | 137 | } | 200 | } |
854 | 138 | 201 | ||
855 | 139 | 202 | ||
856 | === modified file 'app/ui/GeocachesTab.qml' | |||
857 | --- app/ui/GeocachesTab.qml 2014-12-26 20:50:55 +0000 | |||
858 | +++ app/ui/GeocachesTab.qml 2015-04-16 19:24:14 +0000 | |||
859 | @@ -67,8 +67,8 @@ | |||
860 | 67 | MouseArea { | 67 | MouseArea { |
861 | 68 | anchors.fill: parent | 68 | anchors.fill: parent |
862 | 69 | onClicked: { | 69 | onClicked: { |
865 | 70 | root.activeGeocache = model | 70 | root.activeGeocache = model; |
866 | 71 | tabs.selectedTabIndex = 2 | 71 | tabs.selectedTabIndex = 2; |
867 | 72 | } | 72 | } |
868 | 73 | } | 73 | } |
869 | 74 | } | 74 | } |
870 | @@ -90,7 +90,7 @@ | |||
871 | 90 | anchors.margins: units.gu(2) | 90 | anchors.margins: units.gu(2) |
872 | 91 | text: i18n.tr("Download Geocaches") | 91 | text: i18n.tr("Download Geocaches") |
873 | 92 | onClicked: { | 92 | onClicked: { |
875 | 93 | tabs.selectedTabIndex = 3 | 93 | tabs.selectedTabIndex = 4 |
876 | 94 | } | 94 | } |
877 | 95 | } | 95 | } |
878 | 96 | 96 | ||
879 | 97 | 97 | ||
880 | === modified file 'app/ui/MapTab.qml' | |||
881 | --- app/ui/MapTab.qml 2014-12-26 20:50:55 +0000 | |||
882 | +++ app/ui/MapTab.qml 2015-04-16 19:24:14 +0000 | |||
883 | @@ -96,6 +96,8 @@ | |||
884 | 96 | } | 96 | } |
885 | 97 | } | 97 | } |
886 | 98 | 98 | ||
887 | 99 | |||
888 | 100 | |||
889 | 99 | MapItemView { | 101 | MapItemView { |
890 | 100 | id: cacheView | 102 | id: cacheView |
891 | 101 | 103 | ||
892 | @@ -122,6 +124,35 @@ | |||
893 | 122 | } | 124 | } |
894 | 123 | } | 125 | } |
895 | 124 | 126 | ||
896 | 127 | /** | ||
897 | 128 | * @FIXME: Waypoints not shown on map. | ||
898 | 129 | */ | ||
899 | 130 | MapItemView { | ||
900 | 131 | id: waypointView | ||
901 | 132 | |||
902 | 133 | model: root.activeGeocache.waypoints | ||
903 | 134 | Component.onCompleted: { console.log("Waypoints Length: " + root.activeGeocache.waypoints.length) } | ||
904 | 135 | delegate: MapQuickItem { | ||
905 | 136 | coordinate.latitude: model.latitude | ||
906 | 137 | coordinate.longitude: model.longitude | ||
907 | 138 | |||
908 | 139 | Component.onCompleted: { console.log("Loaded: " + name + ", latitude: " + latitude ) } | ||
909 | 140 | |||
910 | 141 | anchorPoint.x: sourceItem.width / 2 | ||
911 | 142 | anchorPoint.y: sourceItem.height / 2 | ||
912 | 143 | |||
913 | 144 | sourceItem: Rectangle { | ||
914 | 145 | width: units.gu(2) | ||
915 | 146 | height: units.gu(2) | ||
916 | 147 | color: "red" | ||
917 | 148 | opacity: 0.5 | ||
918 | 149 | border.color: "black" | ||
919 | 150 | |||
920 | 151 | } | ||
921 | 152 | } | ||
922 | 153 | } | ||
923 | 154 | |||
924 | 155 | |||
925 | 125 | MapQuickItem { | 156 | MapQuickItem { |
926 | 126 | id: activeCacheView | 157 | id: activeCacheView |
927 | 127 | 158 | ||
928 | @@ -169,6 +200,10 @@ | |||
929 | 169 | } | 200 | } |
930 | 170 | } | 201 | } |
931 | 171 | 202 | ||
932 | 203 | |||
933 | 204 | |||
934 | 205 | |||
935 | 206 | |||
936 | 172 | Rectangle { | 207 | Rectangle { |
937 | 173 | anchors { | 208 | anchors { |
938 | 174 | right: parent.right | 209 | right: parent.right |
939 | @@ -211,7 +246,7 @@ | |||
940 | 211 | anchors.rightMargin: units.gu(2) | 246 | anchors.rightMargin: units.gu(2) |
941 | 212 | anchors.verticalCenter: parent.verticalCenter | 247 | anchors.verticalCenter: parent.verticalCenter |
942 | 213 | visible: src.position.latitudeValid | 248 | visible: src.position.latitudeValid |
944 | 214 | text: "<b>" + Utils.displayDistance(src.position.coordinate.latitude, src.position.coordinate.longitude, root.activeGeocache.latitude, root.activeGeocache.longitude, root.miles) + "</b>" | 249 | text: src.position.latitudeValid?"<b>" + Utils.displayDistance(src.position.coordinate.latitude, src.position.coordinate.longitude, root.activeGeocache.latitude, root.activeGeocache.longitude, root.miles) + "</b>":"<b></b>" |
945 | 215 | } | 250 | } |
946 | 216 | 251 | ||
947 | 217 | } | 252 | } |
948 | @@ -221,6 +256,7 @@ | |||
949 | 221 | source: "beep.wav" | 256 | source: "beep.wav" |
950 | 222 | } | 257 | } |
951 | 223 | 258 | ||
952 | 259 | |||
953 | 224 | PositionSource { | 260 | PositionSource { |
954 | 225 | id: src | 261 | id: src |
955 | 226 | active: true | 262 | active: true |
956 | @@ -236,6 +272,8 @@ | |||
957 | 236 | beeped = false | 272 | beeped = false |
958 | 237 | } | 273 | } |
959 | 238 | 274 | ||
960 | 275 | |||
961 | 276 | |||
962 | 239 | map.updateUserPosition(position) | 277 | map.updateUserPosition(position) |
963 | 240 | } | 278 | } |
964 | 241 | } | 279 | } |
965 | 242 | 280 | ||
966 | === added file 'app/ui/NESW.svg' | |||
967 | --- app/ui/NESW.svg 1970-01-01 00:00:00 +0000 | |||
968 | +++ app/ui/NESW.svg 2015-04-16 19:24:14 +0000 | |||
969 | @@ -0,0 +1,166 @@ | |||
970 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
971 | 2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
972 | 3 | |||
973 | 4 | <svg | ||
974 | 5 | xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" | ||
975 | 6 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
976 | 7 | xmlns:cc="http://creativecommons.org/ns#" | ||
977 | 8 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
978 | 9 | xmlns:svg="http://www.w3.org/2000/svg" | ||
979 | 10 | xmlns="http://www.w3.org/2000/svg" | ||
980 | 11 | xmlns:xlink="http://www.w3.org/1999/xlink" | ||
981 | 12 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
982 | 13 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
983 | 14 | id="svg3071" | ||
984 | 15 | version="1.1" | ||
985 | 16 | inkscape:version="0.48.4 r9939" | ||
986 | 17 | width="448" | ||
987 | 18 | height="448" | ||
988 | 19 | sodipodi:docname="NESW.svg"> | ||
989 | 20 | <metadata | ||
990 | 21 | id="metadata3077"> | ||
991 | 22 | <rdf:RDF> | ||
992 | 23 | <cc:Work | ||
993 | 24 | rdf:about=""> | ||
994 | 25 | <dc:format>image/svg+xml</dc:format> | ||
995 | 26 | <dc:type | ||
996 | 27 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
997 | 28 | <dc:title></dc:title> | ||
998 | 29 | </cc:Work> | ||
999 | 30 | </rdf:RDF> | ||
1000 | 31 | </metadata> | ||
1001 | 32 | <defs | ||
1002 | 33 | id="defs3075"> | ||
1003 | 34 | <linearGradient | ||
1004 | 35 | id="linearGradient5602"> | ||
1005 | 36 | <stop | ||
1006 | 37 | id="stop5604" | ||
1007 | 38 | offset="0" | ||
1008 | 39 | style="stop-color:#000000;stop-opacity:1;" /> | ||
1009 | 40 | <stop | ||
1010 | 41 | style="stop-color:#000000;stop-opacity:0.49803922;" | ||
1011 | 42 | offset="0.5" | ||
1012 | 43 | id="stop5606" /> | ||
1013 | 44 | <stop | ||
1014 | 45 | id="stop5608" | ||
1015 | 46 | offset="1" | ||
1016 | 47 | style="stop-color:#000000;stop-opacity:0;" /> | ||
1017 | 48 | </linearGradient> | ||
1018 | 49 | <linearGradient | ||
1019 | 50 | id="linearGradient5592"> | ||
1020 | 51 | <stop | ||
1021 | 52 | style="stop-color:#000000;stop-opacity:0;" | ||
1022 | 53 | offset="0" | ||
1023 | 54 | id="stop5610" /> | ||
1024 | 55 | <stop | ||
1025 | 56 | id="stop5652" | ||
1026 | 57 | offset="0.83999997" | ||
1027 | 58 | style="stop-color:#808080;stop-opacity:1;" /> | ||
1028 | 59 | <stop | ||
1029 | 60 | id="stop5622" | ||
1030 | 61 | offset="0.93000001" | ||
1031 | 62 | style="stop-color:#000000;stop-opacity:1;" /> | ||
1032 | 63 | <stop | ||
1033 | 64 | id="stop5650" | ||
1034 | 65 | offset="1" | ||
1035 | 66 | style="stop-color:#808080;stop-opacity:1;" /> | ||
1036 | 67 | </linearGradient> | ||
1037 | 68 | <linearGradient | ||
1038 | 69 | id="linearGradient5582" | ||
1039 | 70 | osb:paint="solid"> | ||
1040 | 71 | <stop | ||
1041 | 72 | style="stop-color:#000000;stop-opacity:1;" | ||
1042 | 73 | offset="0" | ||
1043 | 74 | id="stop5584" /> | ||
1044 | 75 | </linearGradient> | ||
1045 | 76 | <radialGradient | ||
1046 | 77 | inkscape:collect="always" | ||
1047 | 78 | xlink:href="#linearGradient5592" | ||
1048 | 79 | id="radialGradient5598" | ||
1049 | 80 | cx="225" | ||
1050 | 81 | cy="228.5" | ||
1051 | 82 | fx="225" | ||
1052 | 83 | fy="228.5" | ||
1053 | 84 | r="231.56505" | ||
1054 | 85 | gradientTransform="matrix(1,0,0,1.0237514,0,-5.4272006)" | ||
1055 | 86 | gradientUnits="userSpaceOnUse" | ||
1056 | 87 | spreadMethod="reflect" /> | ||
1057 | 88 | </defs> | ||
1058 | 89 | <sodipodi:namedview | ||
1059 | 90 | pagecolor="#ffffff" | ||
1060 | 91 | bordercolor="#666666" | ||
1061 | 92 | borderopacity="1" | ||
1062 | 93 | objecttolerance="10" | ||
1063 | 94 | gridtolerance="10000" | ||
1064 | 95 | guidetolerance="10" | ||
1065 | 96 | inkscape:pageopacity="0" | ||
1066 | 97 | inkscape:pageshadow="2" | ||
1067 | 98 | inkscape:window-width="1871" | ||
1068 | 99 | inkscape:window-height="1176" | ||
1069 | 100 | id="namedview3073" | ||
1070 | 101 | showgrid="true" | ||
1071 | 102 | inkscape:zoom="0.5" | ||
1072 | 103 | inkscape:cx="-676.22107" | ||
1073 | 104 | inkscape:cy="454.28616" | ||
1074 | 105 | inkscape:window-x="49" | ||
1075 | 106 | inkscape:window-y="24" | ||
1076 | 107 | inkscape:window-maximized="1" | ||
1077 | 108 | inkscape:current-layer="svg3071"> | ||
1078 | 109 | <inkscape:grid | ||
1079 | 110 | type="xygrid" | ||
1080 | 111 | id="grid3882" | ||
1081 | 112 | empspacing="5" | ||
1082 | 113 | visible="true" | ||
1083 | 114 | enabled="true" | ||
1084 | 115 | snapvisiblegridlinesonly="true" /> | ||
1085 | 116 | </sodipodi:namedview> | ||
1086 | 117 | <text | ||
1087 | 118 | xml:space="preserve" | ||
1088 | 119 | style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans" | ||
1089 | 120 | x="213.55196" | ||
1090 | 121 | y="26.200001" | ||
1091 | 122 | id="text5692" | ||
1092 | 123 | sodipodi:linespacing="125%"><tspan | ||
1093 | 124 | sodipodi:role="line" | ||
1094 | 125 | id="tspan5694" | ||
1095 | 126 | x="213.55196" | ||
1096 | 127 | y="26.200001" | ||
1097 | 128 | style="font-size:28px;fill:#ffffff;fill-opacity:1">N</tspan></text> | ||
1098 | 129 | <text | ||
1099 | 130 | xml:space="preserve" | ||
1100 | 131 | style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" | ||
1101 | 132 | x="423.19995" | ||
1102 | 133 | y="233.89999" | ||
1103 | 134 | id="text5696" | ||
1104 | 135 | sodipodi:linespacing="125%"><tspan | ||
1105 | 136 | sodipodi:role="line" | ||
1106 | 137 | id="tspan5698" | ||
1107 | 138 | x="423.19995" | ||
1108 | 139 | y="233.89999" | ||
1109 | 140 | style="font-size:28px;fill:#ffffff;fill-opacity:1">E</tspan></text> | ||
1110 | 141 | <text | ||
1111 | 142 | xml:space="preserve" | ||
1112 | 143 | style="font-size:11.99994087px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" | ||
1113 | 144 | x="215.00136" | ||
1114 | 145 | y="442.5473" | ||
1115 | 146 | id="text5700" | ||
1116 | 147 | sodipodi:linespacing="125%" | ||
1117 | 148 | transform="scale(0.99999511,1.0000049)"><tspan | ||
1118 | 149 | sodipodi:role="line" | ||
1119 | 150 | id="tspan5702" | ||
1120 | 151 | x="215.00136" | ||
1121 | 152 | y="442.5473" | ||
1122 | 153 | style="font-size:27.99986267px;fill:#ffffff;fill-opacity:1">S</tspan></text> | ||
1123 | 154 | <text | ||
1124 | 155 | xml:space="preserve" | ||
1125 | 156 | style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" | ||
1126 | 157 | x="2.0503149" | ||
1127 | 158 | y="234.1501" | ||
1128 | 159 | id="text5704" | ||
1129 | 160 | sodipodi:linespacing="125%"><tspan | ||
1130 | 161 | sodipodi:role="line" | ||
1131 | 162 | id="tspan5706" | ||
1132 | 163 | x="2.0503149" | ||
1133 | 164 | y="234.1501" | ||
1134 | 165 | style="font-size:28px;fill:#ffffff;fill-opacity:1">W</tspan></text> | ||
1135 | 166 | </svg> | ||
1136 | 0 | 167 | ||
1137 | === added file 'app/ui/WaypointDialog.qml' | |||
1138 | --- app/ui/WaypointDialog.qml 1970-01-01 00:00:00 +0000 | |||
1139 | +++ app/ui/WaypointDialog.qml 2015-04-16 19:24:14 +0000 | |||
1140 | @@ -0,0 +1,284 @@ | |||
1141 | 1 | /* | ||
1142 | 2 | * Copyright 2013-2014 Canonical Ltd. | ||
1143 | 3 | * | ||
1144 | 4 | * This file is part of cachemere. | ||
1145 | 5 | * | ||
1146 | 6 | * webbrowser-app is free software; you can redistribute it and/or modify | ||
1147 | 7 | * it under the terms of the GNU General Public License as published by | ||
1148 | 8 | * the Free Software Foundation; version 3. | ||
1149 | 9 | * | ||
1150 | 10 | * webbrowser-app is distributed in the hope that it will be useful, | ||
1151 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1152 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1153 | 13 | * GNU General Public License for more details. | ||
1154 | 14 | * | ||
1155 | 15 | * You should have received a copy of the GNU General Public License | ||
1156 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1157 | 17 | */ | ||
1158 | 18 | |||
1159 | 19 | import QtQuick 2.0 | ||
1160 | 20 | import Ubuntu.Components 1.1 | ||
1161 | 21 | import Ubuntu.Components.Popups 1.0 | ||
1162 | 22 | import Ubuntu.Components.Pickers 1.0 | ||
1163 | 23 | |||
1164 | 24 | import Ubuntu.Components.ListItems 1.0 | ||
1165 | 25 | import "utils.js" as Utils | ||
1166 | 26 | Component{ | ||
1167 | 27 | id: comp | ||
1168 | 28 | Dialog { | ||
1169 | 29 | id: dialogue | ||
1170 | 30 | title: i18n.tr("Edit Waypoint") | ||
1171 | 31 | //text: "" | ||
1172 | 32 | modal: true | ||
1173 | 33 | TextEdit{ | ||
1174 | 34 | width: parent.width | ||
1175 | 35 | id: wpName | ||
1176 | 36 | } | ||
1177 | 37 | |||
1178 | 38 | Row{ | ||
1179 | 39 | width: parent.width | ||
1180 | 40 | Picker { | ||
1181 | 41 | id: latNSPicker | ||
1182 | 42 | |||
1183 | 43 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1184 | 44 | width: units.gu(4) | ||
1185 | 45 | height: units.gu(12) | ||
1186 | 46 | circular: true | ||
1187 | 47 | delegate: PickerDelegate { | ||
1188 | 48 | Label { | ||
1189 | 49 | text: modelData | ||
1190 | 50 | } | ||
1191 | 51 | } | ||
1192 | 52 | Component.onCompleted: { | ||
1193 | 53 | var stack = []; | ||
1194 | 54 | stack.push(" N"); | ||
1195 | 55 | stack.push(" S"); | ||
1196 | 56 | model = stack; | ||
1197 | 57 | selectedIndex = 0; | ||
1198 | 58 | } | ||
1199 | 59 | } | ||
1200 | 60 | Picker { | ||
1201 | 61 | id: latDegPicker | ||
1202 | 62 | |||
1203 | 63 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1204 | 64 | width: units.gu(6) | ||
1205 | 65 | height: units.gu(12) | ||
1206 | 66 | circular: true | ||
1207 | 67 | delegate: PickerDelegate { | ||
1208 | 68 | Label { | ||
1209 | 69 | text: modelData | ||
1210 | 70 | } | ||
1211 | 71 | } | ||
1212 | 72 | Component.onCompleted: { | ||
1213 | 73 | var stack = []; | ||
1214 | 74 | for (var i = 0; i < 180; i++) { | ||
1215 | 75 | stack.push(" "+i); | ||
1216 | 76 | } | ||
1217 | 77 | model = stack; | ||
1218 | 78 | selectedIndex = 0; | ||
1219 | 79 | } | ||
1220 | 80 | } | ||
1221 | 81 | Label{ | ||
1222 | 82 | text: "°" | ||
1223 | 83 | font.pixelSize: units.gu(12) | ||
1224 | 84 | } | ||
1225 | 85 | |||
1226 | 86 | Picker { | ||
1227 | 87 | id: latMinPicker | ||
1228 | 88 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1229 | 89 | width: units.gu(6) | ||
1230 | 90 | height: units.gu(12) | ||
1231 | 91 | circular: true | ||
1232 | 92 | delegate: PickerDelegate { | ||
1233 | 93 | Label { | ||
1234 | 94 | text: modelData | ||
1235 | 95 | } | ||
1236 | 96 | } | ||
1237 | 97 | Component.onCompleted: { | ||
1238 | 98 | var stack = []; | ||
1239 | 99 | for (var i = 0; i < 60; i++) { | ||
1240 | 100 | stack.push(" "+i); | ||
1241 | 101 | } | ||
1242 | 102 | model = stack; | ||
1243 | 103 | selectedIndex = 0; | ||
1244 | 104 | } | ||
1245 | 105 | } | ||
1246 | 106 | Label{ | ||
1247 | 107 | text: "." | ||
1248 | 108 | font.pixelSize: units.gu(12) | ||
1249 | 109 | } | ||
1250 | 110 | |||
1251 | 111 | Picker { | ||
1252 | 112 | id: latFracPicker | ||
1253 | 113 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1254 | 114 | width: units.gu(6) | ||
1255 | 115 | height: units.gu(12) | ||
1256 | 116 | circular: true | ||
1257 | 117 | delegate: PickerDelegate { | ||
1258 | 118 | Label { | ||
1259 | 119 | text: modelData | ||
1260 | 120 | } | ||
1261 | 121 | } | ||
1262 | 122 | Component.onCompleted: { | ||
1263 | 123 | var stack = []; | ||
1264 | 124 | for (var i = 0; i < 1000; i++) { | ||
1265 | 125 | stack.push(" "+i); | ||
1266 | 126 | } | ||
1267 | 127 | model = stack; | ||
1268 | 128 | selectedIndex = 0; | ||
1269 | 129 | } | ||
1270 | 130 | } | ||
1271 | 131 | } | ||
1272 | 132 | Row{ | ||
1273 | 133 | width: parent.width | ||
1274 | 134 | Picker { | ||
1275 | 135 | id: lonEWPicker | ||
1276 | 136 | |||
1277 | 137 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1278 | 138 | width: units.gu(4) | ||
1279 | 139 | height: units.gu(12) | ||
1280 | 140 | circular: true | ||
1281 | 141 | delegate: PickerDelegate { | ||
1282 | 142 | Label { | ||
1283 | 143 | text: modelData | ||
1284 | 144 | } | ||
1285 | 145 | } | ||
1286 | 146 | Component.onCompleted: { | ||
1287 | 147 | var stack = []; | ||
1288 | 148 | stack.push(" E"); | ||
1289 | 149 | stack.push(" W"); | ||
1290 | 150 | model = stack; | ||
1291 | 151 | selectedIndex = 0; | ||
1292 | 152 | } | ||
1293 | 153 | } | ||
1294 | 154 | Picker { | ||
1295 | 155 | id: lonDegPicker | ||
1296 | 156 | |||
1297 | 157 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1298 | 158 | width: units.gu(6) | ||
1299 | 159 | height: units.gu(12) | ||
1300 | 160 | circular: true | ||
1301 | 161 | delegate: PickerDelegate { | ||
1302 | 162 | Label { | ||
1303 | 163 | text: modelData | ||
1304 | 164 | } | ||
1305 | 165 | } | ||
1306 | 166 | Component.onCompleted: { | ||
1307 | 167 | var stack = []; | ||
1308 | 168 | for (var i = 0; i < 90; i++) { | ||
1309 | 169 | stack.push(" "+i); | ||
1310 | 170 | } | ||
1311 | 171 | model = stack; | ||
1312 | 172 | selectedIndex = 0; | ||
1313 | 173 | } | ||
1314 | 174 | } | ||
1315 | 175 | Label{ | ||
1316 | 176 | text: "°" | ||
1317 | 177 | font.pixelSize: units.gu(12) | ||
1318 | 178 | } | ||
1319 | 179 | |||
1320 | 180 | Picker { | ||
1321 | 181 | id: lonMinPicker | ||
1322 | 182 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1323 | 183 | width: units.gu(6) | ||
1324 | 184 | height: units.gu(12) | ||
1325 | 185 | circular: true | ||
1326 | 186 | delegate: PickerDelegate { | ||
1327 | 187 | Label { | ||
1328 | 188 | text: modelData | ||
1329 | 189 | } | ||
1330 | 190 | } | ||
1331 | 191 | Component.onCompleted: { | ||
1332 | 192 | var stack = []; | ||
1333 | 193 | for (var i = 0; i < 60; i++) { | ||
1334 | 194 | stack.push(" "+i); | ||
1335 | 195 | } | ||
1336 | 196 | model = stack; | ||
1337 | 197 | selectedIndex = 0; | ||
1338 | 198 | } | ||
1339 | 199 | } | ||
1340 | 200 | Label{ | ||
1341 | 201 | text: "." | ||
1342 | 202 | font.pixelSize: units.gu(12) | ||
1343 | 203 | } | ||
1344 | 204 | |||
1345 | 205 | Picker { | ||
1346 | 206 | id: lonFracPicker | ||
1347 | 207 | selectedIndex: 0 // this will be set to 0 at the model completion | ||
1348 | 208 | width: units.gu(6) | ||
1349 | 209 | height: units.gu(12) | ||
1350 | 210 | circular: true | ||
1351 | 211 | delegate: PickerDelegate { | ||
1352 | 212 | Label { | ||
1353 | 213 | text: modelData | ||
1354 | 214 | } | ||
1355 | 215 | } | ||
1356 | 216 | Component.onCompleted: { | ||
1357 | 217 | var stack = []; | ||
1358 | 218 | for (var i = 0; i < 1000; i++) { | ||
1359 | 219 | stack.push(" "+i); | ||
1360 | 220 | } | ||
1361 | 221 | model = stack; | ||
1362 | 222 | selectedIndex = 0; | ||
1363 | 223 | } | ||
1364 | 224 | } | ||
1365 | 225 | } | ||
1366 | 226 | Button { | ||
1367 | 227 | text: i18n.tr("Close") | ||
1368 | 228 | onClicked: { | ||
1369 | 229 | |||
1370 | 230 | var activeLat = (latNSPicker.selectedIndex*2-1)*-1 * | ||
1371 | 231 | (latDegPicker.selectedIndex+ | ||
1372 | 232 | latMinPicker.selectedIndex/60+ | ||
1373 | 233 | latFracPicker.selectedIndex/60000); | ||
1374 | 234 | var activeLon = (lonEWPicker.selectedIndex*2-1)*-1 * | ||
1375 | 235 | (lonDegPicker.selectedIndex+ | ||
1376 | 236 | lonMinPicker.selectedIndex/60+ | ||
1377 | 237 | lonFracPicker.selectedIndex/60000); | ||
1378 | 238 | root.activeGeocache.modelData.setWaypoint(root.activeGeocache.currentwaypoint, | ||
1379 | 239 | wpName.text, activeLat, activeLon); | ||
1380 | 240 | PopupUtils.close(dialogue); | ||
1381 | 241 | root.activeGeocache.modelData.updateWaypoints(); | ||
1382 | 242 | |||
1383 | 243 | } | ||
1384 | 244 | } | ||
1385 | 245 | onVisibleChanged: { | ||
1386 | 246 | if(visible) | ||
1387 | 247 | { | ||
1388 | 248 | //dialer.value = Math.floor(root.activeGeocache.latitude); | ||
1389 | 249 | var curLat; | ||
1390 | 250 | var curLon; | ||
1391 | 251 | var i = root.activeGeocache.currentwaypoint; | ||
1392 | 252 | var wp = root.activeGeocache.modelData.getWaypoint(i); | ||
1393 | 253 | |||
1394 | 254 | curLat = wp.latitude; | ||
1395 | 255 | curLon = wp.longitude; | ||
1396 | 256 | |||
1397 | 257 | wpName.text = wp.name; | ||
1398 | 258 | if(curLat<0) | ||
1399 | 259 | { | ||
1400 | 260 | latNSPicker.selectedIndex = 1; | ||
1401 | 261 | curLat *= -1; | ||
1402 | 262 | } | ||
1403 | 263 | if(curLon<0) | ||
1404 | 264 | { | ||
1405 | 265 | lonEWPicker.selectedIndex = 1; | ||
1406 | 266 | curLon *= -1; | ||
1407 | 267 | } | ||
1408 | 268 | latDegPicker.selectedIndex = Math.floor(curLat); | ||
1409 | 269 | curLat = (curLat-Math.floor(curLat))*60; | ||
1410 | 270 | latMinPicker.selectedIndex = Math.floor(curLat); | ||
1411 | 271 | curLat = (curLat-Math.floor(curLat))*1000; | ||
1412 | 272 | latFracPicker.selectedIndex = Math.floor(curLat); | ||
1413 | 273 | |||
1414 | 274 | lonDegPicker.selectedIndex = Math.floor(curLon); | ||
1415 | 275 | curLon = (curLon-Math.floor(curLon))*60; | ||
1416 | 276 | lonMinPicker.selectedIndex = Math.floor(curLon); | ||
1417 | 277 | curLon = (curLon-Math.floor(curLon))*1000; | ||
1418 | 278 | lonFracPicker.selectedIndex = Math.floor(curLon); | ||
1419 | 279 | |||
1420 | 280 | |||
1421 | 281 | } | ||
1422 | 282 | } | ||
1423 | 283 | } | ||
1424 | 284 | } | ||
1425 | 0 | 285 | ||
1426 | === added file 'app/ui/compass.svg' | |||
1427 | --- app/ui/compass.svg 1970-01-01 00:00:00 +0000 | |||
1428 | +++ app/ui/compass.svg 2015-04-16 19:24:14 +0000 | |||
1429 | @@ -0,0 +1,255 @@ | |||
1430 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
1431 | 2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
1432 | 3 | |||
1433 | 4 | <svg | ||
1434 | 5 | xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" | ||
1435 | 6 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
1436 | 7 | xmlns:cc="http://creativecommons.org/ns#" | ||
1437 | 8 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
1438 | 9 | xmlns:svg="http://www.w3.org/2000/svg" | ||
1439 | 10 | xmlns="http://www.w3.org/2000/svg" | ||
1440 | 11 | xmlns:xlink="http://www.w3.org/1999/xlink" | ||
1441 | 12 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
1442 | 13 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
1443 | 14 | id="svg3071" | ||
1444 | 15 | version="1.1" | ||
1445 | 16 | inkscape:version="0.48.4 r9939" | ||
1446 | 17 | width="448" | ||
1447 | 18 | height="448" | ||
1448 | 19 | sodipodi:docname="compass.png"> | ||
1449 | 20 | <metadata | ||
1450 | 21 | id="metadata3077"> | ||
1451 | 22 | <rdf:RDF> | ||
1452 | 23 | <cc:Work | ||
1453 | 24 | rdf:about=""> | ||
1454 | 25 | <dc:format>image/svg+xml</dc:format> | ||
1455 | 26 | <dc:type | ||
1456 | 27 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
1457 | 28 | <dc:title></dc:title> | ||
1458 | 29 | </cc:Work> | ||
1459 | 30 | </rdf:RDF> | ||
1460 | 31 | </metadata> | ||
1461 | 32 | <defs | ||
1462 | 33 | id="defs3075"> | ||
1463 | 34 | <linearGradient | ||
1464 | 35 | id="linearGradient5602"> | ||
1465 | 36 | <stop | ||
1466 | 37 | id="stop5604" | ||
1467 | 38 | offset="0" | ||
1468 | 39 | style="stop-color:#000000;stop-opacity:1;" /> | ||
1469 | 40 | <stop | ||
1470 | 41 | style="stop-color:#000000;stop-opacity:0.49803922;" | ||
1471 | 42 | offset="0.5" | ||
1472 | 43 | id="stop5606" /> | ||
1473 | 44 | <stop | ||
1474 | 45 | id="stop5608" | ||
1475 | 46 | offset="1" | ||
1476 | 47 | style="stop-color:#000000;stop-opacity:0;" /> | ||
1477 | 48 | </linearGradient> | ||
1478 | 49 | <linearGradient | ||
1479 | 50 | id="linearGradient5592"> | ||
1480 | 51 | <stop | ||
1481 | 52 | style="stop-color:#000000;stop-opacity:0;" | ||
1482 | 53 | offset="0" | ||
1483 | 54 | id="stop5610" /> | ||
1484 | 55 | <stop | ||
1485 | 56 | id="stop5652" | ||
1486 | 57 | offset="0.83999997" | ||
1487 | 58 | style="stop-color:#808080;stop-opacity:1;" /> | ||
1488 | 59 | <stop | ||
1489 | 60 | id="stop5622" | ||
1490 | 61 | offset="0.93000001" | ||
1491 | 62 | style="stop-color:#000000;stop-opacity:1;" /> | ||
1492 | 63 | <stop | ||
1493 | 64 | id="stop5650" | ||
1494 | 65 | offset="1" | ||
1495 | 66 | style="stop-color:#808080;stop-opacity:1;" /> | ||
1496 | 67 | </linearGradient> | ||
1497 | 68 | <linearGradient | ||
1498 | 69 | id="linearGradient5582" | ||
1499 | 70 | osb:paint="solid"> | ||
1500 | 71 | <stop | ||
1501 | 72 | style="stop-color:#000000;stop-opacity:1;" | ||
1502 | 73 | offset="0" | ||
1503 | 74 | id="stop5584" /> | ||
1504 | 75 | </linearGradient> | ||
1505 | 76 | <radialGradient | ||
1506 | 77 | inkscape:collect="always" | ||
1507 | 78 | xlink:href="#linearGradient5592" | ||
1508 | 79 | id="radialGradient5598" | ||
1509 | 80 | cx="225" | ||
1510 | 81 | cy="228.5" | ||
1511 | 82 | fx="225" | ||
1512 | 83 | fy="228.5" | ||
1513 | 84 | r="231.56505" | ||
1514 | 85 | gradientTransform="matrix(1,0,0,1.0237514,0,-5.4272006)" | ||
1515 | 86 | gradientUnits="userSpaceOnUse" | ||
1516 | 87 | spreadMethod="reflect" /> | ||
1517 | 88 | </defs> | ||
1518 | 89 | <sodipodi:namedview | ||
1519 | 90 | pagecolor="#ffffff" | ||
1520 | 91 | bordercolor="#666666" | ||
1521 | 92 | borderopacity="1" | ||
1522 | 93 | objecttolerance="10" | ||
1523 | 94 | gridtolerance="10000" | ||
1524 | 95 | guidetolerance="10" | ||
1525 | 96 | inkscape:pageopacity="0" | ||
1526 | 97 | inkscape:pageshadow="2" | ||
1527 | 98 | inkscape:window-width="1871" | ||
1528 | 99 | inkscape:window-height="1176" | ||
1529 | 100 | id="namedview3073" | ||
1530 | 101 | showgrid="true" | ||
1531 | 102 | inkscape:zoom="2" | ||
1532 | 103 | inkscape:cx="237.40462" | ||
1533 | 104 | inkscape:cy="258.11086" | ||
1534 | 105 | inkscape:window-x="49" | ||
1535 | 106 | inkscape:window-y="24" | ||
1536 | 107 | inkscape:window-maximized="1" | ||
1537 | 108 | inkscape:current-layer="svg3071"> | ||
1538 | 109 | <inkscape:grid | ||
1539 | 110 | type="xygrid" | ||
1540 | 111 | id="grid3882" | ||
1541 | 112 | empspacing="5" | ||
1542 | 113 | visible="true" | ||
1543 | 114 | enabled="true" | ||
1544 | 115 | snapvisiblegridlinesonly="true" /> | ||
1545 | 116 | </sodipodi:namedview> | ||
1546 | 117 | <g | ||
1547 | 118 | id="g4048" | ||
1548 | 119 | transform="translate(0,-1)"> | ||
1549 | 120 | <g | ||
1550 | 121 | id="g4044"> | ||
1551 | 122 | <path | ||
1552 | 123 | style="fill:#ff0000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1553 | 124 | d="m 224,33 46,146 -46,46 z" | ||
1554 | 125 | id="path3083" | ||
1555 | 126 | inkscape:connector-curvature="0" | ||
1556 | 127 | sodipodi:nodetypes="cccc" /> | ||
1557 | 128 | <path | ||
1558 | 129 | style="fill:#de8787;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1559 | 130 | d="m 224,33 -46,146 46,46 z" | ||
1560 | 131 | id="path3083-0" | ||
1561 | 132 | inkscape:connector-curvature="0" | ||
1562 | 133 | sodipodi:nodetypes="cccc" /> | ||
1563 | 134 | </g> | ||
1564 | 135 | <g | ||
1565 | 136 | id="g4040"> | ||
1566 | 137 | <path | ||
1567 | 138 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1568 | 139 | d="M 32.000007,225 178,179 l 46,46 z" | ||
1569 | 140 | id="path3083-4-6-5" | ||
1570 | 141 | inkscape:connector-curvature="0" | ||
1571 | 142 | sodipodi:nodetypes="cccc" /> | ||
1572 | 143 | <path | ||
1573 | 144 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1574 | 145 | d="m 32,225 146,46 46,-46 z" | ||
1575 | 146 | id="path3083-4-6-5-7" | ||
1576 | 147 | inkscape:connector-curvature="0" | ||
1577 | 148 | sodipodi:nodetypes="cccc" /> | ||
1578 | 149 | </g> | ||
1579 | 150 | <g | ||
1580 | 151 | id="g4036"> | ||
1581 | 152 | <path | ||
1582 | 153 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1583 | 154 | d="M 224,417 178,271 224,225 z" | ||
1584 | 155 | id="path3083-4-6" | ||
1585 | 156 | inkscape:connector-curvature="0" | ||
1586 | 157 | sodipodi:nodetypes="cccc" /> | ||
1587 | 158 | <path | ||
1588 | 159 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1589 | 160 | d="M 224,417 270,271 224,225 z" | ||
1590 | 161 | id="path3083-4-6-5-7-7" | ||
1591 | 162 | inkscape:connector-curvature="0" | ||
1592 | 163 | sodipodi:nodetypes="cccc" /> | ||
1593 | 164 | </g> | ||
1594 | 165 | <g | ||
1595 | 166 | id="g4032"> | ||
1596 | 167 | <path | ||
1597 | 168 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1598 | 169 | d="M 416,225 270,271 224,225 z" | ||
1599 | 170 | id="path3083-4" | ||
1600 | 171 | inkscape:connector-curvature="0" | ||
1601 | 172 | sodipodi:nodetypes="cccc" /> | ||
1602 | 173 | <path | ||
1603 | 174 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1604 | 175 | d="M 416,225 270,179 224,225 z" | ||
1605 | 176 | id="path3083-4-6-5-7-7-9" | ||
1606 | 177 | inkscape:connector-curvature="0" | ||
1607 | 178 | sodipodi:nodetypes="cccc" /> | ||
1608 | 179 | </g> | ||
1609 | 180 | </g> | ||
1610 | 181 | <g | ||
1611 | 182 | id="g4028" | ||
1612 | 183 | transform="translate(0,-1)"> | ||
1613 | 184 | <path | ||
1614 | 185 | sodipodi:nodetypes="cccc" | ||
1615 | 186 | inkscape:connector-curvature="0" | ||
1616 | 187 | id="path3083-4-6-5-7-7-9-2" | ||
1617 | 188 | d="m 344,105 -61,39 5,17 z" | ||
1618 | 189 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1619 | 190 | <path | ||
1620 | 191 | sodipodi:nodetypes="cccc" | ||
1621 | 192 | inkscape:connector-curvature="0" | ||
1622 | 193 | id="path3083-4-4" | ||
1623 | 194 | d="m 344,105 -39,61 -17,-5 z" | ||
1624 | 195 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1625 | 196 | </g> | ||
1626 | 197 | <g | ||
1627 | 198 | id="g4028-9" | ||
1628 | 199 | transform="matrix(0,1,-1,0,449,0)"> | ||
1629 | 200 | <path | ||
1630 | 201 | sodipodi:nodetypes="cccc" | ||
1631 | 202 | inkscape:connector-curvature="0" | ||
1632 | 203 | id="path3083-4-6-5-7-7-9-2-6" | ||
1633 | 204 | d="m 344,105 -61,39 5,17 z" | ||
1634 | 205 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1635 | 206 | <path | ||
1636 | 207 | sodipodi:nodetypes="cccc" | ||
1637 | 208 | inkscape:connector-curvature="0" | ||
1638 | 209 | id="path3083-4-4-9" | ||
1639 | 210 | d="m 344,105 -39,61 -17,-5 z" | ||
1640 | 211 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1641 | 212 | </g> | ||
1642 | 213 | <g | ||
1643 | 214 | id="g4028-9-7" | ||
1644 | 215 | transform="matrix(-1,0,0,-1,448,449)"> | ||
1645 | 216 | <path | ||
1646 | 217 | sodipodi:nodetypes="cccc" | ||
1647 | 218 | inkscape:connector-curvature="0" | ||
1648 | 219 | id="path3083-4-6-5-7-7-9-2-6-6" | ||
1649 | 220 | d="m 344,105 -61,39 5,17 z" | ||
1650 | 221 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1651 | 222 | <path | ||
1652 | 223 | sodipodi:nodetypes="cccc" | ||
1653 | 224 | inkscape:connector-curvature="0" | ||
1654 | 225 | id="path3083-4-4-9-1" | ||
1655 | 226 | d="m 344,105 -39,61 -17,-5 z" | ||
1656 | 227 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1657 | 228 | </g> | ||
1658 | 229 | <g | ||
1659 | 230 | id="g4028-9-7-8" | ||
1660 | 231 | transform="matrix(0,-1,1,0,-1,448)"> | ||
1661 | 232 | <path | ||
1662 | 233 | sodipodi:nodetypes="cccc" | ||
1663 | 234 | inkscape:connector-curvature="0" | ||
1664 | 235 | id="path3083-4-6-5-7-7-9-2-6-6-5" | ||
1665 | 236 | d="m 344,105 -61,39 5,17 z" | ||
1666 | 237 | style="fill:#4d4d4d;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1667 | 238 | <path | ||
1668 | 239 | sodipodi:nodetypes="cccc" | ||
1669 | 240 | inkscape:connector-curvature="0" | ||
1670 | 241 | id="path3083-4-4-9-1-3" | ||
1671 | 242 | d="m 344,105 -39,61 -17,-5 z" | ||
1672 | 243 | style="fill:#000000;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> | ||
1673 | 244 | </g> | ||
1674 | 245 | <path | ||
1675 | 246 | sodipodi:type="arc" | ||
1676 | 247 | style="fill:none;stroke:url(#radialGradient5598);stroke-width:33.13010962999999975;stroke-linecap:butt;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" | ||
1677 | 248 | id="path4134" | ||
1678 | 249 | sodipodi:cx="225" | ||
1679 | 250 | sodipodi:cy="228.5" | ||
1680 | 251 | sodipodi:rx="215" | ||
1681 | 252 | sodipodi:ry="220.5" | ||
1682 | 253 | d="m 440,228.5 a 215,220.5 0 1 1 -430,0 215,220.5 0 1 1 430,0 z" | ||
1683 | 254 | transform="matrix(0.96820006,0,0,0.94404995,6.1549856,8.2845898)" /> | ||
1684 | 255 | </svg> | ||
1685 | 0 | 256 | ||
1686 | === modified file 'app/ui/utils.js' | |||
1687 | --- app/ui/utils.js 2014-12-26 20:50:55 +0000 | |||
1688 | +++ app/ui/utils.js 2015-04-16 19:24:14 +0000 | |||
1689 | @@ -38,3 +38,17 @@ | |||
1690 | 38 | lonStr += zeroFill(Math.floor(lon), 3) + "° " + ((lon % 1) * 60).toFixed(3) + "'"; | 38 | lonStr += zeroFill(Math.floor(lon), 3) + "° " + ((lon % 1) * 60).toFixed(3) + "'"; |
1691 | 39 | return latStr + " " + lonStr; | 39 | return latStr + " " + lonStr; |
1692 | 40 | } | 40 | } |
1693 | 41 | |||
1694 | 42 | |||
1695 | 43 | function calculateDirection(lon1, lat1, lon2, lat2) | ||
1696 | 44 | { | ||
1697 | 45 | |||
1698 | 46 | var difLon = (lon2-lon1) * Math.PI / 180; | ||
1699 | 47 | var difLat = (lat2-lat1) * Math.PI / 180; | ||
1700 | 48 | return Math.atan2(difLon, difLat) * 180/Math.PI; | ||
1701 | 49 | } | ||
1702 | 50 | |||
1703 | 51 | |||
1704 | 52 | var lastCoordLon=0; | ||
1705 | 53 | var lastCoordLat=0; | ||
1706 | 54 | |||
1707 | 41 | 55 | ||
1708 | === modified file 'backend/modules/Cachemere/backend.cpp' | |||
1709 | --- backend/modules/Cachemere/backend.cpp 2014-12-26 20:50:55 +0000 | |||
1710 | +++ backend/modules/Cachemere/backend.cpp 2015-04-16 19:24:14 +0000 | |||
1711 | @@ -30,6 +30,7 @@ | |||
1712 | 30 | 30 | ||
1713 | 31 | qmlRegisterType<Geocache>(uri, 1, 0, "Geocache"); | 31 | qmlRegisterType<Geocache>(uri, 1, 0, "Geocache"); |
1714 | 32 | qmlRegisterType<CacheModel>(uri, 1, 0, "CacheModel"); | 32 | qmlRegisterType<CacheModel>(uri, 1, 0, "CacheModel"); |
1715 | 33 | qmlRegisterType<Waypoint>(uri, 1, 0, "Waypoint"); | ||
1716 | 33 | } | 34 | } |
1717 | 34 | 35 | ||
1718 | 35 | void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | 36 | void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri) |
1719 | 36 | 37 | ||
1720 | === modified file 'backend/modules/Cachemere/geocache.cpp' | |||
1721 | --- backend/modules/Cachemere/geocache.cpp 2014-12-26 20:50:55 +0000 | |||
1722 | +++ backend/modules/Cachemere/geocache.cpp 2015-04-16 19:24:14 +0000 | |||
1723 | @@ -15,10 +15,11 @@ | |||
1724 | 15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
1725 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
1726 | 17 | */ | 17 | */ |
1728 | 18 | 18 | #include <QDir> | |
1729 | 19 | #include <QFile> | 19 | #include <QFile> |
1730 | 20 | #include <QXmlStreamReader> | ||
1731 | 21 | #include <QStandardPaths> | ||
1732 | 20 | #include <QDebug> | 22 | #include <QDebug> |
1733 | 21 | #include <QXmlStreamReader> | ||
1734 | 22 | 23 | ||
1735 | 23 | #include "geocache.h" | 24 | #include "geocache.h" |
1736 | 24 | 25 | ||
1737 | @@ -99,9 +100,133 @@ | |||
1738 | 99 | } | 100 | } |
1739 | 100 | } | 101 | } |
1740 | 101 | } | 102 | } |
1741 | 103 | addWaypoint("Start", latitude(), longitude()); | ||
1742 | 104 | |||
1743 | 105 | QDir waypointsDir(dataDir() + QDir::separator() + "waypoints"); | ||
1744 | 106 | if(!waypointsDir.exists()) { | ||
1745 | 107 | waypointsDir.mkpath(waypointsDir.absolutePath()); | ||
1746 | 108 | } | ||
1747 | 109 | QFile *wpFile = new QFile(waypointsDir.absolutePath()+QDir::separator()+m_name+".xml"); | ||
1748 | 110 | if (wpFile->open(QIODevice::ReadWrite | QIODevice::Text)) { | ||
1749 | 111 | QXmlStreamReader wpxml(wpFile); | ||
1750 | 112 | while (!wpxml.atEnd() && !wpxml.hasError()) { | ||
1751 | 113 | QXmlStreamReader::TokenType token = wpxml.readNext(); | ||
1752 | 114 | if (token == QXmlStreamReader::StartDocument) { | ||
1753 | 115 | continue; | ||
1754 | 116 | } | ||
1755 | 117 | if (token == QXmlStreamReader::StartElement) { | ||
1756 | 118 | if (wpxml.name() == "waypoint") | ||
1757 | 119 | { | ||
1758 | 120 | QString wpName; | ||
1759 | 121 | double wpLat; | ||
1760 | 122 | double wpLon; | ||
1761 | 123 | if (wpxml.attributes().hasAttribute("latitude")) { | ||
1762 | 124 | wpLat = (wpxml.attributes().value("latitude").toDouble()); | ||
1763 | 125 | } | ||
1764 | 126 | if (wpxml.attributes().hasAttribute("longitude")) { | ||
1765 | 127 | wpLon = (wpxml.attributes().value("longitude").toDouble()); | ||
1766 | 128 | } | ||
1767 | 129 | if (wpxml.attributes().hasAttribute("name")) { | ||
1768 | 130 | wpName = (wpxml.attributes().value("name").toString()); | ||
1769 | 131 | } | ||
1770 | 132 | addWaypoint(wpName, wpLat, wpLon); | ||
1771 | 133 | |||
1772 | 134 | } | ||
1773 | 135 | } | ||
1774 | 136 | } | ||
1775 | 137 | } | ||
1776 | 138 | } | ||
1777 | 139 | |||
1778 | 140 | QQmlListProperty<Waypoint> Geocache::waypoints() | ||
1779 | 141 | { | ||
1780 | 142 | return QQmlListProperty<Waypoint>(this, m_waypoints); | ||
1781 | 143 | } | ||
1782 | 144 | |||
1783 | 145 | void Geocache::addWaypoint(QString name, double latitude, double longitude){ | ||
1784 | 146 | Waypoint *wp = new Waypoint;//(name,latitude,longitude); | ||
1785 | 147 | wp->setName(name); | ||
1786 | 148 | wp->setLatitude(latitude); | ||
1787 | 149 | wp->setLongitude(longitude); | ||
1788 | 150 | |||
1789 | 151 | m_waypoints.append(wp); | ||
1790 | 152 | m_currentwaypoint = m_waypoints.count()-1; | ||
1791 | 153 | //Q_EMIT currentwaypointChanged(); | ||
1792 | 154 | //Q_EMIT waypointsChanged(); | ||
1793 | 155 | } | ||
1794 | 156 | |||
1795 | 157 | void Geocache::setWaypoint(int i, QString name, double latitude, double longitude){ | ||
1796 | 158 | if(i+1>m_waypoints.count()) | ||
1797 | 159 | { | ||
1798 | 160 | return; | ||
1799 | 161 | } | ||
1800 | 162 | Waypoint *wp = new Waypoint;//(name,latitude,longitude); | ||
1801 | 163 | wp->setName(name); | ||
1802 | 164 | wp->setLatitude(latitude); | ||
1803 | 165 | wp->setLongitude(longitude); | ||
1804 | 166 | m_waypoints.replace(i, wp); | ||
1805 | 167 | //Q_EMIT waypointsChanged(); | ||
1806 | 102 | } | 168 | } |
1807 | 103 | 169 | ||
1808 | 104 | Geocache::~Geocache() { | 170 | Geocache::~Geocache() { |
1809 | 105 | 171 | ||
1811 | 106 | } | 172 | |
1812 | 173 | |||
1813 | 174 | |||
1814 | 175 | } | ||
1815 | 176 | |||
1816 | 177 | void Geocache::updateWaypoints(void) | ||
1817 | 178 | { | ||
1818 | 179 | |||
1819 | 180 | QDir waypointsDir(dataDir() + QDir::separator() + "waypoints"); | ||
1820 | 181 | if(!waypointsDir.exists()) { | ||
1821 | 182 | waypointsDir.mkpath(waypointsDir.absolutePath()); | ||
1822 | 183 | } | ||
1823 | 184 | QFile *wpFile = new QFile(waypointsDir.absolutePath()+QDir::separator()+m_name+".xml"); | ||
1824 | 185 | |||
1825 | 186 | QXmlStreamWriter *wpxml = new QXmlStreamWriter; | ||
1826 | 187 | if (wpFile->open(QIODevice::WriteOnly | QIODevice::Text)) | ||
1827 | 188 | { | ||
1828 | 189 | wpxml->setDevice(wpFile); | ||
1829 | 190 | qDebug() << "File Open"; | ||
1830 | 191 | wpxml->setAutoFormatting(true); | ||
1831 | 192 | wpxml->writeStartDocument(); | ||
1832 | 193 | wpxml->writeStartElement("waypoints"); | ||
1833 | 194 | for(int i=1; i<m_waypoints.count(); i++) //wp #0 is the cache coordinate, don't save. | ||
1834 | 195 | { | ||
1835 | 196 | wpxml->writeStartElement("waypoint"); | ||
1836 | 197 | wpxml->writeAttribute("name", m_waypoints.at(i)->name()); | ||
1837 | 198 | wpxml->writeAttribute("latitude", QString::number(m_waypoints.at(i)->latitude())); | ||
1838 | 199 | wpxml->writeAttribute("longitude", QString::number(m_waypoints.at(i)->longitude())); | ||
1839 | 200 | |||
1840 | 201 | |||
1841 | 202 | wpxml->writeEndElement(); // waypoint | ||
1842 | 203 | } | ||
1843 | 204 | wpxml->writeEndElement(); //waypoints | ||
1844 | 205 | wpxml->writeEndDocument(); | ||
1845 | 206 | wpFile->flush(); | ||
1846 | 207 | wpFile->close(); | ||
1847 | 208 | qDebug() << "File Close"; | ||
1848 | 209 | } | ||
1849 | 210 | delete wpxml; | ||
1850 | 211 | delete wpFile; | ||
1851 | 212 | Q_EMIT waypointsChanged(); | ||
1852 | 213 | } | ||
1853 | 214 | |||
1854 | 215 | Waypoint* Geocache::getWaypoint(int i) | ||
1855 | 216 | { | ||
1856 | 217 | if(i+1>m_waypoints.count()) | ||
1857 | 218 | return m_waypoints.at(0); | ||
1858 | 219 | else | ||
1859 | 220 | return m_waypoints.at(i); | ||
1860 | 221 | } | ||
1861 | 222 | |||
1862 | 223 | void Geocache::deleteWaypoint(int i) | ||
1863 | 224 | { | ||
1864 | 225 | m_waypoints.removeAt(i); | ||
1865 | 226 | } | ||
1866 | 227 | |||
1867 | 228 | QString Geocache::dataDir() { | ||
1868 | 229 | return QStandardPaths::writableLocation(QStandardPaths::DataLocation); | ||
1869 | 230 | } | ||
1870 | 231 | |||
1871 | 107 | 232 | ||
1872 | 108 | 233 | ||
1873 | === modified file 'backend/modules/Cachemere/geocache.h' | |||
1874 | --- backend/modules/Cachemere/geocache.h 2014-12-26 20:50:55 +0000 | |||
1875 | +++ backend/modules/Cachemere/geocache.h 2015-04-16 19:24:14 +0000 | |||
1876 | @@ -18,11 +18,35 @@ | |||
1877 | 18 | 18 | ||
1878 | 19 | #ifndef GEOCACHE_H | 19 | #ifndef GEOCACHE_H |
1879 | 20 | #define GEOCACHE_H | 20 | #define GEOCACHE_H |
1881 | 21 | 21 | #include <QQmlListProperty> | |
1882 | 22 | #include <QObject> | 22 | #include <QObject> |
1883 | 23 | 23 | ||
1884 | 24 | |||
1885 | 25 | class Waypoint: public QObject { | ||
1886 | 26 | Q_OBJECT | ||
1887 | 27 | Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) | ||
1888 | 28 | Q_PROPERTY(double latitude READ latitude WRITE setLatitude NOTIFY latitudeChanged) | ||
1889 | 29 | Q_PROPERTY(double longitude READ longitude WRITE setLongitude NOTIFY longitudeChanged) | ||
1890 | 30 | Q_SIGNALS: | ||
1891 | 31 | void nameChanged(); | ||
1892 | 32 | void latitudeChanged(); | ||
1893 | 33 | void longitudeChanged(); | ||
1894 | 34 | public: | ||
1895 | 35 | Waypoint(){} | ||
1896 | 36 | QString name() { return m_name; } | ||
1897 | 37 | void setName(QString name) { m_name = name; Q_EMIT nameChanged(); } | ||
1898 | 38 | double latitude(){return m_latitude;} | ||
1899 | 39 | double longitude(){return m_longitude;} | ||
1900 | 40 | void setLatitude(double lat){m_latitude=lat;} | ||
1901 | 41 | void setLongitude(double lon){m_longitude=lon;} | ||
1902 | 42 | private: | ||
1903 | 43 | QString m_name; | ||
1904 | 44 | double m_latitude; | ||
1905 | 45 | double m_longitude; | ||
1906 | 46 | }; | ||
1907 | 24 | class Geocache : public QObject | 47 | class Geocache : public QObject |
1908 | 25 | { | 48 | { |
1909 | 49 | |||
1910 | 26 | Q_OBJECT | 50 | Q_OBJECT |
1911 | 27 | Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged) | 51 | Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged) |
1912 | 28 | Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) | 52 | Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) |
1913 | @@ -35,6 +59,8 @@ | |||
1914 | 35 | Q_PROPERTY(double difficulty READ difficulty WRITE setDifficulty NOTIFY difficultyChanged) | 59 | Q_PROPERTY(double difficulty READ difficulty WRITE setDifficulty NOTIFY difficultyChanged) |
1915 | 36 | Q_PROPERTY(double terrain READ terrain WRITE setTerrain NOTIFY terrainChanged) | 60 | Q_PROPERTY(double terrain READ terrain WRITE setTerrain NOTIFY terrainChanged) |
1916 | 37 | Q_PROPERTY(bool found READ found WRITE setFound NOTIFY foundChanged) | 61 | Q_PROPERTY(bool found READ found WRITE setFound NOTIFY foundChanged) |
1917 | 62 | Q_PROPERTY(QQmlListProperty<Waypoint> waypoints READ waypoints NOTIFY waypointsChanged) | ||
1918 | 63 | Q_PROPERTY(int currentwaypoint READ currentwaypoint WRITE setcurrentwaypoint NOTIFY currentwaypointChanged) | ||
1919 | 38 | 64 | ||
1920 | 39 | public: | 65 | public: |
1921 | 40 | explicit Geocache(QObject *parent = 0); | 66 | explicit Geocache(QObject *parent = 0); |
1922 | @@ -53,8 +79,12 @@ | |||
1923 | 53 | void foundChanged(); | 79 | void foundChanged(); |
1924 | 54 | void difficultyChanged(); | 80 | void difficultyChanged(); |
1925 | 55 | void terrainChanged(); | 81 | void terrainChanged(); |
1926 | 82 | void waypointsChanged(); | ||
1927 | 83 | void currentwaypointChanged(); | ||
1928 | 56 | 84 | ||
1929 | 57 | public: | 85 | public: |
1930 | 86 | |||
1931 | 87 | |||
1932 | 58 | QString id() { return m_id; } | 88 | QString id() { return m_id; } |
1933 | 59 | QString name() { return m_name; } | 89 | QString name() { return m_name; } |
1934 | 60 | QString url() { return m_url; } | 90 | QString url() { return m_url; } |
1935 | @@ -66,6 +96,10 @@ | |||
1936 | 66 | double difficulty() { return m_difficulty; } | 96 | double difficulty() { return m_difficulty; } |
1937 | 67 | double terrain() { return m_terrain; } | 97 | double terrain() { return m_terrain; } |
1938 | 68 | bool found() { return m_found; } | 98 | bool found() { return m_found; } |
1939 | 99 | QQmlListProperty<Waypoint> waypoints(); | ||
1940 | 100 | int currentwaypoint() {return m_currentwaypoint;} | ||
1941 | 101 | |||
1942 | 102 | |||
1943 | 69 | void setId(QString id) { m_id = id; Q_EMIT idChanged(); } | 103 | void setId(QString id) { m_id = id; Q_EMIT idChanged(); } |
1944 | 70 | void setName(QString name) { m_name = name; Q_EMIT nameChanged(); } | 104 | void setName(QString name) { m_name = name; Q_EMIT nameChanged(); } |
1945 | 71 | void setUrl(QString url) { m_url = url; Q_EMIT urlChanged(); } | 105 | void setUrl(QString url) { m_url = url; Q_EMIT urlChanged(); } |
1946 | @@ -77,6 +111,14 @@ | |||
1947 | 77 | void setDifficulty(double difficulty) { m_difficulty = difficulty; Q_EMIT difficultyChanged(); } | 111 | void setDifficulty(double difficulty) { m_difficulty = difficulty; Q_EMIT difficultyChanged(); } |
1948 | 78 | void setTerrain(double terrain) { m_terrain = terrain; Q_EMIT terrainChanged(); } | 112 | void setTerrain(double terrain) { m_terrain = terrain; Q_EMIT terrainChanged(); } |
1949 | 79 | void setFound(bool found) { m_found = found; Q_EMIT foundChanged(); } | 113 | void setFound(bool found) { m_found = found; Q_EMIT foundChanged(); } |
1950 | 114 | void setcurrentwaypoint(int w) {m_currentwaypoint = w; Q_EMIT currentwaypointChanged(); } | ||
1951 | 115 | Q_INVOKABLE void addWaypoint(QString name, double latitude, double longitude); | ||
1952 | 116 | Q_INVOKABLE void setWaypoint(int i, QString name, double latitude, double longitude); | ||
1953 | 117 | //This function was made separately from addWaypoint and setWaypoint, as it would else crash the application. | ||
1954 | 118 | Q_INVOKABLE void updateWaypoints(void); | ||
1955 | 119 | Q_INVOKABLE Waypoint* getWaypoint(int i); | ||
1956 | 120 | Q_INVOKABLE void deleteWaypoint(int i); | ||
1957 | 121 | Q_INVOKABLE QString dataDir(); | ||
1958 | 80 | 122 | ||
1959 | 81 | private: | 123 | private: |
1960 | 82 | QString m_id; | 124 | QString m_id; |
1961 | @@ -90,6 +132,8 @@ | |||
1962 | 90 | double m_difficulty; | 132 | double m_difficulty; |
1963 | 91 | double m_terrain; | 133 | double m_terrain; |
1964 | 92 | bool m_found; | 134 | bool m_found; |
1965 | 135 | QList<Waypoint*> m_waypoints; | ||
1966 | 136 | int m_currentwaypoint; | ||
1967 | 93 | }; | 137 | }; |
1968 | 94 | 138 | ||
1969 | 95 | #endif // GEOCACHE_H | 139 | #endif // GEOCACHE_H |
1970 | 96 | 140 | ||
1971 | === modified file 'manifest.json.in' | |||
1972 | --- manifest.json.in 2014-12-26 20:50:55 +0000 | |||
1973 | +++ manifest.json.in 2015-04-16 19:24:14 +0000 | |||
1974 | @@ -9,7 +9,7 @@ | |||
1975 | 9 | "desktop": "cachemere.desktop" | 9 | "desktop": "cachemere.desktop" |
1976 | 10 | } | 10 | } |
1977 | 11 | }, | 11 | }, |
1979 | 12 | "version": "0.1", | 12 | "version": "0.2", |
1980 | 13 | "maintainer": "Michael Sheldon <mike@mikeasoft.com>", | 13 | "maintainer": "Michael Sheldon <mike@mikeasoft.com>", |
1981 | 14 | "framework": "ubuntu-sdk-14.10" | 14 | "framework": "ubuntu-sdk-14.10" |
1982 | 15 | } | 15 | } |
1983 | 16 | 16 | ||
1984 | === modified file 'po/com.mikeasoft.cachemere.pot' | |||
1985 | --- po/com.mikeasoft.cachemere.pot 2014-12-26 20:50:55 +0000 | |||
1986 | +++ po/com.mikeasoft.cachemere.pot 2015-04-16 19:24:14 +0000 | |||
1987 | @@ -8,7 +8,7 @@ | |||
1988 | 8 | msgstr "" | 8 | msgstr "" |
1989 | 9 | "Project-Id-Version: \n" | 9 | "Project-Id-Version: \n" |
1990 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
1992 | 11 | "POT-Creation-Date: 2014-12-26 20:42+0000\n" | 11 | "POT-Creation-Date: 2015-04-16 21:22+0200\n" |
1993 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
1994 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
1995 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
1996 | @@ -38,6 +38,28 @@ | |||
1997 | 38 | msgid "Stay" | 38 | msgid "Stay" |
1998 | 39 | msgstr "" | 39 | msgstr "" |
1999 | 40 | 40 | ||
2000 | 41 | #: ../app/ui/CompassTab.qml:29 | ||
2001 | 42 | msgid "Compass" | ||
2002 | 43 | msgstr "" | ||
2003 | 44 | |||
2004 | 45 | #: ../app/ui/CompassTab.qml:48 ../app/ui/CompassTab.qml:167 | ||
2005 | 46 | #: ../app/ui/DetailsTab.qml:69 ../app/ui/MapTab.qml:234 | ||
2006 | 47 | msgid "Waiting for fix..." | ||
2007 | 48 | msgstr "" | ||
2008 | 49 | |||
2009 | 50 | #: ../app/ui/CompassTab.qml:75 ../app/ui/DetailsTab.qml:63 | ||
2010 | 51 | msgid "Position:" | ||
2011 | 52 | msgstr "" | ||
2012 | 53 | |||
2013 | 54 | #: ../app/ui/CompassTab.qml:75 | ||
2014 | 55 | msgid "Waiting for fix" | ||
2015 | 56 | msgstr "" | ||
2016 | 57 | |||
2017 | 58 | #: ../app/ui/CompassTab.qml:165 ../app/ui/CompassTab.qml:167 | ||
2018 | 59 | #: ../app/ui/DetailsTab.qml:69 ../app/ui/MapTab.qml:242 | ||
2019 | 60 | msgid "Distance:" | ||
2020 | 61 | msgstr "" | ||
2021 | 62 | |||
2022 | 41 | #: ../app/ui/ConfirmDialog.qml:23 | 63 | #: ../app/ui/ConfirmDialog.qml:23 |
2023 | 42 | msgid "JavaScript Confirmation" | 64 | msgid "JavaScript Confirmation" |
2024 | 43 | msgstr "" | 65 | msgstr "" |
2025 | @@ -54,18 +76,6 @@ | |||
2026 | 54 | msgid "Name:" | 76 | msgid "Name:" |
2027 | 55 | msgstr "" | 77 | msgstr "" |
2028 | 56 | 78 | ||
2029 | 57 | #: ../app/ui/DetailsTab.qml:63 | ||
2030 | 58 | msgid "Position:" | ||
2031 | 59 | msgstr "" | ||
2032 | 60 | |||
2033 | 61 | #: ../app/ui/DetailsTab.qml:69 ../app/ui/MapTab.qml:207 | ||
2034 | 62 | msgid "Distance:" | ||
2035 | 63 | msgstr "" | ||
2036 | 64 | |||
2037 | 65 | #: ../app/ui/DetailsTab.qml:69 ../app/ui/MapTab.qml:199 | ||
2038 | 66 | msgid "Waiting for fix..." | ||
2039 | 67 | msgstr "" | ||
2040 | 68 | |||
2041 | 69 | #: ../app/ui/DetailsTab.qml:75 | 79 | #: ../app/ui/DetailsTab.qml:75 |
2042 | 70 | msgid "Difficulty: " | 80 | msgid "Difficulty: " |
2043 | 71 | msgstr "" | 81 | msgstr "" |
2044 | @@ -90,11 +100,15 @@ | |||
2045 | 90 | msgid "View cache page" | 100 | msgid "View cache page" |
2046 | 91 | msgstr "" | 101 | msgstr "" |
2047 | 92 | 102 | ||
2049 | 93 | #: ../app/ui/DetailsTab.qml:127 | 103 | #: ../app/ui/DetailsTab.qml:121 |
2050 | 104 | msgid "Waypoints" | ||
2051 | 105 | msgstr "" | ||
2052 | 106 | |||
2053 | 107 | #: ../app/ui/DetailsTab.qml:191 | ||
2054 | 94 | msgid "No Active Cache" | 108 | msgid "No Active Cache" |
2055 | 95 | msgstr "" | 109 | msgstr "" |
2056 | 96 | 110 | ||
2058 | 97 | #: ../app/ui/DetailsTab.qml:127 | 111 | #: ../app/ui/DetailsTab.qml:191 |
2059 | 98 | msgid "Select a cache from the 'Geocaches' page to make it active." | 112 | msgid "Select a cache from the 'Geocaches' page to make it active." |
2060 | 99 | msgstr "" | 113 | msgstr "" |
2061 | 100 | 114 | ||
2062 | @@ -148,6 +162,14 @@ | |||
2063 | 148 | msgid "JavaScript Prompt" | 162 | msgid "JavaScript Prompt" |
2064 | 149 | msgstr "" | 163 | msgstr "" |
2065 | 150 | 164 | ||
2067 | 151 | #: /home/mike/src/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default/po/cachemere.desktop.in.h:1 | 165 | #: ../app/ui/WaypointDialog.qml:30 |
2068 | 166 | msgid "Edit Waypoint" | ||
2069 | 167 | msgstr "" | ||
2070 | 168 | |||
2071 | 169 | #: ../app/ui/WaypointDialog.qml:227 | ||
2072 | 170 | msgid "Close" | ||
2073 | 171 | msgstr "" | ||
2074 | 172 | |||
2075 | 173 | #: /home/frans/build-cachemere-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-Default/po/cachemere.desktop.in.h:1 | ||
2076 | 152 | msgid "Cachemere" | 174 | msgid "Cachemere" |
2077 | 153 | msgstr "" | 175 | msgstr "" |