547 Commits

Author SHA1 Message Date
Martin Dobias
099faec597 Added API to use layer style overrides also in map canvas
... so that map canvas does not always use just the active layer style
2015-07-07 13:15:56 +02:00
Martin Dobias
9e16952732 Extent group box improvements: custom title base, checkable group box 2015-06-29 10:25:47 +08:00
Nyall Dawson
0ea638cbc0 Followup f4e356b 2015-06-27 14:11:44 +10:00
Sandro Mani
f4e356bcef Add QgsExpressionBuilderWidget::loadFieldsAndValues 2015-06-27 13:34:56 +10:00
Juergen E. Fischer
ea71b2c0c7 avoid reloading not rendered layers on map refresh 2015-06-24 18:08:24 +02:00
Nyall Dawson
0016ab6230 Add a "load values" button to graduated histogram. The previous
approach of automatically fetching the values on demand was
resulting in graphical corruption to the parent tab widget.
2015-06-24 17:11:45 +10:00
Nyall Dawson
084c4558b6 Make size assistant more prominent in dd buttons, allow control of
assistant menu text
2015-06-15 07:21:27 +10:00
Nyall Dawson
86a45d406b Tweak appearance of histogram titles and hide value title to make
more space for plot itself.
2015-06-12 20:19:43 +10:00
Nyall Dawson
7fb4bea279 Fix map layer combo box sometimes showing a selected layer which
is not applied

This could also have been fixed by changing from the activated
signal to currentIndexChanged for the indexChanged connection,
but it looks like activated was intentionally used here.
2015-06-10 16:03:38 +10:00
Matthias Kuhn
e66dd998d6 Use full height on attribute form with drag and drop layout
And fix some file permission issues
2015-06-05 02:46:16 +02:00
Denis Rouzaud
710e7f74e3 sort include by file name 2015-06-02 08:15:34 +02:00
Denis Rouzaud
adcf119afa sip bindings for user input tool bar 2015-06-02 08:15:34 +02:00
Nyall Dawson
39f4ed526d Fix build 2015-05-30 08:57:55 +10:00
Nyall Dawson
42da218626 Fix memory leaks 2015-05-30 08:53:19 +10:00
Matthias Kuhn
8eca38ca5f Attribute table performance when deleting features
This fixes performance issues with the attribute table visible when deleting a
large number of features.

The attribute table tries to behave smart in the following way:

 * It tries to remove only the deleted rows as long as they are in one or a few
   single blocks
 * If there are more than 100 rows to delete and it starts to delete blocks
   of a size smaller than 10 it assumes that the selection to delete is widely
   distributed and that a reload of the whole model is less expensive than a
   differential update.

Fix #10167
2015-05-27 22:28:23 +02:00
Juergen E. Fischer
cec5bdeb0d fix some warnings 2015-05-24 18:48:22 +02:00
Nyall Dawson
9031e9849f [FEATURE] Add options under categorised renderer advanced menu to
set categories to symbols with a matching name from the style
library or an XML style file.

Thanks Lene for the great hackfest!
2015-05-23 00:42:24 +10:00
Nyall Dawson
ef0d413819 Data defined font marker character 2015-05-22 20:00:19 +10:00
Nyall Dawson
1e3b820da4 [FEATURE] Data defined properties for font marker 2015-05-22 01:04:02 +10:00
Nyall Dawson
a80c3496ac Add size assistant to simple and svg marker data defined sizes 2015-05-21 21:47:33 +10:00
Matthias Kuhn
a58a2f28d7 Add unit test for edit widget "TextEdit"
QGIS Dev conference Denmark
2015-05-20 11:53:34 +02:00
vmora
1e46196937 [FEATURE] add expressions at the symbollist level
Size and Rotation can be defined by an expression for all symbols
composing a marker. Width can be defined by an expression for all
symbols composing a line.

For markers, a legend is generated for varying sizes. This allows
multivariate analysis legend in the case of classified/graduated colors.

The offset is now set along with size to maintain the relative position
of symbols composing a marker.

An asistant, with preview, is accessible through the data defined button
to help the user define the size expression. Three methods are
available: Frannery, Area and Radius.

Added a widget for use in categorized/classified symbology gui to set
the expression if needed. The assistant is also available from it.
2015-05-20 19:30:18 +10:00
Denis Rouzaud
42f0993c32 missing bindings for user input tool bar 2015-05-20 08:52:21 +02:00
Nyall Dawson
7216670679 Fix some syncing issues relating to graduated histogram widget 2015-05-20 06:05:42 +10:00
Nyall Dawson
183286a006 [FEATURE] Add a graphical histogram for the graduated renderer
This adds a new histogram tab to the graduated renderer, which
shows an interactive histogram of the values from the assigned
field or expression. Class breaks can be moved or added using
the histogram widget.

A base class, QgsHistogramWidget, has been created to display
histograms for a field or expression. In future this could be
used to show a histogram within a "selection statistics" panel.

Sponsored by ADUGA (http://www.aduga.org)
2015-05-19 02:21:15 +10:00
Matthias Kuhn
24417fd75d Add python bindings for QgsWidgetWrapper
Allows the usage of `widget.wrapper()` from a form's python init script.
2015-05-13 09:49:55 +02:00
Nyall Dawson
2863f20d67 Add a const geometry getter to QgsFeature 2015-05-11 19:46:32 +10:00
Nyall Dawson
d970daafa3 Add a method for creating a QgsDataDefined from a QgsDataDefinedButton 2015-05-08 16:25:04 +10:00
Nyall Dawson
6ad2f9f091 Some improvements to QgsDataDefined and QgsDataDefinedButton:
- enhanced methods for storing/retrieving QgsDataDefined in a
  string map
- add method to QgsDataDefinedButton to update parameters for a
  QgsDataDefined
- deprecate an unused method
- const correctness
2015-05-06 18:35:59 +10:00
Nyall Dawson
7314047698 Fix missing doc strings due to invalid doxygen tags 2015-04-30 17:26:58 +10:00
Nyall Dawson
eb4d8c76b7 Fix docs for QgsProjectionSelectionWidget 2015-04-30 07:05:56 +10:00
vmora
6a8526f91c Add assistant support to QgsDataDefinedButton 2015-04-27 18:22:57 +10:00
Nyall Dawson
28b5217bb8 Merge pull request #1974 from vmora/graduated_by_size
[feature] graduated with varying size
2015-04-11 11:15:50 +10:00
vmora
84af60ad56 [feature] graduated with varying size
The graduated symbol renderer now allows to use varying size instead of
varying color.

The classification remains the same an tabbed size/color in the gui
allows the use to choose one type or the other.
2015-04-10 09:14:14 +02:00
Matthias Kuhn
ed005c0172 Add QgisInterface::composerRemoved signal 2015-04-08 23:21:20 +02:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Juergen E. Fischer
f055db1e02 map canvas: update sip bindings (followup c3321e5) 2015-04-04 23:57:43 +02:00
Nyall Dawson
742f3233ee [FEATURE] Paint effects for layers and symbol layers
This commit adds a new framework for implementing paint effects, which
modify the results of QPainter operations to apply visual effects
such as drop shadows and blurs.

The initial implementation allows for effects to be applied to entire
layers and individual symbol layers.

Included are a drop shadow, inner shadow, blur, inner glow, outer glow,
colorise and transform effect. A "stack" effect is also implemented
which allows other paint effects to be combined in various ways.

Sponsored by hundreds of generous kickstarter contributors!
2015-03-28 20:04:50 +11:00
Juergen E. Fischer
f17755cec4 indentation update 2015-03-19 22:58:11 +01:00
Juergen E. Fischer
bfb8ab6893 edit widgets: keep default values of new feature's attributes until they are added
(fixes #12391 & #12386)
2015-03-18 16:09:47 +01:00
Matthias Kuhn
fec3bd83f6 Custom widgets: make sure config can loaded from the project
Apparently sip cannot handle private virtual methods
2015-03-18 09:36:18 +01:00
Denis Rouzaud
4bfbcb2629 [joins] allow edition of joins in layer properties 2015-03-10 14:21:08 +01:00
Juergen E. Fischer
cf1c30d7c7 update QgsAttributeDialog sip bindings (fixes #12248) 2015-02-24 20:20:12 +01:00
Nyall Dawson
3c71498c3e Add some missing /TransferThis/ to sip bindings for QObject parents 2015-02-18 17:35:47 +11:00
Nyall Dawson
c1fe68c821 Fix big parameter passed by value warnings 2015-02-16 16:11:57 +11:00
Juergen E. Fischer
bca1560e9f remove unused message log viewer flag (follows up followup followup 957f1ac) 2015-02-16 01:16:12 +01:00
Juergen E. Fischer
a959960587 relation reference widget: add methods to sip (followup 52c2e4e90) 2015-02-03 18:34:58 +01:00
Nyall Dawson
b05e789c57 Fix build 2015-02-03 20:47:29 +11:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Nyall Dawson
cd86710d87 Fix some warnings 2015-02-02 16:05:54 +11:00