3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
17 * Copyright(c) 2006-2011 Sencha Inc.
18 * licensing@sencha.com
19 * http://www.sencha.com/license
22 Ext.define('MyDesktop.App', {
23 extend: 'Ext.ux.desktop.App',
26 'Ext.window.MessageBox',
28 'Ext.ux.desktop.ShortcutModel',
30 'MyDesktop.SystemStatus',
31 'MyDesktop.VideoWindow',
32 'MyDesktop.GridWindow',
33 'MyDesktop.TabWindow',
34 'MyDesktop.AccordionWindow',
36 'MyDesktop.BogusMenuModule',
37 'MyDesktop.BogusModule',
39 // 'MyDesktop.Blockalanche',
44 // custom logic before getXYZ methods get called...
51 getModules : function(){
53 new MyDesktop.VideoWindow(),
54 //new MyDesktop.Blockalanche(),
55 new MyDesktop.SystemStatus(),
56 new MyDesktop.GridWindow(),
57 new MyDesktop.TabWindow(),
58 new MyDesktop.AccordionWindow(),
59 new MyDesktop.Notepad(),
60 new MyDesktop.BogusMenuModule(),
61 new MyDesktop.BogusModule()
65 getDesktopConfig: function () {
66 var me = this, ret = me.callParent();
68 return Ext.apply(ret, {
69 //cls: 'ux-desktop-black',
72 { text: 'Change Settings', handler: me.onSettings, scope: me }
75 shortcuts: Ext.create('Ext.data.Store', {
76 model: 'Ext.ux.desktop.ShortcutModel',
78 { name: 'Grid Window', iconCls: 'grid-shortcut', module: 'grid-win' },
79 { name: 'Accordion Window', iconCls: 'accordion-shortcut', module: 'acc-win' },
80 { name: 'Notepad', iconCls: 'notepad-shortcut', module: 'notepad' },
81 { name: 'System Status', iconCls: 'cpu-shortcut', module: 'systemstatus'}
85 wallpaper: 'wallpapers/Blue-Sencha.jpg',
86 wallpaperStretch: false
90 // config for the start menu
91 getStartConfig : function() {
92 var me = this, ret = me.callParent();
94 return Ext.apply(ret, {
104 handler: me.onSettings,
111 handler: me.onLogout,
119 getTaskbarConfig: function () {
120 var ret = this.callParent();
122 return Ext.apply(ret, {
124 { name: 'Accordion Window', iconCls: 'accordion', module: 'acc-win' },
125 { name: 'Grid Window', iconCls: 'icon-grid', module: 'grid-win' }
128 { xtype: 'trayclock', flex: 1 }
133 onLogout: function () {
134 Ext.Msg.confirm('Logout', 'Are you sure you want to logout?');
137 onSettings: function () {
138 var dlg = new MyDesktop.Settings({
139 desktop: this.desktop