1085 Commits

Author SHA1 Message Date
Juergen E. Fischer
d833c22b46 fix interpretation of numeric constants in scientic notation (fixes #10939) 2014-10-23 00:07:48 +02:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Juergen E. Fischer
8d3654baa7 indentation update 2014-10-20 00:16:36 +02:00
Chris Crook
422ea56f5b Merge pull request #1630 from ccrook/GraduatedRendererUnitTests2
Graduated renderer unit tests2
2014-10-19 19:37:38 +13:00
Nyall Dawson
64f0fdf371 Expand composer item group test suite 2014-10-19 14:45:19 +11:00
Nyall Dawson
0f4bd4e0fc [composer] Move ungrouping logic from composer view to composition
As per previous commit, this is useful for plugin authors. It also
fixes a potential bad crash (itemRemoved emitted for group item after
the group item was already deleted) and adds unit tests.
2014-10-19 14:45:19 +11:00
Nyall Dawson
993f0dcd3d [composer] Move code for creating groups to QgsComposition
Previously this code was located in QgsComposerView. Moving it to
QgsComposition simplifies grouping items for plugins. Also start
a new unit test for QgsComposerItemGroup.
2014-10-19 14:45:19 +11:00
Chris Crook
481067f8e2 Further unit tests 2014-10-16 19:54:04 +13:00
Chris Crook
43aaaf6bf8 Adding python unit tests for graduated renderer - part 1 2014-10-16 19:47:55 +13:00
Nyall Dawson
4ea5c80948 [composer] Avoid crash when using redo on multiframe (fix #11351)
Since multiframe changes can remove and create new frame items,
it's not safe to directly manipulate frame items in
QgsComposerItemCommand. Now, commands which apply to a frame always
fetch a reference to the correct frame item directly from the
parent multiframe. Also added unit tests for this crash.
2014-10-15 20:17:10 +11:00
Nyall Dawson
1cb22c084d [composer] Seperate draw empty rows option from empty table behaviour
Now "draw empty rows" is a seperate checkbox (fix #11392)
2014-10-14 21:25:12 +11:00
Nyall Dawson
ac71e600a2 Cancel running requests when loading content in QgsNetworkContentFetcher (fix #11332) 2014-10-09 22:56:54 +11:00
Nyall Dawson
a5b5bd4c45 [composer] Fix new frames not inheriting outline color, clean up item api a bit 2014-10-09 19:56:59 +11:00
Nyall Dawson
b3f00ec3db Add some tolerance to atlas tests 2014-10-08 20:29:48 +11:00
Nyall Dawson
6bb045bdbb [composer] Ensure that QgsComposerMap::mapPolygon returns a closed
polygon, fixes rare crash when using map overviews (fix #11305)
2014-10-08 19:37:14 +11:00
Nyall Dawson
211061124f Use standard test font for QgsComposerHtml test 2014-10-06 22:14:15 +11:00
Nyall Dawson
ecedeb8b7b [composer] Add missing degree symbol for 'Decimal with suffix' format when using
a geographic crs
2014-10-05 22:26:55 +11:00
Nyall Dawson
f7cec71a78 [composer] Don't use directional suffixes for annotations when in geographic
coordinate system and direction is ambiguous (eg 0 degrees latitude) and format
is set to 'Decimal with suffix'
2014-10-05 22:26:55 +11:00
Nyall Dawson
ade5b65e79 Workaround issue in Qt detection of encoding for html QByteArrays 2014-10-03 23:03:36 +10:00
Nyall Dawson
456e971372 [composer] Fix table background extending beyond table rows (fix #11272).
It was necessary to add a new 'table background' color option to prevent
regressions when loading old compositions, since users may desire
the old behaviour where the entire frame is filled.
2014-10-03 09:08:23 +10:00
Nyall Dawson
a2d5acb516 Add argument to QgsCoordinateTransform::transformBoundingBox to flag that
handling of a bounding box which crosses the 180 degree longitude line
is required. Fix composer map reprojected grids which cross 180 degree line.
2014-10-02 06:48:53 +10:00
Nyall Dawson
8c502c19fc [composer] Fix pages are added but never removed with multiframe resizing 2014-09-29 22:19:08 +10:00
Nyall Dawson
1c03067504 [composer] Add a basic test suite for QgsComposerModel 2014-09-29 19:50:46 +10:00
Martin Dobias
2427546d88 Make QgsExpression parser reentrant. Fixes crashes when expressions are parsed in multiple threads.
Sponsored by a big dose of caffeine.
2014-09-25 18:19:05 +02:00
Nyall Dawson
272b79b6ca [FEATURE][composer] Add checkbox to frame items for preventing export
of page containing frame when frame is empty. This change allows
users to create multiple pages containing extra frames for multiframe
items (currently HTML and Attribute Table items), which are then only
printed/exported if required. Sponsored by the City of Uster, Switzerland.
2014-09-26 01:08:07 +10:00
Nyall Dawson
34f00d106f [FEATURE][composer] Add checkbox for showing unique records only in composer
attribute tables. (Sponsored by my OCD)
2014-09-23 19:28:40 +10:00
Nyall Dawson
14690d0716 [FEATURE][composer] Add choice of display style for empty tables. Options
include hiding the entire table, showing empty cells, or displaying a
set message in the table body. Sponsored by City of Uster, Switzerland.
2014-09-22 22:59:30 +10:00
Nyall Dawson
c3ec4b9eb0 [FEATURE][composer] Add option for showing child features from a relation
for attribute tables in the composer. If selected, the attribute table
will show all related features to the current atlas feature within
the table body. Sponsored by City of Uster, Switzerland.
2014-09-22 22:59:20 +10:00
Nyall Dawson
f58768c550 [FEATURE][composer] Option for current atlas feature as source for
attribute tables. Sponsored by City of Uster, Switzerland.
2014-09-22 22:59:07 +10:00
Nyall Dawson
1cb328c349 Fix incorrectly failing composer html test 2014-09-22 20:54:40 +10:00
Nyall Dawson
b893cb241c [FEATURE][composer] Allow manual control of column widths for attribute table items. 2014-09-22 19:13:47 +10:00
Nyall Dawson
eea0451b79 Some fixes to TestQgsComposerTableV2 2014-09-21 21:31:24 +10:00
Nyall Dawson
a554434e50 [composer] Fix failing QgsAtlasComposition python test 2014-09-21 21:06:10 +10:00
Nyall Dawson
6138131366 Fix failing atlas tests 2014-09-21 21:00:44 +10:00
Nyall Dawson
3af68f4888 Rebuild composer test images at 96 dpi to speed up unit tests 2014-09-21 19:47:39 +10:00
Nyall Dawson
97ea6f68c9 Split composer map overview tests off into their own test suite 2014-09-21 00:47:57 +10:00
Nyall Dawson
ccad38bf33 [composer] Clean up QgsComposerMap api, add docs and missing sip bindings for composer overviews 2014-09-21 00:47:57 +10:00
Nyall Dawson
808464fed6 [composer] Disable atlas if coverage layer is removed from project 2014-09-20 12:46:30 +10:00
Nyall Dawson
993aa83306 [composer] Tweak calculation of total height of table (Sponsored by
City of Uster, Switzerland)
2014-09-17 22:57:50 +10:00
Nyall Dawson
a0db6634f5 [composer] Fix crash on extend mode for multiframes (Sponsored by
City of Uster, Switzerland)
2014-09-17 22:57:50 +10:00
Nyall Dawson
3ca416a620 [composer] Initial test suite for QgsComposerTableV2 (Sponsored by
City of Uster, Switzerland)
2014-09-17 22:57:49 +10:00
Martin Dobias
de48dad6e9 Followup #10912 - detect cycles in joins and reject joins that would create cycle
Cycle would otherwise cause infinite loop when updating fields and it does not make sense
2014-09-16 12:11:15 +07:00
Martin Dobias
aafbc4ed5f Use _r GEOS API in geometry import test 2014-09-14 16:41:23 +07:00
Martin Dobias
ffcd07b066 Joins: optionally use just a subset of fields from joined layer 2014-09-13 14:27:52 +07:00
Nyall Dawson
e7f3c823a5 Support #RRGGBBAA style color codes in QgsSymbolLayerV2Utils color parsing 2014-09-10 20:58:56 +10:00
Martin Dobias
071a5ec0c5 Fix #10912 (joined attributes are not correctly propagated in nested joins)
This commit makes QgsVectorLayerJoinBuffer listen to changes in fields
of joined vector layers in order to update the cache and inform parent layer
2014-09-09 20:17:51 +07:00
Nyall Dawson
2317f67451 [composer] Use proper prime and double prime symbols for grid annotations
(because good typography and cartography go hand in hand..!)
2014-09-08 19:53:59 +10:00
Martin Dobias
86b4fcc7be Fix QgsLayerTreeModel naming conventions and update Python bindings
I was using a mixture of terms 'symbology items' and 'legend nodes' for the same thing which was confusing
2014-09-05 18:33:55 +07:00
Marco Hugentobler
ffcc4d8dcf Add unit tests for geometry import (wkt,wkb,geos) 2014-09-03 16:36:05 +02:00
Nyall Dawson
b52d4f3a24 [composer] Fix failing grid tests 2014-09-03 22:10:39 +10:00