12043 Commits

Author SHA1 Message Date
Alexander Bruy
862b1139fa [processing] move script provider stuff into provider directory 2018-02-05 08:49:29 +02:00
Alexander Bruy
6841c52210
Merge pull request #6257 from alexbruy/processing-sharing
[processing][needs-docs] remove Get scripts and models functionality
2018-02-05 08:48:00 +02:00
Nyall Dawson
345dd0c376 [layouts] Fix items disappear in designer with 90 or 270 degree
rotation

Caused by Qt bug 66185

Fixes #18027
2018-02-05 12:36:18 +11:00
Nyall Dawson
5ba69ea945 [processing] Fix invalid parameter definitions for spatialite algs 2018-02-05 10:11:03 +10:00
Alexander Bruy
87e55ba3c7 [processing] remove Get scripts and models functionality
Users should use Resource Sharing plugin instead
2018-02-04 11:11:47 +02:00
Denis Rouzaud
1a117cf080 fix doxygen 2018-02-03 15:52:33 -09:00
Denis Rouzaud
70f9c228d7 [options search] API refactoring
* avoid using lambdas and use dedicate class and subclasses for each widget type (lable, groupbox, tree, etc)
* this makes the code much more clearer
* allow creating custom highlight widgets with API
2018-02-03 15:52:33 -09:00
Martin Dobias
4b365a8f47 pyqgis: add conversion to subclasses for QgsAbstractVectorLayerLabeling 2018-02-03 22:30:00 +01:00
Salvatore Larosa
68b7bf6aa8 [dbmanager] porting of dae921c to 3: fixes #16476 2018-02-03 10:53:55 +01:00
Jürgen Fischer
ad21d371b8
Merge pull request #6213 from nyalldawson/interrupt_console
[console] Allow breaking execution of scripts via Ctrl-C
2018-02-02 17:02:53 +01:00
Alessandro Pasotti
5c5ef3b6de
Merge pull request #6246 from elpaso/rangeformatter
[bugfix] Range formatter for doubles and ints
2018-02-02 14:25:28 +01:00
Nyall Dawson
536c586968 Style fixes 2018-02-02 19:52:01 +11:00
Nyall Dawson
7761360976 Fix clazy invalid slot warning 2018-02-02 19:52:01 +11:00
Nyall Dawson
2682a74a1b Fix clazy pass big type by ref, small by value warnings 2018-02-02 19:52:01 +11:00
Nyall Dawson
f0b14c56f9 Fix clazy overridden signal warnings 2018-02-02 19:52:01 +11:00
Nyall Dawson
a08c05b20c Fix clazy fully-qualified-moc-types warnings
From the clazy docs:

"Warns when a signal, slot or invokable declaration is not using fully-qualified
type names, which will break old-style connects and interacting with QML."
2018-02-02 19:52:01 +11:00
Alessandro Pasotti
bbf621411a Add method to set line edit alignment in Qgs(Double)SpinBox 2018-02-02 08:12:12 +01:00
Alessandro Pasotti
287f82286b Add QgsRangeFieldFormatter to bindings 2018-02-02 08:10:54 +01:00
Salvatore Larosa
5b9be7a966 apply enableAutoGeometryRestore to feature form dialog 2018-02-01 23:30:35 +01:00
Alessandro Pasotti
0eeea76292
Merge pull request #6237 from elpaso/commas-dots-fieldvalidator
[bugfix][attrtable] Convert comma to dot for floating point input
2018-02-01 07:53:23 +01:00
Alexander Bruy
55759a4cee [processing] remove unused icons and use SVG icon for Heatmap algorithm 2018-02-01 07:22:12 +02:00
Alexander Bruy
3ab6e5c399
Merge pull request #6238 from alexbruy/saga-icon
[processing] SVG icon for SAGA provider
2018-02-01 07:18:01 +02:00
nirvn
1ac6792678 add transform context to the map overview 2018-02-01 09:11:45 +07:00
Nyall Dawson
216821c0b1 [processing] Warn on duplicate output and provider registration
And fix associated memory leaks
2018-02-01 13:02:59 +11:00
Nyall Dawson
2218f653ca [processing][grass] Remove duplicate parameter from r.stats 2018-02-01 07:53:54 +11:00
Nyall Dawson
5896fb3305 [processing][grass] Fix incorrect name for i.albedo parameter 2018-02-01 07:53:54 +11:00
Nyall Dawson
fc68bb25d7 [processing] Allow case-different duplicate parameter names
But always prefer case-exact matches for parameter names. Turns
out the grass provider requires use of parameters with the same
name but different case, so we need to be able to handle this.
2018-02-01 07:53:54 +11:00
Alexander Bruy
c3fc560fef [processing] SVG icon for SAGA provider 2018-01-31 16:14:32 +02:00
Alessandro Pasotti
cc1625c83e [bugfix][attrtable] Convert comma to dot for floating point input
This fixes an unreported bug that without detecting an
invalid input when using a comma as a decimal separator
silently converts the entered value to NULL.

Since locale support in QGIS is in its early stages
we convert commas to dots within the validator,
this is common practice in almost all web applications
where you can enter a comma instead of a dot and
the conversion appears while you digit.

This comes with brand new tests for QgsFieldValidator.

Bonus: small fix in sipify.
2018-01-31 12:50:14 +01:00
Harrissou Sant-anna
91a80759bf Fully replace node* by vertex* 2018-01-31 04:51:20 +01:00
Nyall Dawson
67f2649315 Set default snapping tolerance to 15 pixels
Because 0 meter default is bad UX. Also update global_settings
ini with snapping settings.
2018-01-30 18:31:02 +11:00
Mathieu Pellerin
eb42afed9b
add trandform context to QgsBearingUtils::bearingTrueNorth 2018-01-30 13:26:36 +07:00
Nyall Dawson
77e54d3502 [console] Make console action checkable, and bring behaviour into
line with style dock/processing toolbox

Where the action is checked only if the dock is open and user visible,
and checking the action brings hidden tabs to the foreground instead
of closing them.
2018-01-30 14:33:06 +11:00
Nyall Dawson
eba7e7b8b4 Fix QgsRasterFileWriter::driverForExtension and extensionsForFormat
were skipping non-creatable datasets

And indicate in the docs that read-only datasets are also considered
2018-01-30 12:19:28 +11:00
Nyall Dawson
f6269c41da [console] Allow breaking execution of scripts via Ctrl-C
This allows (in some circumstances) scripts running in the console
to be halted via the Ctrl (or Meta) + C shortcut.

(It's only possible to catch and abort when the script is printing
outputs to the console - because this triggers
QCoreApplication.processEvents() calls. Without these calls the
whole QGIS application is unresponsive during script execution
and there's no ability to even catch a shortcut in order to
halt the execution.

Still, even with this limitation it's handy to be able to
break out of lengthy:

for f in iface.activeLayer().getFeatures():
    print(f.attributes())

loops!)
2018-01-30 09:58:31 +10:00
Nyall Dawson
878fb951a8 Simplify and optimise python list->QgsAttributes conversion 2018-01-30 06:15:51 +11:00
Alexander Bruy
c10438e68a [processing] add missed parameter to warp algorithm 2018-01-29 18:48:08 +02:00
Mathieu Pellerin
e0c12d519f
[processing] nodes -> vertices algorithm renaming
- "Extract nodes" renamed to "Extract vertices"
- "Extract specific nodes" renamed to "Extract specific vertices"
2018-01-29 19:16:43 +07:00
Nyall Dawson
da4d937758 Correctly resolve paths for raster image fill symbol layers 2018-01-29 20:51:36 +11:00
Nyall Dawson
ec224117de Expose project QgsPathResolver to render context
So that it can be used when resolving paths to data defined
file-based settings, e.g. svg marker paths.

Fixes #17364
2018-01-29 20:51:36 +11:00
pcav
5b8bea74a6 Merge branch 'master' of github.com:qgis/QGIS 2018-01-29 10:19:13 +01:00
pcav
3b39dcf401 Changed in in DB Manager 2018-01-29 10:18:52 +01:00
Blottiere Paul
aec399e785
Merge pull request #6142 from pblottiere/bugfix_transaction_constraints
Update all attributes in a single transaction
2018-01-29 08:19:16 +00:00
nirvn
51c5805e13 [raster] don't auto-classify upon customizing values tree (fixes #17102) 2018-01-29 14:56:44 +07:00
Blottiere Paul
e24b6bb119 Update sip binding 2018-01-29 07:17:33 +00:00
Blottiere Paul
c1fac42518 Update all attributes in a single transaction
Fixes #17869
2018-01-29 07:17:32 +00:00
Salvatore Larosa
77163ba0ec [processing] fix toggle advanced mode button in batch panel (#6193) 2018-01-29 08:12:30 +01:00
Nyall Dawson
a05d941e4e [processing] Default to allowing background execution of algorithms
Since the underlying issues with the Python bindings are now fixed,
in most cases we can safely default to allowing an algorithm to
run in a background thread!!

So now we make this the default, and require individual algorithms
which are NOT thread safe to declare this. This includes algorithms
which directly manipulate the current project or layers (such as
setting layer styles), alter the selections in layers, or which
rely on 3rd party libraries (for now, SAGA and GRASS algorithms
are marked as not thread safe... TODO - someone more familiar with
these libraries can investigate and remove the flag if appropriate).

Also models are marked as non-thread safe. TODO: only flag an
individual model as thread-unsafe if any of its child algorithms
report this flag.
2018-01-29 17:37:05 +11:00
Nyall Dawson
0f963dfadf [processing] Default to supporting non-file based outputs for providers
And make this support opt-out, since the vast majority of providers
are based on QGIS API and don't have external dependencies which would
restrict use of memory layers/etc.

Plus, I'd rather see non-compliant providers expose this support when
they can't use non-file-based-outputs (and make this the bug which
needs fixing) then have to rely on plugin providers to discover and
explicitly expose this support.
2018-01-29 13:14:06 +10:00
Nyall Dawson
f9a8161733 Fix some leaks and errors in sip conversions 2018-01-29 08:47:25 +11:00