383 Commits

Author SHA1 Message Date
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
Nyall Dawson
19708be155 [FEATURE][composer] Allow evaluation of QGIS expressions inside html item source. Expressions are evaluated before HTML is rendered, allowing the expression results to modify how the HTML content is rendered. Sponsored by City of Uster, Switzerland. 2014-07-16 22:50:40 +10:00
Nyall Dawson
256999d56f [FEATURE][composer] Option for manual entry of HTML item source. Sponsored by City of Uster, Switzerland. 2014-07-16 22:50:40 +10:00
Nyall Dawson
2041fc2480 [composer] Refactor QgsComposerItem:
- New class QgsComposerObject, which both QgsComposerItem and QgsComposerMultiFrame
derive from. This class contains the framework for data defined composition properties.
- New class QgsComposerUtils, containing helpful static functions previously in QgsComposerItem
- Test suites for data defined settings in QgsComposerObject and functions in QgsComposerUtils
2014-07-14 23:51:10 +10:00
Nyall Dawson
8650597b7f [FEATURE][composer] Add marker style for map grids (fix #9381) 2014-07-13 21:54:37 +10:00
Nyall Dawson
09645e4ecc [FEATURE][composer] Allow setting secondary color for scalebars, allow alpha channels in scalebar colors 2014-06-28 08:46:44 +10:00
Nyall Dawson
01b3d9662c [composer] Fix order of vertices returned by mapPolygon when map rotation is set, fix drawing overview frame when either map is rotated (fix #10644) 2014-06-23 19:14:39 +10:00
Nyall Dawson
7af7b88c99 [composer] Correct placement of cross grids (fix #10626) 2014-06-19 05:44:05 +10:00
Nyall Dawson
7cb2315e29 Fix some failing tests (diagrams control images needed rebuilding following MTR composer changes, added tolerance to renderers test) 2014-06-18 21:48:20 +10:00
Martin Dobias
3fe12df507 Fix #10355 (crash) and #10338 (overlapping polygons) in inverted polygon renderer
Conflicts:
	python/core/symbology-ng/qgsinvertedpolygonrenderer.sip
	src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
	src/core/symbology-ng/qgsinvertedpolygonrenderer.h
	src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.cpp
	src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h
2014-06-10 11:54:45 +07:00
Hugo Mercier
9d49422878 Inverted polygon renderer: add test for projected and merged 2014-05-27 09:03:18 +02:00
Hugo Mercier
315b28c21c Inverted polygon renderer: fix rendering when projection is enabled 2014-05-26 18:43:34 +02:00
Hugo Mercier
80ae9ef28b Inverted polygon renderer: add an option to preprocess polygons using an union 2014-05-26 17:15:22 +02:00
Martin Dobias
0775a89ed5 Merge pull request #1380 from Oslandia/mask_renderer
[FEATURE] Inverted polygons renderer
2014-05-24 11:26:41 +07:00
Hugo Mercier
79061547d4 Add unit tests for the inverted polygon renderer 2014-05-23 19:57:21 +02: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
Juergen E. Fischer
7c75ffa3b0 spelling fixes 2014-05-17 22:02:03 +02:00
D'Hont René-Luc
07c57585c1 [RASTER][Feature] Applying scale and offset to raster data - funded
Ifremer

An issue has been opened 5 mounth ago
[BUG] #8417 incorrect value loaded from netcdf file
The data has not be loaded incorrectly, but QGIS doesn't apply scale
and offset defined for each band.

This commit will apply scale and offset to GDAL Provider BandStatistics
and to RASTER block of data.

It also adds bandScale and bandOffset method to QgsRasterDataProvider Python API.
2014-05-15 16:55:30 +02:00
Nyall Dawson
fa0f0bd176 [FEATURE][composer] Add option for controlling placement of rendered images inside a picture item (eg, top left, bottom right, etc) 2014-05-15 11:58:54 +10:00
Nyall Dawson
1af7581bf0 Add tests for composer html multi frames using smart breaks 2014-05-06 21:12:09 +10:00
Nyall Dawson
3afee3c629 [composer] Add tests for expression based picture source (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:01 +10:00
Nyall Dawson
963ae707f4 [composer] Add tests for picture resize modes (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:00 +10:00
Nyall Dawson
53cda0a9c7 [composer] Move composer picture related tests into their own seperate test suite (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:00 +10:00
Etienne Tourigny
2d737510d4 Merge pull request #1213 from etiennesky/histogram_bars
Histogram bars
2014-04-16 21:46:42 -03:00