[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    persistent selections
From:       "Casper Boemann" <cbr () boemann ! dk>
Date:       2005-04-28 12:04:43
Message-ID: 048a01c54bea$77117370$1c90a8c0 () FKIBM13045
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This is a heads up for an upcoming change.

I have implemented persistent selections in my private repository:
  - there is always a KisSelection (though created on first reference) and it never \
                changes only its contents
  - implemented "deselect" as setting hasSelection = false
  - implemented "reselect" as setting hasSelection=true
  - calling paintdev->selection() sets hasSelection=true and also creates the \
                KisSelection the first time it's called
  - removeSelection() and setSelection() has gone, but partly replaced by deselect()
  - "select all" is like any other kind of selecting
  - "invert" inverts entire selection not just the extent of already selected.

Not yet implemented is:
  - if deselected when selecting then clear selection first. Otherwise add to \
                selection
  - selectedRect() return extent of selection unioned with the extent of the parent \
                paintdev if defaultpixel of selection != 0
  - "select all" should use clear and defaultPixel, but that requires that \
selectedRect works.

Finally something to think about:
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?

best regards / venlig hilsen
Casper Boemann


[Attachment #5 (text/html)]

<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have implemented persistent selections in my 
private repository:</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; - there is always a KisSelection (though 
created on first reference) and it never changes only its contents<BR>&nbsp; - 
implemented "deselect" as setting hasSelection = false</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; - implemented "reselect" as setting 
hasSelection=true<BR>&nbsp; - calling paintdev-&gt;selection() sets 
hasSelection=true and also creates the KisSelection the first time it's 
called<BR></FONT><FONT face=Arial size=2>&nbsp;&nbsp;- removeSelection() and 
setSelection() has gone, but&nbsp;partly replaced by deselect()<BR>&nbsp; - 
"select all" is like any other kind of selecting<BR>&nbsp; - "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>&nbsp; - if deselected when selecting then clear 
selection first. Otherwise add to selection<BR>&nbsp; - selectedRect() return 
extent of selection&nbsp;unioned with the extent of the parent paintdev if 
defaultpixel of selection != 0<BR></FONT><FONT face=Arial size=2>&nbsp; - 
"select all" should use clear and defaultPixel, but that requires that 
selectedRect works.</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>best regards / venlig hilsen<BR>Casper 
Boemann</FONT></DIV></BODY></HTML>


_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic