Sha256: d1209d3dcaa55971eef03eb9da2540a75f598a8ea75af0f67be4f664da31dff2

Contents?: true

Size: 1.27 KB

Versions: 25

Compression:

Stored size: 1.27 KB

Contents

Ext.define("Compass.ErpApp.Desktop.Applications.ControlPanel",{
  extend:"Ext.ux.desktop.Module",
  requires:["Ext.window.MessageBox","Ext.tab.Panel"],
  id:"control-panel-win",
  init : function(){
    this.launcher = {
      text: 'Control Panel',
      iconCls:'icon-control_panel',
      handler : this.createWindow,
      scope: this
    }
  },
  createWindow : function(){
    var desktop = this.app.getDesktop();
    var win = desktop.getWindow('control_panel');
    if(!win){
      var tabPanel = Ext.create('Ext.tab.Panel',{
        items:[
        {
          xtype:'controlpanel_desktopmanagementpanel',
          listeners:{
            'activate':function(panel){
              panel.setup();
            }
          }
        },
        {
          xtype:'controlpanel_applicationmanagementpanel'
        },
        {
          xtype:'shared_profilemanagementpanel'
        }
        ]
      });

      win = desktop.createWindow({
        id: 'control_panel',
        title:'Control Panel',
        width:550,
        height:550,
        iconCls: 'icon-control_panel',
        shim:false,
        animCollapse:false,
        constrainHeader:true,
        layout:'fit',
        items:[tabPanel]
      });

      tabPanel.setActiveTab(0);
    }
    win.show();
    return win;
  }
});


Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
erp_app-3.1.16 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.15 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.14 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.13 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.12 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.11 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.10 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.9 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.8 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.7 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.6 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.5 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.4 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.3 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.2 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.0.16 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.0.15 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.1 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.1.0 public/javascripts/erp_app/desktop/applications/control_panel/module.js
erp_app-3.0.14 public/javascripts/erp_app/desktop/applications/control_panel/module.js