Commit e5aad21b authored by Bas Lijnse's avatar Bas Lijnse

Added refresh buttons to the debug panels

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/branches/fancyTasks@353 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent 0a030b94
...@@ -25,15 +25,15 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, { ...@@ -25,15 +25,15 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, {
style: 'margin-bottom: 2px;' style: 'margin-bottom: 2px;'
},{ },{
xtype: 'button', xtype: 'button',
text: 'Show thread table...', text: 'Show process table...',
cls: 'debug-button', cls: 'debug-button',
iconCls: 'icon-thread-table', iconCls: 'icon-process-table',
style: 'margin-bottom: 2px;' style: 'margin-bottom: 2px;'
},{ },{
xtype: 'button', xtype: 'button',
text: 'Show process table...', text: 'Show thread table...',
cls: 'debug-button', cls: 'debug-button',
iconCls: 'icon-process-table' iconCls: 'icon-thread-table'
}] }]
},{ },{
id: 'options', id: 'options',
...@@ -58,12 +58,12 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, { ...@@ -58,12 +58,12 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, {
getTaskForestButton: function() { getTaskForestButton: function() {
return this.getComponent(0).getComponent(0); return this.getComponent(0).getComponent(0);
}, },
getThreadTableButton: function() { getProcessTableButton: function() {
return this.getComponent(0).getComponent(1); return this.getComponent(0).getComponent(1);
}, },
getProcessTableButton: function() { getThreadTableButton: function() {
return this.getComponent(0).getComponent(2); return this.getComponent(0).getComponent(2);
} }
}); });
Ext.reg('itasks.debug',itasks.DebugPanel); Ext.reg('itasks.debug',itasks.DebugPanel);
\ No newline at end of file
...@@ -13,7 +13,19 @@ itasks.ProcessTableTabPanel = Ext.extend(Ext.Panel, { ...@@ -13,7 +13,19 @@ itasks.ProcessTableTabPanel = Ext.extend(Ext.Panel, {
title: 'Process table', title: 'Process table',
closable: true, closable: true,
autoScroll: true, autoScroll: true,
cls: 'worktab-container' cls: 'worktab-container',
tbar: [{
text: 'Refresh',
iconCls: 'x-tbar-loading',
listeners: {
click: {
scope: this,
fn: function (btn) {
this.refresh();
}
}
}
}]
}); });
itasks.ProcessTableTabPanel.superclass.initComponent.apply(this, arguments); itasks.ProcessTableTabPanel.superclass.initComponent.apply(this, arguments);
......
...@@ -13,7 +13,19 @@ itasks.TaskForestTabPanel = Ext.extend(Ext.Panel, { ...@@ -13,7 +13,19 @@ itasks.TaskForestTabPanel = Ext.extend(Ext.Panel, {
title: 'Task forest', title: 'Task forest',
closable: true, closable: true,
autoScroll: true, autoScroll: true,
cls: 'worktab-container' cls: 'worktab-container',
tbar: [{
text: 'Refresh',
iconCls: 'x-tbar-loading',
listeners: {
click: {
scope: this,
fn: function (btn) {
this.refresh();
}
}
}
}]
}); });
itasks.TaskForestTabPanel.superclass.initComponent.apply(this, arguments); itasks.TaskForestTabPanel.superclass.initComponent.apply(this, arguments);
......
...@@ -13,7 +13,19 @@ itasks.ThreadTableTabPanel = Ext.extend(Ext.Panel, { ...@@ -13,7 +13,19 @@ itasks.ThreadTableTabPanel = Ext.extend(Ext.Panel, {
title: 'Thread table', title: 'Thread table',
closable: true, closable: true,
autoScroll: true, autoScroll: true,
cls: 'worktab-container' cls: 'worktab-container',
tbar: [{
text: 'Refresh',
iconCls: 'x-tbar-loading',
listeners: {
click: {
scope: this,
fn: function (btn) {
this.refresh();
}
}
}
}]
}); });
itasks.ThreadTableTabPanel.superclass.initComponent.apply(this, arguments); itasks.ThreadTableTabPanel.superclass.initComponent.apply(this, arguments);
......
...@@ -247,6 +247,7 @@ itasks.WorkTabPanel = Ext.extend(Ext.Panel, { ...@@ -247,6 +247,7 @@ itasks.WorkTabPanel = Ext.extend(Ext.Panel, {
break; break;
case "Bool": case "Bool":
case "Maybe": case "Maybe":
case "HtmlCheckbox":
var checked = input.dom.checked; var checked = input.dom.checked;
var parent = input.parent(); var parent = input.parent();
var next = input.next(); var next = input.next();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment