
MyDesktop.ContatoModule = Ext.extend(Ext.app.Module, {
	id: 'hockey',
    init : function(){
        this.launcher = {
            text: 'Hockey',
            iconCls:'hockey',
            handler : this.createWindow,
            scope: this,
            windowId: 'hockey',
            autoScroll:true
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('hockey');
        if(!win){
            win = desktop.createWindow({
                id: 'hockey',
                title: 'Hockey',
                width:640,
                height:480,
                html : '<p>teste wheee</p>',
                iconCls: 'hockey',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll:true
                
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "hockey.html"
        });

        win.show();
    }
});

MyDesktop.HockeyModule = Ext.extend(Ext.app.Module, {
	id: 'hockey',
    init : function(){
        this.launcher = {
            text: 'Hockey',
            iconCls:'hockey',
            handler : this.createWindow,
            scope: this,
            windowId: 'hockey',
            autoScroll:true
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('hockey');
        if(!win){
            win = desktop.createWindow({
                id: 'hockey',
                title: 'Hockey',
                width:640,
                height:480,
                html : '<p>teste wheee</p>',
                iconCls: 'hockey',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll:true
                
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "hockey.html"
        });

        win.show();
    }
});

MyDesktop.PojoModule = Ext.extend(Ext.app.Module, {
	id: 'pojo', 
    init : function(){
        this.launcher = {
            text: 'POJO - O loco!',
            iconCls:'pojo',
            handler : this.createWindow,
            scope: this,
            windowId: 'pojo'
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('pojo');
        if(!win){
            win = desktop.createWindow({
                id: 'pojo',
                title: 'POJO - O loco!',
                width:640,
                height:480,
                html : '<p>teste wheee</p>',
                iconCls: 'pojo',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll: true
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "pojo.html"
        });
        win.show();
    }
});

MyDesktop.ChiaraModule = Ext.extend(Ext.app.Module, {
	id: 'chiara',
    init : function(){
        this.launcher = {
            text: 'Minha cachorra Chiara',
            iconCls:'chiara',
            handler : this.createWindow,
            scope: this,
            windowId: 'chiara'
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('chiara');
        if(!win){
            win = desktop.createWindow({
                id: 'chiara',
                title:'Minha cachorra Chiara',
                width:640,
                height:480,
                html : '<p>teste wheee</p>',
                iconCls: 'chiara',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll: true
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "chiara.html"
        });
        win.show();
    }
});

MyDesktop.RepublicaModule = Ext.extend(Ext.app.Module, {
	id: 'republica',
    init : function(){
        this.launcher = {
            text: 'República Azul Calcinha',
            iconCls:'republica',
            handler : this.createWindow,
            scope: this,
            windowId: 'republica',
            autoScrool: true
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('republica');
        if(!win){
            win = desktop.createWindow({
                id: 'republica',
                title:'República Azul Calcinha',
                width:640,
                height:480,
                html : '<p>teste wheee</p>',
                iconCls: 'republica',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll: true
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "republica.html"
        });
        win.show();
    }
});

MyDesktop.EsposaModule = Ext.extend(Ext.app.Module, {
	id: 'esposa',
    init : function(){
        this.launcher = {
            text: 'Minha esposa',
            iconCls:'esposa',
            handler : this.createWindow,
            scope: this,
            windowId: 'esposa'
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('esposa');
        if(!win){
            win = desktop.createWindow({
                id: 'esposa',
                title:'Minha Esposa',
                width:640,
                height:520,
                html : '<p>teste wheee</p>',
                iconCls: 'esposa',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                resizable: false,
                autoScroll: true
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "esposa.html"
        });
        win.show();
    }
});



MyDesktop.IrmasModule = Ext.extend(Ext.app.Module, {
	id: 'irmas',
    init : function(){
        this.launcher = {
            text: 'Irmãs',
            iconCls:'irmas',
            handler : this.createWindow,
            scope: this,
            windowId: 'irmas',
            autoScroll:true
        }
    },

    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('irmas');
        if(!win){
            win = desktop.createWindow({
                id: 'irmas',
                title: 'Irmãs',
                width:640,
                height:480,
                html : '<p>irmãs</p>',
                iconCls: 'irmas',
                shim:false,
                animCollapse:false,
                constrainHeader:true,
                autoScroll:true
                
            });
        }
        winUpdater = win.getUpdater();
        winUpdater.update({
            url: "irmas.html"
        });

        win.show();
    }
});

