The PaletteView class is a wrapper around a MVC method for handling palettes. This class shows a nice widget that can drag and drop, edit colors in a colorset and will handle adding and removing entries if you'd like it to.
Methods
Signals
Member documentation
Parameters
parent | (no description provided) |
Return
(no description provided) |
This gives a simple dialog for adding colors, with options like adding name, id, and to which group the color should be added.
Parameters
color | the default color to add |
Return
whether it was successful. |
gives a little dialog to ask for the desired groupname.
Return
whether this was successful. |
fires when a swatch is selected with rightclick.
Parameters
entry | (no description provided) |
fires when a swatch is selected with leftclick.
Parameters
entry | (no description provided) |
removes the selected entry. If it is a group, it pop up a dialog asking whether the colors should also be removed.
Return
whether this was successful |
Set a new palette.
Parameters
palette | (no description provided) |
tries to select the closest color to the one given. It does not force a change on the active color.
Parameters
color | the color to compare to. |