1264 Commits

Author SHA1 Message Date
Matthias Kuhn
a92d1a6e31 QgsExpression: some const fixes 2014-11-30 10:34:19 +01:00
Juergen E. Fischer
e48a6f642f indentation update [ci skip] 2014-11-30 10:26:39 +01:00
Juergen E. Fischer
98c0771b1a update scripts/fix_allows_to.sh and run it 2014-11-30 01:42:27 +01:00
Nathan Woodrow
391d105ce0 [Expression] Don't unregister function if not registering 2014-11-30 00:40:22 +10:00
Nathan Woodrow
6a17a60ae2 Move qgsfunction to qgis.core.
Add new register_function method when not using decorator
Wrap function call in try block to catch and report errors
2014-11-29 18:37:26 +10:00
Nyall Dawson
949185179e [composer] Fix refresh HTML item always using cached copy (fix #11747) 2014-11-27 13:15:37 +11:00
Nyall Dawson
fa1e8032e7 [symbology] Add method for retrieving symbol layers as list 2014-11-24 20:45:10 +11:00
Nyall Dawson
8039895db2 Add support for weighting points by expression to heatmap renderer 2014-11-23 21:48:41 +11:00
Nyall Dawson
802a4acdba Add an invert checkbox for heatmap renderer 2014-11-22 20:02:54 +11:00
Nyall Dawson
727747658b [FEATURE] Live heatmap renderer
Allows for live, dynamic heatmaps for point layers. Options include
specifying heatmap radius in pixels, mm or map units, choice of
color ramp, and a slider for selecting a tradeoff between render
speed and quality.
2014-11-22 13:03:54 +11:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00
Juergen E. Fischer
a57066a48d * fix cppcheck warnings
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
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