1089 Commits

Author SHA1 Message Date
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
Matthias Kuhn
1395367e58 [FEATURE] Expression field (Virtual field) 2014-07-24 08:57:21 +02: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
3bcff891b5 Fix build errors 2014-07-22 09:21:30 +10:00
Nyall Dawson
68e03cbc87 [FEATURE][composer] Data defined url for composer html items. Sponsored by City of Uster, Switzerland. 2014-07-21 23:19:01 +10:00
Nyall Dawson
460cee1bde [composer] Switch to using data defined button for picture source expression 2014-07-21 20:52:11 +10:00
Nyall Dawson
66031f67c0 [composer] documentation improvements 2014-07-19 22:14:22 +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
Martin Dobias
57dcfca487 Legend refactoring: first steps towards legend customization
- map layers have associated QgsMapLayerLegend instance
- QgsMapLayerLegend is interface for generation of legend with some default implementations
- QgsLayerTreeModelLegendNode is interface for representation of legend item in layer tree model with some default implementations
2014-07-17 20:49:30 +02:00
Nyall Dawson
e696158257 [FEATURE][composer] Allow setting attribute table header and content font colors. Fix saving alpha channel for grid colors. 2014-07-17 21:22:56 +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
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
Nyall Dawson
5b545d1eff Remove unused writeSettings, readSettings, removeSettings methods from QgsComposerItem 2014-07-12 00:10:21 +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
Nathan Woodrow
d4b8c407ce Add render state support for graduated renderer
Add check state role for graduated renderer

Sync sip bindings
2014-07-06 21:14:42 +10:00
Nyall Dawson
1e4ad28858 [FEATURE][composer] Data defined page size, orientation and number of pages for compositions. Funded by Canton of Neuchâtel, Switzerland 2014-07-06 01:55:38 +10:00
Nyall Dawson
a914d433b9 [composer] Composer items which set their own size must consider data defined width and height 2014-07-06 00:50:33 +10:00
Nyall Dawson
6d7c5f885d [FEATURE][composer] Data defined map scale, rotation and extents. Funded by Canton of Neuchâtel, Switzerland 2014-07-05 22:00:30 +10:00
Nyall Dawson
0fd99d2820 [FEATURE][composer] Data defined item rotation. Funded by Canton of Neuchâtel, Switzerland 2014-07-05 20:08:37 +10:00
Nyall Dawson
be5aeac3b7 [composer] Initial framework for data defined properties in compositions and composer items. Funded by Canton of Neuchâtel, Switzerland 2014-07-05 14:58:50 +10:00
Juergen E. Fischer
51408e1608 categorized renderer: show category by default (followup 4867b7fa) 2014-07-05 00:49:45 +02:00
Nathan Woodrow
b4edd9d364 Use index to render legend symbol items 2014-07-05 08:25:30 +10:00
Juergen E. Fischer
4867b7fa37 [FEATURE][API] categorized render: support disabling rendering of some categories
Funded-By: norBIT
2014-07-04 21:40:22 +02:00
Nyall Dawson
57980ab678 [composer] Make sure general atlas properties are imported before importing items from xml, so that items can be aware of atlas context while they are being created 2014-07-04 23:47:07 +10:00
Nyall Dawson
3187410e1e Move decodeBlendMode to QgsSymbolLayerV2Utils 2014-07-04 23:47:07 +10:00
Nyall Dawson
55ed628678 [composer] Improved method for setting/checking whether items are in a group 2014-07-04 20:25:46 +10:00
Martin Dobias
6bef78f49d Allow buiding of QgsLegendModel from layer tree 2014-06-30 12:24:24 +07:00
Nyall Dawson
a2a26c2829 [composer] Use pixels for snapping rather than mm, allowing for finer work when zoomed in. Merge grid and guide snapping settings to a single snap tolerance setting. 2014-06-29 16:05:22 +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
899c2f8b5d [composer] Prevent hang on trying to export compositions and atlases to files which can't be overwritten, and warn user instead (fix #9283) (fix #10016). Fix mouse cursor getting stuck after failed atlas exports. 2014-06-26 20:16:14 +10:00
Martin Dobias
2fedba0805 Doxymentation for QgsMapRendererJob + subclasses 2014-06-24 14:02:03 +07: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
Juergen E. Fischer
0d360d450a fix interactive network authentication 2014-06-22 17:56:39 +02:00
Martin Dobias
436b05e0cc Move QgsRendererJob subclasses to new files (no code changes) 2014-06-22 21:58:39 +07:00
Martin Dobias
d2bc8fb40a Small API cleanup in QgsMapSettings 2014-06-22 00:58:54 +07:00
Martin Dobias
37fd5b7ca5 More doxygen docs for QgsMapSettings 2014-06-22 00:58:54 +07:00
Martin Dobias
12628c5fd1 Add doxymentation for QgsMapSettings 2014-06-22 00:58:54 +07:00
Nyall Dawson
20e34e8e1c [composer] Fix attribute table column sort order could not be changed after initially adding columns to sort 2014-06-21 21:33:19 +10:00
Martin Dobias
2a4684a28d Fix #10655 (race condition in QgsCredentials)
Example of race condition during rendering:
Threads 1 and 2 call get(), it checks that there are cached credentials.
Thread 1 takes the cached credentials, thread 2 will get no data -> will request credentials in dialog
2014-06-20 17:20:57 +07:00
Martin Dobias
7aa93c00f7 Hopefully fix #10599 (blank composer map when rendering rasters)
When printing on Windows, the printing does not seem to work
well in the worker thread as QImages get converted to QPixmaps.
Therefore we force the map rendering into main thread to avoid the issues.

I do not have a printer, so I can't confirm the fix really helps
2014-06-20 10:50:51 +07:00
Martin Dobias
ed1d08d435 Fix #10605 (round corners when using simple line with offset) 2014-06-17 16:46:58 +07:00
Martin Dobias
378de25d3d [layertree] QgsLayerTreeGroup doxymentation 2014-06-17 14:57:31 +07:00
Martin Dobias
b134c254f3 [layertree] Update layer tree view when a tree node changes the expanded state 2014-06-17 14:57:31 +07:00
Martin Dobias
9d8a84247d Merge pull request #1451 from ahuarte47/Issue_OffsetCurve_API
Replace GEOS function calls by QgsGeometry class methods
2014-06-15 22:43:12 +07:00
Martin Dobias
9e3f921400 Map rendering: allow waiting for job while handling events 2014-06-15 22:22:53 +07:00
Juergen E. Fischer
03475be523 fix build error and update sips 2014-06-14 11:47:05 +02:00
Larry Shaffer
c1d80ed6a6 Initial fix for #3975, label engine vectorizing texts in SVG and PDF output
- Add labeling engine option to render text-as-text
- Default is still text-as-outlines (vectorized), due to differences between text (as text) and buffer (as outline) methods
- Good output with printing to PDF (searchable, selectable text and embedded fonts)
- OK output with SVG, but differences between text (as text) and buffer (as outline) methods

Does not yet include unit tests or auto-setting of text-as-text for SVG output
2014-06-13 10:20:55 -06:00