/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */

// Sample desktop configuration
MyDesktop = new Ext.app.App({
	init :function(){
		Ext.QuickTips.init();
	},

	getModules : function(){
		return [
            new MyDesktop.PessoalMenuModule(),
            new MyDesktop.ProfissionalMenuModule(),
            new MyDesktop.DivisorModule(),
            new MyDesktop.CurriculoModule(),
            new MyDesktop.TrabalhoModule(),
            new MyDesktop.PojoModule(),
            new MyDesktop.ChiaraModule(),
            new MyDesktop.ArtigosModule(),            
            new MyDesktop.ProjetosModule(),
            new MyDesktop.TrabalhoModule(),
            new MyDesktop.ViagensModule(),
            new MyDesktop.FrameworksModule()
        ];
	},

    // config for the start menu
    getStartConfig : function(){
        return {
            title: 'Ari Dias',
            iconCls: 'user'/*,
            toolItems: [{
                text:'Contato',
                iconCls:'contato',
                scope:this
            },'-']*/
        };
    }
});


MyDesktop.PessoalMenuModule = Ext.extend(Ext.app.Module, {
    init : function(){
        this.launcher = {
            text: 'Vida Pessoal',
            iconCls: 'bogus',
            handler: function() {
				return false;
			},
            menu: {
                items:[{
                    text: 'Pojo - O loco!',
                    iconCls:'pojo',
                    handler : new MyDesktop.PojoModule().createWindow,
                    scope: this
                    },{
                    text: 'Chiara',
                    iconCls:'chiara',
                    handler : new MyDesktop.ChiaraModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Esposa',
                    iconCls:'esposa',
                    handler : new MyDesktop.EsposaModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'República',
                    iconCls:'republica',
                    handler : new MyDesktop.RepublicaModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Hockey',
                    iconCls:'hockey',
                    handler : new MyDesktop.HockeyModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Irmãs',
                    iconCls:'irmas',
                    handler : new MyDesktop.IrmasModule().createWindow,
                    scope: this
                    }
                ]
            }
        }
    }
});

MyDesktop.ProfissionalMenuModule = Ext.extend(Ext.app.Module, {
    init : function(){
        this.launcher = {
            text: 'Vida Profissional',
            iconCls: 'bogus',
            handler: function() {
				return false;
			},
            menu: {
                items:[{
                    text: 'Trabalho',
                    iconCls:'trabalho',
                    handler : new MyDesktop.TrabalhoModule().createWindow,
                    scope: this
                    },{
                    text: 'Currículo',
                    iconCls:'curriculo',
                    handler : new MyDesktop.CurriculoModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Artigos Publicados',
                    iconCls:'artigos',
                    handler : new MyDesktop.ArtigosModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Frameworks Legais',
                    iconCls:'frameworks',
                    handler : new MyDesktop.FrameworksModule().createWindow,
                    scope: this
                    },
                    {
                    text: 'Projetos',
                    iconCls:'projetos',
                    handler : new MyDesktop.ProjetosModule().createWindow,
                    scope: this
                    }
                ]
            }
        }
    }
});


