DataObjects/builder.sql
[Pman.Builder] / Pman.Tab.BuilderView.js
index 5eeb63f..f7e8d4a 100644 (file)
@@ -2,61 +2,64 @@
 
 // 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 : '001-Pman.Tab.BuilderView',
-        module : Pman.Tab.BuilderView,
-        region : 'center',
-        parent : Pman.Tab.BuilderTab,
-        name : "Pman.Tab.BuilderView",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.BuilderView = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
+Pman.Tab.BuilderView = new Roo.XComponent({
+    part     :  ["Builder","View"],
+    order    : '001-Pman.Tab.BuilderView',
+    region   : 'center',
+    parent   : 'Pman.Tab.BuilderTab',
+    name     : "Pman.Tab.BuilderView",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
     {
-
         var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
-            xtype: 'ContentPanel',
+        var MODULE = this;
+        return {
+            xtype: 'NestedLayoutPanel',
             xns: Roo,
             listeners : {
                 activate : function (_self)
                 {
                     _this.panel = _self;
+                    Pman.Builder.View.init(_this);
                 }
             },
             region : 'center',
             title : "View",
             clearAll : function(isAuto) {
-            //        this.renderObj = { isBuilder : true };
             
+                Pman.Builder.View.clearAll(isAuto);
+            },
+            munge : function(cfg, keyname) {
+                 return Pman.Builder.View.munge(cfg,keyname);
                     
-                    if (this.panelroot) {
-                        this.scroll = this.panelroot.el.getScroll();
-                        this.layout.remove('center', this.panelroot);
-                        this.panelroot = false;
-                    }
-                    if (this.dialogroot) {
-                        this.dialogroot.remove();
-                        this.dialogroot = false;
+                    
+            },
+            redraw : function(isAuto)
+                {
+                  return Pman.Builder.View.redraw(isAuto);
+                },
+            toJS : function(n) {
+                return Pman.View.Builder.toJS(n);
+             
+            },
+            layout : {
+                xtype: 'BorderLayout',
+                xns: Roo,
+                items : [
+                    {
+                        xtype: 'ContentPanel',
+                        xns: Roo,
+                        region : 'center'
                     }
+                ],
+                center : {
+                    xtype: 'LayoutRegion',
+                    xns: Roo,
+                    alwaysShowTabs : false,
+                    tabPosition : 'top'
+                }
             }
-        });
-        this.layout = this.panel.layout;
-
+        };
     }
 });