40798 Commits

Author SHA1 Message Date
Tim Sutton
0d092f9212 Python console (#4550)
* Use tabbed view for python console settings. Allow fonts larger that 15pt in console and python editor.

* Make the python console settings list look more like the C++ implemented settings dialogs.

* Use scroll areas in python console settings to prevent widget squashing

* Fix python console settings icons

* updating python console settings to be part of main QGIS settings

* Revert "updating python console settings to be part of main QGIS settings"

This reverts commit a811d7d7b184fece419f6610321a98f1acc9238f.
2017-08-05 23:45:11 +02:00
Andreas Neumann
736d732912 Merge pull request #4970 from andreasneumann/array_reverse
[FEATURE] expression function array_reverse
2017-08-05 23:09:23 +02:00
Juergen E. Fischer
0395225c41 INSTALL updates: MSVC builds, debian builds 2017-08-05 23:01:42 +02:00
Juergen E. Fischer
6ed389c8e8 fix translation string again and improve translation scripts (followup 79a095cb) 2017-08-05 23:01:42 +02:00
Juergen E. Fischer
4497c035ce package.cmd: don't exit parent when displaying usage 2017-08-05 23:01:42 +02:00
Andreas Neumann
303f9b7cdd [FEATURE] expression function array_reverse 2017-08-05 22:45:11 +02:00
Alessandro Pasotti
3a715dbb80 Renamed vars 2017-08-05 22:07:05 +02:00
Nyall Dawson
a5ddab6cc8 Merge pull request #4950 from nyalldawson/algs
Port some more algs to new API
2017-08-06 05:05:32 +10:00
Nyall Dawson
ca1abdc716 Merge pull request #4964 from arnaud-morvan/processing_delete_dialogs
[processing] Correctly delete processing dialogs
2017-08-06 05:05:13 +10:00
Mario Baranzini
2e2edd64c2 Fix qt qhash seed for QT >= 5.6.0 2017-08-05 17:01:24 +02:00
Alessandro Pasotti
acead27197 Add raster widget to data source manager dialog
Also:
- created source select widget for GDAL provider
- created source select widget for OGR provider
- added addVecorLayers signal to the base class
2017-08-05 16:38:33 +02:00
Nyall Dawson
470afbebbe Use correct file filters for processing vector/raster input selectors 2017-08-05 23:19:03 +10:00
Nyall Dawson
19fd3e8912 Merge pull request #4963 from Gustry/category
add category in QgsLayerMetadata using keywords
2017-08-05 22:12:37 +10:00
Nyall Dawson
d4ad063f45 Allow specifying a 'primary key' field when comparing layers for
processing tests

Some algorithms will return results in different orders, e.g.
due to the use of dicts or other methods which do not guarantee
a fixed return order.

Using a primary key to do the feature match allows us to flexibly
handle these situations and provide tests for these algorithms.
2017-08-05 22:10:18 +10:00
Alessandro Pasotti
8463ddba70 Source select signals: remove duplicate code and rely to the base class 2017-08-05 11:54:43 +02:00
Matthias Kuhn
0854e795d9 Protect postgis crs cache with mutex 2017-08-05 11:27:59 +02:00
Matthias Kuhn
8e200767ec Stay more responsive while scheduling preview jobs
Because starting 8 jobs on the main thread in a loop can lead to reduced
responsiveness.

The new approach is to start each job 10 ms after the scheduling the
last one.
2017-08-05 11:27:59 +02:00
Matthias Kuhn
29b8853046 [postgis] Cache unknown CRS information
CRS information is queried when setting up a new feature source. This
happens on the main thread (read: blocking). With this patch, at least
this only happens once per srid.
2017-08-05 11:27:59 +02:00
arnaud.morvan@camptocamp.com
a3bd321baf Remove invisible layers from legend
Do not show invisible layers in composer legend.
Useful for raster layers as QgsMapHitTest only take care of vector layers.
Related with #14194
Related with #11641
2017-08-05 11:23:04 +02:00
Nyall Dawson
6aa672d9e0 Fix typo in gridify alg 2017-08-05 17:51:38 +10:00
Nyall Dawson
b93be39c24 Port Stats by Category to new API
Improvements:
- keep original field type and name for category field
- add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
adda744576 Port Join Attributes alg to new API
Improvements:
- don't fetch unused geometry for joined table
2017-08-05 17:51:38 +10:00
Nyall Dawson
572dadab01 Remember window geometry in multi input dialogs 2017-08-05 17:51:38 +10:00
Nyall Dawson
a1f487d679 Add alternate reference layer for points to path algorithm 2017-08-05 17:51:38 +10:00
Nyall Dawson
c2559d8273 Add second reference layer for topocolor algorithm 2017-08-05 17:51:38 +10:00
Nyall Dawson
9968962ab9 Allow specifying multiple possible vector layer results for processing
tests

Some algorithms are non-deterministic and the results may vary from
run to run. In this case we allow specifying multiple possible valid
results, and the test will pass if the result layer matches any of these.
2017-08-05 17:51:38 +10:00
Nyall Dawson
e8d667cac3 Allow testing of layer equality without throwing asserts
Sometimes in tests it's required to check for layer equality without
aborting in case of mismatches
2017-08-05 17:51:38 +10:00
Nyall Dawson
5d635d190d Allow list of acceptable raster hashes for processing algorithm tests
Differences in gdal libraries mean the hash value may differ between
platforms. Allow multiple acceptable hashes to be listed for
expected test results
2017-08-05 17:51:38 +10:00
Nyall Dawson
03bae593bb Port Eliminate Selection to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
7132faa974 Port Topocolor algorithm to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
ec4df6c019 Port points to path to new API
Improvements:
- Maintain Z/M values
- Keep original data type for group/order fields
- Group field is optional
- Added unit tests
- Don't export text files for features by default
2017-08-05 17:51:38 +10:00
Nyall Dawson
b4b39996d2 Port hub lines algorithm to new API
Improvements:
- transparent reprojection to match hub/spoke CRS
- keep all attributes from matched hub/spoke features
- don't break after matching one hub point to spoke - instead
join ALL hub/spoke points with matching id values
2017-08-05 17:51:38 +10:00
Nyall Dawson
e0354456e3 Port Hub Distance (lines) to new API
Improvements:
 - handle different CRS between points and hubs
 - add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
fc1746e770 Port Hub Distance (points) to new API
Improvements:
- handle different CRS between points and hubs
- add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
0930e18bf9 Add tests for gridify 2017-08-05 17:51:38 +10:00
Nyall Dawson
591de92b07 Port gridify to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
54be720485 Port grid lines to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
7ab82444f1 Port random selection algorithms to new API
And heavily optimise random selection within subsets alg
2017-08-05 17:51:38 +10:00
Nyall Dawson
a64d199e6f [processing] If an error occurs while running an algorith, always
keep the algorithm dialog open after execution

Otherwise it's hard to see the error - you have to know to check
the python log. Keeping the dialog open at the log makes the
error immediately visible to the user
2017-08-05 17:51:38 +10:00
Nyall Dawson
16629b406b Register QgsFeatureIds metatype
Fixes warnings when using signals which use this type, like
QgsVectorLayer::selectionChanged
2017-08-05 17:51:38 +10:00
arnaud.morvan@camptocamp.com
40ccd3bcb3 [processing] Correctly delete processing dialogs
del only delete the python variable, not the dialog which is owned by the main window.
2017-08-05 09:31:40 +02:00
Etienne Trimaille
5100d85c49 add category in QgsLayerMetadata using keywords 2017-08-05 09:12:48 +02:00
Juergen E. Fischer
b0c29dab77 update oracle selection dialog (followup dc6017dc1) 2017-08-05 08:59:25 +02:00
Alessandro Pasotti
04059ebccf Merge pull request #4962 from boundlessgeo/unified-layer-dialog-mods
Unified layer dialog mods
2017-08-04 23:03:51 +02:00
Denis Rouzaud
5e2b17af9f Update .agignore 2017-08-04 23:03:04 +02:00
Nyall Dawson
bf7abdea76 Followup 69a25d 2017-08-05 06:53:19 +10:00
Nyall Dawson
79a095cb69 Revert "translation string fix"
Causes 'AlgorithmDialog' object has no attribute 'trUtf8' error when
trying to launch processing algorithms
2017-08-05 06:50:52 +10:00
Nyall Dawson
69a25d0f43 Add initial test suite for processing algorithm dialog 2017-08-05 06:48:23 +10:00
Alessandro Pasotti
fef3bc099d Renamed button slots and make ogr dialog inherit from the abstract base 2017-08-04 22:06:07 +02:00
Alessandro Pasotti
34ef954edc Merge pull request #4956 from jgrocha/profilemenu
Fix #16970 (related to PR#4184)
2017-08-04 21:32:44 +02:00