849 Commits

Author SHA1 Message Date
Blottiere Paul
3da3cf18b5 [FEATURE] add copy cell content action in attributetable context menu 2016-06-02 11:17:50 +10:00
Nyall Dawson
e0c87ffe6b [FEATURE] Move QgsShortcutsManager, QgsConfigureShortcutsDialog to gui
This allows plugins to reuse the shortcuts manager if they
want to add the ability for users to customise their shortcut
key sequences.

The shortcut manager has been extended to also handle customisation
of QShortcut objects as well as QActions.
2016-06-02 10:25:16 +10:00
Nyall Dawson
3a005cda36 Indentation 2016-06-02 08:50:27 +10:00
Matthias Kuhn
2b1560c5be Merge pull request #3079 from pblottiere/constraints
[FEATURE] widgets constraints
2016-06-01 17:33:25 +02:00
Nyall Dawson
6428f619da Doc, indentation fixes for hillshade renderer 2016-06-01 22:41:27 +10:00
Asger Skovbo Petersen
d47fe0f7b7 Hillshaderenderer: Add 'multidirectional oblique-weighted' rendering option (#3160) 2016-06-01 21:52:33 +10:00
Denis Rouzaud
f20e28d98f allow to hide/show all columns in attribute table config 2016-06-01 11:56:54 +02:00
Nyall Dawson
1b2af79c96 Ctrl zoom (#3154)
* Switch QgsMapCanvas zoomIn and zoomOut to slots

* Change shortcuts to zoom in/out tool to Ctrl+Alt +/-, and
make Ctrl + and Ctrl - trigger an immediate zoom in/out

Having Ctrl +/- perform an immediate zoom in/out is standard
across almost all apps with a zoom facility, so we should
respect that same behaviour.

This change also helps bring canvas and composer behaviour
closer together.

(fix #1824)
2016-06-01 07:43:52 +10:00
Blottiere Paul
8449e42ae0 add constraint description 2016-05-31 20:16:22 +02:00
Blottiere Paul
a636319af6 fix sip 2016-05-31 20:16:21 +02:00
Blottiere Paul
020d20a968 [FEATURE] constraints on widgets 2016-05-31 20:16:21 +02:00
Sandro Mani
3bdbf79b4d Clarify in the registerMapLayerPropertiesFactory docstring that the ownership of the factory is not transferred 2016-05-30 12:10:26 +02:00
Nyall Dawson
00502620c0 [FEATURE] Allow web map style shift-drag zoom
When certain map tools are active, you can hold down shift
and drag a rectangle on the map to zoom to that area. This
is enabled for the map tools which are not selection tools
(since they use shift for adding to selection), and edit
tools.

Gracias a Girona!
2016-05-30 19:39:57 +10:00
Nyall Dawson
8628f211dd Switch to flags for map tool behaviour 2016-05-30 19:39:32 +10:00
Nyall Dawson
71f8e3e4bb [FEATURE] Plugins can add pages to vector layer properties*
* This is actually a followup to 87121d, which fixes leaks
& clarifies some docs. But I figured the ability to add
custom pages to the properties is worth highlighting as a
feature on it's own, or it may go unnoticed in the other
globe related changes!
2016-05-30 19:39:32 +10:00
Sandro Mani
87121d63a8 Merge pull request #3126 from manisandro/globe
Revived globe, compatible with OsgEarth 2.7
2016-05-29 23:51:58 +02:00
Sandro Mani
cdbd4e45d4 Docstring updates 2016-05-29 21:18:57 +02:00
Nyall Dawson
aa53cfe387 [composer] Prevent zooming out/in too far
Would cause issues when scale became 0 and it was impossible
to further interact with the composer.
2016-05-30 01:50:13 +10:00
Nyall Dawson
421ab4fee7 Add missing docs, SIP bindings, some const correctness 2016-05-29 14:59:23 +10:00
Nyall Dawson
78bcd4b10c Correctly mark method as deprecated 2016-05-29 08:11:43 +10:00
Denis Rouzaud
b9baf2e95a Merge pull request #3131 from 3nids/lockscale
allow to lock scale to use magnification to zoom in/out
2016-05-28 18:18:22 +02:00
Denis Rouzaud
cf99817b72 allow to lock scale to use magnification to zoom in/out
this also removes the option for different behavior of mouse wheel
2016-05-28 16:52:09 +02:00
Nathan Woodrow
17b48563a5 [renderer] Live hillshade renderer for raster layers
Thanks to Asger Skovbo Petersen (@AsgerPetersen) for the idea and fixes
Thanks to Nyall for reviews and bug fixes
2016-05-28 21:01:33 +10:00
Sandro Mani
90887f460f Revived globe, compatible with OsgEarth 2.7 2016-05-28 10:09:34 +02:00
ThomasG77
eeea18ecba Cast each child of QgsAnnotationItem in SIP bindings for Python 2016-05-26 18:09:59 +02:00
Nyall Dawson
9f325df9c7 Search widget wrapper for relation reference widget 2016-05-25 15:41:04 +10:00
Nyall Dawson
58e1c7fc43 Add a set to null ('clear') to color buttons 2016-05-25 03:23:06 +10:00
Nyall Dawson
1c4811fa12 Add Is Not Null and Is Not Between type search/filters 2016-05-24 00:26:15 +10:00
Nyall Dawson
e00ea61be6 Add missing docs 2016-05-24 00:26:15 +10:00
Nyall Dawson
02c0174d41 Add a "Between" type search/filter in filter form mode
When Between searches are selected, two search widget wrappers
will be created to allow entry of the minimum/maximum allowed
values.
2016-05-24 00:26:15 +10:00
Nyall Dawson
026e352cd9 [FEATURE] Add a search widget wrapper for datetime widgets 2016-05-24 00:26:15 +10:00
Nyall Dawson
6d868598f5 Add an interderminant "empty" state for QgsDateTimeEdit 2016-05-24 00:26:14 +10:00
Nyall Dawson
195b4dee5a [FEATURE] Add search widget wrapper for check box widget 2016-05-24 00:26:14 +10:00
Nyall Dawson
ca5c7e2cd4 [FEATURE] Form based select/filter in attribute table
This commit adds a new mode to the attribute table dialog for searching
and filtering features. When activated (using a button on the toolbar
or by pressng CTRL+F), the dialog will switch to form view and all
widgets are replaced with their search widget wrapper variant.

Alongside each widget is a tool button with options for controlling
the search/filter behaviour for that field, eg "equal to", "not equal
to", "is null", "greater than", etc.., with the options presented
matching themselves to the corresponding field and widget type.

New buttons appear at the bottom of the form for either selecting
matching features (with options for add to selection/remove from
selection/select within current selection) or filtering features
in the table (with options for adding features to a current filter
or further restricting a current filter).

Sponsored by SIGE
2016-05-24 00:26:14 +10:00
Nathan
3ace8e62fd [Style dock] Add support for raster layers 2016-05-22 20:45:24 +10:00
Marco Hugentobler
c0d12dcdeb [FEATURE]: possibility to set the segmentation tolerance (maximum angle or maximum difference) 2016-05-19 11:02:43 +02:00
Denis Rouzaud
1602c02df7 Merge pull request #3009 from pblottiere/magnifier
[FEATURE] add a map canvas magnifier
2016-05-19 06:30:07 +02:00
Blottiere Paul
d23a110cb6 move magnification in map settings 2016-05-18 14:40:41 +02:00
Blottiere Paul
842be91e61 remove spin box background color 2016-05-18 02:01:28 +02:00
Matthias Kuhn
8c402bcf42 Remove child features when parent's add feature form is cancelled 2016-05-17 06:35:55 +02:00
Matthias Kuhn
9080aa1988 Don't require a parent for QgsExpressionBuilderWidget 2016-05-16 11:16:13 +02:00
Matthias Kuhn
d07d9edda6 Allow sorting attribute table by expression 2016-05-16 11:16:13 +02:00
Nyall Dawson
6886ea0d0c [FEATURE] Redesigned interactive gradient editor
Uses new gradient editor widget and color controls for easier
manipulation of gradients. Also adds an interactive plot
for modifying gradient stops via the color HSV or RGB values.

Fix #8383

Sponsored by North Road
2016-05-12 21:03:59 +10:00
Nyall Dawson
881be0f365 [FEATURE] New reusable interactive widget for editing gradient ramps
Supports:

- drag to move color stops
- double clicking to add a new stop
- pressing delete will remove the selected stop
- pressing arrow keys will move the selected stop, shift+arrow= larger
  move
- drag and drop a color onto the widget to add a new stop

Sponsored by North Road
2016-05-12 21:03:51 +10:00
Nyall Dawson
77fc122bed Move internals of QgsColorDialogV2 to new QgsCompoundColorWidget widget
This allows reuse of the full options from the color dialog when
required in a widget form.
2016-05-12 20:52:16 +10:00
Blottiere Paul
9a62613b6b [FEATURE] add a map canvas magnifier 2016-05-12 09:42:51 +02:00
Matthias Kuhn
d088fe072d Fix action widget on attribute table 2016-05-11 09:22:49 +02:00
Nyall Dawson
5177d93b5a Add time field filter option for QgsFieldComboWidget (also add docs) 2016-05-11 11:59:39 +10:00
Nathan Woodrow
ca914f118e [FEATURE] Add style/history tab to style dock 2016-05-10 10:32:30 +10:00
Nyall Dawson
56783c915e Merge pull request #3051 from nyalldawson/cad_fixes
Improvements and fixes to advanced digitising dock
2016-05-09 21:38:37 +10:00