Blottiere Paul
7a8a5411e0
[FEATURE][composer] Add tools for drawing polygon and polylines
2016-04-01 11:05:03 +11:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +11:00
Nyall Dawson
9cc9d424ce
Add extra check for deprecations to documentation test
...
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.
It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.
Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Matthias Kuhn
56ccb2b858
sipClass_Klass is deprecated for a long time: replace with sipType_Klass
2015-11-11 23:22:51 +01:00
Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Nyall Dawson
43bcc0c2a5
Finish porting composer to expression contexts
2015-08-22 19:01:40 +10:00
Nyall Dawson
a0e35a3893
Switch some composer expressions to contexts
2015-08-22 19:01:39 +10:00
Juergen E. Fischer
9752c468c1
indentation update
2015-07-29 11:52:14 +02:00
Nyall Dawson
0912314f0c
Fix crappy documentation (which I wrote) which came back to bite
...
me and wasted part of my life I'll never get back...
2015-06-22 21:53:44 +10:00
Nyall Dawson
7314047698
Fix missing doc strings due to invalid doxygen tags
2015-04-30 17:26:58 +10:00
Juergen E. Fischer
abd4a04399
sip update
2015-02-03 02:21:52 +01:00
Juergen E. Fischer
9ceb5ceab6
sip sync
2014-11-21 01:17:21 +01:00
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