1226 Commits

Author SHA1 Message Date
Juergen E. Fischer
869c906999 indentation update, Q_FOREACH support in astyle, doxygen fix 2014-09-01 09:39:33 +02:00
Martin Dobias
812f671f82 Legend customization via layer node's custom properties
This allows for reordering, renaming and removal of legend nodes.
Composer either uses default project layer tree (auto-update on)
or customized layer tree (auto-update off).
2014-09-01 10:10:37 +07:00
Martin Dobias
8dba8af60d Support for custom labels in symbol-v2 legend node 2014-09-01 10:10:36 +07:00
Martin Dobias
89941f6b0a Moved QgsLayerTreeModelLegendNode (+derived classes) to a new file 2014-09-01 10:10:36 +07:00
Martin Dobias
6891aae19a Use QgsLayerTreeModel as a source of data for legend rendering instead of QgsLegendModel
This is work in progress, customization of legend is not working yet
2014-09-01 10:10:36 +07: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
f93e536a00 Add a simplified class for fetching HTTP network content 2014-08-19 20:49:10 +10:00
Matthias Kuhn
1b205be604 Fix python bindings for QgsRelation.fieldPairs() 2014-08-18 14:56:45 +02:00
Nathan Woodrow
978642addb Allow + for string concat in QgsExpression 2014-08-18 22:15:21 +10:00
Nyall Dawson
b45735529b Improvements to color list:
- Cleanup code
- Support copying and pasting multiple colors to list
- Support additional color list mime formats
2014-08-17 21:05:21 +10:00
Nyall Dawson
6d10ff3684 Support dropping multiple colors into a color list widget 2014-08-17 21:05:21 +10:00
Nyall Dawson
6312ff5853 Add method for finding matching schemes from a color scheme registry 2014-08-16 14:56:30 +10:00
Nyall Dawson
bfff4bd6b2 [FEATURE] New version of color button (QgsColorButtonV2) based off
QToolButton. Features:
- context menu items have been moved to the attached menu button
- new gui widget QgsColorSwatchGrid, which displays a grid of colors
- new class for QgsColorScheme, which generates colors to show in a
  color swatch grid
- new class QgsColorSchemeRegistry, with a global instance containing
  default color schemes. QgsColorButtonV2 accepts a color scheme
  registry, to control which schemes to show in the popup menu as
  color swatch grids.
- color button can have a default color
- color button can also be quickly set to a totally transparent color
- c++ and python unit tests for all core components
2014-08-11 20:37:52 +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
17d6da9adb [FEATURE][composer] Holding shift while drawing new lines constrains lines to horizontal/vertical/diagonals, while drawing rectangles constrains items to squares. Holding control switches to a draw-from-center mode. Sponsored by City of Uster, Switzerland. 2014-07-23 21:36:58 +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
e2d57d9b65 [composer] Clean up code, move some methods to QgsComposerUtils, const correctness, tests, doc improvements 2014-07-16 22:47:18 +10:00
Nyall Dawson
0837945247 [composer] Fix calculation of rotated image size inside picture items when rotation is 90 or 270 degrees. 2014-07-15 23:21:49 +10:00
Nyall Dawson
6f3cea12f0 Follow up 2041fc24 2014-07-15 00:25:33 +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
Juergen E. Fischer
647504306c indentation update 2014-07-13 17:16:24 +02:00
Nyall Dawson
8650597b7f [FEATURE][composer] Add marker style for map grids (fix #9381) 2014-07-13 21:54:37 +10:00
Nyall Dawson
1e39db6a0f [FEATURE] New expression functions for $currentfeature (returns current feature) and 'attribute' (returns value stored in specified field within a feature) 2014-07-10 14:10:44 +10:00
Nyall Dawson
0df2b011fc Begin test suite for data defined composer settings 2014-07-08 23:17:58 +10:00
Nyall Dawson
03efcac527 [composer] Default to no backgrounds for new labels, pictures, scalebars, and arrows. Fix some items not drawing using antialiasing if background disabled. 2014-06-30 21:52:40 +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
Juergen E. Fischer
e358a87beb add some more geometry tests (followup c686c4fed) 2014-06-25 14:31:38 +02:00
Juergen E. Fischer
c686c4fed8 geometry: allow removing parts and rings or geometries by removing all vertices
(fixes #10684)
2014-06-25 12:39:50 +02: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
Martin Dobias
436b05e0cc Move QgsRendererJob subclasses to new files (no code changes) 2014-06-22 21:58:39 +07:00
Matthias Kuhn
73a5dd5a34 Followup edbfb57, respect ownership of vl cacheindex in test 2014-06-19 22:52:07 +02:00
Nyall Dawson
6d6eede498 Follow up 7af7b88c99 2014-06-19 07:18:38 +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
Nyall Dawson
5dc75d424e Fix some failing tests 2014-06-18 16:18:25 +10:00
Larry Shaffer
e257227050 Fix local test server response parsing and add debug output for url 2014-06-13 10:20:55 -06:00
Larry Shaffer
72c33799d3 Add ability to define QImage format for render jobs via map settings
- Defaults to QImage::Format_ARGB32_Premultiplied, as before
- Update labeling unit tests to use defined format
2014-06-13 10:20:55 -06:00
Larry Shaffer
34aeed7450 Add convenience functions to Python test utilities for rendering with map settings
- Update labeling unit tests to use new functions
- All labeling test classes render separately from QgsRenderChecker
- Update labeling server test class to sync map settings to temp project
2014-06-13 10:20:55 -06:00
Juergen E. Fischer
3682384675 indentation update 2014-06-13 09:03:15 +02:00
Martin Dobias
ec310a0e94 Allow some mismatched pixels in inverted renderer test
On my machine, there were ~200-800 mismatched pixels in each test image,
but visually they look the same.
2014-06-10 12:06:22 +07: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
Martin Dobias
882912f748 Fix #10365 (incorrectly escaped strings from QgsExpression) 2014-06-09 14:31:42 +07:00
Martin Dobias
48b099c8b6 Fix #10212 (fail to handle relative paths to gzipped files) 2014-06-09 12:46:50 +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