Patch: Better Progressbar

6 views
Skip to first unread message

Arnab Bose

unread,
Oct 23, 2007, 7:23:52 AM10/23/07
to delug...@googlegroups.com
Hi,
Following this conversation:
http://forum.deluge-torrent.org/viewtopic.php?f=8&t=547

I've made the modifications to the file to give better information of which portions of the torrent has been fully downloaded.

To do this, I had to modify the deluge_core.cpp to provide the information on pieces in list format (which it was providing so far in truncated long integer format), and I had to modify the tab_details.py which is the interface for drawing the tabs.

For now I haven't removed the oder bar at all, it should be easy to put an option for the user to revert back to the older progressbar if need be.

Here is the screenshot:
http://www.flickr.com/photos/36905172@N00/1708036986/

And svn patch file for r2041 is attached with this mail.

Regards,
Arnab.
--
I want to die like my grandfather, in my sleep. Not screaming and hollering like the rest of the people in the car. - Anonymous
patch2041.txt.gz

Arnab Bose

unread,
Oct 23, 2007, 2:39:26 PM10/23/07
to delug...@googlegroups.com
1) Fixed so that it will repaint on the expose event, without which sometimes when the torrent is paused the progressbar doesn't display
2) Double buffered to reduce flicker
patch_newprogressbar.txt.bz2

Arnab Bose

unread,
Oct 24, 2007, 4:12:04 PM10/24/07
to delug...@googlegroups.com
Hi,
Made a small but important change. Previously the length of the range range was being calculated incorrectly, so a single piece (eg, [1403,1403]) would be drawn as a line. Fixed that.

This is a patch from -r 2053.

Regards,
Arnab
patch_progressbar3.txt.gz
Reply all
Reply to author
Forward
0 new messages