132 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
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
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
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
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
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
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
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
Sandro Mani
456adad745 Consider also font descent and baseline in QgsComposerLabel::adjustSizeToText. Funded by Sourcepole QGIS Enterprise. 2014-06-07 18:17:37 +10:00
Sandro Mani
b199dc7be1 QgsComposition::addItemsFromXML for python (without optional arguments). Funded by Sourcepole QGIS Enterprise. 2014-06-04 13:30:05 +02:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Nyall Dawson
166f8fc534 [composer] Small improvements to api docs 2014-06-01 13:10:32 +10:00
Sandro Mani
b7423cf24b [composer] Composer item controls in GUI show position relative to page origin (also save page number and relative position to xml) (fix #9411) 2014-06-01 13:10:32 +10:00
Nyall Dawson
c38d3e12af [composer] Remove use of runtime_error for providing feedback from atlas 2014-05-29 22:49:58 +10:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Nyall Dawson
e8b7ca943c [composer] Small improvements to API docs 2014-05-23 11:17:05 +10: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
bbdf7cd220 sync some sip bindings 2014-05-18 15:22:32 +02:00
Juergen E. Fischer
7c75ffa3b0 spelling fixes 2014-05-17 22:02:03 +02:00
Nathan Woodrow
a1aa980928 Fix windows build 2014-05-15 22:28:11 +10:00
Nyall Dawson
dc905accac [FEATURE][composer] Rework attribute tables to make tables more flexible.
- Add support for reordering columns in a table (fix #5942)
- Add support for expression based columns
- Add support for setting column alignment (fix #2957)
- Add support for setting column header alignment
- Make sorting in tables correctly handle nulls, dates, times, locale aware string sorting
This work also paves the way for future expansion of attribute tables to allow for setting column widths, column colors, etc.
2014-05-15 12:06:32 +10: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
ecf2600a4e [composer] Allow for finer control over text rendered with QgsComposerItem::drawText, fixes clipped text when using italic fonts in legend titles 2014-05-15 10:04:23 +10:00
Nyall Dawson
0d3838759e [composer] Allow user to set maximum distance for page breaking in html items. 2014-05-08 20:23:16 +10:00
Nyall Dawson
93fa94f913 [FEATURE][composer] Add button to create new frame when using composer items in Use Existing Frames mode 2014-05-07 19:40:34 +10:00
Nyall Dawson
2d7cd38b45 [composer] Refresh view action now also reloads html items and refreshes attribute table features. 2014-05-01 23:00:43 +10:00
Nyall Dawson
8eb929aeda [composer] Add refresh button to html items, to reload the html source from the url. 2014-05-01 23:00:43 +10:00
Nyall Dawson
ad0b4daf8d [composer] Add checkbox for controlling whether html items should use smart page breaking (sponsored by City of Uster, Switzerland) 2014-04-28 22:14:53 +10:00
Nyall Dawson
de301e9ada [composer] Add frameOutlineWidth property for composer items (sponsored by City of Uster, Switzerland) 2014-04-28 20:59:41 +10:00
Nyall Dawson
8b9c9c49a1 [composer] Update picture item header documentation and sip bindings (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:01 +10:00
Nyall Dawson
ecc2ebf59a [composer] Add signal for when composition print resolution changes (sponsored by City of Uster, Switzerland) 2014-04-28 20:19:01 +10:00