From: <sir...@us...> - 2003-03-09 12:10:05
|
Update of /cvsroot/btplusplus/BT++/src/DlgPref In directory sc8-pr-cvs1:/tmp/cvs-serv17691/src/DlgPref Modified Files: DlgPref.py Log Message: - Made History working. - Added option for History. - Fixes. Index: DlgPref.py =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/DlgPref/DlgPref.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DlgPref.py 3 Mar 2003 20:49:37 -0000 1.2 --- DlgPref.py 9 Mar 2003 12:10:02 -0000 1.3 *************** *** 97,148 **** wxStaticBox(self, -1, 'Downloading', wxPoint(5, 5), wxSize(314,82)) ! wxStaticBox(self, -1, 'Transfer Limits', wxPoint(5, 92), wxSize(314,66)) ! wxStaticBox(self, -1, 'Hashing', wxPoint(5,163), wxSize(314,62)) ! self.AutoLoad = PrefCheckBox( self, ! wxPoint(12,22), ! ['Download', 'AutoStart'], ! 'Automatically start new downloads' ) ! self.AutoLoad.SetHelpText("If checked new torrents will start automatically.") ! ! self.AutoPause = PrefCheckBox( self, ! wxPoint(12,42), ! ['Download', 'AutoPause'], ! 'Automatically pause downloads (if current > max)' ) ! self.AutoPause.SetHelpText("If checked new torrents that exceed the number below will be paused.") ! self.MaxSimDown = PrefTextCtrl( self, ! wxPoint(10,60), wxSize(25,20), ! ['Download', 'MaxSimDown'], ! 'Max. simultaneous downloads (1 - 10)', ! validator = ValidatorAlpha(1,10) ) ! self.MaxSimDown.SetHelpText("Maximum number of downloads to preform at the same time.") ! self.MaxDown = PrefTextCtrl( self, ! wxPoint(10,108), wxSize(25,20), ! ['Download', 'MaxSpeedDown'], ! 'Max Download Speed (0 = unlimited)' ) ! self.MaxDown.SetHelpText("Maximum download speed. Setting applies to the total of all torrents. Not yet enabled.") ! self.MaxUp = PrefTextCtrl( self, ! wxPoint(10,132), wxSize(25,20), ! ['Download', 'MaxSpeedUp'], ! 'Max Upload Speed (0 = unlimited)' ) ! self.MaxUp.SetHelpText("Maximum upload speed. Setting applies to the total of all torrents.") ! self.HashBack = PrefCheckBox( self, ! wxPoint(12,180), ! ['Hash', 'Background'], ! 'Use background hashing.' ) ! self.HashBack.SetHelpText("If checked hashing will occur as a background process.") ! self.HasNum = PrefTextCtrl( self, ! wxPoint(10,198), wxSize(25,20), ! ['Hash', 'NumSimHash'], ! 'Max. simultaneous files hashed (1 - 5)', ! validator = ValidatorAlpha(1,10) ) ! self.HasNum.SetHelpText("Maximum number of torrents to hash at the same time.") ! self.MaxDown.Enable(false) class TabAdvanced(wxWindow): --- 97,150 ---- wxStaticBox(self, -1, 'Downloading', wxPoint(5, 5), wxSize(314,82)) ! wxStaticBox(self, -1, 'Uploading', wxPoint(5, 92), wxSize(314,36)) ! wxStaticBox(self, -1, 'Transfer Limits', wxPoint(5,133), wxSize(314,41)) ! wxStaticBox(self, -1, 'Hashing', wxPoint(5,179), wxSize(314,62)) ! # Downloading ! PrefCheckBox( self, ! wxPoint(12,22), ! ['Download', 'AutoStart'], ! 'Automatically start new downloads', ! help = 'If checked new torrents will start automatically.' ) ! PrefCheckBox( self, ! wxPoint(12,42), ! ['Download', 'AutoPause'], ! 'Automatically pause downloads (if current > max)', ! help = 'If checked new torrents that exceed the number below will be paused.' ) ! PrefTextCtrl( self, ! wxPoint(10,60), wxSize(25,20), ! ['Download', 'MaxSimDown'], ! 'Max. simultaneous downloads (1 - 10)', ! validator = ValidatorAlpha(1,10), ! help = 'Maximum number of downloads to preform at the same time.' ) ! # Uploading ! PrefCheckBox( self, ! wxPoint(10,108), ! ['Download', 'KeepUpload'], ! 'Keep uploading after download finishes.' ) ! # Transfer Limits ! PrefTextCtrl( self, ! wxPoint(10,148), wxSize(25,20), ! ['Download', 'MaxSpeedUp'], ! 'Max Upload Speed (0 = unlimited)', ! help = 'Maximum upload speed. Setting applies to the total of all torrents.' ) ! # Hashing ! PrefCheckBox( self, ! wxPoint(12,196), ! ['Hash', 'Background'], ! 'Use background hashing.', ! help = 'If checked hashing will occur as a background process.' ) ! PrefTextCtrl( self, ! wxPoint(10,214), wxSize(25,20), ! ['Hash', 'NumSimHash'], ! 'Max. simultaneous files hashed (1 - 5)', ! validator = ValidatorAlpha(1,10), ! help = 'Maximum number of torrents to hash at the same time.' ) class TabAdvanced(wxWindow): *************** *** 152,174 **** wxStaticBox(self, -1, 'Bind to IP/Ports', wxPoint(5, 5), wxSize(314,92)) ! self.IpAdd = PrefTextCtrl( self, ! wxPoint(10,22), wxSize(95,20), ! ['Bind', 'Ip'], ! 'IP Address' ) ! self.IpAdd.SetHelpText("Manually set an IP Address for BT++ to use.") ! self.MinPort = PrefTextCtrl( self, ! wxPoint(10,46), wxSize(75,20), ! ['Bind', 'PortMin'], ! 'Start port', ! validator = ValidatorAlpha(1025,65536) ) ! self.MinPort.SetHelpText("The lowest port for BT++ to use for transfers. Must be between 1025 and 65536") ! self.MaxPort = PrefTextCtrl( self, ! wxPoint(10,70), wxSize(75,20), ! ['Bind', 'PortMax'], ! 'End port', ! validator = ValidatorAlpha(1025,65536) ) ! self.MaxPort.SetHelpText("The highest port for BT++ to use for transfers. Must be between 1025 and 65536") --- 154,176 ---- wxStaticBox(self, -1, 'Bind to IP/Ports', wxPoint(5, 5), wxSize(314,92)) ! PrefTextCtrl( self, ! wxPoint(10,22), wxSize(95,20), ! ['Bind', 'Ip'], ! 'IP Address', ! help = 'Manually set an IP Address for BT++ to use.' ) ! PrefTextCtrl( self, ! wxPoint(10,46), wxSize(75,20), ! ['Bind', 'PortMin'], ! 'Start port', ! validator = ValidatorAlpha(1025,65536), ! help = 'The lowest port for BT++ to use for transfers. Must be between 1025 and 65536.' ) ! PrefTextCtrl( self, ! wxPoint(10,70), wxSize(75,20), ! ['Bind', 'PortMax'], ! 'End port', ! validator = ValidatorAlpha(1025,65536), ! help = 'The highest port for BT++ to use for transfers. Must be between 1025 and 65536.' ) *************** *** 177,199 **** wxWindow.__init__(self, parent, -1, name = name) ! wxStaticBox(self, -1, 'General', wxPoint(5, 5), wxSize(314,40)) ! wxStaticBox(self, -1, 'Tray Password', wxPoint(5,50), wxSize(314,82)) ! self.ConfirmExit = PrefCheckBox( self, ! wxPoint(12,22), ! ['LookFeel', 'ConfirmExit'], ! 'Ask confirmation when exiting BT++.' ) ! self.ConfirmExit.SetHelpText("If checked the program will prompt you before exiting.") ! self.TPWord = PrefTextCtrl( self, ! wxPoint(11,65), wxSize(75,20), ! ['LookFeel', 'TPWord'], ! 'Tray password (leave empty for none)', ! style = 0, ! help = 'If text is entered here it will act as the password when restoring BT++ from a tray icon.' ) ! self.TPAuto = PrefCheckBox( self, ! wxPoint(12,89), ! ['LookFeel', 'TPAuto'], ! 'Auto lock tray on minimize.', ! 'If checked the tray will be locked (password-protected) as soon as minimized.' ) --- 179,201 ---- wxWindow.__init__(self, parent, -1, name = name) ! wxStaticBox(self, -1, 'General', wxPoint(5, 5), wxSize(314,38)) ! wxStaticBox(self, -1, 'Tray Password', wxPoint(5,48), wxSize(314,62)) ! PrefCheckBox( self, ! wxPoint(12,22), ! ['LookFeel', 'ConfirmExit'], ! 'Ask confirmation when exiting BT++.', ! help = 'If checked the program will prompt you before exiting.' ) ! PrefTextCtrl( self, ! wxPoint(11,65), wxSize(75,20), ! ['LookFeel', 'TPWord'], ! 'Tray password (leave empty for none)', ! style = 0, ! help = 'If text is entered here it will act as the password when restoring BT++ from a tray icon.' ) ! PrefCheckBox( self, ! wxPoint(12,89), ! ['LookFeel', 'TPAuto'], ! 'Auto lock tray on minimize.', ! 'If checked the tray will be locked (password-protected) as soon as minimized.' ) |