5530 Commits

Author SHA1 Message Date
Nyall Dawson
2377688c6c Add QgsColorWidgetAction for easily inserting QgsColorWidgets in menus 2015-12-09 16:07:22 +11:00
Nathan Woodrow
e9ef51341c Use geometry by default on custom expression functions
Got burnt by my own code. Them feels.
2015-12-09 13:02:58 +10:00
Nyall Dawson
6e140b97fd [FEATURE] Edit legend symbols directly from layer tree
This adds a new "edit symbol" item to the right-click menu for a
renderer child legend item (eg categories for the categorised
renderer). Selecting it opens a symbol editor dialog which allows
for directly editing the classes symbol. It's much faster than
opening the layer properties and going through the style tab.
2015-12-09 07:25:03 +11:00
Nyall Dawson
83e139a550 Add method for retrieving legend nodes by layer ID and legend rule key 2015-12-09 06:01:12 +11:00
Matthias Kuhn
197ee6cb3a Fallback to pure PyQt4 for the moment
Fix #13948

Will probably require some packaging adjustments when reintroducing this.
2015-12-08 16:19:53 +01:00
Matthias Kuhn
86abb26b62 Add sip bindings 2015-12-08 15:49:02 +01:00
Matthias Kuhn
be01b7eec5 [FEATURE] Add N:M relation editing possibilities
This adds the possibility to manage data on a normalized relational
database in N:M relations. On the relation editor in a form, the tools
to add, delete, link and unlink work (also) on the linking table if a
relation is visualized as N:M relation.

Configuration is done through the fields tab where on the relation a
second relation can be chosen (if there is a suitable relation in terms
of a second relation on the linking table).

Limitations
===========

QGIS is not a database management system.

It is based on assumptions about the underlying database system. In
particular it expects

 * A `ON DELETE CASCADE` or similar measure on the second relation
 * Does not take care of setting the primary key when adding features.
   Either users need to be instructed to set them manually or - if it's a
   database derived value - the layers need to be in transaction mode
   (currently only activatable through the API)
2015-12-08 15:49:01 +01:00
Nyall Dawson
8cac36433d [FEATURE] Add support for transparency in SVG color params
...and update all bundled SVGs to suit

Non-bundled SVGs must add:

fill-opacity="param(fill-opacity)"
and
stroke-opacity="param(outline-opacity)"

to enable transparency support
2015-12-08 22:45:51 +11:00
Nyall Dawson
9cc9d424ce Add extra check for deprecations to documentation test
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.

It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.

Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Nyall Dawson
de1001b9f7 Fix SIP type handling for QgsColorScheme subclasses 2015-12-07 21:55:36 +11:00
Alexander Bruy
584771e907 fix missed import in the Processing alg 2015-12-07 10:12:21 +02:00
Nyall Dawson
91f7918e21 [FEATURE] Add a show/hide all context menu for layer tree symbol items
Allows toggling on/off all the symbol items for categorized/graduated/
rule based layers via the right click menu on an item. Previously
you'd have to manually toggle each item one-by-one.

Fix #13458
2015-12-07 07:39:20 +11:00
elpaso
e5ca63deed Refactored the python init function selector
Do not rely on the presence of a dot to load
a module. Loading a module can now be achieved
through the code editor in the dialog.

* added an option to load from environment
* added a file selector to specify the file
* changed tooltips accordingly
2015-12-05 09:45:09 +01:00
Nyall Dawson
edb16d0014 [FEATURE] Feature limit support for feature requests
Limits the maximum number of features returned by the iterator.
Some providers (postgres, spatialite, MS SQL) pass the limit on
to the provider to result in faster queries.
2015-12-05 10:24:42 +11:00
Juergen E. Fischer
60ad6887c2 indentation update 2015-12-04 22:52:31 +01:00
Larry Shaffer
36e7026c0d [FEATURE][auth] Add support to Plugin Manager 2015-12-03 17:52:22 -07:00
Nyall Dawson
9eee121115 Apply filters to feature request for categorized renderer
Makes rendering much faster when only certain categories are checked,
as only the matching records for the displayed features are fetched
from the provider.
2015-12-04 07:29:06 +11:00
Nathan Woodrow
d792f2cd8a Merge pull request #2502 from SebDieBln/RuleBasedRendererWidgetDisableButtons
enable/disable buttons in the rule based style dialog (fixes #6708)
2015-12-03 22:47:05 +10:00
volaya
6f26d9aeb0 Merge pull request #2514 from spono/patch-14
[Processing] Update CanopyModel.py
2015-12-03 09:54:00 +01:00
volaya
85cc1807df Merge pull request #2468 from spono/patch-12
[processing] Update ClipData.py
2015-12-03 09:53:09 +01:00
volaya
bbde581457 Merge pull request #2466 from spono/patch-10
[processing] Update GroundFilter.py
2015-12-03 09:52:03 +01:00
Matthias Kuhn
3d5f33abfa Merge pull request #2410 from mdouchin/postgis_2_2_server_simplification
Postgresql provider - Use ST_RemoveRepeatedPoints instead of ST_SnapToGrid
2015-12-03 09:30:36 +01:00
Juergen E. Fischer
02f8988837 indentation update 2015-12-02 18:36:59 +01:00
Juergen E. Fischer
c2fb11c8d5 db manager: only alias subqueries on postgres (fixes #13731) 2015-12-02 09:24:25 +01:00
Juergen E. Fischer
f92efbc032 db manager oracle plugin: avoid tablespace index parameter 2015-12-02 09:22:46 +01:00
Michael Douchin
706e651484 Postgresql provider - Use postgis 2.2 ST_RemoveRepeatedPoints for simplification 2015-12-01 14:31:53 +01:00
Matthias Kuhn
71fc4576c9 Doxymentation fix 2015-12-01 12:51:57 +01:00
Matthias Kuhn
e76949b2a0 More sip bindings 2015-12-01 11:45:44 +01:00
Matthias Kuhn
4d679511fb Add API to QgsMapLayerRegistry to rely less on ids 2015-12-01 11:45:44 +01:00
Alexander Bruy
17bd46e5be Merge pull request #2516 from radosuav/zonal_stats
[processing] use raster band scailing factor and offset in Zonal Statistics algorithm
2015-12-01 11:40:00 +02:00
Matthias Kuhn
bb9eb79021 More missing sip bindings
Ouch
2015-12-01 10:27:46 +01:00
Nyall Dawson
48e4d1c977 Add a method for getting a quoted string value for use as a literal
in expressions
2015-12-01 19:33:27 +11:00
Matthias Kuhn
95d227176b Add missing sip bindings 2015-12-01 09:20:00 +01:00
Nyall Dawson
d388a4f1a4 [geometry] Add method to drop z/m values from a geometry 2015-12-01 16:33:44 +11:00
Nyall Dawson
a3d780cb4e [geometry] Add method to drop z/m from wkb types 2015-12-01 16:33:13 +11:00
Matthias Kuhn
68a01c9ab1 Add QgsVectorLayer::deleteFeatures() method 2015-11-30 21:33:35 +01:00
Nick Burkhart
1bf8997cce added support for Unicode translations in fTools visuals 2015-11-30 08:32:27 -08:00
Matthias Kuhn
bffb3a5d7f python bindings for ebc9e029 2015-11-30 14:42:50 +01:00
Matthias Kuhn
d2b506cccc Expose changed attributes in QgsFeatureAction and QgsVectorLayerTools 2015-11-30 14:19:35 +01:00
radosuav
34df72c75b [Processing] Use raster band scailing factor and offset in Zonal Statistics algorithm 2015-11-30 14:00:47 +01:00
Matthias Kuhn
6992f2450e Add QGIS3 API change comment 2015-11-30 13:52:11 +01:00
Nic
ec9f086222 Update CanopyModel.py
fixed some syntax errors and added an output option (ASCII)
2015-11-30 10:14:46 +01:00
Giuseppe Sucameli
57eb409084 Squashed commit of the following:
commit 883cdbc3ead1a98c594d9f5584cd50a3fd161511
Author: Giuseppe Sucameli <brush.tyler@gmail.com>
Date:   Mon Nov 30 01:12:47 2015 +0100

    [DbManager] fix indentation due to merge f15b6011f9

commit f15b6011f97797794ff4369645449b6803e15cd0
Merge: c4dcb7b 6d3df91
Author: Giuseppe Sucameli <brush.tyler@gmail.com>
Date:   Mon Nov 30 01:09:18 2015 +0100

    Merge branch 'gdaltools_buildvrt_asrs' of https://github.com/giohappy/QGIS into giohappy-gdaltools_buildvrt_asrs

    Conflicts:
    	python/plugins/GdalTools/tools/doBuildVRT.py

commit 6d3df91f0226fa71356da45b9b5ef1c9f9796ebd
Author: giohappy <giohappy@gmail.com>
Date:   Wed Jun 4 12:48:58 2014 +0200

    Added a_srs option to buildvrt command
2015-11-30 01:17:52 +01:00
Giuseppe Sucameli
c4dcb7b812 [DbManager] delete layer passed to querybuilder to set sql layer filter (follow f6e31613) 2015-11-30 00:38:06 +01:00
Giuseppe Sucameli
5408e843ec Merge branch 'DbManager_SetFilter' of https://github.com/SebDieBln/QGIS
[DbManager] New button to define a sql-filter when adding a query-based layer
2015-11-30 00:36:08 +01:00
Juergen E. Fischer
0519423b0f fix pyuic wrapper where qt4 & 5 are available 2015-11-29 17:04:56 +01:00
Juergen E. Fischer
079029e354 indentation update 2015-11-29 17:04:56 +01:00
Sebastian Dietrich
f6e3161317 Added a button to set a filter for a query layer. 2015-11-29 13:19:55 +01:00
Nic
dd8826f372 Update GroundFilter.py 2015-11-27 15:16:48 +01:00
Nic
c622457fc5 Update ClipData.py
subprocess lines deleted because obsolete
2015-11-27 11:08:05 +01:00