Pman.Tab.BuilderTab.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 27 Mar 2015 05:24:57 +0000 (13:24 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Mar 2015 05:24:57 +0000 (13:24 +0800)
Pman.Tab.BuilderTab.js

Pman.Tab.BuilderTab.bjs
Pman.Tab.BuilderTab.js

index 860d67f..35f189d 100644 (file)
@@ -1,60 +1,63 @@
 {
-    "id": "roo-file-157",
-    "name": "Pman.Tab.BuilderTab",
-    "parent": "Pman.Tab.Builder",
-    "title": "Pman.Tab.BuilderTab",
-    "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderTab.bjs",
-    "items": [
-        {
-            "listeners": {
-                "activate": "function (_self)\n{\n    if (_this.keyListener) {\n        return;\n    }\n    _this.keyListener = true;\n    \n    Roo.get(document).on(   'keyup',  function(e) {\n        if (!  _this.panel.active ) {\n            return;\n        }\n         \n        // check..\n        if (!Pman.Tab.BuilderPanel.isMouseOver && !Pman.Tab.BuilderTree.isMouseOver) {\n            return;\n        }\n       // console.log(e);\n        //Roo.EventObject.DELETE,\n        if (e.getCharCode() == Roo.EventObject.DELETE) {\n            //  console.log('delete');\n          \n            var res = Pman.Tab.BuilderTree.deleteCurrent();\n            if (res) {\n                 var bp = Pman.Tab.BuilderPanel;\n                 bp.redraw.defer(100,bp, [ true ]);\n                \n            }\n            e.stopEvent();\n        }\n        \n         \n     });\n \n}"
-            },
-            "fitToFrame": false,
-            "region": "center",
-            "title": "Designer",
-            "xtype": "NestedLayoutPanel",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "BorderLayout",
-                    "*prop": "layout",
-                    "items": [
-                        {
-                            "*prop": "north",
-                            "height": 26,
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "west",
-                            "split": true,
-                            "width": 255,
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "center",
-                            "tabPosition": "top",
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "east",
-                            "collapsed": true,
-                            "collapsible": true,
-                            "split": true,
-                            "title": "Palete",
-                            "titlebar": true,
-                            "width": 200,
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
+ "name" : "Pman.Tab.BuilderTab",
+ "parent" : "Pman.Tab.Builder",
+ "title" : "Pman.Tab.BuilderTab",
+ "path" : "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderTab.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "strings" : {
+  "0aad40f415c9173fcc83acd984c0c83c" : "Designer",
+  "be38a7cdd6828fa4c769a68938f89be0" : "Palete"
+ },
+ "items" : [
+  {
+   "listeners" : {
+    "activate" : "function (_self)\n{\n    if (_this.keyListener) {\n        return;\n    }\n    _this.keyListener = true;\n    \n    Roo.get(document).on(   'keyup',  function(e) {\n        if (!  _this.panel.active ) {\n            return;\n        }\n        try {\n            // check..\n            if (!Pman.Tab.BuilderPanel.isMouseOver && !Pman.Tab.BuilderTree.isMouseOver) {\n                return;\n            }\n        } catch(e) {\n            return;\n        }\n       // console.log(e);\n        //Roo.EventObject.DELETE,\n        if (e.getCharCode() == Roo.EventObject.DELETE) {\n            //  console.log('delete');\n          \n            var res = Pman.Tab.BuilderTree.deleteCurrent();\n            if (res) {\n                 var bp = Pman.Tab.BuilderPanel;\n                 bp.redraw.defer(100,bp, [ true ]);\n                \n            }\n            e.stopEvent();\n        }\n        \n         \n     });\n \n}"
+   },
+   "fitToFrame" : false,
+   "region" : "center",
+   "title" : "Designer",
+   "xtype" : "NestedLayoutPanel",
+   "$ xns" : "Roo",
+   "items" : [
+    {
+     "xtype" : "BorderLayout",
+     "$ xns" : "Roo",
+     "* prop" : "layout",
+     "items" : [
+      {
+       "xtype" : "LayoutRegion",
+       "$ xns" : "Roo",
+       "* prop" : "north",
+       "height" : 26
+      },
+      {
+       "xtype" : "LayoutRegion",
+       "width" : 255,
+       "$ xns" : "Roo",
+       "split" : true,
+       "* prop" : "west"
+      },
+      {
+       "xtype" : "LayoutRegion",
+       "tabPosition" : "top",
+       "$ xns" : "Roo",
+       "* prop" : "center"
+      },
+      {
+       "collapsible" : true,
+       "title" : "Palete",
+       "xtype" : "LayoutRegion",
+       "collapsed" : true,
+       "width" : 200,
+       "$ xns" : "Roo",
+       "split" : true,
+       "* prop" : "east",
+       "titlebar" : true
+      }
+     ]
+    }
+   ]
+  }
+ ]
 }
\ No newline at end of file
index 2980689..2400789 100644 (file)
 
 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
 
+Roo.namespace('Pman.Tab');
 
+Pman.Tab.BuilderTab = new Roo.XComponent({
 
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '001-Pman.Tab.BuilderTab',
-        module : Pman.Tab.BuilderTab,
-        region : 'center',
-        parent : Pman.Tab.Builder,
-        name : "Pman.Tab.BuilderTab",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.BuilderTab = new Roo.util.Observable({
+ _strings : {
+  '0aad40f415c9173fcc83acd984c0c83c' :"Designer",
+  'be38a7cdd6828fa4c769a68938f89be0' :"Palete"
+ },
 
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
+  part     :  ["Builder", "Tab" ],
+  order    : '001-Pman.Tab.BuilderTab',
+  region   : 'center',
+  parent   : 'Pman.Tab.Builder',
+  name     : "Pman.Tab.BuilderTab",
+  disabled : false, 
+  permname : '', 
+  _tree : function()
+  {
+   var _this = this;
+   var MODULE = this;
+   return {
+   layout : {
+    north : {
+     '|xns' : 'Roo',
+     height : 26,
+     xns : Roo,
+     xtype : 'LayoutRegion'
+    },
+    west : {
+     '|xns' : 'Roo',
+     split : true,
+     width : 255,
+     xns : Roo,
+     xtype : 'LayoutRegion'
+    },
+    center : {
+     '|xns' : 'Roo',
+     tabPosition : 'top',
+     xns : Roo,
+     xtype : 'LayoutRegion'
+    },
+    east : {
+     '|xns' : 'Roo',
+     collapsed : true,
+     collapsible : true,
+     split : true,
+     title : _this._strings['be38a7cdd6828fa4c769a68938f89be0'],
+     titlebar : true,
+     width : 200,
+     xns : Roo,
+     xtype : 'LayoutRegion'
+    },
+    '|xns' : 'Roo',
+    xns : Roo,
+    xtype : 'BorderLayout',
+    items : [
 
-    add : function(parentLayout, region)
-    {
+    ]
 
-        var _this = this;
-        this.parentLayout = parentLayout;
+   },
+   '|xns' : 'Roo',
+   fitToFrame : false,
+   region : 'center',
+   title : _this._strings['0aad40f415c9173fcc83acd984c0c83c'],
+   xns : Roo,
+   xtype : 'NestedLayoutPanel',
+   listeners : {
+    activate : function (_self)
+     {
+         if (_this.keyListener) {
+             return;
+         }
+         _this.keyListener = true;
+         
+         Roo.get(document).on(   'keyup',  function(e) {
+             if (!  _this.panel.active ) {
+                 return;
+             }
+             try {
+                 // check..
+                 if (!Pman.Tab.BuilderPanel.isMouseOver && !Pman.Tab.BuilderTree.isMouseOver) {
+                     return;
+                 }
+             } catch(e) {
+                 return;
+             }
+            // console.log(e);
+             //Roo.EventObject.DELETE,
+             if (e.getCharCode() == Roo.EventObject.DELETE) {
+                 //  console.log('delete');
+               
+                 var res = Pman.Tab.BuilderTree.deleteCurrent();
+                 if (res) {
+                      var bp = Pman.Tab.BuilderPanel;
+                      bp.redraw.defer(100,bp, [ true ]);
+                     
+                 }
+                 e.stopEvent();
+             }
+             
+              
+          });
+      
+     }
+   },
+   items : [
 
-        this.panel = parentLayout.addxtype({
-            xtype: 'NestedLayoutPanel',
-            xns: Roo,
-            listeners : {
-                activate : function (_self)
-                {
-                    if (_this.keyListener) {
-                        return;
-                    }
-                    _this.keyListener = true;
-                    
-                    Roo.get(document).on(   'keyup',  function(e) {
-                        if (!  _this.panel.active ) {
-                            return;
-                        }
-                         
-                        // check..
-                        if (!Pman.Tab.BuilderPanel.isMouseOver && !Pman.Tab.BuilderTree.isMouseOver) {
-                            return;
-                        }
-                       // console.log(e);
-                        //Roo.EventObject.DELETE,
-                        if (e.getCharCode() == Roo.EventObject.DELETE) {
-                            //  console.log('delete');
-                          
-                            var res = Pman.Tab.BuilderTree.deleteCurrent();
-                            if (res) {
-                                 var bp = Pman.Tab.BuilderPanel;
-                                 bp.redraw.defer(100,bp, [ true ]);
-                                
-                            }
-                            e.stopEvent();
-                        }
-                        
-                         
-                     });
-                 
-                }
-            },
-            fitToFrame : false,
-            region : 'center',
-            title : "Designer",
-            layout : {
-                xtype: 'BorderLayout',
-                xns: Roo,
-                north : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    height : 26
-                },
-                west : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    split : true,
-                    width : 255
-                },
-                center : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    tabPosition : 'top'
-                },
-                east : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    collapsed : true,
-                    collapsible : true,
-                    split : true,
-                    title : "Palete",
-                    titlebar : true,
-                    width : 200
-                }
-            }
-        });
-        this.layout = this.panel.layout;
+   ]
 
-    }
+  };  }
 });