mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
add the bandwidth page
This commit is contained in:
parent
9daf288da1
commit
23ec87724e
1 changed files with 95 additions and 6 deletions
|
@ -25,8 +25,8 @@ Copyright:
|
||||||
PreferencesWindow = function(config) {
|
PreferencesWindow = function(config) {
|
||||||
Ext.apply(this, config);
|
Ext.apply(this, config);
|
||||||
this.layout = 'border';
|
this.layout = 'border';
|
||||||
this.width = 475;
|
this.width = 485;
|
||||||
this.height = 450;
|
this.height = 500;
|
||||||
this.buttonAlign = 'right';
|
this.buttonAlign = 'right';
|
||||||
this.closeAction = 'hide';
|
this.closeAction = 'hide';
|
||||||
this.closable = true;
|
this.closable = true;
|
||||||
|
@ -179,13 +179,102 @@ Copyright:
|
||||||
xtype: 'form',
|
xtype: 'form',
|
||||||
layout: 'form',
|
layout: 'form',
|
||||||
items: []
|
items: []
|
||||||
});
|
});*/
|
||||||
Deluge.Preferences.addPage(_('Bandwidth'), {
|
Deluge.Preferences.addPage(_('Bandwidth'), {
|
||||||
border: false,
|
border: false,
|
||||||
xtype: 'form',
|
xtype: 'form',
|
||||||
layout: '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'), {
|
Deluge.Preferences.addPage(_('Interface'), {
|
||||||
border: false,
|
border: false,
|
||||||
xtype: 'form',
|
xtype: 'form',
|
||||||
|
@ -213,7 +302,7 @@ Copyright:
|
||||||
xtype: 'checkbox',
|
xtype: 'checkbox',
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Hide filters with 0 torrents'),
|
boxLabel: _('Hide filters with zero torrents'),
|
||||||
id: 'hide_sidebar_zero'
|
id: 'hide_sidebar_zero'
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue