From ee4a5b6562a3bc371459a701afc99e5d9c7d8ef0 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Fri, 13 Jun 2008 21:42:34 +0000 Subject: added footer --- qooxdoo/source/class/Tr/ui/Footer.js | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 qooxdoo/source/class/Tr/ui/Footer.js (limited to 'qooxdoo/source/class/Tr') 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); + } +}); + + -- cgit v1.2.3-24-g4f1b