528 Commits

Author SHA1 Message Date
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
Nyall Dawson
6d7e3960de Deprecate QgsDataDefinedSymbolDialog, no longer used
Move help descriptions to QgsDataDefinedButton and consolidate
with existing descriptions.
2015-01-23 16:54:58 +11:00
Juergen E. Fischer
cce2eb50cb indentation update 2015-01-22 20:56:02 +01:00
Matthias Kuhn
cb48948d0b Add python bindings for QgsMessageBar slots 2015-01-22 17:19:08 +01:00
Nyall Dawson
df939c3fa8 Data defined all the things!
Add a bunch of missing data defined options for symbology.
Also fix dialog sizing issues.
2015-01-22 16:04:47 +11:00
Nyall Dawson
e847bb1108 Add missing methods to sip 2015-01-22 07:00:58 +11:00
vmora
6fb347d23f improve GUI consistency & UX for data-defined style
data defined buttons added to the gui
fixes #9881
2015-01-22 06:56:34 +11:00
Martin Dobias
cd7180ec67 Added convenience method snappingUtils() to QgsMapCanvas
Map tools can use canvas.snappingUtils().snapToMap(pt) to do the snapping.
2015-01-20 10:21:54 +07:00
Martin Dobias
83770dfd9e Hook snapping utils into QGIS interface
Now the new snapping engine is ues for add feature map tool
2015-01-20 10:18:39 +07:00
Nyall Dawson
0cde4f103b Ensure that clear button is shown for QgsSpinBox/DoubleSpinBox
Previously the clear button might not show if the value of the
widget was set while its signals were blocked.
2015-01-19 23:23:59 +11:00
Nyall Dawson
1310b87081 Show recently used projections in QgsProjectionSelectionWidget 2015-01-19 22:57:46 +11:00
Nyall Dawson
f68b099bc1 Change projection selection widget to use a combo box
With options for layer CRS, project CRS and default CRS.
2015-01-19 16:11:39 +11:00
Juergen E. Fischer
d11cc82b3f keep rotation support state in canvas (followup 204e7104) 2015-01-16 20:30:47 +01:00
Juergen E. Fischer
93e22264c3 header install update 2015-01-16 15:49:24 +01:00
Nathan Woodrow
59162bc178 [FEATURE] Function editor for expression widget.
Allows for adding on the fly functions to the expression engine.
Functions are saved in qgis2\python\expressions.

New qgis.user module in Python.

The qgis.user.expressions package points to the qgis2\python\expressions
package in the users home
2015-01-16 19:43:47 +10:00
Denis Rouzaud
7c4f3f9640 remove lineEdit method from projection selection widget
this will allow to change the widget design without breaking the API
2015-01-09 11:01:39 +01:00
Juergen E. Fischer
73a2858147 indentation update 2015-01-09 10:23:39 +01:00
Denis Rouzaud
127c882e98 create scale widget (scale combo box + button to set scale from map canvas) 2015-01-09 07:40:44 +01:00
Nyall Dawson
c11319b859 Fix button box in options dialog not working (fix #11960)
QgsOptionsDialogBase was incorrectly finding the projection
selector's buttonBox widget and attaching the connections
to that widget, rather than the dialog's widget.

Rename projection selector's button box to avoid this conflict.
2015-01-08 06:48:55 +11:00
Nyall Dawson
1a46c40a74 Port a bunch of CRS selectors across to QgsProjectionSelectionWidget 2015-01-06 13:46:16 +11:00