31999 Commits

Author SHA1 Message Date
Nyall Dawson
8948607f7d Followup 31d7be
Tweak some API and docs, and fix overlapping UI widgets
2016-04-05 22:13:16 +10:00
Nyall Dawson
fe54a78d60 Merge pull request #2974 from nirvn/diagram_line_unit
[diagram] add unit type setting for outlines (fixes #14614)
2016-04-05 21:56:50 +10:00
Nyall Dawson
410a43814b Allow relative links in composer labels
Allow relative links in composer labels
2016-04-05 21:37:46 +10:00
Matthias Kuhn
f6838032fa QgsMaplayerRegistry function to get only vector or raster layers 2016-04-05 13:19:54 +02:00
Nyall Dawson
c58a198b09 Simplify some editor widget parenting 2016-04-05 20:39:03 +10:00
Nyall Dawson
0c161950a9 Various fixes for photo editor and external resource widgets
- Clear picture when changing from a feature with a picture to
a feature with no picture set
- Don't try to load "NULL" as a filename
- Fix calculation of widget size so that widget can collapse
its size to nothing when it doesn't have a picture set
- Avoid incorrect scaling and cropping of pictures
2016-04-05 20:24:36 +10:00
Nyall Dawson
e571885ef1 UX improvements to photo, web view and external resource widget config
- Better explanatory text
- Change '0' values to 'Auto'
- Ad 'px' suffix to values
- Allow resetting sizes to Auto with clear button
2016-04-05 20:24:36 +10:00
Nyall Dawson
bcb2c736d5 Make sure QgsFileWidget emits fileChanged when value is cleared
Fixes external resource widget not updating document display
when link is cleared.
2016-04-05 20:24:36 +10:00
Juergen E. Fischer
73572680c0 make wfs/ogc error message translatable 2016-04-05 11:32:28 +02:00
Juergen E. Fischer
10a26e6acd don't crash when reply is destroyed while it's waiting for credentials to be entered 2016-04-05 11:25:39 +02:00
Nyall Dawson
acb9281956 Add missing binding 2016-04-05 18:23:11 +10:00
nirvn
dc5d7ab985 [diagram] make use of unit widget for diagram size 2016-04-05 15:21:54 +07:00
volaya
673a86040d [processing] extended 'menus' section in options, to allow adding buttons 2016-04-05 09:55:42 +02:00
volaya
5131e93e1f [processing] extra checks to avoid issues with previous versions values 2016-04-05 09:55:41 +02:00
Matthias Kuhn
1eb87e5f6f Cleanup ValueRelation widget 2016-04-05 09:13:00 +02:00
nirvn
31d7be4034 [diagram] add unit type setting for outlines (fixes #14614) 2016-04-05 13:49:46 +07:00
Nyall Dawson
22f1a1dee7 Implement QgsEditorWidgetWrapper::showIndeterminateState() for setting
editor widgets into an indeterminant "unknown value" state

Works for all editor widgets except date time, range and uuid widgets.
2016-04-05 13:06:25 +10:00
Nyall Dawson
16274d555b Fix missing docs 2016-04-05 13:05:30 +10:00
Nyall Dawson
ca642e44ff Add easy methods for temporarily blocking signals
- QgsSignalBlocker: RAII signal blocking class. Used for temporarily
  blocking signals from a QObject for the lifetime of QgsSignalBlocker
  object.

- easy shortcut "whileBlocking( QObject* )" function. Temporarily
  blocks signals from a QObject while calling a single method from the
  object.

  Usage:
    whileBlocking( checkBox )->setChecked( true );
    whileBlocking( spinBox )->setValue( 50 );

  No signals will be emitted when calling these methods.

based on Boojum's code from
http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
2016-04-05 10:50:42 +10:00
Nyall Dawson
882f6f8c3c [symbology] Add some more dispersed marker symbols (half/quarter squares) 2016-04-05 09:28:55 +10:00
Nyall Dawson
ad16fb4790 Show simple marker symbol name in tooltip 2016-04-05 09:15:52 +10:00
Blottiere Paul
dae423d30f fix polyline rendering when layer draws effects (fix #14611) 2016-04-05 07:22:49 +10:00
Juergen E. Fischer
f968f994ea debian packaging: no internal future only stretch sid wily xenial
(fixes #14577)
2016-04-04 20:40:32 +02:00
Denis Rouzaud
ec01f679ed Merge pull request #2971 from DelazJ/patch-9
typo fix
2016-04-04 16:44:23 +02:00
Harrissou Sant-anna
14c7900e1a typo fix 2016-04-04 16:26:13 +02:00
Mathieu Pellerin
2adfbb078a [symbology] add semicircle, third, quarter circles to simple markers 2016-04-04 20:09:02 +10:00
Nyall Dawson
f6431ff3ed Fix artifacts on simple marker "arrowhead" symbol, allow symbol to
work correctly with join modes
2016-04-04 20:07:34 +10:00
Matthias Kuhn
d1c79d817c [feature] allow generating default values on postgres just in time
The expression used to generate default values for a field on the
postgres database are currently being printed on the feature form.

    nextval('serial')

A new option in the properties allows evaluating the expression before
usage and will directly print the new value in the feature form.

    23
2016-04-04 11:08:23 +02:00
Matthias Kuhn
48943d44f6 Prefer usage of https:// over http:// 2016-04-04 11:08:23 +02:00
Patrick Valsecchi
f696b0a34d Allow relative links in composer labels
Now labels and HTML boxes can contain relative URLs. If we don't have
a base URL, the project file will be used as a base URL (closes #7236).

Remove the exception for the labels where the images where not
loaded (unless in in PDF or image mode). It was because of a crash. Qt didn't
like having the HTML loading to be done synchronously during painting.

Fix a leak when rendering labels.
2016-04-04 11:05:30 +02:00
elpaso
8b0b06875a Delete a blank line to make flake8 happy 2016-04-04 10:55:10 +02:00
Alexander Bruy
3ab6db168f [processing] fix looping over features in Join Attributes alg (fix #14428) 2016-04-04 11:52:02 +03:00
Alessandro Pasotti
ff1764539d Merge pull request #2963 from elpaso/server-fix-qs-encoding
[SERVER] Fix encoding of query string for bindings
2016-04-04 09:20:57 +02:00
Mathieu Pellerin
541463718d [FEATURE] add outline join style to ellipse markers 2016-04-04 14:38:52 +10:00
Nyall Dawson
54d093ed48 Function argument name should not be translatable 2016-04-04 13:59:22 +10:00
Nyall Dawson
ae00eb965c [FEATURE] Allow expression functions to use named parameters
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:

clamp(1,2,3)

you can use:

clamp( min:=1, value:=2, max:=3)

This also allows arguments to be switched, eg:

clamp( value:=2, max:=3, min:=1)

Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.

I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.

Sponsored by North Road
2016-04-04 13:59:13 +10:00
Juergen E. Fischer
5e54b93be7 remove pseudo options HAVE_MSSQL, HAVE_DB2, HAVE_SPATIALITE
and HAVE_PYTHON
2016-04-04 00:59:38 +02:00
Juergen E. Fischer
1cbcf49043 include db2 provider in packaging 2016-04-04 00:59:38 +02:00
Nyall Dawson
d8dbc92510 Fix warning 2016-04-04 08:36:52 +10:00
David Adler
5fe19c5f15 merged DB2 updates
[FEATURE] New vector data provider for DB2 sources
2016-04-04 07:55:50 +10:00
Nyall Dawson
883016f471 Fix some minor coverity warnings 2016-04-04 06:58:42 +10:00
Nyall Dawson
b8b12d87c3 Fix memory leak 2016-04-04 06:53:40 +10:00
Nyall Dawson
639c050077 Fix coverity uninitialized variable warnings 2016-04-04 06:52:49 +10:00
Nyall Dawson
98d4734098 Make attribute selection table in vector save as dialog taller 2016-04-04 06:25:05 +10:00
Nyall Dawson
cbad546b09 Followup 99d5e4, add unit tests 2016-04-04 06:20:07 +10:00
Nyall Dawson
ae9d089142 Merge pull request #2964 from nirvn/simple_marker_join_style
[FEATURE] add outline join style settings to simple markers (fixes #3797)
2016-04-03 16:21:57 +10:00
Nyall Dawson
c08d3592dd Add testdata cache folder to .gitignore 2016-04-03 15:18:37 +10:00
nirvn
3a2a099c59 add simple marker join style tests 2016-04-03 11:56:47 +07:00
nirvn
6ad3537403 [FEATURE] add outline join style settings to simple markers
(fixes #3797)
2016-04-03 09:57:11 +07:00
Juergen E. Fischer
99d5e42247 [FEATURE] vector file writer: allow selection of attributes to export 2016-04-03 01:56:21 +02:00