[Digikam-devel] New version of selector for Image Editor

Alex Gontmakher gsasha at cs.technion.ac.il
Tue Aug 9 23:43:07 BST 2005


Hi,

I've done a new version of the selector for the Image Editor. Please 
find the diff file (generated by svn diff) at 
http://www.cs.technion.ac.il/~gsasha/selectorv3.diff 
<http://www.cs.technion.ac.il/%7Egsasha/selectorv3.diff>.

The changes this time:
1. Most of the functionality of the selector works (I didn't take care 
of ghost selection yet, will probably do something smarter, such as 
selection preservation through zoom).
2. Refactored the Histogram code:
  - Histogram is rendered by a dedicated class
  - Histogram moving is accomplished by yet another dedicated class, 
similarly to Selector. If the idea gets acceptance, it's very easy to 
implement histogram resizing as well.
  - I took the liberty of removing the thread that did histogram 
rendering. Doesn't look that it added much to the overall 
responsibility, as the time to compute the histo is comparable to the 
time needed to load the image
  - I added a new mode of histogram rendering - all three channels at 
once. Take a look (currently, drawing "Alpha" does this).
3. Histogram is painted directly on the image. As a result, the 
histogram doesn't flicker any more, but it doesn't render on the black 
portions of the screen. Must think of a clean way to fix this.
4. Lots of small refactoring, like removing unnecessary variables, 
simplifying expressions etc.

So again this time,
1. Tell me if you like it or not.
2. Renchi, Gilles -> are you going to accept it?
3. If the answer to 2) is "yes", please do some testing and tell me of 
any problems you find other than what described above.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gsasha.vcf
Type: text/x-vcard
Size: 175 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20050810/1f13bae1/attachment.vcf>


More information about the Digikam-devel mailing list