9 Commits

Author SHA1 Message Date
Nyall Dawson
26c1e09a58 Remove QgsColorDialog, rename QgsColorDialogV2 to QgsColorDialog
The last bits of missing functionality (handling native dialogs
and live updates) were ported across.
2016-08-06 13:24:36 +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
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Juergen E. Fischer
a57066a48d * fix cppcheck warnings
* some sip updates
* [API] fix spelling QgsMultiRenderChecker::drawBackround
* [API] fix spelling QgsSymbolLayerV2Utils::drawStippledBackround
* [API] fix spelling QgsMapSettings::layerTransfrom
2014-11-20 15:02:35 +01:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01: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
Larry Shaffer
70ef5a78b0 Fix live color updating slot parameter by using SLOT macro 2013-03-22 10:23:29 -06:00
Larry Shaffer
c966dbf69b [FEATURE] Update QgsColorButton to offer live color chooser updates and show transparent checkerboard background
- Add option to Options for live color chooser support (QgsColorDialog)
- Add ability to define whether QgsColorButton accepts live updates (default: true)
- Move QgsColorButton to single subclass of QPushButton
- Show different button types relative to whether button has text
- Add transparent checkerboard background for chosen colors with alpha < 255
- Fix triple-modal window issue for Mac (with regards to using native color dialog)

- Composer item frame now supports transparency
- Composer item background transparency support moved to color dialog
- Composer composition grid now supports transparency
2013-03-21 12:42:24 -06:00