15568 Commits

Author SHA1 Message Date
Nyall Dawson
3bd3aba25b [needs-docs] [labeling] Allow data defined control over line placement options
Allows users to override the line placement settings (e.g.
above/below/on line options) on a per-feature basis. Somehow
this one was the only(?) setting from labeling which
was missing a data defined control...
2019-06-20 10:24:16 +07: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
Larry Shaffer
ebd4f0d8ca
Add layer tree layer contextual menu mark, floating on right of viewport
This accomplishes several things:
- Offers an indication to user that there are layer-related actions
- Single click access to contextual menu
- Offers an indication to user where layers are located when viewport is
  horizontally scrolled to right, and layer names are not visible
2019-06-19 10:06:37 -06:00
Larry Shaffer
a06a96cf7c
Reset minimum section size to layer tree veiwport width on resize
Since last column is resized to content (instead of stretched), the
active selection rectangle ends at width of widest visible item in tree,
regardless of which item is selected. This causes layer indicators to
become 'inactive' (not clickable and no tool tip) unless their rectangle
enters the view item's selection (active) rectangle. Always resetting
the minimum section size relative to the viewport ensures the view
item's selection rectangle extends to the right edge of the viewport,
which allows indicators to become active again.
2019-06-19 10:05:59 -06:00
Denis Rouzaud
6dfe113d67 do not hold a pointer to an QGraphicsItem within a QGraphicsItem
since map canvas is deleting them all, this is causing a crash when trying to delete the already deleted item in the parent item
2019-06-19 16:20:32 +02:00
Éric Lemoine
0b87041b31 Improve the extentBuffer API docs 2019-06-19 09:32:44 +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
Éric Lemoine
23872fcc41 Improve the API docs 2019-06-18 14:48:23 +02:00
Matthias Kuhn
242c9fcfba Fix setStatusTip
Fixes #30249
2019-06-18 07:20:27 +02: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
de672e3127 Allow storing layer WKB type in QgsMimeDataUtils::Uri 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
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
Nyall Dawson
b25fa7a2e3 Try to fix crash on travis 2019-06-15 15:05:48 +10:00
Nyall Dawson
fbd243be65 [processing] Port map layer selection combobox widget to c++
And:

- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
Nyall Dawson
78a606188c Expose some more auth manager methods to Python
These methods either
- only wrap QSettings values (so there's no added security gained
by not exposing them -- it's currently easily possible to achieve
the same results via direct QSettings manipulation)

OR

- are required to allow fully automated QGIS deployment/startup
scripts which rely on auth manager functionality
2019-06-14 08:54:44 +10:00
Alexander Bruy
3a0fb544b3 [processing] fix method name 2019-06-13 15:46:26 +03:00
Nyall Dawson
cf63a7af97 [needs-docs] Allow dragging project layers from legend over map layer comboboxes to select
Greatly assists with usability of the combobox with large projects,
especially those with multiple copies of layers with the same name...
2019-06-13 04:57:37 +10:00
Nyall Dawson
d56ddc25fb Minor refactor of QgsMapLayerProxyModel 2019-06-13 04:57:37 +10:00
Nyall Dawson
760af67d0f Cleanup handling of QgsMimeDataUtils::Uri corresponding to project layers
And add tests
2019-06-13 04:57:37 +10:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
Matthias Kuhn
a4eb6b0bdc
Merge pull request #30128 from m-kuhn/30118
Keep rubberband while attribute dialog is open
2019-06-12 10:00:52 +02:00
Matthias Kuhn
83c8b5bf16
Merge pull request #30173 from olivierdalang/dbmanager_fix_generic_geom
[dbmanager] allow to import GEOMETRY tables
2019-06-12 09:54:57 +02:00
Nyall Dawson
4ff8429f7a [processing] Port "Points along geometry" to QgsFeatureBasedAlgorithm
(and c++), allow distance/start/end offset to be dynamic, avoid
algorithm "hangs" when inappropriately small (or 0) distances
are used
2019-06-12 10:08:51 +07:00
Jorge Gustavo Rocha
38c8e757aa References to issues.qgis.org updated 2019-06-12 00:10:43 +01:00
Nyall Dawson
e0eedc5fa1 [processing] Make batch processing HTML report more useful
Include the input parameter values in the report, otherwise the
results are just a meaningless list of values which can't be
associated with any particular set of inputs

Also correctly handle boolean and other output types
2019-06-12 07:03:57 +10:00
Nyall Dawson
d10db05b5a [processing] Nicer strings, default values for select/extract by attribute 2019-06-12 07:03:30 +10:00
Nyall Dawson
43904df6c4 [processing] Fix exception in select by expression using not equal to operator
Fixes #30135
2019-06-12 07:03:30 +10:00
Matthias Kuhn
40b3e82886 Add missing sip file 2019-06-11 21:12:19 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Alessandro Pasotti
e740688faa
Merge pull request #30151 from elpaso/bugfix-gh30115-value-relation-widget-match-name-if-id-fails
When loading a QLR, try to match the layer name if id does not
2019-06-11 11:20:30 +02:00
Alessandro Pasotti
2d45ba8d68 Move the QgsProject singleton problem one step up 2019-06-11 09:22:31 +02:00
Harrissou Sant-anna
502e18fa24 Update tests for gdal warp 2019-06-11 13:43:38 +10:00
Harrissou Sant-anna
1e2b59afc4 Make the target crs optional in gdal warp algorithm [needs-docs] 2019-06-11 13:43:38 +10:00
Alessandro Pasotti
103ef762ca Factor out generateId for layers and fix QLR mutiple layers id import 2019-06-10 17:58:22 +02:00
Alessandro Pasotti
a295701023 ResolveLayer returns a layer instance instead of an ID 2019-06-10 15:39:52 +02:00
Alessandro Pasotti
13099cc4fa
Merge pull request #30137 from elpaso/bugfix-gh30131-postgres-json
Fix json hanlding of bools and complete json(b) PG support
2019-06-10 14:22:14 +02:00
Alessandro Pasotti
f9b50b5b38 Move layer resolver into a static method 2019-06-10 14:10:11 +02:00
Alessandro Pasotti
dcc779a62d Added a test and fix layer config in the wrapper too 2019-06-10 12:32:30 +02:00
Harrissou Sant-anna
352423e443 Update help Url for Core plugins in official doc 2019-06-10 08:24:55 +10:00
Alessandro Pasotti
79219dae23 Forward port of histogram binding fix with a bonus test
Fwd port of PR #30033
Fixes #29700

With a new test for the bug.
2019-06-09 10:25:50 +02:00
Alessandro Pasotti
d2a93501f2 Remove empty lines 2019-06-08 20:32:02 +02:00
Alessandro Pasotti
3ea542a433 Fix json hanlding of bools and complete json(b) PG support
Fixes #30131 and add tests for jsonutils
2019-06-08 20:29:48 +02:00
Even Rouault
b1e4a270e5
Merge pull request #30103 from boundlessgeo/master-wfs-conn-dlg
Fix some issues with WFS connection dialog
2019-06-07 11:34:20 +02:00
Martin Varga
f4e11bf7d5 [processing] tiles_xyz: maximize map preview 2019-06-07 11:09:41 +02:00
Martin Varga
228040d153 [processing] tiles_xyz: get rid of unlabeled areas at the edges of metatiles 2019-06-07 11:09:41 +02:00