3793 Commits

Author SHA1 Message Date
Nyall Dawson
dce206e374 [FEATURE] New custom QGIS color picker dialog. Basically
it's a Frankenstein's monster of the best bits of lots of other color
picker implementations. Features include:
- Sliders for hue, saturation, value, red, green, blue color components
- Alpha slider
- Option to copy/paste html color codes (in a variety of formats)
- Before/after color preview, with alpha preview
- Interactive 2D color ramp widget
- Hue wheel/triangle widget
- Editable color swatch lists
- Live color sampler with option to sample over a set radius
- Supports interaction with other apps via drag and drop of colors (OS support
dependant)
- Option to disable the dialog and use the native picker dialog instead (TODO:
make the dialog so awesome that even @dakcarto switches across...)

Credit for icons goes to 3nids!
2014-09-16 23:00:06 +10:00
Denis Rouzaud
bcc6647376 [SIP] add missing argument in QgsEditorWidgetRegistry::QgsEditorWidgetWrapper 2014-09-16 12:01:30 +02:00
Denis Rouzaud
1fb524f119 improved identify menu with a dedicated class 2014-09-16 11:51:18 +02:00
Nyall Dawson
e79ff32f47 Add options for color buttons, allowing them to be used in a swatch
type mode.
2014-09-16 19:39:41 +10:00
Denis Rouzaud
fb30b84cfb [QgsMapToolIdentifyFeature] allow initializing without any layer 2014-09-16 11:12:28 +02:00
Martin Dobias
de48dad6e9 Followup #10912 - detect cycles in joins and reject joins that would create cycle
Cycle would otherwise cause infinite loop when updating fields and it does not make sense
2014-09-16 12:11:15 +07:00
Denis Rouzaud
8cd5e59e89 add RelationReferenceWidgetWrapper to SIP + complete RelationReferenceWidget 2014-09-15 18:24:47 +02:00
Denis Rouzaud
e1cb4370d7 [Relation Reference Widget] allow removing open form button (option not available in QGIS) 2014-09-15 18:24:47 +02:00
Nyall Dawson
33b120f72a Add a colorSelected signal to QgsColorSchemeList 2014-09-15 21:40:50 +10:00
Nyall Dawson
05e16291ea Remove colors from scheme list on delete/backspace press 2014-09-15 21:40:50 +10:00
Nyall Dawson
ec39f081b7 Add an isDirty method to QgsColorSchemeList 2014-09-15 21:40:49 +10:00
Denis Rouzaud
3bb5f43da5 [Releation reference widget] more coherent method names 2014-09-15 11:34:46 +02:00
Denis Rouzaud
51caaab0a2 add relation reference widget to SIP 2014-09-15 11:34:46 +02:00
Alexander Bruy
8502d11f11 [processing] remove selection before running Select by location algorithm (fix #10873) 2014-09-15 11:38:45 +03:00
Martin Dobias
dc63b44af6 Fix build error with SIP (4.15.5) 2014-09-15 11:09:15 +07:00
Juergen E. Fischer
05c4522a63 fix build on PyQt <4.9.5 2014-09-14 23:31:01 +02:00
Martin Dobias
c3db6d0988 Merge pull request #1556 from leyan/convertToRuleBasedSymbology
[FEATURE] Keep renderer settings when changing renderer type (where it is possible)
2014-09-13 17:58:45 +07:00
Juergen E. Fischer
17669b5861 fix and sync QgsAttributeEditorContext sip bindings 2014-09-13 10:55:36 +02:00
Martin Dobias
ffcd07b066 Joins: optionally use just a subset of fields from joined layer 2014-09-13 14:27:52 +07:00
Nyall Dawson
b44ef92b02 Default names for colors when adding to schemes 2014-09-13 08:41:11 +10:00
Nathan Woodrow
380baa2f0c Simplify python console init text 2014-09-12 21:24:17 +10:00
Matthias Kuhn
b1a2bef1fc [relation widgets] General update
* Improve speed (lazy loading)
 * Loop detection for circular dependencies (Fix #10850)
 * Some memory leaks fixed
 * More const-correctness
 * Fix the attribute editor context
2014-09-12 09:30:39 +02:00
Martin Dobias
1a7dfa1a6b [FEATURE] display rule-based renderer legend in a pseudo-tree (in layer tree model/view) 2014-09-12 11:40:15 +07:00
Martin Dobias
fba5c5a656 Move triggerRepaint() to QgsMapLayer, use it instead of deprecated clearCacheImage() 2014-09-11 23:52:21 +07:00
Nyall Dawson
e9d7b520db Support dragging colors from QgsColorPreviewWidget 2014-09-11 21:56:48 +10:00
Nyall Dawson
c4c58ab342 Accept dropped colors on color widgets 2014-09-11 21:11:04 +10:00
Denis Rouzaud
c3bf02b42a [SIP] add missing activated/deactivated signals for map tools 2014-09-11 10:41:02 +02:00
Jürgen Fischer
6151459518 Merge pull request #1577 from RossGammon/master
Description: Fix qreal VS double issues.
2014-09-10 23:22:41 +02:00
Juergen E. Fischer
890f921e06 fix #11110 2014-09-10 22:27:48 +02:00
Martin Dobias
071a5ec0c5 Fix #10912 (joined attributes are not correctly propagated in nested joins)
This commit makes QgsVectorLayerJoinBuffer listen to changes in fields
of joined vector layers in order to update the cache and inform parent layer
2014-09-09 20:17:51 +07:00
Leyan
9931dde90a refactor to a more general convertFromRenderer function 2014-09-09 19:55:21 +08:00
Jürgen Fischer
47613da521 Merge pull request #1578 from alexbruy/layer-submenu
move all "Add Layer" actions to submenu
2014-09-09 13:47:46 +02:00
Leyan
11d159cd85 Add factory annotation and use clone for rule based renderer 2014-09-09 19:47:28 +08:00
Leyan
45dfd53b4a add sip 2014-09-09 19:47:28 +08:00
Nyall Dawson
b9fc2b51d9 Add a bunch of useful interactive color widgets to GUI, including
color wheels, ramps, boxes, and text edits.
2014-09-09 21:31:43 +10:00
Alexander Bruy
62a2308aba move "Add Layer..." buttons to submenu 2014-09-06 16:31:21 +03:00
Juergen E. Fischer
6583365892 fix metasearch typo (followup 5cb7d357) 2014-09-06 14:01:04 +02:00
Juergen E. Fischer
5cb7d357bb fix metasearch syntax error 2014-09-06 13:59:01 +02:00
Ross Gammon
79b3a8f889 Description: Fix qreal VS double issues.
This patch tries to fix qreal VS double issues for ARM

 There are two seperate issues, the first is trivial just a typecast on
 a const.

 The second is however less-trivial and needs to be checked
 before merging. sip doesn't seem to like the type
 QVector<double> on platforms where qreal is float but changing
 the type to qreal may have knock-on impacts on the native code.

 QGIS Issue: http://hub.qgis.org/issues/11148
 Debian Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760535

Author: Peter Michael Green <plugwash@debian.org>
2014-09-05 20:51:13 +02:00
Tom Kralidis
86987b5b22 Merge pull request #1575 from geopython/MetaSearch-0.3.1
Meta search 0.3.1
2014-09-05 08:29:23 -04:00
Martin Dobias
86b4fcc7be Fix QgsLayerTreeModel naming conventions and update Python bindings
I was using a mixture of terms 'symbology items' and 'legend nodes' for the same thing which was confusing
2014-09-05 18:33:55 +07:00
Martin Dobias
4cac2f75bd Visibility groups: also record visibility states of renderer categories (legend nodes) into groups
Visibility of a layer is not stored within the map layer, but visibility
of renderer categories (which turn into legend nodes) is stored inside renderer and
that one in turn inside map layer. This fact may result in surprising behavior
when change of visibility group for a composer map will affect other composer maps (and main canvas).
The only way to overcome the problem would be to have the possibility to use multiple renderers with one layer.
2014-09-05 11:28:08 +07:00
Sandro Santilli
dd78876636 Allow loading pgraster tables with non-default raster field name
Before this change you could only load tables where the raster
field was named "rast".
2014-09-04 13:14:39 +02:00
Sandro Santilli
e91141cb2a Allow loading PostGIS Rasters from partially configured connections
Partially configured connection are those for which an hostname
or username or port etc. are not specified, relying on libpq defaults.

It was already fixed for geometries but rasters needed more love.
See #9037.
2014-09-04 12:36:59 +02:00
Tom Kralidis
3eb6e7ca3f merge back ef0e7d09168d43b0529a1f819108a4741c7e9e75 2014-09-03 10:49:25 -04:00
Tom Kralidis
fb5e07d3a5 remove code 2014-09-03 08:46:29 -04:00
Tom Kralidis
d6df3a93f3 update MetaSearch to 0.3.1 2014-09-03 08:43:11 -04:00
Nyall Dawson
1b773165f2 [composer] Update sip bindings, add missing sip bindings for
QgsComposerMapGrid (sponsored by NIWA, New Zealand)
2014-09-03 21:22:29 +10:00
Nyall Dawson
f68b2586b9 [composer] Improvements to grid annotation string formatting (sponsored
by NIWA, New Zealand):
- Don't show directional suffix for 0 or 180 latitudes or 180 longitudes
- Add padded coordinate modes
- Fix precision errors causing minutes/seconds > 60
- Wraparound longitudes to restrict them to the -180 to 180 degree range
2014-09-03 20:40:30 +10:00
Denis Rouzaud
f97d5e319e [custom widgets] adds filter line edit 2014-09-02 15:15:16 +02:00