51799 Commits

Author SHA1 Message Date
Nyall Dawson
348c1dc794 Move layer item action handling to app 2018-11-04 21:07:27 +10:00
Nyall Dawson
10d7f6e54c Spelling 2018-11-04 21:07:27 +10:00
Nyall Dawson
c085d0edd5 Move favorites action handling from gui to app 2018-11-04 21:07:27 +10:00
Nyall Dawson
fab415454a Move Project Home GUI action handling from core to app
And remove more QWidget imports from core library
2018-11-04 21:07:27 +10:00
Nyall Dawson
48e7e204c0 Move some browser directory action handling from core/gui to app 2018-11-04 21:07:27 +10:00
Nyall Dawson
c9f9374dbb Allow provider libraries to create QgsDataItemGuiProviders
...by implementing dataItemGuiProviders()
2018-11-04 21:07:27 +10:00
Nyall Dawson
310d4f94fa Link the application browser dock to the application message bar 2018-11-04 21:07:27 +10:00
Nyall Dawson
153f1b1138 Also pass complete list of all selected items to createContextMenu,
so that actions can operate on ALL selected items

E.g. delete multiple layers from a geopackage at once
2018-11-04 21:07:27 +10:00
Nyall Dawson
c98d13d2f4 Add method to populate browser context menu to QgsDataItemGuiProvider 2018-11-04 21:07:27 +10:00
Nyall Dawson
6ec7f02e83 Add a QgsDataItemGuiProvider interface and registry for providers
These providers will be used to control how the browser data items
behave within GUI, and to allow separation of GUI related
properties of browser items from the core code.

A new registry QgsDataItemGuiProviderRegistry has been created
(modeled off QgsDataItemProviderRegistry), with an application
wide instance available from QgsGui::instance()->dataItemGuiProviderRegistry()
2018-11-04 21:07:27 +10:00
Nyall Dawson
0b17db6fc4 Add unit tests for QgsDataItemProviderRegistry 2018-11-04 21:07:27 +10:00
Nyall Dawson
928779bf51 Sipify 2018-11-04 19:22:09 +10:00
Martin Dobias
5dd566455f [vertex tool] Respect topo editing when adding a vertex (fixes #18046)
When adding a vertex to a segment that is coincident with some other
segments and topological editing is enabled, vertex tool will now correctly
add new vertex also the coincident segments to preserve shared borders.
2018-11-04 09:54:24 +01:00
Nyall Dawson
efbc089a09 Fix some windows build warnings 2018-11-04 17:41:09 +10:00
Nyall Dawson
5f2b78e755 Fix leak due to deletion of incomplete type 2018-11-04 17:40:40 +10:00
Denis Rouzaud
15b2352ea2
Merge pull request #8406 from 3nids/fix20321
fix device size in decoration item
2018-11-03 11:01:26 -08:00
Denis Rouzaud
1fbcab9edc fix device size in decoration item
the size should take the device pixel ration into account
fixes #20321
2018-11-02 22:04:01 -04:00
Denis Rouzaud
c1108fc6c8 move decoration items to specific folder 2018-11-02 22:04:01 -04:00
Denis Rouzaud
ec98dfcf92
fix build without GUI (#8405) 2018-11-02 08:56:16 -08:00
Denis Rouzaud
91583980fe allow to restric to certain module when running sip_includes.sh
it's a bit faster 🍺
2018-11-02 11:35:43 -04:00
Matthias Kuhn
eb5d487cd1
Merge pull request #8402 from m-kuhn/autoActivateGeometryValidation
Activate geometry checks when changing layer properties
2018-11-02 13:29:52 +01:00
Matthias Kuhn
7fb8579c9e
Fix crash when de/reactivating layer checks
When errors have been found and shown on the dock and deactivating layer checks that resulted in crashes.
Also when deactivating and reactivating checks, that would result in crashes.
2018-11-02 12:26:18 +01:00
Matthias Kuhn
5bc588e4df
Activate geometry checks when changing layer properties
No longer requires a reload of the project

Fix #20218
https://issues.qgis.org/issues/20218
2018-11-02 11:30:26 +01:00
Juergen E. Fischer
8400a8bb3d dwg import:
* allow entering new gpkg filenames (fixes #20305)
* move messagebar to dialog
2018-11-02 11:10:42 +01:00
Alessandro Pasotti
eca00ba3c9
Merge pull request #8396 from elpaso/datasource-select-dialog
QgsDataSourceSelectDialog: a simple browser-based reusable data sourc…
2018-11-02 08:47:33 +01:00
nirvn
ea734595ef [native] Use official .desktop file name on linux 2018-11-02 10:44:10 +07:00
Nyall Dawson
fd5a1c82ec Fix crash on Windows on idle/usb notifications
Fixes #20312, #20319, #20312, #20307, #20299, #20297, #20280
(maybe others)
2018-11-02 07:32:51 +10:00
Nyall Dawson
c782f27820 Tighten scope of connection 2018-11-02 04:35:37 +10:00
Nyall Dawson
a5ff6db240 [mssql] Fix database connection cleanup on thread exit 2018-11-02 04:35:37 +10:00
Nyall Dawson
a392a160e6 Fix authentication database connections
Fixes the authentication database cannot be opened in some circumstances.
We need to ensure that the pooled database connection is removed
immediately on thread finalisation and cannot defer this until
the main thread event loop runs.

Fixes #20262
2018-11-02 04:35:37 +10:00
Nyall Dawson
368286fed0 Correctly cleanup auth db connection on thread finished
(doesn't fix the invalid connection issue!)
2018-11-02 04:35:37 +10:00
Nyall Dawson
ac781fac50 Add more debugging to auth db opening 2018-11-02 04:35:37 +10:00
Denis Rouzaud
8ea02e9655
fix qgsDoubleString printing -0 (#8363) 2018-11-01 08:29:57 -08:00
Alessandro Pasotti
105455ca2c Layout fixes 2018-11-01 17:29:51 +01:00
Even Rouault
6d4935803b
Merge pull request #8397 from rouault/fix_20308
[BUGFIX] [OGR provider] Make filter by id(s) requests work again on OSM datasets (fixes #20308)
2018-11-01 14:32:01 +01:00
Nyall Dawson
fa71e4d3d7 Move to vector general group 2018-11-01 21:47:28 +10:00
Nyall Dawson
4dd3e211e2 Unit tests for reomve duplicates by attribute 2018-11-01 21:47:28 +10:00
Nyall Dawson
4e9da6f190 [FEATURE][processing] New algorithm "Remove duplicates by attribute"
Allows for removal of duplicate features, identified using the values
in one (or more) field values from the input features.

Optionally any discarded (duplicate) features can be saved to a separate
sink.
2018-11-01 21:47:28 +10:00
Juergen E. Fischer
1151639f9d fix news 2018-11-01 12:42:41 +01:00
Juergen E. Fischer
a826c56445 verify that projecta actually delivers a changelog 2018-11-01 12:39:53 +01:00
Even Rouault
986e11b6bb
[BUGFIX] [OGR provider] Make filter by id(s) requests work again on OSM datasets (fixes #20308) 2018-11-01 12:37:37 +01:00
Alessandro Pasotti
083208c1eb QgsDataSourceSelectDialog: a simple browser-based reusable data source select dialog 2018-11-01 12:02:38 +01:00
Nyall Dawson
3195c82ec1 Fix memory leak 2018-11-01 20:41:08 +10:00
Nyall Dawson
09c2daa1c1 [FEATURE] Allow exploration of QGS project file contents directly
within browser

Allows QGIS project file items inside the browser to be expanded,
showing the full layer tree (including groups) contained within
that project. Layers are shown as normal layer items, allowing
them to be easily added to the current project via drag and drop
or double click. Additionally, because they are treated just
the same as any other layer items in the browser, they can be
drag and dropped within the browser to e.g. directly copy the
layer to a geopackage file!

TODO: apply layer symbology from project file when adding a
layer from a different project to the current project
2018-11-01 20:41:08 +10:00
Nyall Dawson
f0436df618 [browser] Allow data item providers a chance to implement QGIS project
item creation and override default project file handling

If no provider is registered which handles QGIS project files,
then the default behavior is used as a fallback
2018-11-01 20:41:08 +10:00
Nyall Dawson
850eae1606 [browser] Avoid expanding/collapsing nodes if the double click
was specifically handled by an item itself
2018-11-01 20:41:08 +10:00
Nyall Dawson
5c5f2ed7e3 Add method to get QgsLayerItem::LayerType from a map layer 2018-11-01 20:41:08 +10:00
Nyall Dawson
f65c845f86 [processing][GRASS] Correctly handle input vector layers with |layername= param
Fixes #20277
2018-11-01 18:36:53 +10:00
Nyall Dawson
82ac04d6f7 [processing][GRASS] Give some more feedback when trying to use
v.external for reading inputs, and if we can't, advise why not
2018-11-01 18:36:53 +10:00
Nyall Dawson
676238b28f [processing][grass] Highlight GRASS error messages and warnings in log
And catch segmentation faults from GRASS commands and show a nice
helper text advising user that QGIS isn't at fault here ;)

Also add a tip to try disabling the v.external option if that setting
is enabled and a GRASS segfault occurs
2018-11-01 18:36:53 +10:00