33 Commits

Author SHA1 Message Date
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
Hugo Mercier
d16cdcf449 Add more options for filtering legend elements
This introduces two new options to filter legend elements:
- filter by expression: a boolean expression can be set. Only symbols of
features that make the expression evaluated to true will be kept in the legend
- filter by polygon: only symbols of features that are inside the given
polygon will be part of the legend.

The polygon filtering is used in particular for a new option in the
composer legend that allows to filter out anything that is not included
in the current atlas polygon.
2015-11-03 10:39:09 +01:00
Nyall Dawson
fe221d54bf Don't return QStrings by reference, since they're implicitly shared
anyway
2015-10-28 09:47:44 +11:00
Nyall Dawson
f1633a1796 Change all signals to use const refs for non trivial objects 2015-10-26 22:46:25 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
624f16cc2c indentation update 2015-08-16 11:56:27 +02:00
Nyall Dawson
19a833c23d Clean atlas interface - avoid storage of pointer to atlas feature 2015-08-13 08:35:43 +10:00
Nyall Dawson
69ac6771e8 [FEATURE][composer] Add page name option for atlas
Page name can be set to either a field or expression derived from
the coverage layer, and is shown in the new atlas page combobox.
2015-08-03 16:46:59 +10:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Nyall Dawson
d07dadf333 [FEATURE][composer] Add page number combo box to atlas toolbar
(fix #13136)
2015-07-23 15:02:06 +10:00
Nyall Dawson
fb7415c3ff [composer] Refresh refetches atlas feature from provider, more removal of duplicate map redraws 2014-09-30 20:37:16 +10:00
Ross Gammon
79b3a8f889 Description: Fix qreal VS double issues.
This patch tries to fix qreal VS double issues for ARM

 There are two seperate issues, the first is trivial just a typecast on
 a const.

 The second is however less-trivial and needs to be checked
 before merging. sip doesn't seem to like the type
 QVector<double> on platforms where qreal is float but changing
 the type to qreal may have knock-on impacts on the native code.

 QGIS Issue: http://hub.qgis.org/issues/11148
 Debian Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760535

Author: Peter Michael Green <plugwash@debian.org>
2014-09-05 20:51:13 +02:00
Nyall Dawson
a64e7b134c More const correctness, fix crash with atlas 2014-09-02 19:31:43 +10:00
Juergen E. Fischer
07165eae79 indentation update 2014-08-17 13:37:34 +02:00
Nyall Dawson
57980ab678 [composer] Make sure general atlas properties are imported before importing items from xml, so that items can be aware of atlas context while they are being created 2014-07-04 23:47:07 +10:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Nyall Dawson
c38d3e12af [composer] Remove use of runtime_error for providing feedback from atlas 2014-05-29 22:49:58 +10:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Nyall Dawson
e8b7ca943c [composer] Small improvements to API docs 2014-05-23 11:17:05 +10:00
Hugo Mercier
084fa8992b [FEATURE][composer] Add a 'predefined scales' mode to atlas maps, which sets an atlas maps' extent to the largest predefined scale which fits the atlas feature. Scales are taken from the project's predefined scales, or the global predefined scales. 2014-05-23 11:17:05 +10:00
Nyall Dawson
ca186c78ee [composer] Add a featureChanged signal for when the current atlas feature changes (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:00 +10:00
Nyall Dawson
7e977bcfd3 [composer] Some api documentation improvements and fix ups 2014-04-28 19:29:04 +10:00
Juergen E. Fischer
8bd80f43c5 fix windows build 2014-04-05 01:19:50 +02:00
Denis Rouzaud
8b06a16a75 model/view for layer/field selectors 2014-04-03 14:51:26 +02:00
Hugo Mercier
9eb8ef4e98 Add signals to atlas generation 2014-03-18 17:08:09 +01:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Nyall Dawson
85a17c246a Add QgsMapLayerAction and QgsMapLayerActionRegistry, which can be
used as a generic api for registering actions which can apply to
a specific map layer or layer type.

Create a QgsMapLayerAction for setting features as the current
atlas feature for compositions.

This work was kindly sponsored by SIGE (www.sige.ch).
2014-01-20 21:35:56 +11:00
Nyall Dawson
6bb9dfec00 [FEATURE][composer] Allow for more than one atlas controlled map in compositions (or none), by moving some atlas properties to map items (fix #9248) (fix #6484) 2014-01-14 22:52:01 +11:00
Juergen E. Fischer
0a1d44fc63 make qgis_app a shared library and fix some more stl warnings with msvc 2013-09-07 00:22:10 +02:00
Juergen E. Fischer
3854086d47 sip update 2013-06-23 16:00:24 +02:00
Hugo Mercier
12f85af0ee [Atlas] Add SIP bindings for feature sorting and filtering 2013-02-06 15:06:59 +01:00
Alexander Bruy
29e009f0ae fix SIP bindings after atlas merge 2012-10-06 14:49:01 +03:00
Hugo Mercier
d904da4ce1 Update of QgsAtlasComposition SIP (with Python unit tests as well) 2012-10-05 16:25:11 +02:00