From: <sir...@us...> - 2003-03-31 14:16:19
|
Update of /cvsroot/btplusplus/BT++/src/TabHistory In directory sc8-pr-cvs1:/tmp/cvs-serv19487/src/TabHistory Modified Files: Grid.py Log Message: - Fixed core bug. - Modified 'AddTorrent' downloading. - History shows uploaded (transfered) MB. - Fixed bug in right-click-menu of the history tab. - Corrected some of the grid info display. Index: Grid.py =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/TabHistory/Grid.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Grid.py 29 Mar 2003 10:45:18 -0000 1.3 --- Grid.py 31 Mar 2003 14:15:25 -0000 1.4 *************** *** 13,16 **** --- 13,29 ---- class HistGrid(TabTrans.Grid.Grid): + Selection = { + 'Set': [], + 'Add': false + } + + LabelResize = { + 'Over': false, + 'Active': false, + 'Num': -1, + 'Start': -1, + 'PosX': -1 + } + def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0,0), wxSize(786,335), style = wxSIMPLE_BORDER | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE) *************** *** 110,128 **** if col == 1: ! return '%.2f MB' % (info('Size') / 1024 / 1024) if col == 2: ! if info('Status') == 'Downloading': ! return 'Uploading' ! ! if info('FractionDone') == -1.0 or \ ! info('Status') == 'Hashing': ! return '?' ! else: ! return '%.2f MB' % (info('FractionDone') * info('Size') / 1024 / 1024) if col == 3: ! return '%.1f' % info('SpeedUp') if col == 4: ! return info('Status') --- 123,137 ---- if col == 1: ! return '%.2f MB' % (float(info('Size')) / 1024 / 1024) if col == 2: ! return '%.2f MB' % (float(info('SizeUp')) / 1024 / 1024) if col == 3: ! return '%.1f' % float(info('SpeedUp')) if col == 4: ! if info('Status') == 'Downloading': ! return 'Uploading' ! else: ! return info('Status') |