Author: damoxc

Revision: 5061

Log:
        add the bandwidth page

Diff:
Modified: trunk/deluge/ui/web/js/deluge-preferences.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-preferences.js        2009-04-14 20:40:29 UTC 
(rev 5060)
+++ trunk/deluge/ui/web/js/deluge-preferences.js        2009-04-14 21:50:58 UTC 
(rev 5061)
@@ -25,8 +25,8 @@
        PreferencesWindow = function(config) {
                Ext.apply(this, config);
                this.layout = 'border';
-               this.width = 475;
-               this.height = 450;
+               this.width = 485;
+               this.height = 500;
                this.buttonAlign = 'right';
                this.closeAction = 'hide';
                this.closable = true;
@@ -179,13 +179,102 @@
                xtype: 'form',
                layout: 'form',
                items: []
-       });
+       });*/
        Deluge.Preferences.addPage(_('Bandwidth'), {
                border: false,
                xtype: 'form',
                layout: 'form',
-               items: []
-       });*/
+               labelWidth: 10,
+               items: [{
+                       xtype: 'fieldset',
+                       border: false,
+                       title: _('Global Bandwidth Usage'),
+                       autoHeight: true,
+                       labelWidth: 200,
+                       style: 'margin-bottom: 0px; padding-bottom: 0px;',
+                       defaultType: 'uxspinner',
+                       items: [{
+                               name: 'max_connections',
+                               fieldLabel: _('Maximum Connections'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_upload_slots',
+                               fieldLabel: _('Maximum Upload Slots'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_download_speed',
+                               fieldLabel: _('Maximum Download Speed (KiB/s)'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_upload_speed',
+                               fieldLabel: _('Maximum Upload Speed (KiB/s)'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_half_open_connections',
+                               fieldLabel: _('Maximum Half-Open Connections'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_connections_per_second',
+                               fieldLabel: _('Maximum Connection Attempts per 
Second'),
+                               width: 60,
+                               value: -1
+                       }]
+               }, {
+                       xtype: 'fieldset',
+                       border: false,
+                       title: '',
+                       autoHeight: true,
+                       style: 'padding-top: 0px; margin-top: 0px; 
margin-bottom: 0px;',
+                       items: [{
+                               xtype: 'checkbox',
+                               name: 'ignore_local',
+                               fieldLabel: '',
+                               labelSeparator: '',
+                               boxLabel: _('Ignore limits on local network'),
+                               value: -1
+                       }, {
+                               xtype: 'checkbox',
+                               name: 'limit_ip_overhead',
+                               fieldLabel: '',
+                               labelSeparator: '',
+                               boxLabel: _('Rate limit IP overhead'),
+                               value: -1
+                       }]
+               }, {
+                       xtype: 'fieldset',
+                       border: false,
+                       title: _('Per Torrent Bandwidth Usage'),
+                       autoHeight: true,
+                       labelWidth: 200,
+                       defaultType: 'uxspinner',
+                       items: [{
+                               name: 'max_connections_per_torrent',
+                               fieldLabel: _('Maximum Connections'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_upload_slots_per_torrent',
+                               fieldLabel: _('Maximum Upload Slots'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_download_speed_per_torrent',
+                               fieldLabel: _('Maximum Download Speed (KiB/s)'),
+                               width: 60,
+                               value: -1
+                       }, {
+                               name: 'max_upload_speed_per_torrent',
+                               fieldLabel: _('Maximum Upload Speed (KiB/s)'),
+                               width: 60,
+                               value: -1
+                       }]
+               }]
+       });
        Deluge.Preferences.addPage(_('Interface'), {
                border: false,
                xtype: 'form',
@@ -213,7 +302,7 @@
                                xtype: 'checkbox',
                                fieldLabel: '',
                                labelSeparator: '',
-                               boxLabel: _('Hide filters with 0 torrents'),
+                               boxLabel: _('Hide filters with zero torrents'),
                                id: 'hide_sidebar_zero'
                        }]
                }, {



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to