<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This is a heads up for an upcoming
change.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have implemented persistent selections in my
private repository:</FONT></DIV>
<DIV><FONT face=Arial size=2> - there is always a KisSelection (though
created on first reference) and it never changes only its contents<BR> -
implemented "deselect" as setting hasSelection = false</FONT></DIV>
<DIV><FONT face=Arial size=2> - implemented "reselect" as setting
hasSelection=true<BR> - calling paintdev->selection() sets
hasSelection=true and also creates the KisSelection the first time it's
called<BR></FONT><FONT face=Arial size=2> - removeSelection() and
setSelection() has gone, but partly replaced by deselect()<BR> -
"select all" is like any other kind of selecting<BR> - "invert" inverts
entire selection not just the extent of already selected.<BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Not yet implemented is:</FONT></DIV>
<DIV><FONT face=Arial size=2> - if deselected when selecting then clear
selection first. Otherwise add to selection<BR> - selectedRect() return
extent of selection unioned with the extent of the parent paintdev if
defaultpixel of selection != 0<BR></FONT><FONT face=Arial size=2> -
"select all" should use clear and defaultPixel, but that requires that
selectedRect works.</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Finally something to think about:</FONT></DIV>
<DIV><FONT face=Arial size=2>When infinity has been selected (as selecting a
little rect and then choosing invert). How do we convey this to every "user" of
selection. I have proposed changing selectedRect to take the parent paintDev
into account, but could we think of cases where this doesn't hold. And if so
what should we do?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>best regards / venlig hilsen<BR>Casper
Boemann</FONT></DIV></BODY></HTML>