diff options
Diffstat (limited to 'qooxdoo/source/class')
-rw-r--r-- | qooxdoo/source/class/Tr/ui/ActionButton.js | 16 | ||||
-rw-r--r-- | qooxdoo/source/class/Tr/ui/TraceTable.js | 8 |
2 files changed, 14 insertions, 10 deletions
diff --git a/qooxdoo/source/class/Tr/ui/ActionButton.js b/qooxdoo/source/class/Tr/ui/ActionButton.js index e30e416..f710df9 100644 --- a/qooxdoo/source/class/Tr/ui/ActionButton.js +++ b/qooxdoo/source/class/Tr/ui/ActionButton.js @@ -46,7 +46,8 @@ qx.Class.define('Tr.ui.ActionButton', this.add(lab2); var delay = new qx.ui.form.Spinner(1,2,60); delay.set({ - border: 'dark-shadow' + border: 'dark-shadow', + width: 45 }); this.add(delay); this.__delay = delay; @@ -59,7 +60,8 @@ qx.Class.define('Tr.ui.ActionButton', this.add(lab3); var rounds = new qx.ui.form.Spinner(1,20,200); rounds.set({ - border: 'dark-shadow' + border: 'dark-shadow', + width: 45 }); this.add(rounds); this.__rounds = rounds; @@ -68,7 +70,7 @@ qx.Class.define('Tr.ui.ActionButton', this.__button = button; button.set({ marginLeft: 10, - width: 50, + width: 60, height: 'auto', border: 'dark-shadow', padding: 2 @@ -87,14 +89,16 @@ qx.Class.define('Tr.ui.ActionButton', }); }; - host.addEventListener('keyup',function(e){if(e.keyCode == 13){start_trace()}}); +// var self=this; +// host.addEventListener('keyup',function(e){if(e.getKeyIdentifier() == 'Enter'){start_trace()}}); + host.addEventListener('execute',start_trace); button.addEventListener('execute', start_trace ); var history = qx.client.History.getInstance(); var history_action = function(event){ var targ = event.getData(); host.setValue(targ); - history.addToHistory(targ,'SmokeTracerout to '+targ); + history.addToHistory(targ,'SmokeTraceroute to '+targ); start_trace(); } history.addEventListener('request', history_action); @@ -103,7 +107,7 @@ qx.Class.define('Tr.ui.ActionButton', var initial_host = qx.client.History.getInstance().getState(); if (initial_host){ host.setValue(initial_host); - history.addToHistory(initial_host,'SmokeTracerout to '+initial_host); + history.addToHistory(initial_host,'SmokeTraceroute to '+initial_host); // dispatch this task once all the initializations are done qx.client.Timer.once(start_trace,this,0); } diff --git a/qooxdoo/source/class/Tr/ui/TraceTable.js b/qooxdoo/source/class/Tr/ui/TraceTable.js index 0f999a3..ace538f 100644 --- a/qooxdoo/source/class/Tr/ui/TraceTable.js +++ b/qooxdoo/source/class/Tr/ui/TraceTable.js @@ -22,7 +22,7 @@ qx.Class.define('Tr.ui.TraceTable', var tableModel = new qx.ui.table.model.Simple(); this.__tableModel = tableModel; tableModel.setColumns([ this.tr("Hop"), this.tr("Host"),this.tr("Ip"), - this.tr("Loss [%]"), this.tr("Sent [ms]"), this.tr("Last [ms]"), //"; help syntax highliter + this.tr("Loss [%]"), this.tr("Sent"), this.tr("Last [ms]"), //"; help syntax highliter this.tr("Avg [ms]"), this.tr("Best [ms]"), this.tr("Worst [ms]"), this.tr("StDev [ms]") ]); var custom = { tableColumnModel: function(obj) { @@ -57,11 +57,11 @@ qx.Class.define('Tr.ui.TraceTable', var resizeBehavior = tcm.getBehavior(); // This uses the set() method to set all attriutes at once; uses flex resizeBehavior.set(0, { width:"2*"}); - resizeBehavior.set(1, { width:"8*"}); - resizeBehavior.set(2, { width:"4*"}); + resizeBehavior.set(1, { width:"9*"}); + resizeBehavior.set(2, { width:"5*"}); for (var i=3;i<10;i++){ - resizeBehavior.set(i, { width:"2*"}); + resizeBehavior.set(i, { width:"3*"}); } qx.event.message.Bus.subscribe('tr.cmd',this.__handle_tr,this); }, |