summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-06-13 23:42:34 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-06-13 23:42:34 +0200
commitee4a5b6562a3bc371459a701afc99e5d9c7d8ef0 (patch)
tree1f30dff9036cd43b6153fc3bbf7ed757ebff654b /qooxdoo/source
parent4ac6bf769b09ba7bd39778297f0e9699ee263256 (diff)
downloadsmokeping-ee4a5b6562a3bc371459a701afc99e5d9c7d8ef0.tar.gz
smokeping-ee4a5b6562a3bc371459a701afc99e5d9c7d8ef0.tar.xz
added footer
Diffstat (limited to 'qooxdoo/source')
-rw-r--r--qooxdoo/source/class/Tr/ui/Footer.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/qooxdoo/source/class/Tr/ui/Footer.js b/qooxdoo/source/class/Tr/ui/Footer.js
new file mode 100644
index 0000000..1882043
--- /dev/null
+++ b/qooxdoo/source/class/Tr/ui/Footer.js
@@ -0,0 +1,45 @@
+/* ************************************************************************
+#module(Tr)
+************************************************************************ */
+
+/**
+ * a widget showing the footer
+ */
+
+qx.Class.define('Tr.ui.Footer',
+{
+ extend: qx.ui.layout.HorizontalBoxLayout,
+
+ /*
+ *****************************************************************************
+ CONSTRUCTOR
+ *****************************************************************************
+ */
+
+ construct: function (text,url) {
+ this.base(arguments);
+ this.set({
+ horizontalChildrenAlign: 'right',
+ height: 'auto'
+ });
+ var logo = new qx.ui.form.Button(text);
+ logo.set({
+ textColor: '#b0b0b0',
+ backgroundColor: null,
+ font: qx.ui.core.Font.fromString('10px sans-serif'),
+ border: null
+ });
+
+ logo.addEventListener('execute', function(e){
+ var w = new qx.client.NativeWindow(url);
+ w.set({
+ width: 1000,
+ height: 800
+ });
+ w.open()
+ });
+ this.add(logo);
+ }
+});
+
+