From 610bab43a1ddd085a1c272c5cf6aaf4a85ed8fee Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 21 Nov 2007 23:41:39 +0000 Subject: introduction of Shadow graph causes step back ... --- qooxdoo/source/class/Smokeping/Application.js | 4 ++-- qooxdoo/source/class/Smokeping/ui/Graph.js | 12 +++++------- qooxdoo/source/class/Smokeping/ui/GraphList.js | 13 ++++++++++++- qooxdoo/source/class/Smokeping/ui/Navigator.js | 18 ++++++++---------- qooxdoo/source/grapher.cgi | 2 +- 5 files changed, 28 insertions(+), 21 deletions(-) (limited to 'qooxdoo/source') diff --git a/qooxdoo/source/class/Smokeping/Application.js b/qooxdoo/source/class/Smokeping/Application.js index 4494930..90e2f32 100644 --- a/qooxdoo/source/class/Smokeping/Application.js +++ b/qooxdoo/source/class/Smokeping/Application.js @@ -22,8 +22,8 @@ qx.Class.define('Smokeping.Application', ); // 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://johan.oetiker.ch/~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 5bfc225..1d12cdf 100644 --- a/qooxdoo/source/class/Smokeping/ui/Graph.js +++ b/qooxdoo/source/class/Smokeping/ui/Graph.js @@ -20,15 +20,13 @@ qx.Class.define('Smokeping.ui.Graph', */ /** - * @param base_url {String} Path to the location of the image generator + * @param object {GraphShadow} What happens when the SNCF conductors tamazing. * */ - construct: function (src,width,height) { + construct: function (graph) { this.base(arguments); - this._src=src; - this._width=width; - this._height=height; + this._graph=graph; if ( Smokeping_ui_Graph_default_width){ this.setWidth( Smokeping_ui_Graph_default_width) this.setHeight( Smokeping_ui_Graph_default_height); @@ -45,7 +43,7 @@ qx.Class.define('Smokeping.ui.Graph', this._highlight(); var loader = new Smokeping.ui.LoadingAnimation(); this.add(loader); - this._preloader = qx.io.image.PreloaderManager.getInstance().create(this._src+';w='+this._width+';h='+this._height); + this._preloader = qx.io.image.PreloaderManager.getInstance().create(this._graph.getSrc()); if (this._preloader.isLoaded()){ qx.client.Timer.once(this._image_loader,this,0); } else { @@ -73,7 +71,7 @@ qx.Class.define('Smokeping.ui.Graph', with(this){ setEnabled(false); _unhighlight(); - this._window = new Smokeping.ui.Navigator(this._src,this._width*2,this._height*2); + this._window = new Smokeping.ui.Navigator(this._graph); _window.addToDocument(); _window.positionRelativeTo(getElement(),2,-4); addEventListener('beforeDisappear',_kill_window,this); diff --git a/qooxdoo/source/class/Smokeping/ui/GraphList.js b/qooxdoo/source/class/Smokeping/ui/GraphList.js index 66420f7..5d9bc58 100644 --- a/qooxdoo/source/class/Smokeping/ui/GraphList.js +++ b/qooxdoo/source/class/Smokeping/ui/GraphList.js @@ -45,7 +45,18 @@ qx.Class.define('Smokeping.ui.GraphList', var files = m.getData() this.removeAll(); for(var i=0;i $end, '--upper-limit' => $top, '--lower-limit' => $bottom, - '--riggid', + '--rigid', # '--zoom' => '0.75', '--width' => $width, '--height' => $height, -- cgit v1.2.3-24-g4f1b