summaryrefslogtreecommitdiffstats
path: root/qx08/source/class/tr/ui/Footer.js
blob: 18820437ef437e429b1a88e5afc792624b4c9ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
    }
});