sync
[Pman.Admin] / Pman.Tab.AdminLogs.js
index c0ce542..4ca7252 100644 (file)
@@ -2,53 +2,53 @@
 
 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
 
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '999-Pman.Tab.AdminLogs',
-        module : Pman.Tab.AdminLogs,
-        region : 'center',
-        parent : Pman,
-        name : "Logs",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.AdminLogs = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
-    {
-
-        var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
-            xtype: 'NestedLayoutPanel',
-            xns: Roo,
-            background : true,
-            fitToFrame : true,
-            region : 'center',
-            title : "Logs",
-            layout : {
-                xtype: 'BorderLayout',
-                xns: Roo,
-                center : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    titlebar : false,
-                    tabPosition : 'top'
-                }
-            }
-        });
-        this.layout = this.panel.layout;
-
+Roo.namespace('Pman.Tab');
+
+Pman.Tab.AdminLogs = new Roo.XComponent({
+
+ _strings : {
+  'b2d37ae1cedf42ff874289b721860af2' :"Logs"
+ },
+
+  part     :  ["Admin", "Logs" ],
+  order    : '999-Pman.Tab.AdminLogs',
+  region   : 'center',
+  parent   : 'Pman',
+  name     : "Logs",
+  disabled : false, 
+  permname : '', 
+  _tree : function(_data)
+  {
+   var _this = this;
+   var MODULE = this;
+   return {
+   xtype : 'NestedLayoutPanel',
+   background : true,
+   fitToFrame : true,
+   region : 'center',
+   title : _this._strings['b2d37ae1cedf42ff874289b721860af2'] /* Logs */,
+   listeners : {
+    activate : function (_self)
+     {
+         var cr = this.layout.getRegion('center');
+         if (cr) {
+             cr.showPanel(cr.activePanel);
+         }
+     }
+   },
+   xns : Roo,
+   '|xns' : 'Roo',
+   layout : {
+    xtype : 'BorderLayout',
+    xns : Roo,
+    '|xns' : 'Roo',
+    center : {
+     xtype : 'LayoutRegion',
+     tabPosition : 'top',
+     titlebar : false,
+     xns : Roo,
+     '|xns' : 'Roo'
     }
+   }
+  };  }
 });