306 Commits

Author SHA1 Message Date
Sandro Santilli
fb344ff1b6 Use a simpler image for testing composer map rotation and overview
Update expected results and configuration of new image
Add rendering anomalies, as determined by travis ubuntu 12.02
2015-02-05 19:08:11 +01:00
Nyall Dawson
e0adf89d80 Add some missing tests for QgsImageOperation 2015-01-27 20:53:29 +11:00
Nyall Dawson
f7f89b37b9 Fix calculation of blur ops with non ARGB32_Premultiplied images 2015-01-26 14:27:20 +11:00
Nyall Dawson
670ad7b809 Add gaussian blur image operation 2015-01-21 20:02:42 +11:00
Nyall Dawson
be2d6d1a70 New QgsImageOperation class for operations that modify QImages
Contains framework for multithreaded operations on QImages, and
numerous operations such as grayscale, hue/saturation, brightness/
contrast modification, flip, blur, distance transform, alpha
modification and color overlays.
2015-01-21 18:58:10 +11:00
Sandro Santilli
ce8a9ba4af Add support for map rotation (hub #9330)
Includes widget to show and set map rotation.
Handle rotation in vector and raster renderers.
Ensure correct behavior of panning and zooming actions.

Drop compile-time defines for ARM and ANDROID, leaving only
the qreal based function to transform in place.

Update expected test results after eye comparison.
2014-12-07 16:30:41 +01:00
Nyall Dawson
ad32bbf40c Add some atlas reference images for precise (part 2) 2014-12-03 21:58:52 +11:00
Nyall Dawson
b07e4db27b Add some atlas reference images for precise (part 1) 2014-12-03 21:23:25 +11:00
Nyall Dawson
0f761949b8 Fix calculation of smart breaks when html has transparent background
Should finally fix troublesome composer html tests
2014-12-02 12:11:21 +11:00
Nyall Dawson
48edab4fe6 Hopefully fix intermittently failing composer html test 2014-12-01 19:28:50 +11:00
Nyall Dawson
d532af0b33 Add some test images and tweak test tolerances for utopic 2014-11-29 14:51:55 +11:00
Nyall Dawson
20f57c90d9 [composer] Make html tests text-free
Minimises cross platform rendering differences
2014-11-29 11:50:18 +11:00
Nyall Dawson
2ec4c2abd3 Regenerate incorrect test images and reenable atlas tests for travis 2014-11-25 06:13:19 +11:00
Nyall Dawson
09ab5696b1 Boost coverage of raster fill unit tests
Also add missing sip bindings for GUI widget
2014-11-19 22:24:02 +11:00
Nyall Dawson
52159851bf [FEATURE] Raster image symbol fill type
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Matthias Kuhn
581815f841 Fix atlas tests
* Recreates composition for every test and therefore removes internal
   dependency
 * Reorders method calls to make the test pass
 * Disable the test until https://github.com/qgis/QGIS/pull/1688
2014-11-14 19:14:51 +01:00
Nyall Dawson
31c32505bb Switch to RGB32 images for composition checker 2014-11-14 18:30:29 +01:00
Nyall Dawson
2cfcca10d2 Use a non-transparent background for composition checker
Fix composerhtml tests on precise
2014-11-14 18:30:28 +01:00
Matthias Kuhn
81d3871048 Fix shapeburst test
Move to multirenderchecker
2014-11-14 18:30:28 +01:00
Matthias Kuhn
416f471e6d [unit tests] Make qgis_rendererstest pass
Replace control image
2014-11-14 18:30:28 +01:00
Matthias Kuhn
ab5e0e2b37 Fix PalLabelingComposer test
Switch to QgsMultiRenderChecker and add control images for Ubuntu precise where
required.
2014-11-14 18:30:27 +01:00
Matthias Kuhn
58932890b3 Fix inverted polygon renderer test 2014-11-14 18:30:27 +01:00
Matthias Kuhn
9d9f7c18aa [unit tests] Fix blend modes test
* Switched to QgsMultiRenderChecker and added control images for precise
 * Add a minimal color tolerance for slight render inconsistencies
2014-11-14 18:30:27 +01:00
Matthias Kuhn
f1fb5fb192 Fix qgis_legendrenderertest
Changed control image that fails on every platform
2014-11-12 15:43:49 +01:00
Nyall Dawson
8b29097f36 [FEATURE][composer] Vertical descending direction for annotations
This change adds a new descending vertical direction mode for
map grid annotations. Previously only ascending text was
supported for vertical annotations.
2014-11-07 10:31:59 +11:00
Nyall Dawson
b2423241ff [composer] Use intersection rather than clip for transformed grids
Previous behaviour was to clip transformed grid lines to the visible
map extent. This caused problems if a map item had no border (a
solid line would be shown along the map extent), and also meant
that reprojected lines which crossed out of the map extent and back
in again did not have annotations or grid frame markings shown.

Also implement an improved logic for detecting the map frame side
for annotations.
2014-11-07 09:53:19 +11:00
Nyall Dawson
ac9220d35b [FEATURE][composer] Finer control of frame and annotation display
Previously, for rotated maps or reprojected grids, the composer would
draw all coordinates for every map side. This resulted in a mix of
latitude/y and longitude/x coordinates showing on a side. This change
allows users to control whether they want all coordinates, latitude
only or longitude only for each map frame side. Similar options have
also been added for controlling how a map grid frame is divided.

In related news... the composer map dialog is now the ugliest,
most cluttered and un-user friendly dialog in all of QGIS. I'd
love suggestions/mockups from the UX team for ways this could
be improved.
2014-11-04 13:17:44 +11:00
Nyall Dawson
d2c9ffd869 [composer] Fix incorrect calculation of scale for tick scale bars
QPainter::drawLine(x1,y1,x2,y2) takes int values, so coordinates
were being rounded to the nearest mm. Consequently scale was way
off. Also fixes horizontal line for tick styles being drawn
incorrectly with multiple overlapping segments. (fix #10685)
2014-10-27 21:14:11 +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
211061124f Use standard test font for QgsComposerHtml test 2014-10-06 22:14:15 +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
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
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
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
3ca416a620 [composer] Initial test suite for QgsComposerTableV2 (Sponsored by
City of Uster, Switzerland)
2014-09-17 22:57:49 +10:00
Nyall Dawson
52c519e64e [composer] Add simple line border frame style for composer map
grids (sponsored by NIWA, New Zealand)
2014-09-03 20:38:51 +10:00
Nyall Dawson
53fa30f1bb [FEATURE][composer] Add tick styles for frames. Options include
drawing ticks only inside the map frame, drawing ticks outside
the frame, or drawing ticks both inside and outside the frame.
(fix #6954) (Sponsored by NIWA, New Zealand)
2014-09-03 20:04:44 +10:00
Nyall Dawson
8544185985 [composer] Add tests for grids on specific sides (sponsored by
NIWA, New Zealand)
2014-09-03 19:55:40 +10:00
Nyall Dawson
48e1411e26 [composer] Remove raster layer from composer grid tests (sponsored
by NIWA, New Zealand)
2014-09-03 19:54:29 +10:00
Nyall Dawson
dc27e13ed3 [FEATURE][composer] New frame/annotations only grid style. Selecting
this style causes only the frame and annotations to be drawn, with no
grid lines or other markings over the map. (Sponsored by NIWA, New
Zealand)
2014-09-03 19:40:49 +10:00
Martin Dobias
4fa1f45d56 Creation of legend items for map layers moved to QgsMapLayerLegend 2014-09-01 10:10:35 +07:00
Martin Dobias
fda50ede01 Move bits of legend rendering code into item classes + add rendering test 2014-09-01 10:10:35 +07:00
Nyall Dawson
9d18220138 [FEATURE][composer] Allow remote urls to be entered as picture path
for picture items, and automatically fetch them. Sponsored by the
City of Uster, Switzerland.
2014-08-19 21:35:14 +10:00
Nyall Dawson
d0e9d8d126 [FEATURE][composer] Allow specifying user stylesheets to apply to a HTML item's content 2014-07-27 22:18:45 +10:00
Nyall Dawson
f76c257f89 [composer] More cleanups - move font utils from QgsComposerItem to QgsComposerUtils, add tests 2014-07-19 22:01:58 +10:00