tidy up doc strings and change InstallPlugin to InstallPluginWindow
This commit is contained in:
parent
fd9dc2d892
commit
f08c0e053c
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Bandwidth
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Bandwidth = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Cache
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Cache = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Daemon
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Downloads
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Encryption
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Interface
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -33,6 +33,10 @@ Copyright:
|
|||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Network
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Other
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -33,7 +33,11 @@ Copyright:
|
|||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
Deluge.preferences.InstallPlugin = Ext.extend(Ext.Window, {
|
||||
/**
|
||||
* @class Deluge.preferences.InstallPluginWindow
|
||||
* @extends Ext.Window
|
||||
*/
|
||||
Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, {
|
||||
|
||||
height: 115,
|
||||
width: 350,
|
||||
|
@ -105,7 +109,10 @@ Deluge.preferences.InstallPlugin = Ext.extend(Ext.Window, {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Plugins
|
||||
* @extends Ext.Panel
|
||||
*/
|
||||
Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
@ -184,7 +191,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||
cls: 'x-btn-text-icon',
|
||||
iconCls: 'x-deluge-install-plugin',
|
||||
text: _('Install'),
|
||||
handler: this.onInstallPlugin,
|
||||
handler: this.onInstallPluginWindow,
|
||||
scope: this
|
||||
}, '->', {
|
||||
cls: 'x-btn-text-icon',
|
||||
|
@ -288,9 +295,9 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||
delete info;
|
||||
},
|
||||
|
||||
onInstallPlugin: function() {
|
||||
onInstallPluginWindow: function() {
|
||||
if (!this.installWindow) {
|
||||
this.installWindow = new Deluge.preferences.InstallPlugin();
|
||||
this.installWindow = new Deluge.preferences.InstallPluginWindow();
|
||||
this.installWindow.on('pluginadded', this.onPluginInstall, this);
|
||||
}
|
||||
this.installWindow.show();
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.ProxyField
|
||||
* @extends Ext.form.FormSet
|
||||
*/
|
||||
Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
||||
|
||||
constructor: function(config) {
|
||||
|
@ -165,7 +170,10 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Proxy
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Proxy = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -32,6 +32,11 @@ Copyright:
|
|||
*/
|
||||
|
||||
Ext.namespace('Deluge.preferences');
|
||||
|
||||
/**
|
||||
* @class Deluge.preferences.Queue
|
||||
* @extends Ext.form.FormPanel
|
||||
*/
|
||||
Deluge.preferences.Queue = Ext.extend(Ext.form.FormPanel, {
|
||||
constructor: function(config) {
|
||||
config = Ext.apply({
|
||||
|
|
|
@ -34,7 +34,11 @@ Copyright:
|
|||
|
||||
PreferencesRecord = Ext.data.Record.create([{name:'name', type:'string'}]);
|
||||
|
||||
Deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
||||
/**
|
||||
* @class Deluge.preferences.PreferencesWindow
|
||||
* @extends Ext.Window
|
||||
*/
|
||||
Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
|
||||
|
||||
/**
|
||||
* @property {String} currentPage The currently selected page.
|
||||
|
@ -54,7 +58,7 @@ Deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||
resizable: false,
|
||||
|
||||
initComponent: function() {
|
||||
Deluge.PreferencesWindow.superclass.initComponent.call(this);
|
||||
Deluge.preferences.PreferencesWindow.superclass.initComponent.call(this);
|
||||
|
||||
this.categoriesGrid = this.add({
|
||||
xtype: 'grid',
|
||||
|
@ -206,4 +210,4 @@ Deluge.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||
this.hide();
|
||||
}
|
||||
});
|
||||
deluge.preferences = new Deluge.PreferencesWindow();
|
||||
deluge.preferences = new Deluge.preferences.PreferencesWindow();
|
||||
|
|
Loading…
Reference in New Issue