927 Commits

Author SHA1 Message Date
Matthias Kuhn
21c81d6f51 Fix sip for QgsMapLayerActionRegistry 2014-09-17 09:18:53 +02:00
Matthias Kuhn
ab3ff17ff8 Pass attribute editor context for widgets on the attribute table
Fixes relation reference widget in attribute table
2014-09-16 18:04:46 +02:00
Denis Rouzaud
d05d83ed79 Fix widget registry (SIP), few fixes for relation reference widget 2014-09-16 15:39:55 +02:00
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
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
Juergen E. Fischer
17669b5861 fix and sync QgsAttributeEditorContext sip bindings 2014-09-13 10:55:36 +02: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
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
47613da521 Merge pull request #1578 from alexbruy/layer-submenu
move all "Add Layer" actions to submenu
2014-09-09 13:47:46 +02: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
Denis Rouzaud
f97d5e319e [custom widgets] adds filter line edit 2014-09-02 15:15:16 +02:00
Denis Rouzaud
368755a51a fix sorting of map layer combo box and more const correctness 2014-09-02 08:10:32 +02:00
Denis Rouzaud
665866f1a6 more const correctness 2014-09-01 16:55:18 +02:00
Denis Rouzaud
5c5deec4a0 SIP file for new date time edit 2014-09-01 15:39:26 +02:00
Denis Rouzaud
5b1a516f2e more flag operators declaration in SIP, better use of flags in data defined button 2014-09-01 10:51:06 +02:00
Denis Rouzaud
8a65115100 [SIP] add missing operator for flags 2014-09-01 10:40:37 +02:00
Denis Rouzaud
252dc377a4 [map layer actions] action for group of features, rename availability to target (flags), only emit signal for defined target"
Conflicts:
	src/gui/qgsmaplayeractionregistry.cpp
	src/gui/qgsmaplayeractionregistry.h
2014-09-01 08:22:23 +02:00
Martin Dobias
6891aae19a Use QgsLayerTreeModel as a source of data for legend rendering instead of QgsLegendModel
This is work in progress, customization of legend is not working yet
2014-09-01 10:10:36 +07:00
Tim Sutton
88b13e8985 Merge pull request #1561 from DelazJ/ProjSelector
Activate the help button in select projection Dialog
2014-08-25 16:53:03 +02:00
DelazJ
7b04eb4f5d Referencing Help button function 2014-08-25 16:07:13 +02:00
Nyall Dawson
1f6dd8e5a7 Add an edit button for shapeburst and gradient color ramps 2014-08-25 20:31:12 +10:00
Juergen E. Fischer
a05c4c8030 make custom widget tooltips translatable 2014-08-20 10:02:35 +02:00
Denis Rouzaud
bc187ba953 identify shows a non-modal feature form 2014-08-19 09:08:57 +02:00
Denis Rouzaud
4588d9bd6c new map tool to select single feature 2014-08-19 08:34:02 +02:00
Matthias Kuhn
4ade943937 QgisInterface::getFeatureForm() returns a QgsAttributeDialog
And some API comments
2014-08-18 10:57:30 +02:00
Juergen E. Fischer
07165eae79 indentation update 2014-08-17 13:37:34 +02:00
Nyall Dawson
346b50ead9 Fix typo 2014-08-17 21:27:32 +10:00
Nyall Dawson
b15b014b82 Allow importing and exporting to GIMP palette file (gpl) from color list 2014-08-17 21:05:21 +10:00
Nyall Dawson
b45735529b Improvements to color list:
- Cleanup code
- Support copying and pasting multiple colors to list
- Support additional color list mime formats
2014-08-17 21:05:21 +10:00
Nyall Dawson
cd54d6a355 New GUI control for an editable list of colors from a color scheme.
Supports drag and drop reordering, drag and drop colors from external
apps (on supported OS).
2014-08-16 16:28:31 +10:00
Nyall Dawson
b3dbe74155 Hide color schemes from color button menu if they contain no colors 2014-08-14 17:57:22 +10:00
Denis Rouzaud
71d7445c83 use flag instead of enum 2014-08-14 08:33:25 +02:00
Juergen E. Fischer
a2a66eabfd doxygen fixes 2014-08-13 19:15:24 +02:00
Denis Rouzaud
b88723d069 availibilty definition for map layer actions 2014-08-13 14:32:21 +02:00
Nyall Dawson
bfff4bd6b2 [FEATURE] New version of color button (QgsColorButtonV2) based off
QToolButton. Features:
- context menu items have been moved to the attached menu button
- new gui widget QgsColorSwatchGrid, which displays a grid of colors
- new class for QgsColorScheme, which generates colors to show in a
  color swatch grid
- new class QgsColorSchemeRegistry, with a global instance containing
  default color schemes. QgsColorButtonV2 accepts a color scheme
  registry, to control which schemes to show in the popup menu as
  color swatch grids.
- color button can have a default color
- color button can also be quickly set to a totally transparent color
- c++ and python unit tests for all core components
2014-08-11 20:37:52 +10:00
Matthias Kuhn
f63a01cc7c Fix memory leak and pass ownership of py editor widgets to C++ 2014-08-03 18:49:02 +02:00
Nyall Dawson
d0e9d8d126 [FEATURE][composer] Allow specifying user stylesheets to apply to a HTML item's content 2014-07-27 22:18:45 +10:00