]> git.proxmox.com Git - extjs.git/blob - extjs/build/examples/kitchensink/classic/src/Application.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / kitchensink / classic / src / Application.js
1 Ext.define('KitchenSink.Application', {
2 extend: 'Ext.app.Application',
3 namespace: 'KitchenSink',
4
5 requires: [
6 'Ext.app.*',
7 'Ext.state.CookieProvider',
8 'Ext.window.MessageBox',
9 'Ext.tip.QuickTipManager',
10 'KitchenSink.*',
11 'Ext.chart.*'
12 ],
13
14 controllers: [
15 'Global',
16 'Samples',
17 'Direct'
18 ],
19
20 init: function() {
21 if ('nocss3' in Ext.Object.fromQueryString(location.search)) {
22 Ext.supports.CSS3BorderRadius = false;
23 Ext.getBody().addCls('x-nbr x-nlg');
24 }
25
26 Ext.create('KitchenSink.store.Navigation', {
27 storeId: 'navigation'
28 });
29
30 // Set the default route to start the application.
31 this.setDefaultToken('all');
32
33 Ext.setGlyphFontFamily('Pictos');
34 Ext.tip.QuickTipManager.init();
35
36 if (!Ext.platformTags.test) {
37 Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
38 }
39 },
40
41 launch: function () {
42 if (/[?&]solo\b/.test(location.search)) {
43 Ext.create('KitchenSink.view.main.Solo');
44 } else {
45 Ext.create('KitchenSink.view.main.Main');
46 }
47 }
48 });