Nyall Dawson
c7924b0fb1
Move GPS tools "add gpx layer" functionality to Data Source Manager
...
Moves the functionality from the GPS tools plugin to add GPX layers
to a new "Add GPS Data" page in the data source manager.
(no functional changes!)
2021-08-01 07:47:42 +10:00
Nyall Dawson
8f36cdfa44
[processing] Add API to allow a string parameter to show as a combobox
...
with preset choices in processing GUI
In some circumstances it is desirable to restrict the values available
when a user is asked to enter a string parameter to a list of predetermined
"valid" values, yet these values will vary installation by installation
(e.g. a "printer name" parameter, where you want users to pick from
printers installed on the system, but since the printer names will
vary install to install an enum parameter is not a valid choice)
This can now be done by setting the widget wrapper metadata
"value_hints" option, as demonstrated below. (While this provides a mechanism
for guiding users to select from valid string values when running a Processing
algorithm through the GUI, it does not place any limits on the string values
accepted via PyQGIS codes or when running the algorithm via other non-gui
means. Algorithms should gracefully handle other values accordingly.)
param = QgsProcessingParameterString( 'PRINTER_NAME', 'Printer name')
# show only printers which are available on the current system as options
# for the string input.
param.setMetadata( {'widget_wrapper':
{ 'value_hints': ['Inkjet printer', 'Laser printer'] }
})
2021-08-01 05:33:51 +10:00
Alessandro Pasotti
6b2e29354f
Merge pull request #43981 from SebastienPeillet/get_print_legend_fix
...
Server : Fix legend when no LAYERS parameter provided, Fix layer style defined by a maptheme
2021-07-31 17:59:18 +02:00
Alessandro Pasotti
75430e7acb
Apply suggestions from code review
2021-07-31 16:58:33 +02:00
Nyall Dawson
48894949f7
Rename more members
2021-07-31 15:01:45 +10:00
Nyall Dawson
37ffa4c1e0
Minor provider cleanup
2021-07-31 15:01:45 +10:00
Nyall Dawson
7e6628181b
Unit tests for encodeUri/decodeUri for GPX
2021-07-31 15:01:45 +10:00
Nyall Dawson
99c7fdf485
Standardise member naming
2021-07-31 15:01:45 +10:00
Nyall Dawson
52ea60afd0
Implement encode/decodeUri for Gpx provider
2021-07-31 15:01:45 +10:00
Nyall Dawson
963d322bda
More leftovers
2021-07-31 10:12:16 +10:00
Nyall Dawson
4e960f042e
Update strings
2021-07-31 10:12:16 +10:00
Nyall Dawson
1fe7a8c474
Better names
2021-07-31 10:12:16 +10:00
Nyall Dawson
4cc17b7804
Remove unused files
2021-07-31 10:12:16 +10:00
Nyall Dawson
c907f563d0
Move GPS Tools GPSbabel device configuration widget to new page
...
in global settings dialog
2021-07-31 10:12:16 +10:00
Nyall Dawson
612af1fb7b
Add a registry for GPSbabel formats
2021-07-31 10:12:16 +10:00
Denis Rouzaud
af9a72eda6
[External Storage] Define API and implement SimpleCopy backlend ( #43882 )
...
* [External Storage] Define API
* [External Storage] Add QgsCopyFileTask
* [External Storage] Add SimpleCopy backend
* change SIP_CONCAT_PARTS to fix compilation
* Add ContentStatus enum in Qgis class
* Add test for QgsCopyFileTask
* Move addTask after signals connect
* fix header
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
* s/store/stores
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
* s/Fetch/Fetches
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
* fix typos
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
* s/authentification/authentication
* change comment singleton
* use unique_ptr for projectexternalstorage instance
* fix cppcheck
* Add StartLater / StartImmediately distinction
* Add enum ActionStart
* s/OnGoing/Running/g
* constify externalStorageFromType
* Fix SIP
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-07-30 16:27:48 +02:00
Denis Rouzaud
1bd8f5cb0f
fix building of process without bindings ( #44460 )
2021-07-30 13:59:36 +02:00
Julien Cabieces
9d732a238a
Fix SIP
2021-07-30 10:53:13 +02:00
Jochen Topf
8cd8b9372a
Fix typo ( #44459 )
2021-07-30 10:22:15 +02:00
Julien Cabieces
8c3f9cd3d0
constify externalStorageFromType
2021-07-30 10:18:38 +02:00
Julien Cabieces
deed238bc8
s/OnGoing/Running/g
2021-07-30 10:18:38 +02:00
Julien Cabieces
56acee931d
Add enum ActionStart
2021-07-30 10:18:38 +02:00
Julien Cabieces
014a4aac3a
Add StartLater / StartImmediately distinction
2021-07-30 10:18:36 +02:00
Julien Cabieces
3010b2f42d
fix cppcheck
2021-07-30 10:17:58 +02:00
Julien Cabieces
49fcf89ead
use unique_ptr for projectexternalstorage instance
2021-07-30 10:17:57 +02:00
Julien Cabieces
ce6cc8d244
change comment singleton
2021-07-30 10:17:57 +02:00
Julien Cabieces
4bd9170f79
s/authentification/authentication
2021-07-30 10:17:57 +02:00
Julien Cabieces
3ab2a21ccb
fix typos
...
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-07-30 10:17:57 +02:00
Julien Cabieces
f26b15b4cc
s/Fetch/Fetches
...
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-07-30 10:17:57 +02:00
Julien Cabieces
821274712b
s/store/stores
...
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-07-30 10:17:57 +02:00
Julien Cabieces
14325738f5
fix header
...
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-07-30 10:17:57 +02:00
Julien Cabieces
780adde523
Move addTask after signals connect
2021-07-30 10:17:57 +02:00
Julien Cabieces
5d24096378
Add test for QgsCopyFileTask
2021-07-30 10:17:57 +02:00
Julien Cabieces
5389c31b1e
Add ContentStatus enum in Qgis class
2021-07-30 10:17:55 +02:00
Julien Cabieces
7d1213af40
change SIP_CONCAT_PARTS to fix compilation
2021-07-30 10:16:45 +02:00
Julien Cabieces
d3534db1ff
[External Storage] Add SimpleCopy backend
2021-07-30 10:16:45 +02:00
Julien Cabieces
82e16cf38c
[External Storage] Add QgsCopyFileTask
2021-07-30 10:16:45 +02:00
Julien Cabieces
6967b1cd2b
[External Storage] Define API
2021-07-30 10:16:45 +02:00
Mathieu Pellerin
77be06af1a
Merge pull request #44410 from nirvn/offline_replace
...
[offline editing] Avoid adding/removing layers, update data source
2021-07-30 13:21:53 +07:00
Nyall Dawson
b2c2525fa7
Remove unwanted QRegExp import
2021-07-30 16:07:36 +10:00
Nyall Dawson
7a152e2d13
Remove GPX feature type conversion from GPS tools plugin
...
This functionality is now exposed by the processing algorithm instead
2021-07-30 16:07:36 +10:00
Nyall Dawson
b58aee7009
Lint
2021-07-30 16:07:36 +10:00
Nyall Dawson
f1434ac54c
Add some unit tests for babel formats
2021-07-30 16:07:36 +10:00
Nyall Dawson
0a77401d1c
Add python bindings
2021-07-30 16:07:36 +10:00
Nyall Dawson
a9ebfc2908
Fix build on old qt
2021-07-30 16:07:36 +10:00
Nyall Dawson
e713ac93f2
Remove unused png files
2021-07-30 16:07:36 +10:00
Nyall Dawson
ff13047d18
Move GPS icon to standard icons folder
2021-07-30 16:07:36 +10:00
Nyall Dawson
f115db6950
Start vivisecting gps_importer plugin
...
Move the babel format classes to core, cleaning these up and
removing unused code and modernizing the API.
2021-07-30 16:07:36 +10:00
Nyall Dawson
8eff5e7620
Remove GPX feature type conversion from GPS tools plugin
...
This functionality is now exposed by the processing algorithm instead
2021-07-30 14:19:10 +10:00
Nyall Dawson
d187a14847
[feature][processing] Port GPS tools Convert GPX feature type tool
...
to new processing algorithm
This algorithm uses the GPSBabel tool to convert GPX features from
one type to another (e.g. converting all waypoint features to a
route feature).
It is designed as a drop-in replacement for workflows which previously
used this functionality from the GPS tools plugin, but with all
the benefits and improvements that come automatically from
being part of Processing!
2021-07-30 14:19:10 +10:00