Pman.js
[Pman.BAdmin] / Pman.js
1 /**
2  * 
3  *  
4  *  This is the main Pman class [for bootstrap]
5  *
6  *  In theory it's lighter than the original, as no BC concerns..
7  */
8  
9 // translation..
10 if (typeof(_T) == 'undefined') { _T={};}
11
12
13 Roo.XComponent.on('buildcomplete',  
14     function() {
15         Pman.building = false;   
16         Pman.layout.getRegion('center').showPanel(0);
17         Pman.layout.endUpdate(); 
18         Pman.addTopToolbar();  
19         Pman.finalize();
20         Pman.fireEvent('load',this);
21         
22         if (!Pman.layout.getRegion('south').panels.length) {
23             Pman.layout.getRegion('south').hide();
24         }
25     
26     
27     }
28 );
29 Pman = new Roo.Document(
30 {
31     
32     subMenuItems : [],
33     topMenuItems : [],
34     rightNames: { }, /// register right names here - so they can be translated and rendered.
35     /**
36      * @property {Roo.menu.Menu} pulldownMenu - the 'add menu pulldown, you can use it to add items..
37      *
38      */
39     pulldownMenu : false, 
40     
41     
42     buildCompleted : false, // flag to say if we are building interface..
43     events : {
44         'beforeload' : true, // fired after page ready, before module building.
45         'load' : true, // fired after module building
46         'authrefreshed' : true // fire on auth updated?? - should be on Login?!?!?
47     },