Author: damoxc
Revision: 5798
Log:
rename deluge-execute.js to execute.js
Diff:
Deleted: trunk/deluge/plugins/execute/execute/data/deluge-execute.js
===================================================================
--- trunk/deluge/plugins/execute/execute/data/deluge-execute.js 2009-10-01
10:40:48 UTC (rev 5797)
+++ trunk/deluge/plugins/execute/execute/data/deluge-execute.js 2009-10-01
10:43:03 UTC (rev 5798)
@@ -1,75 +0,0 @@
-(function() {
- EVENT_MAP = {
- 'complete': _('Torrent Complete'),
- 'added': _('Torrent Added')
- }
- EVENTS = ['complete', 'added']
-
- ExecutePanel = Ext.extend(Ext.Panel, {
- constructor: function(config) {
- config = Ext.apply({
- border: false,
- title: _('Execute'),
- layout: 'border'
- }, config);
- ExecutePanel.superclass.constructor.call(this, config);
- },
-
- initComponent: function() {
- ExecutePanel.superclass.initComponent.call(this);
- this.commands = this.add({
- xtype: 'grid',
- region: 'center',
- store: new Ext.data.SimpleStore({
- fields: [
- {name: 'event', mapping: 1},
- {name: 'name', mapping: 2}
- ],
- id: 0
- }),
- columns: [{
- width: 70,
- header: _('Event'),
- sortable: true,
- renderer: fplain,
- dataIndex: 'event'
- }, {
- id: 'name',
- header: _('Command'),
- sortable: true,
- renderer: fplain,
- dataIndex: 'name'
- }],
- stripRows: true,
- selModel: new Ext.grid.RowSelectionModel({
- singleSelect: true
- }),
- autoExpandColumn: 'name'
- });
-
- this.details = this.add({
- xtype: 'tabpanel',
- region: 'south',
- activeTab: 0
- });
-
- this.add = this.details.add({
- title: _('Add')
- });
- this.edit = this.details.add({
- title: _('Edit')
- });
- },
-
- onShow: function() {
- ExecutePanel.superclass.onShow.call(this);
- Deluge.Client.execute.get_commands({
- success: function(commands) {
-
this.commands.getStore().loadData(commands);
- },
- scope: this
- });
- }
- });
- Deluge.Preferences.addPage(new ExecutePanel());
-})();
\ No newline at end of file
Copied: trunk/deluge/plugins/execute/execute/data/execute.js (from rev 5767,
trunk/deluge/plugins/execute/execute/data/deluge-execute.js)
===================================================================
--- trunk/deluge/plugins/execute/execute/data/execute.js
(rev 0)
+++ trunk/deluge/plugins/execute/execute/data/execute.js 2009-10-01
10:43:03 UTC (rev 5798)
@@ -0,0 +1,93 @@
+(function() {
+ EVENT_MAP = {
+ 'complete': _('Torrent Complete'),
+ 'added': _('Torrent Added')
+ }
+ EVENTS = ['complete', 'added']
+
+ ExecutePanel = Ext.extend(Ext.Panel, {
+ constructor: function(config) {
+ config = Ext.apply({
+ border: false,
+ title: _('Execute'),
+ layout: 'border'
+ }, config);
+ ExecutePanel.superclass.constructor.call(this, config);
+ },
+
+ initComponent: function() {
+ ExecutePanel.superclass.initComponent.call(this);
+ this.commands = this.add({
+ xtype: 'grid',
+ region: 'center',
+ store: new Ext.data.SimpleStore({
+ fields: [
+ {name: 'event', mapping: 1},
+ {name: 'name', mapping: 2}
+ ],
+ id: 0
+ }),
+ columns: [{
+ width: 70,
+ header: _('Event'),
+ sortable: true,
+ renderer: fplain,
+ dataIndex: 'event'
+ }, {
+ id: 'name',
+ header: _('Command'),
+ sortable: true,
+ renderer: fplain,
+ dataIndex: 'name'
+ }],
+ stripRows: true,
+ selModel: new Ext.grid.RowSelectionModel({
+ singleSelect: true
+ }),
+ autoExpandColumn: 'name'
+ });
+
+ this.details = this.add({
+ xtype: 'tabpanel',
+ region: 'south',
+ activeTab: 0
+ });
+
+ this.add = this.details.add({
+ title: _('Add')
+ });
+ this.edit = this.details.add({
+ title: _('Edit')
+ });
+ },
+
+ onShow: function() {
+ ExecutePanel.superclass.onShow.call(this);
+ Deluge.Client.execute.get_commands({
+ success: function(commands) {
+
this.commands.getStore().loadData(commands);
+ },
+ scope: this
+ });
+ }
+ });
+
+ ExecutePlugin = Ext.extend(Deluge.Plugin, {
+ constructor: function(config) {
+ config = Ext.apply({
+ name: "Execute"
+ }, config);
+ ExecutePlugin.superclass.constructor.call(this, config);
+ },
+
+ onDisable: function() {
+ Deluge.Preferences.removePage(this.prefsPage);
+ },
+
+ onEnable: function() {
+ this.prefsPage = new ExecutePanel();
+ this.prefsPage =
Deluge.Preferences.addPage(this.prefsPage);
+ }
+ });
+ new ExecutePlugin();
+})();
\ No newline at end of file
Property changes on: trunk/deluge/plugins/execute/execute/data/execute.js
___________________________________________________________________
Added: svn:mergeinfo
+
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---