-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWidget.js
More file actions
64 lines (48 loc) · 1.6 KB
/
MainWidget.js
File metadata and controls
64 lines (48 loc) · 1.6 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* ************************************************************************
License: MIT
Authors: Lukas Michalski, Benjamin Zeller, Thorsten Schwalb
************************************************************************ */
qx.Class.define("pms.MainWidget",
{
extend : qx.ui.container.Composite,
/******************************************************************************
* CONSTRUCTOR
******************************************************************************/
construct : function(mainWidget)
{
this.base(arguments);
this.__mainWidget = mainWidget;
this.__logoWidget = new qx.ui.basic.Image("resource/pms/logo_pms.png")
this.main();
},
/******************************************************************************
* MEMBERS
******************************************************************************/
members:
{
'__mainWidget' : null,
main : function()
{
this.setLayout(new qx.ui.layout.VBox(2));
this.setWidgetLayout(this);
},
/******************************************************************************
* FUNCTION: setWidgetLayout
******************************************************************************/
setWidgetLayout : function (tabView)
{
var container = new qx.ui.container.Composite(new qx.ui.layout.HBox(2));
container.add(new qx.ui.core.Widget().set({
}),{flex:1});
container.add(this.__logoWidget.set({
minWidth : 125,
maxWidth : 125
}),{flex:2});
tabView.add(container.set({
maxHeight : 63
}), { flex : 1 });
tabView.add(this.__mainWidget.set({
}),{flex:2});
}
}
});