summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+ }
+});
+
+