1252 Commits

Author SHA1 Message Date
Nyall Dawson
44a334b095 Add hasDefaultValues method to QgsDataDefined, add some tests 2014-11-20 21:28:34 +11:00
Nyall Dawson
c8ad99bf6a Fix incorrect cast to double in shapeburst fill header 2014-11-19 19:40:51 +11:00
Nyall Dawson
52159851bf [FEATURE] Raster image symbol fill type
Allows for filling polygons with a tiled raster image. Options
include (data defined) file name, opacity, image size (in pixels,
mm or map units), coordinate mode (feature or view) and rotation.
2014-11-19 15:26:09 +11:00
Radim Blazek
eef435e979 [GRASS] data item fix 2014-11-18 13:39:46 +01:00
Matthias Kuhn
fd95930194 Switch QgsCompositionChecker to MultiRenderChecker 2014-11-14 18:30:29 +01:00
Nyall Dawson
31c32505bb Switch to RGB32 images for composition checker 2014-11-14 18:30:29 +01:00
Matthias Kuhn
b28dcb9cbc [unit tests] Add multirenderchecker
The multirenderchecker allows to have several images, each with its own set of
anomalies distributed in several subdirectories.
With the help of multiple reference images, it is possible to apply a color
tolerance to each of these
2014-11-14 18:30:27 +01:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Radim Blazek
40bb180d9a expand browser items in threads 2014-11-12 22:18:19 +01:00
Radim Blazek
1018c91f29 use connection name in wms,wfs,wcs data item path instead of uri, group ows servers by connection name instead of uri 2014-11-10 19:39:55 +01:00
Radim Blazek
c78a3783a9 browser last expanded better 2014-11-07 11:13:02 +01:00
Nyall Dawson
8b29097f36 [FEATURE][composer] Vertical descending direction for annotations
This change adds a new descending vertical direction mode for
map grid annotations. Previously only ascending text was
supported for vertical annotations.
2014-11-07 10:31:59 +11:00
Nyall Dawson
878230a1db Add methods to QgsGeometry to convert to/from QPointF and QPolygonF 2014-11-06 17:29:15 +11:00
Nyall Dawson
b5c9df0e61 Add methods for converting QgsPoint to and from QPointF and QPoint
Also add some more basic unit tests for QgsPoint
2014-11-06 17:29:05 +11:00
Juergen E. Fischer
eda723cd3b fix typo 2014-11-04 11:48:24 +01:00
Nyall Dawson
ac9220d35b [FEATURE][composer] Finer control of frame and annotation display
Previously, for rotated maps or reprojected grids, the composer would
draw all coordinates for every map side. This resulted in a mix of
latitude/y and longitude/x coordinates showing on a side. This change
allows users to control whether they want all coordinates, latitude
only or longitude only for each map frame side. Similar options have
also been added for controlling how a map grid frame is divided.

In related news... the composer map dialog is now the ugliest,
most cluttered and un-user friendly dialog in all of QGIS. I'd
love suggestions/mockups from the UX team for ways this could
be improved.
2014-11-04 13:17:44 +11:00
Nyall Dawson
7b537f640f [FEATURE][composer] Add view menu option to hide bounding boxes
This allows users to hide the bounding boxes for selected items
within a composition. It's a handy feature for allowing interaction
with items while previewing exactly how they will look when the
composition is exported, without large boxes blocking the view.
2014-11-01 06:38:51 +11: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
a2a094bd02 [FEATURE][composer] Allow control of hoz and vert margins for labels
Previously only a single margin setting would apply to both
horizontal and vertical margins. This change allows users to specify
different horizontal and vertical margins.
2014-11-01 06:38:51 +11:00
Juergen E. Fischer
4bc4636aeb fix typos 2014-10-28 12:22:42 +01:00
Juergen E. Fischer
6402864537 doxygen: add/replace some occurences of \verbatim with \code 2014-10-26 00:53:20 +02:00
Martin Dobias
8db77fcff7 Fix Andreas' problem with checkboxes in legend + update SIP bindings
The problem was that rule-based renderer allowed cloned rules to have the same unique rule key.
That in turn created the confusion with checkboxes in legend. Now rules always have new rule key
when cloned. The only exception is when the whole renderer is cloned - in such case we preserve
their rule keys, so that other components (legend / visibility presets) can still keep using
the original rule keys.

Projects where this problem appears need to be fixed - the easiest way is to select all rules,
copy&paste them and remove the previous rules.
2014-10-24 12:25:33 +07:00
Martin Dobias
cc306099d9 Fix #11474 (cannot move layers in layer tree anymore)
I have managed to break that with implementation of #11369.
Obviously it is a bad idea to change selection in a slot connected to model's rowsInserted signals
because the drag'n'drop does not work properly anymore. Now registry bridge will emit a signal after
new layers have been added, so the selection change at that point should be safe.
2014-10-23 19:08:54 +07:00
Martin Dobias
aeb9d934ed Fix QgsRasterInterface bindings again (fixes PyQgsRasterFileWriter test) 2014-10-23 16:16:21 +07:00
Martin Dobias
37ba8e4187 Fix #9319 (copy of QgsExpression crashes)
Disabled the copy constructor for now (later we may introduce implicit sharing)
2014-10-22 23:03:53 +07:00
Martin Dobias
6db04b41f9 Fixed SIP wrapper for conversion to QgsRasterInterface subclasses 2014-10-22 17:39:14 +07:00
Juergen E. Fischer
3bdb104a01 use QgsCredentials to request wms/ows credentials on demand and wms cleanups (fixes #11184) 2014-10-21 23:26:36 +02:00
Matthias Kuhn
338e138be6 SIP update: expose QgsAttributeAction icon, iconPath and name
Fix #11458
2014-10-21 15:32:17 +02: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
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Martin Dobias
4906d56955 Fix #10819 (simple/marker line with offset on the wrong side of inner rings) 2014-10-21 00:51:52 +07:00
Nyall Dawson
0f4bd4e0fc [composer] Move ungrouping logic from composer view to composition
As per previous commit, this is useful for plugin authors. It also
fixes a potential bad crash (itemRemoved emitted for group item after
the group item was already deleted) and adds unit tests.
2014-10-19 14:45:19 +11:00
Nyall Dawson
993f0dcd3d [composer] Move code for creating groups to QgsComposition
Previously this code was located in QgsComposerView. Moving it to
QgsComposition simplifies grouping items for plugins. Also start
a new unit test for QgsComposerItemGroup.
2014-10-19 14:45:19 +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
0cb985465b [composer] Fix area calculation in expressions with OTF (fix #9791)
Adds an argument to QgsExpression::replaceExpressionText to allow
passing an optional QgsDistanceArea to use during calculations.
Ensure that html and label composer items correctly specify this
argument.
2014-10-19 11:04:57 +11:00
Nyall Dawson
4ea5c80948 [composer] Avoid crash when using redo on multiframe (fix #11351)
Since multiframe changes can remove and create new frame items,
it's not safe to directly manipulate frame items in
QgsComposerItemCommand. Now, commands which apply to a frame always
fetch a reference to the correct frame item directly from the
parent multiframe. Also added unit tests for this crash.
2014-10-15 20:17:10 +11:00
Juergen E. Fischer
2cef8d50f2 remove get from QgsProviderRegistry::getProviderCapabilities() (followup 2e943c93) 2014-10-14 13:30:33 +02:00
Jürgen Fischer
e0df5d4dd9 Merge pull request #1621 from manisandro/bad_layer_improvements
Bad layer dialog improvements
2014-10-14 13:25:22 +02:00
Nyall Dawson
1cb22c084d [composer] Seperate draw empty rows option from empty table behaviour
Now "draw empty rows" is a seperate checkbox (fix #11392)
2014-10-14 21:25:12 +11:00
Nathan Woodrow
1770ec1a6b Merge pull request #1618 from ccrook/GraduatedRendererBugFix11366
Fix #11366 Customised graduated renderer labels ignored
2014-10-13 08:14:43 +10:00
Sandro Mani
2e943c936c Bad layer dialog improvements (Funded by Sourcepole) 2014-10-09 16:49:31 +02: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
Chris Crook
823b57e360 Fix for bug 11366 2014-10-09 09:37:19 +13:00
Nathan Woodrow
e5850f38b1 Fix #10858 - Set relative path to QLR save folder. Load relative to QLR file 2014-10-06 22:55:27 +10:00
Matthias Kuhn
7318c73012 Convert values to target field format
For the field calculator and virtual fields.

Fix #11000
Fix #10995
Fix #10993
2014-10-06 10:18:02 +02:00
Chris Crook
6c2c6e2b6b Two bug fixes for graduated renderer 2014-10-06 07:41:54 +13:00
Nyall Dawson
6ec751f634 [composer] Cache transformed grid lines and intersections to slightly
speed up grid drawing
2014-10-03 23:11:47 +10:00
Nathan Woodrow
0d5fb236ba Merge pull request #1599 from ccrook/CategorizedRendererFixes
Categorized renderer fixes
2014-10-03 16:01:23 +10:00
Chris Crook
ba0f9d40c9 Reverting to preferred QgsRenderRangeV2LabelFormat 2014-10-03 18:09:23 +13:00
Nyall Dawson
10d75c0066 [composer] Fix display name for attribute table frames 2014-10-03 09:15:07 +10:00