45460 Commits

Author SHA1 Message Date
nirvn
6d5dce22f6 [processing] properly size toolbar button for provider actions 2018-01-26 13:11:24 +07:00
Salvatore Larosa
f4f89bbcbe [processing] resurrects matrix parameter 2018-01-25 21:54:22 +01:00
Werner Macho
dc564fb2d0
Merge pull request #6175 from zsiki/master
Hungarian translators list extended
2018-01-25 19:33:04 +01:00
Zoltan Siki
e77658fc2e
Hungarian translators list extended 2018-01-25 19:27:11 +01:00
Sandro Mani
8b682dad1a
Merge pull request #6172 from manisandro/master
[Globe] Adapt for API changes
2018-01-25 14:21:02 +01:00
Sandro Mani
0d1ef01850 [Globe] Adapt for API changes 2018-01-25 13:24:27 +01:00
Denis Rouzaud
6424ceb113 [options search] move Message bar items check to QgsSearchHighlightOptionWidget constructor 2018-01-25 03:19:58 -09:00
Denis Rouzaud
3b143805d8 [options search] use lambda method to search text in widgets 2018-01-25 03:19:58 -09:00
Mathieu Pellerin
34c2d32b3e
[processing] add actions when provider is registered / activated 2018-01-25 16:16:44 +07:00
Alessandro Pasotti
7ee4bb70e7
Merge pull request #6162 from elpaso/bugfix-17263-clip-double-show
[bugfix] Fixes Clip features to canvas extent displayed twice
2018-01-25 08:46:07 +01:00
Alessandro Pasotti
30043dbeb8
Merge pull request #6163 from elpaso/bugfix-17927-themes-group-visibility
[bugfix] Ensure parent group visibility when apply theme
2018-01-25 08:45:32 +01:00
Nyall Dawson
f0e01d81f0 Fix crash 2018-01-25 15:47:42 +11:00
Nyall Dawson
bf19eb6f35 [processing] Non-filed based outputs (e.g. postgis, geopackage)
options should be available for certain model outputs and script
algorithm outputs

We do this by swapping the test for non-file based output support
from checking only the algorithm's provider to instead checking
on a parameter-by-parameter basis.

This is done in order to support models. For models, depending
on what child algorithm a model output is based off, an individual
model may or may not have support for non-file based outputs. E.g
a model may generate outputs from a native qgis alg (supporting
these outputs) AND an output from a GDAL alg (with no support
for these outputs). In this case we need to enable or disable
the ui controls for non-file based outputs on an individual
output basis.

For scripts (for now) we blindly just say all outputs support
non-file based formats. This is going to be the case most of
the time, since scripts will usually be written using PyQGIS
API. For the exceptions (e.g. scripts which call other algs
like GDAL algs) we probably should add some way for the script
to indicate whether an individual output supports this, but
for now we just say they all do.

Fixes #17949
2018-01-25 15:47:42 +11:00
Nyall Dawson
723e0a1e73 Make saving ogr layers less debug noisy 2018-01-25 15:47:42 +11:00
Andrea Giudiceandrea
c91e33d332 Fixes a typo in syncDb()
Fixes a typo in QgsCoordinateReferenceSystem::syncDb() that improperly set "Imported from GDAL" as name for all geographical coordinate systems imported from GDAL/PROJ definitions during postintall CRS database synch.

Fixes #17941
2018-01-25 10:37:54 +10:00
Nyall Dawson
975ef8e899 Show field type in tooltip in attribute table header 2018-01-25 11:35:54 +11:00
Nyall Dawson
b91b9f6a6f Fix relation table shows some cells disabled (when they should
be enabled, but just not editable)
2018-01-25 09:52:26 +11:00
Nyall Dawson
237455a78f Use same relation parent/child order in list as in new relation dialog
Fixes #17939
2018-01-25 09:52:26 +11:00
Juergen E. Fischer
717a0f541f fix layer tooltip display 2018-01-24 22:58:30 +01:00
Alessandro Pasotti
b64444720c [bugfix] Ensure parent group visibility when apply theme
Fixes #17927  Group Layers not activating when Theme is selected.
2018-01-24 19:36:27 +01:00
Juergen E. Fischer
8c96eec25e fix detection of 2.x project crs (followup f2b5a595) 2018-01-24 19:15:25 +01:00
Alessandro Pasotti
37cd401e48 [bugfix] Fixes Clip features to canvas extent displayed twice
Fixes #17263
2018-01-24 19:04:15 +01:00
Mathieu Pellerin
cf35affedc
remove risky qApp->processEvents() call (#6161) 2018-01-24 23:29:33 +07:00
Denis Rouzaud
711eddcf8a [options search] correctly remove event filter 2018-01-24 04:24:49 -09:00
Denis Rouzaud
0e7cea2244 QgsGeometryUtils: rename 2 methods
- projPointOnSegment has been renamed to projectPointOnSegment
- getSelfIntersections has been renamed to selfIntersections
2018-01-24 03:38:59 -09:00
nirvn
5f5f1f9c05 [processing] don't modify output filename in build virtual raster 2018-01-24 18:18:32 +07:00
nirvn
746701bf33 [processing] add default extension to empty filter when available 2018-01-24 18:18:32 +07:00
Etienne Trimaille
c871e84e36 update XSD and XML according to #36bf093 2018-01-24 21:28:46 +11:00
Nyall Dawson
36bf093b85 Fix metadata address element doubles with each project write
elementsByTagName can be dangerous, because it returns children
recursively. In this case the contact "address" element contained
a child element for the street address, also named "address".

So when restoring a project with contact addresses in the metadata,
each address was created twice...

Fixes #17940
2018-01-24 19:59:10 +11:00
Alessandro Pasotti
5812934c69 [bugfix] Fix crash on bad raster layers, fixes #17938 2018-01-24 09:44:06 +01:00
Nyall Dawson
097a437af8 [processing] Fix missing outputs in modeler for grass algs (fixes #17703) 2018-01-24 19:00:58 +11:00
Nyall Dawson
4e6aa3c359 [processing] Fix error on win when grass path isn't set correctly 2018-01-24 19:00:58 +11:00
Nyall Dawson
2013725793 Fix gui handling of NULL/None default values in processing script algorithms 2018-01-24 17:54:47 +11:00
Nyall Dawson
be959628e5 Fix crashes in layout manager tests 2018-01-24 17:50:31 +11:00
Nyall Dawson
b8880d46cd [layouts] Handle duplicated composer names when upgrading 2.x
projects

Somehow 2.x projects could end up with compositions with duplicate
names. This is strictly forbidden in 3.x, so we autogenerate a
new unique name if we encounter any duplicate composer names when
upgrading a 2.x project.

Fixes #17924
2018-01-24 17:50:31 +11:00
Nyall Dawson
c1f0657036 Fix leak when a layout cannot be added 2018-01-24 17:50:31 +11:00
Nyall Dawson
6eed7dea05 [layouts] Fix remaining composers are not restored after hitting
a composer which could not be added

Refs #17924
2018-01-24 17:50:31 +11:00
Alessandro Pasotti
d3baac6e72
Merge pull request #6145 from elpaso/bugfix-17872-wfs2-typenames
[bugfix][wfs] Expand support for 2.0.0 TYPENAMES
2018-01-24 07:48:28 +01:00
Mathieu Pellerin
c5d9830db2
[needs-docs][processing] move providers actions into the processing
panel toolbar (#6150)
2018-01-24 13:24:44 +07:00
Alexander Bruy
5dc8c3f0a2
Merge pull request #6141 from alexbruy/processing-gdal
[processing] restore GDAL rasterize algorithm
2018-01-24 08:16:01 +02:00
Nyall Dawson
54f9846eda Fix executing processing scripts through script editor 2018-01-24 15:53:33 +11:00
Denis Rouzaud
0cc29569f5 reformulate doxymentation 2018-01-23 21:28:00 -04:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11:00
Nyall Dawson
c41b2dd11c Don't re-register an already registered action in QgsShortcutsManager
Avoids incorrect warnings about duplicate shortcuts on startup.

What's happening here is:
- on QGIS startup, plugins are loaded, adding their actions to
the interface via iface.registerMainWindowAction()
- after ALL plugins and qgis native menus and actions are created,
the shortcut manager registers ALL children from the main window.
This includes the actions and widgets created by plugins, which
have already been registered to the manager.
- There's no way to avoid this duplicate registration - we could
move the child shortcut registration to occur before plugin
initialization, but it's actually nice to have this "catch-all"
occur after plugins are loaded (so that plugins which don't
correctly register actions still have them included in the shortcut
manager). Similarly, plugins MUST use the registerMainWindowAction
call instead of just relying on the Qt QAction.setShortcut method
because otherwise the shortcuts manager is unaware of actions
created after QGIS load - e.g. enabling a plugin after startup.

So we avoid this by just refusing to re-register a shortcut
that the manager is already aware of... no more startup warnings!
2018-01-24 11:38:07 +11:00
Nyall Dawson
63db1be890 [processing] Improve main window Toolbox action
Brings the behaviour into line with the styling dock, where
the action is checkable and checked only when the toolbox
is open AND user visible (i.e. not hidden behind another tab). If
the toolbox is open but hidden, then hitting the Toolbox action
brings it to the front tab.

Otherwise it's often necessary to hit to Toolbox shortcut twice -
once to close a hidden toolbox tab, and a second time to open
and raise it.
2018-01-24 11:38:07 +11:00
Nyall Dawson
e5d00a26ab
Merge pull request #6147 from slarosa/processing_toolbar
[processing][needs-docs] add toolbar to processing toolbox
2018-01-24 11:35:39 +11:00
Denis Rouzaud
6a2a626926 move QgsCadUtils::lineCircleIntersection to QgsGeometryUtils
also add a test
2018-01-23 15:01:10 -09:00
Salvatore Larosa
b49c3964bb [processing] set icon size to toolbar 2018-01-23 23:39:02 +01:00
Salvatore Larosa
36768aad88 [processing] change icon for options action in toolbar 2018-01-23 23:16:01 +01:00
Salvatore Larosa
eb8a810ddf [processing] followup: 9c400324e2 - restore ellipses in menu actions 2018-01-23 23:13:13 +01:00