38701 Commits

Author SHA1 Message Date
Nyall Dawson
cbc2a3df64 Indentation 2017-05-15 09:15:09 +10:00
Nyall Dawson
6971e9da23 Fix build 2017-05-15 09:15:09 +10:00
Matthias Kuhn
d1593caed7 Create a virtual QgsNative base class for platform services
A QgsNative base class is added, that offers default implementations for
a platform interface. These methods can be overridded for the current
platform at compile time to allow specialized handling for integration
with the current system.
2017-05-15 09:15:09 +10:00
Larry Shaffer
f6bd7b3b58 Add OS native interface lib, with objective-c++ interface to Mac Cocoa libraries 2017-05-15 09:15:09 +10:00
Nyall Dawson
f8f7d60cf0 Merge pull request #4514 from nyalldawson/gui_instance
Make a new global QgsGui singleton
2017-05-15 09:03:55 +10:00
Nyall Dawson
c3c694f8cc Port algorithm countVisibleParameters to c++ 2017-05-15 08:44:28 +10:00
Nyall Dawson
a8b10a2fd9 Update indentation 2017-05-15 07:57:57 +10:00
Nyall Dawson
14882058ba Sipify update 2017-05-15 07:34:14 +10:00
Nyall Dawson
ac94345331 Rename QgisGui to QgsGuiUtils
Better reflects what this namespace contains, and replaces the
non-standard Qgis prefix with the Qgs standard
2017-05-15 07:33:52 +10:00
Nyall Dawson
436844b205 QgsMapLayerActionRegistry is no longer a singleton
Moved the global instance to QgsGui::QgsMapLayerActionRegistry()
2017-05-15 07:32:38 +10:00
Nyall Dawson
a86b93e957 QgsLayerTreeEmbeddedWidgetRegistry is no longer a singleton
Moved the global instance to QgsGui::layerTreeEmbeddedWidgetRegistry()
2017-05-15 07:32:01 +10:00
Nyall Dawson
711f6dcc50 QgsShortcutsManager is no longer a singleton
Move the global instance to QgsGui::shortcutsManager()
2017-05-15 07:32:01 +10:00
Nyall Dawson
4a5c9a7ba3 Make a new global QgsGui singleton
Move QgsEditorWidgetRegistry from being a singleton itself to
instead being a member of the QgsGui singleton
2017-05-15 07:32:01 +10:00
Nyall Dawson
280ca31972 Merge pull request #4401 from nyalldawson/processing_params
c++ framework for parameters and running algorithms
2017-05-15 07:08:07 +10:00
Tim Sutton
7af73b3881 Change browser context menu item text for adding layer to 'Add select… (#4459)
* Change browser context menu item text for adding layer to 'Add selected layer(s) to canvas'

* Use title case for Add Selected Layer(s) to Canvas browser context menu text
2017-05-14 18:07:09 +03:00
Martin Dobias
24e06a4941 Remove unused mAnnotationForm member + getter/setter from QgsVectorLayer 2017-05-14 17:41:14 +08:00
Mathieu Pellerin
33b6fab131 Fix crash when saving as PDF with dpi != 96 2017-05-14 11:00:00 +07:00
Martin Dobias
0ccaba7a70 Path resolver instead of project singleton in edit form config and svg annotation 2017-05-14 10:34:01 +08:00
Martin Dobias
2857ef59dc Merge pull request #4426 from wonder-sk/fix-relative-paths-svg
Fix relative paths to SVG files in embedded projects
2017-05-14 09:24:33 +08:00
Martin Dobias
590526ee32 Another trial to fix mac tests on travis 2017-05-14 00:33:57 +08:00
Mathieu Pellerin
93c59f4e25 [raster] fix raster blending (fixes #16546) 2017-05-13 22:19:35 +07:00
Martin Dobias
40f683d64f Trying to fix mac test for QgsProject 2017-05-13 23:16:58 +08:00
Martin Dobias
a4717e2e6d Fixes to relative paths read/write in composer picture and arrow items 2017-05-13 22:55:03 +08:00
Martin Dobias
dfcfadc70a Fix build and add bits to project test to understand fail on mac 2017-05-13 22:12:16 +08:00
Martin Dobias
8dd58864f2 Bring back temporarily disabled projects upgrade + fix a loading bug
Loading bug: on the first project load, data-defined properties for diagram layer settings were not read
as the default constructor did not populate the list of data-defined property definitions.
2017-05-13 21:44:30 +08:00
Martin Dobias
93bfa94942 Add doxygen comments to updated methods 2017-05-13 20:06:38 +08:00
Martin Dobias
bbb13f4338 Fix text renderer test 2017-05-13 19:53:11 +08:00
Martin Dobias
c882f88c1d Remove "relative path" checkbox from svg selector widget
It is decided on different level whether files are saved with relative paths
and internally now QGIS always uses absolute paths to SVG files.
2017-05-13 19:43:47 +08:00
Martin Dobias
5bdae75156 API break update + read/write context in labeling and text renderer
This enables correct loading/saving of relative paths of SVG files for background of labels
2017-05-13 18:12:04 +08:00
Martin Dobias
23a7bd0fd9 Introduce QgsReadWriteContext that encapsulates QgsPathResolver
This should make the read/write methods more flexible if we need to give them extra context.
2017-05-13 18:09:26 +08:00
Martin Dobias
15fc16df6a Remove duplicate code - now handled by QgsPathResolver 2017-05-13 18:02:58 +08:00
Martin Dobias
bbe59969b7 Fixes to unit tests 2017-05-13 18:02:58 +08:00
Martin Dobias
3e18cc15f8 Respect relative paths in embedded projects (fixes #16355) 2017-05-13 18:02:58 +08:00
Martin Dobias
8ffd91ea90 Propagate path resolver through renderers, annotations, diagrams
This is necessary in order to be able to correctly translate between absolute and relative paths
deeper in the code - e.g. paths to SVG files used in marker or fill symbols.

Until now, relative paths were translated to absolute paths on the fly.
This is now changed - paths to files should be always absolute within QGIS objects - and paths
only get turned into relative when saving projects. When loading a project, relative paths
are translated to absolute paths immediately.

This should lower the overall confusion about relative/absolute paths within QGIS, and also
allow having different base directories for relative paths (e.g. QML or QPT files may use relative paths
to their directory - rather than to the project directory)
2017-05-13 18:02:19 +08:00
Alexander Bruy
6fe459de14 [processing] remove extra quotes when restoring batch process from file
(fix #16309)
2017-05-13 11:14:17 +03:00
lbartoletti
bc0c3a22b0 Add inclination method for QgsPointV2 (#4536) 2017-05-13 17:29:50 +10:00
Alexander Bruy
c620c7c306 [processing] stop algorithm execution if geometry/feature error occured
(fix #11986)
2017-05-13 09:45:37 +03:00
Mathieu Pellerin
75e95024f4 Deduplicate code in save as image / save as PDF 2017-05-13 11:01:28 +07:00
Alexander Bruy
e01b7ef60a [processing] take in account file extension when loading Processing
results (fix #16486)
2017-05-12 17:28:41 +03:00
Alessandro Pasotti
3f9c4e5fa7 Merge pull request #4535 from boundlessgeo/attributetable-fixes-16492
Attributetable fixes  crash #16492
2017-05-12 14:51:28 +02:00
Alessandro Pasotti
51347914b9 Only check for validity if attribute has changed 2017-05-12 12:50:51 +02:00
Matthias Kuhn
a0c6872f6c Fix crash when using expression bar on aliased field
Fix #16302
2017-05-12 12:41:39 +02:00
nirvn
cc7e960e70 Force vector output when saving map/canvas as PDF 2017-05-12 16:38:27 +07:00
Matthias Kuhn
f9842426dc Improve stability of QgsTask::waitForFinished test 2017-05-12 10:51:13 +02:00
Mathieu Pellerin
418084698d Display name of layers in need of rasterization when saving as PDF (#4539) 2017-05-12 15:21:10 +07:00
Juergen E. Fischer
ad5054bfd9 sip update qgsfeature 2017-05-12 09:53:47 +02:00
Alessandro Pasotti
1eaf03d3b4 Speed up the check for valid feature 2017-05-12 08:53:27 +02:00
Juergen E. Fischer
6e3e8ce4c8 Fix windows warning
...\qt5\include\qtcore\qcache.h(124): warning C4150: deletion of pointer to incomplete type 'QDomDocument'; no destructor called
.../server/qgsconfigcache.h(34): note: see declaration of 'QDomDocument'
...\qt5\include\qtcore\qcache.h(124): note: while compiling class template member function 'void QCache<QString,QDomDocument>::clear(void)'
2017-05-12 08:35:05 +02:00
Juergen E. Fischer
9ddd28dd81 Fix windows build
undefined error C2079: 'QMapNode<Key,T>::value' uses undefined class 'QgsGeometry'
2017-05-12 08:14:36 +02:00
Mathieu Pellerin
0e65077216 Small save as PDF cleanups 2017-05-12 11:53:53 +07:00