summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-17 04:13:07 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-17 04:13:07 +0100
commit6d0c470a6bbc643438243d1aecd0415a0b793373 (patch)
treeff07e304b170870776e82ae240285ba6676b8af4
parentc8daf4f31084534e58dd90ccdfa88ba2285ec324 (diff)
downloadsmokeping-6d0c470a6bbc643438243d1aecd0415a0b793373.tar.gz
smokeping-6d0c470a6bbc643438243d1aecd0415a0b793373.tar.xz
added windows
-rw-r--r--qooxdoo/source/class/Smokeping/Application.js1
-rw-r--r--qooxdoo/source/class/Smokeping/ui/Graphs.js30
-rw-r--r--qooxdoo/source/class/Smokeping/ui/TargetTree.js2
-rw-r--r--qooxdoo/source/script/Smokeping.js11
-rw-r--r--qooxdoo/source/translation/C.po6
-rw-r--r--qooxdoo/source/translation/de.po6
-rw-r--r--qooxdoo/source/translation/en.po6
-rw-r--r--qooxdoo/source/translation/fr.po6
-rw-r--r--qooxdoo/source/translation/messages.pot21
9 files changed, 75 insertions, 14 deletions
diff --git a/qooxdoo/source/class/Smokeping/Application.js b/qooxdoo/source/class/Smokeping/Application.js
index 29bb685..af4eee0 100644
--- a/qooxdoo/source/class/Smokeping/Application.js
+++ b/qooxdoo/source/class/Smokeping/Application.js
@@ -53,6 +53,7 @@ qx.Class.define(
var graphs = new Smokeping.ui.Graphs(rpc.getBaseUrl());
splitpane.addRight(graphs);
+
},
diff --git a/qooxdoo/source/class/Smokeping/ui/Graphs.js b/qooxdoo/source/class/Smokeping/ui/Graphs.js
index 7a9fb83..8a2502a 100644
--- a/qooxdoo/source/class/Smokeping/ui/Graphs.js
+++ b/qooxdoo/source/class/Smokeping/ui/Graphs.js
@@ -34,23 +34,35 @@ qx.Class.define('Smokeping.ui.Graphs',
setHorizontalSpacing(10);
setPadding(10);
};
-
var load_graphs = function(m){
var files = m.getData()
this.removeAll();
for(var i=0;i<files.length;i++){
- this.debug('adding '+files[i])
var button = new qx.ui.form.Button(null,qx.io.Alias.getInstance().resolve('SP/image/ajax-loader.gif'));
this.add(button);
- var image = button.getIconObject();
+ button.addEventListener('execute',function(e){
+ this.setEnabled(false);
+ var window = this.getUserData('window');
+ window.positionRelativeTo(this.getElement(),2,-4);
+ window.open();
+ },button);
+
var preloader = qx.io.image.PreloaderManager.getInstance().create(url + 'grapher.cgi?g=' + files[i]);
- preloader.setUserData('image',image); // it seems javascript does not do closures
- preloader.addEventListener('load', function(e) {
- var image = this.getUserData('image'); /// so we use this to whisk the image into the event
- // image.setWidth(preloader.getWidth()-10);
- this.debug('load image event: '+preloader.getSource());
- image.setPreloader(this);
+ preloader.setUserData('button',button); // it seems javascript does not do closures
+ preloader.addEventListener('load', function(e) {
+ var button = this.getUserData('button'); /// so we use this to whisk the image into the event
+ var image = button.getIconObject();
+ image.setSource(this.getSource());
qx.io.image.PreloaderManager.getInstance().remove(this);
+
+ var window = new Smokeping.ui.Navigator(image);
+ window.addToDocument();
+ window.addEventListener('beforeDisappear',function (e){
+ this.setEnabled(true);
+ },button);
+ button.setUserData('window',window);
+
+ // image.setWidth(preloader.getWidth()-10);
//if (image.isLoaded()) {
// this.debug('outer '+image.getOuterHeight());
// this.debug('inner '+image.getInnerHeight());
diff --git a/qooxdoo/source/class/Smokeping/ui/TargetTree.js b/qooxdoo/source/class/Smokeping/ui/TargetTree.js
index d335361..c5624a2 100644
--- a/qooxdoo/source/class/Smokeping/ui/TargetTree.js
+++ b/qooxdoo/source/class/Smokeping/ui/TargetTree.js
@@ -99,7 +99,7 @@ qx.Class.define('Smokeping.ui.TargetTree',
} else {
i++; // skip the node id for now
var file = new qx.ui.tree.TreeFile(data[i]);
- files[files.length] = data[i-1];
+ files.push(data[i-1]);
folder.add(file);
}
}
diff --git a/qooxdoo/source/script/Smokeping.js b/qooxdoo/source/script/Smokeping.js
index f462541..1d054b8 100644
--- a/qooxdoo/source/script/Smokeping.js
+++ b/qooxdoo/source/script/Smokeping.js
@@ -158,6 +158,17 @@ if(!window.qxvariants)qxvariants={};\
<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/layout/impl/FlowLayoutImpl.js"></script>\
<script type="text/javascript" src="./class/Smokeping/ui/Graphs.js"></script>\
<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/form/Button.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/popup/Popup.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/popup/PopupManager.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/util/Compare.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/util/Normalization.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/resizer/MResizable.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/resizer/IResizable.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/resizer/ResizablePopup.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/window/Window.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/basic/HorizontalSpacer.js"></script>\
+<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/ui/window/Manager.js"></script>\
+<script type="text/javascript" src="./class/Smokeping/ui/Navigator.js"></script>\
<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/locale/Locale.js"></script>\
<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/locale/data/C.js"></script>\
<script type="text/javascript" src="../qooxdoolink/frontend/framework/source/class/qx/locale/data/en.js"></script>\
diff --git a/qooxdoo/source/translation/C.po b/qooxdoo/source/translation/C.po
index d28ef4e..6a80991 100644
--- a/qooxdoo/source/translation/C.po
+++ b/qooxdoo/source/translation/C.po
@@ -7,10 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-11-14 11:29-0600\n"
+"POT-Creation-Date: 2007-11-16 20:02-0600\n"
"PO-Revision-Date: 2007-10-19 09:30+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"
+
+#: source/class/Smokeping/ui/Navigator.js:26
+msgid "Smokeping Graph Navigator"
+msgstr ""
diff --git a/qooxdoo/source/translation/de.po b/qooxdoo/source/translation/de.po
index 5dd3fdd..2d5e140 100644
--- a/qooxdoo/source/translation/de.po
+++ b/qooxdoo/source/translation/de.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-11-14 11:29-0600\n"
+"POT-Creation-Date: 2007-11-16 20:02-0600\n"
"PO-Revision-Date: 2007-10-19 09:30+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -16,6 +16,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+#: source/class/Smokeping/ui/Navigator.js:26
+msgid "Smokeping Graph Navigator"
+msgstr ""
+
#~ msgid "Start Date"
#~ msgstr "Start-Datum"
diff --git a/qooxdoo/source/translation/en.po b/qooxdoo/source/translation/en.po
index 1d4558d..a132e08 100644
--- a/qooxdoo/source/translation/en.po
+++ b/qooxdoo/source/translation/en.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-11-14 11:29-0600\n"
+"POT-Creation-Date: 2007-11-16 20:02-0600\n"
"PO-Revision-Date: 2007-10-26 23:25+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -16,6 +16,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+#: source/class/Smokeping/ui/Navigator.js:26
+msgid "Smokeping Graph Navigator"
+msgstr ""
+
#~ msgid "Start Date"
#~ msgstr "Start Date"
diff --git a/qooxdoo/source/translation/fr.po b/qooxdoo/source/translation/fr.po
index b32afd2..df14233 100644
--- a/qooxdoo/source/translation/fr.po
+++ b/qooxdoo/source/translation/fr.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-11-14 11:29-0600\n"
+"POT-Creation-Date: 2007-11-16 20:02-0600\n"
"PO-Revision-Date: 2007-10-19 09:30+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -15,3 +15,7 @@ msgstr ""
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#: source/class/Smokeping/ui/Navigator.js:26
+msgid "Smokeping Graph Navigator"
+msgstr ""
diff --git a/qooxdoo/source/translation/messages.pot b/qooxdoo/source/translation/messages.pot
index e69de29..969bddc 100644
--- a/qooxdoo/source/translation/messages.pot
+++ b/qooxdoo/source/translation/messages.pot
@@ -0,0 +1,21 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-11-16 20:02-0600\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: source/class/Smokeping/ui/Navigator.js:26
+msgid "Smokeping Graph Navigator"
+msgstr ""