1134 Commits

Author SHA1 Message Date
Nyall Dawson
6adab880da [composer] Clean up map grid API, fix bug with grids not rearranging
correctly (sponsored by NIWA, New Zealand)
2014-09-03 21:21:21 +10:00
Nyall Dawson
f68b2586b9 [composer] Improvements to grid annotation string formatting (sponsored
by NIWA, New Zealand):
- Don't show directional suffix for 0 or 180 latitudes or 180 longitudes
- Add padded coordinate modes
- Fix precision errors causing minutes/seconds > 60
- Wraparound longitudes to restrict them to the -180 to 180 degree range
2014-09-03 20:40:30 +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
Nyall Dawson
dc5f94d47b [composer] Split composer map grid tests from composer map tests
(sponsored by NIWA, New Zealand)
2014-09-03 19:40:42 +10:00
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