44 Commits

Author SHA1 Message Date
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Nyall Dawson
a57080cc71 [FEATURE][composer] Allow negative margins for label items
If negative margins are set for a label, the label contents will
begin outside the bounds of the label. This is desirable for
aligning label items with other items while allowing for optical
margin alignment for the label type.
2014-11-01 06:38:51 +11:00
Nyall Dawson
5b9210b91d [composer] Respect reference point when resizing scalebar and legend
Previously, the reference point (and data defined position/size) were
ignored when scalebars or legends resized themselves.

Fix #11321, #11380
2014-10-21 23:03:55 +11:00
Nyall Dawson
71fbe9c9ce [composer] Fixes to composer item sip bindings
- Added some missing /TransferThis/ arguments
- Ensure that correct item type is returned for all item types
2014-10-19 14:45:18 +11:00
Nyall Dawson
a5b5bd4c45 [composer] Fix new frames not inheriting outline color, clean up item api a bit 2014-10-09 19:56:59 +11:00
Nyall Dawson
8c502c19fc [composer] Fix pages are added but never removed with multiframe resizing 2014-09-29 22:19:08 +10:00
Nyall Dawson
8725c2df4b [composer] Fix ctrl modifier not applying to wheel events when in move item
content mode, add missing undo merge command for item zoom (refs #7974)
2014-09-29 19:21:01 +10:00
Nyall Dawson
ce2142585a [FEATURE][composer] Add checkbox and data defined button for controlling
whether an item is excluded from composer exports/printouts.
2014-09-26 16:03:31 +10:00
Nyall Dawson
7b84ccc9b1 [composer] Don't draw handles around locked items (fix #11059) 2014-08-25 22:58:42 +10:00
Juergen E. Fischer
07165eae79 indentation update 2014-08-17 13:37:34 +02:00
Nyall Dawson
4506b81537 [FEATURE][composer] Implement an item tree panel for composer windows
(fix #4358). Allows for selection of items, hiding/showing items,
toggling lock status of items and double-clicking to edit item id.
2014-07-30 20:01:05 +10:00
Nyall Dawson
200a3431e9 [composer] Add api method for toggling visibility of composer items 2014-07-28 20:22:23 +10:00
Nyall Dawson
3f076f0d30 [composer] Add function for getting a friendly display name for items 2014-07-28 19:46:12 +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
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
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
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
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
55ed628678 [composer] Improved method for setting/checking whether items are in a group 2014-07-04 20:25:46 +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
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
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02: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
de301e9ada [composer] Add frameOutlineWidth property for composer items (sponsored by City of Uster, Switzerland) 2014-04-28 20:59:41 +10:00
Nyall Dawson
7e977bcfd3 [composer] Some api documentation improvements and fix ups 2014-04-28 19:29:04 +10:00
Nyall Dawson
122034a07a [composer] Some small fixes to svg layers export, naming improvements, additional comments 2014-04-16 19:47:40 +10:00
vmora
0c19945c04 [composer] add svg export with layers 2014-04-16 19:11:20 +10:00
Nyall Dawson
cfc83031ef [composer] Allow setting the join style for composer item frames 2014-04-08 20:20:25 +10:00
Nyall Dawson
78ecef6f2a [composer] Draw mouse handles and item bounds outside of item's frames, so that snapping occurs to edge of item frame (fix #8943) 2014-02-04 19:01:41 +11:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Nyall Dawson
719c78c2c7 [composer] Clean up item rotation api, seperate item rotation (for shapes, labels) from map rotation and picture rotation.
Maintain compatibility with 2.0 api, deprecate ambiguous rotation/setRotation methods
2013-12-30 20:00:55 +11:00
Nyall Dawson
24d110606c [FEATURE] Allow multi item drag and resize in composer (fix #7918)
[FEATURE] Always draw selection handles on top of composition, add dashed border for selected items (fix #7793)
Move responsibility for drawing selection mouse handles and mouse interaction with selection to new class
2013-10-02 09:09:16 +02:00
Juergen E. Fischer
3854086d47 sip update 2013-06-23 16:00:24 +02:00
nyalldawson
9e870c7893 Add tests for python bindings for composer item blending and transparency
Add python bindings for composer item background
2013-05-01 14:05:43 +10:00
nyalldawson
13d7ced401 Add SIP bindings for composer item blend mode and transparency 2013-04-22 14:16:30 +10:00
olivierdalang
00c832b151 Implemented ComposerItem's Uuids
- uuid are kept on cut/paste, but deleted on import template or copy/paste
- removed obsolete id reference in QgsComposerLabelWidget
2013-03-15 08:13:30 +01:00
Juergen E. Fischer
0fbea1911e german translation update 2013-02-19 23:33:17 +01:00
olivierdalang
2d4220bba9 Update of composer item's GUI 2013-02-19 02:28:43 -07:00
Alexander Bruy
5e45a22d06 remove deprecated methods from API 2012-12-23 10:40:23 +02:00
Juergen E. Fischer
4c97806d26 fix doxygen warnings 2012-09-25 21:29:32 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00