-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.js
61 lines (61 loc) · 1.74 KB
/
main.js
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
(function() {
var App, BaseScreen, Screen1, Screen2;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
BaseScreen = (function() {
function BaseScreen() {
BaseScreen.__super__.constructor.apply(this, arguments);
}
__extends(BaseScreen, Ext.Panel);
BaseScreen.prototype.title = 'Base panel';
BaseScreen.prototype.iconCls = 'info';
return BaseScreen;
})();
Screen1 = (function() {
function Screen1() {
Screen1.__super__.constructor.apply(this, arguments);
}
__extends(Screen1, BaseScreen);
Screen1.prototype.title = 'First screen';
Screen1.prototype.html = 'Content of one screen';
return Screen1;
})();
Screen2 = (function() {
function Screen2() {
Screen2.__super__.constructor.apply(this, arguments);
}
__extends(Screen2, BaseScreen);
Screen2.prototype.title = 'Second screen';
Screen2.prototype.html = 'Content of another screen';
return Screen2;
})();
App = (function() {
function App() {
App.__super__.constructor.apply(this, arguments);
}
__extends(App, Ext.TabPanel);
App.prototype.fullscreen = true;
App.prototype.tabBar = {
dock: 'bottom',
layout: {
pack: 'center'
}
};
App.prototype.items = [new Screen1, new Screen2];
return App;
})();
Ext.setup({
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var app;
return app = new App;
}
});
}).call(this);