51920 Commits

Author SHA1 Message Date
Nyall Dawson
bac5fbbe0d Small cleanups for QgsDataSourceSelectDialog 2018-11-05 16:51:31 +10:00
Nyall Dawson
ea9d5bb363 Fix mangled fonts in script editors
Don't override default font letter spacing or stretch -- it's not
safe to do because the results are very dependent on the individual
font's appearance and rendering hints.

Fixes #20349
2018-11-05 10:35:18 +10:00
Nyall Dawson
18d4059546 Correct test comparisons
Previously QCOMPARE( QgsGeometry, QgsGeometry ) was actually only
testing for QCOMPARE( bool(QgsGeometry), bool(QgsGeometry) )...!
2018-11-05 08:39:10 +10:00
Nyall Dawson
7be2925649 Remove QgsGeometry bool operator
This is too dangerous -- it gets silently casted to numeric values
instead of throwing compilation errors
2018-11-05 08:39:10 +10:00
Nyall Dawson
137cbd76ae Fix equality comparison when saving vertex tool edits 2018-11-05 08:39:10 +10:00
Martin Dobias
685806bccf [3d] Fix crash in terrain generator if DEM raster layer is missing 2018-11-04 19:52:36 +01:00
Harrissou Sant-anna
6e9c2a3d0c Add link to user manual for annotation dialogs 2018-11-04 21:08:17 +10:00
Nyall Dawson
8c5f79575a Fix dox 2018-11-04 21:07:27 +10:00
Nyall Dawson
a890622996 Remove executeExport* methods from QgsWindowManagerInterface
No longer required, and of limited value anyway
2018-11-04 21:07:27 +10:00
Nyall Dawson
f455b9ed34 [needs-docs] Add right click context actions to Project files
in browser

With options to
- load project
- open project file properties (operating system file properties
dialog that is, on supported platforms only)
2018-11-04 21:07:27 +10:00
Nyall Dawson
fa3a08e397 Add method to handle browser item double clicks to QgsDataItemGuiProvider
And move handling of layer/project file double clicks in browser dock
from gui->app
2018-11-04 21:07:27 +10:00
Nyall Dawson
40443ebb3b [FEATURE][browser] Add "New" menu to context menu on directories
With option to create a new geopackage or shapefile in the
clicked directory
2018-11-04 21:07:27 +10:00
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
Martin Dobias
923adf2ff7 [mssql] Show in browser also tables with invalid features
They will just have a generic vector icon
2018-11-04 01:10:15 +01:00
Martin Dobias
704959bcc1 [mssql] Do not expect that SRIDs are equivalent to postgis SRIDs
There is no direct relationship between postgis SRIDs and SRIDs used in any other database.

If you imported data with GDAL, things may work, because GDAL prefers to use equivalent SRIDs
to EPSG IDs / PostGIS SRIDs.

If you imported data with QGIS, that will not work.
QGIS MS SQL provider happily uses internal SRS IDs from srs.db for SRIDs.
That should be probably modified to use GDAL's logic:
1. preferably use EPSG ID as SRID
2. if taken, find a safe SRID
2018-11-04 00:58:19 +01:00
Martin Dobias
30e584d7c7 [mssql] fix a bunch of strange bugs when connecting from linux
These include:
- fetching incomplete (corrupted) geometries
- fetching incomplete text data (e.g. WKT for CRS)

Also fixes a bug with empty attribute table for some ms sql layers
2018-11-04 00:53:50 +01: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
Harrissou Sant-anna
fd2a599778 More rendererv2 cleanup 2018-11-03 17:17:01 +01:00
Harrissou Sant-anna
a3db4e3098 Rename some rendererV2 ui files 2018-11-03 17:13:06 +01:00
Alessandro Pasotti
c962573c82 Make sure QgsFeatureSelectionDlg does not outgrow the window
Fixes #20338 - Can not scroll through attribute list in dialog window when linking existing child features
2018-11-03 15:27:38 +01: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
Rifa'i M. Hanif
6cb1b780d4 Merge remote-tracking branch 'upstream/master' 2018-11-03 05:17:27 +07: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