55854 Commits

Author SHA1 Message Date
Martin Dobias
d155b1c877 Further updates from review 2019-06-25 15:38:07 +02:00
Martin Dobias
aead182b21 Change FilterType to enum class + rename values to FilterXXX 2019-06-25 14:53:56 +02:00
Martin Dobias
5f0558915f Pass uri in createProvider() as a reference, not a pointer 2019-06-23 20:36:01 +02:00
Martin Dobias
a6d8f1128c Do not export classes which do not need to be exported 2019-06-23 12:46:06 +02:00
Martin Dobias
cbdf32bbf3 Moved QgsOgrDbTableModel from qgis_core to qgis_gui 2019-06-23 12:26:47 +02:00
Martin Dobias
93154a1b92 Fix loading of default style from provider (database) 2019-06-23 12:02:37 +02:00
Martin Dobias
90910b0447 Patch QgsProviderMetadata in Python to avoid API break
In C++ we do not support QgsProviderMetadata(key, description, createFunc) anymore,
but for python code we can have a patched class that still supports createFunc.

Why not keep the variant with createFunc in C++ as well? Because... SIP!
With newly added virtual methods in QgsProviderMetadata, SIP started to generate
a sip-specific subclass to handle derived classes in Python, however due to the variant
with PyObject* and custom MethodCode it was getting confused about what constructors
are available in C++ and failing to compile.
2019-06-21 18:27:36 +02:00
Martin Dobias
8c4ef42ec9 Remove description() from QgsProviderGuiMetadata - it is not needed there 2019-06-21 17:00:08 +02:00
Martin Dobias
56745550ef Migrate postgres provider away from deprecated QgsProjectStorage APIs 2019-06-21 16:39:30 +02:00
Martin Dobias
8ed0bb38d1 Start using QgsProjectStorageGuiRegistry + its providers (gpkg projects work again)
Also deprecate gui methods in QgsProjectStorage but keep compatibility
2019-06-21 16:28:21 +02:00
Martin Dobias
5d460a6fd7 Fixes to providers (oracle, correct grouping of methods with HAVE_GUI) 2019-06-21 12:46:51 +02:00
Martin Dobias
437f635949 Revert api changes in gui registries to fix some tests 2019-06-20 16:00:06 +02:00
Martin Dobias
ab261b675e Doxy fix + remove extra QgsProviderMetadata constructor 2019-06-20 14:50:30 +02:00
Martin Dobias
c396d70d14 Doxygen fixes and api break fixes 2019-06-20 14:15:07 +02:00
Martin Dobias
7659dd8b8b Misc fixes for provider registry/metadata deprecated functions 2019-06-20 12:32:44 +02:00
Martin Dobias
6918bac9df Revert API break and move WidgetMode back to QgsProviderRegistry 2019-06-20 10:49:36 +02:00
Martin Dobias
7e613f6b01 travis fixes 2019-06-20 09:56:44 +02:00
Martin Dobias
edcf915ba4 Remove some deprecation warnings 2019-06-20 09:00:19 +02:00
Martin Dobias
a6b837b745 code layout fixes 2019-06-20 00:09:20 +02:00
Martin Dobias
78f69ad5a6 Added sip files for newly added classes 2019-06-19 23:09:13 +02:00
Martin Dobias
f6049e01d0 Misc fixes to get the branch compiling & running with Python
- grass data item provider fixes
- removed QgsProviderMetadata constructor (with std::function / PyObject) due to sip errors (api break)
- reverted DataCapability move to Qgis - back to QgsDataProvider (avoiding api breaks)
- WidgetMode enum documentation
- sipify monkey patching fix
- renamed WidgetMode's "None" to "Normal" value - in python None has special meaning (api break)
2019-06-19 23:02:11 +02:00
Peter Petrik
62d615c2cd [QEP 149] Introduce static data providers [API BREAK]
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +02:00
Juergen E. Fischer
bff757a518 update crash reports for github 2019-06-17 23:57:49 +02:00
Martin Dobias
127fe3cf37 Tweak vertex markers so that they are not filled
The rationale is that vertices are more difficult to see when they
are behind the markers and people liked that in 2.x they were
without internal fill.
2019-06-18 06:20:38 +10:00
Jorge Gustavo Rocha
cd8f2f1e00 Fix attribute table shortcuts when docked [needs-docs]
Closes #29633, fix #29945
2019-06-18 06:19:27 +10:00
Matthias Kuhn
24e56a810c
Merge pull request #30176 from jgrocha/redmine2github
References to issues.qgis.org updated
2019-06-17 11:34:12 +02:00
Nyall Dawson
c3f98ebfce [processing] Prevent dropping layers of known incompatible types from browser to
map layer parameters
2019-06-17 18:17:10 +10:00
Nyall Dawson
de672e3127 Allow storing layer WKB type in QgsMimeDataUtils::Uri 2019-06-17 18:17:10 +10:00
Nyall Dawson
83759f1631 Correctly ignore unwanted drag events in QgsMapLayerComboBox 2019-06-17 18:17:10 +10:00
Juergen E. Fischer
72af468228 translation string fixes 2019-06-17 09:40:29 +02:00
Nyall Dawson
260dc91829 Use mouse press to trigger label map tools instead of release
Eases the transition from the click-and-drag behaviour, because
clicking and holding will still start the movement.
2019-06-17 17:11:57 +10:00
Matthias Kuhn
ebfce9b3ec
Merge pull request #30198 from jgrocha/add--version-cli-option
[needs-docs] Add --version|-v cli option to qgis executable
2019-06-17 07:46:41 +02:00
Juergen E. Fischer
62b24064a2 wfs provider: fix invalid feature id assignment (fixes #29146) 2019-06-17 01:15:08 +02:00
Juergen E. Fischer
56ad4a69b4 dxf/dwg import: revert some formatting changes from 2f3646a14 2019-06-17 01:14:58 +02:00
Harrissou Sant-anna
954e77ea5a Add tooltip to file selector widget
to avoid people trying to directly save files in installation folder
2019-06-17 08:49:52 +10:00
Nyall Dawson
0389ebeab5 Fix collecting geometries when one of the added geometries is already multi-part
Fixes #30208
2019-06-17 06:27:36 +10:00
Nyall Dawson
b8dcafbf10 [processing] Fix missing default value for Select by Expression
Fixes #30218
2019-06-17 06:27:17 +10:00
Nyall Dawson
52d22b8050 QgsDataSourceURI doxygen improvements 2019-06-16 10:00:59 +10:00
Alex
a02a4ede6e Allow calculating aggregates using a subset of fids only 2019-06-16 07:00:26 +10:00
Tamas Szekeres
6c6c145590 Fix writing geometries with M values, adding tests for Z/M/ZM geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
01112bdd43 fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
3196b0268f Fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
7d1b0cb70b Adding test for curve geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
2dc40ae039 Fix compoundcurve parser 2019-06-15 15:16:42 +10:00
Tamas Szekeres
68a5d1a994 Fix creating layers with curve geometries 2019-06-15 15:16:42 +10:00
Tamas Szekeres
31162ad128 Fix indentation 2019-06-15 15:16:42 +10:00
Tamas Szekeres
2e398f432d Improve the performance of reading linestrings 2019-06-15 15:16:42 +10:00
Tamas Szekeres
861ab7a9fd Drop function headers from the parser code 2019-06-15 15:16:42 +10:00
Tamas Szekeres
abc392213e Apply 'm' prefix for class member variables instead of the hungarian notations. 2019-06-15 15:16:42 +10:00
Tamas Szekeres
d62bc00528 Remove const qualifiers from public declarations 2019-06-15 15:16:42 +10:00