KisCanvasSubject and color choosers
Boudewijn Rempt
boud at valdyas.org
Fri Feb 13 20:19:30 CET 2004
On Friday 13 February 2004 20:13, Sven Langkamp wrote:
> Hi,
>
> I'm currently searching a better solution for the management of the color
> choosers. Krita has at moment four ways to change the back/foreground color
> and will get more in the future (cymk, palette, ...)
> My idea was to use KisCanvasSubject from KisView as an observer for the
> color choosers. Do you think this is ok or should KisCanvasSubject only be
> used for the tools?
It seems reasonable to me -- colorchooser notifies KisCanvasSubject of a
change in bg/fg colour, tool queries KisCanvasSubject to get the current
colour. Cut out the middle man, i.e., the view. And all the other choosers
must be updated, too, so they can observe the KCS, too. Don't know what
Patrick'll say, though -- he's the designer of this bit (and most other
bits).
--
Boudewijn Rempt | http://www.valdyas.org/fading/index.cgi
More information about the kimageshop
mailing list