From c075aed46ee0dceb6bf3a3569da67daf0a50bdde Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sun, 18 Nov 2007 15:04:33 +0000 Subject: working version ... schluss fuer den moment --- qooxdoo/source/class/Smokeping/Application.js | 3 +- qooxdoo/source/class/Smokeping/ui/Graph.js | 4 +- qooxdoo/source/class/Smokeping/ui/Navigator.js | 5 +- qooxdoo/source/class/Smokeping/ui/Zoomer.js | 88 +++++++++++++------------- qooxdoo/source/grapher.cgi | 7 +- 5 files changed, 56 insertions(+), 51 deletions(-) (limited to 'qooxdoo') diff --git a/qooxdoo/source/class/Smokeping/Application.js b/qooxdoo/source/class/Smokeping/Application.js index b980d7e..a84773a 100644 --- a/qooxdoo/source/class/Smokeping/Application.js +++ b/qooxdoo/source/class/Smokeping/Application.js @@ -22,7 +22,8 @@ qx.Class.define( ); // this will provide access to the server side of this app - var rpc = new Smokeping.io.Rpc('http://localhost/~oetiker/smq/'); +// var rpc = new Smokeping.io.Rpc('http://localhost/~oetiker/smq/'); + var rpc = new Smokeping.io.Rpc('http://johan.oetiker.ch/~oetiker/smq/'); var base_url = rpc.getBaseUrl(); diff --git a/qooxdoo/source/class/Smokeping/ui/Graph.js b/qooxdoo/source/class/Smokeping/ui/Graph.js index 955374a..8a55a4f 100644 --- a/qooxdoo/source/class/Smokeping/ui/Graph.js +++ b/qooxdoo/source/class/Smokeping/ui/Graph.js @@ -38,7 +38,7 @@ qx.Class.define('Smokeping.ui.Graph', this.setHeight('auto'); }; this.set({ - border : new qx.ui.core.Border(1,'dotted','transparent'), + border : new qx.ui.core.Border(1,'dotted','#ffffff'), horizontalChildrenAlign: 'center', verticalChildrenAlign: 'middle' }); @@ -97,7 +97,7 @@ qx.Class.define('Smokeping.ui.Graph', _unhighlight: function(e){ this.setBackgroundColor('transparent'); this.getBorder().set({ - color: 'transparent' + color: '#ffffff' }); } } diff --git a/qooxdoo/source/class/Smokeping/ui/Navigator.js b/qooxdoo/source/class/Smokeping/ui/Navigator.js index 0e9f64f..37042e4 100644 --- a/qooxdoo/source/class/Smokeping/ui/Navigator.js +++ b/qooxdoo/source/class/Smokeping/ui/Navigator.js @@ -90,9 +90,10 @@ qx.Class.define('Smokeping.ui.Navigator', qx.io.image.PreloaderManager.getInstance().remove(this._preloader); removeAll(); add(image); - var zoomer = new Smokeping.ui.Zoomer(width,height,10,10); + this.debug('added image'); + var zoomer = new Smokeping.ui.Zoomer(image,this._graph_width,this._graph_height,33,30); add(zoomer); - + this.debug('added zoomer'); } } } diff --git a/qooxdoo/source/class/Smokeping/ui/Zoomer.js b/qooxdoo/source/class/Smokeping/ui/Zoomer.js index fd1a836..e46b0f0 100644 --- a/qooxdoo/source/class/Smokeping/ui/Zoomer.js +++ b/qooxdoo/source/class/Smokeping/ui/Zoomer.js @@ -27,53 +27,58 @@ qx.Class.define('Smokeping.ui.Zoomer', * */ - construct: function (width,height,top,right) { + construct: function (target,width,height,top,right) { + this.debug('hell'); + this._target = target; this._width = width; - this._height = height; + this._height = height+1; // some where the calc is 1 off. this fixes it this._top = top; this._right = right; with(this){ base(arguments); set({ width: '100%', - height: '100%' + height: '100%', + visibility: false }); } var zoomer_defaults = { - visibility: false, - opacity: 0.1, - backgroundColor: 'black', + backgroundColor: 'black', + opacity: 0.1, overflow: 'hidden' // important to make box go to 'zero height' on ie6 }; var dir = ['left','right','top','bottom' ]; + var z = []; + this._zoomer = z; for(var i=0;i '0.75', '--width' => $width, '--height' => $height, - '--color' => 'BACK#bfbfbf00', - '--color' => 'SHADEA#bfbfbf00', - '--color' => 'SHADEB#bfbfbf00', + '--color' => 'BACK#ffffff00', + '--color' => 'SHADEA#ffffff00', + '--color' => 'SHADEB#ffffff00', 'DEF:in=lan.rrd:out:AVERAGE', 'CDEF:green=in,100000,LT,in,100000,IF', 'AREA:green#00ff00', -- cgit v1.2.3-24-g4f1b