php7 fixes
[Pman.Builder] / Pman.Tab.BuilderPalette.bjs
index d3027e9..cecda60 100644 (file)
@@ -1,73 +1,84 @@
 {
-    "id": "roo-file-43",
-    "name": "Pman.Tab.BuilderPalette",
-    "parent": "Pman.Tab.BuilderTab",
-    "title": "Pman.Tab.BuilderPalette",
-    "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
-    "items": [
+ "name" : "Pman.Tab.BuilderPalette",
+ "parent" : "Pman.Tab.BuilderTab",
+ "title" : "Pman.Tab.BuilderPalette",
+ "path" : "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "strings" : {
+  "5ca5a8d02077b7f6a0da48bda450f755" : "palette",
+  "49ee3087348e8d44e1feda1917443987" : "Name"
+ },
+ "items" : [
+  {
+   "listeners" : {
+    "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n       _this.grid.ds.load({})\n    }\n}"
+   },
+   "region" : "east",
+   "fitToframe" : true,
+   "background" : true,
+   "title" : "palette",
+   "xtype" : "GridPanel",
+   "fitContainer" : true,
+   "$ xns" : "Roo",
+   "tableName" : "palette",
+   "items" : [
+    {
+     "listeners" : {
+      "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.ds.load({});\n    }\n    if (_this.ss) {\n        return;\n    }\n    _this.ss =   Roo.util.CSS.createStyleSheet(\n        '.pman-builder-palete-hide { display: none; } ' + \"\\n\" \n    , Roo.id());\n            \n    \n    \n}",
+      "rowclass" : "function (gridview, rowcfg)\n{\n    var sn = Pman.Builder.Tree.currentNodeType();\n  //  Roo.log(rowcfg);\n    if (!sn) {\n        sn = '*top';\n    }\n    var cls = 'pman-builder-palete-hide';\n \n    Roo.each(rowcfg.record.json.parents, function(n) {\n        if (n == sn || n.split(':').shift() == sn) {\n            cls = '';\n            return true;\n        }\n     });\n     \n     //Roo.log(cls);\n     rowcfg.rowClass = cls;\n    // what is the currently selected element..\n \n}"
+     },
+     "autoExpandColumn" : "name",
+     "xtype" : "Grid",
+     "ddGroup" : "component",
+     "enableDrag" : true,
+     "loadMask" : true,
+     "$ xns" : "Roo.grid",
+     "* prop" : "grid",
+     "items" : [
+      {
+       "remoteSort" : true,
+       "xtype" : "Store",
+       "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
+       "$ xns" : "Roo.data",
+       "* prop" : "dataSource",
+       "items" : [
         {
-            "|xns": "Roo",
-            "xtype": "GridPanel",
-            "title": "ris_location",
-            "fitToframe": true,
-            "fitContainer": true,
-            "tableName": "ris_location",
-            "background": true,
-            "region": "center",
-            "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-            },
-            "items": [
-                {
-                    "*prop": "grid",
-                    "xtype": "Grid",
-                    "autoExpandColumn": "name",
-                    "loadMask": true,
-                    "listeners": {
-                        "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                    },
-                    "|xns": "Roo.grid",
-                    "items": [
-                        {
-                            "*prop": "dataSource",
-                            "xtype": "Store",
-                            "remoteSort": true,
-                            "|sortInfo": "{ field : 'name', direction: 'ASC' }",
-                            "|xns": "Roo.data",
-                            "items": [
-                                {
-                                    "*prop": "proxy",
-                                    "method": "GET",
-                                    "xtype": "HttpProxy",
-                                    "|url": "baseURL + '/Builder/Palette.php'",
-                                    "|xns": "Roo.data"
-                                },
-                                {
-                                    "*prop": "reader",
-                                    "id": "id",
-                                    "root": "data",
-                                    "totalProperty": "total",
-                                    "xtype": "JsonReader",
-                                    "|fields": "[\n    \n    {\n        'name': 'name',\n        'type': 'string'\n    }\n]",
-                                    "|xns": "Roo.data"
-                                }
-                            ]
-                        },
-                        {
-                            "xtype": "ColumnModel",
-                            "header": "Name",
-                            "width": 200,
-                            "dataIndex": "name",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
-                        }
-                    ]
-                }
-            ]
+         "$ url" : "baseURL + '/Builder/Palette.php'",
+         "method" : "GET",
+         "xtype" : "HttpProxy",
+         "$ xns" : "Roo.data",
+         "* prop" : "proxy"
+        },
+        {
+         "id" : "id",
+         "root" : "data",
+         "xtype" : "JsonReader",
+         "$ fields" : "[\n    \n    {\n        'name': 'name',\n        'type': 'string'\n    }\n]",
+         "$ xns" : "Roo.data",
+         "* prop" : "reader",
+         "totalProperty" : "total"
         }
-    ],
-    "permname": "",
-    "modOrder": "001"
+       ]
+      },
+      {
+       "xtype" : "ColumnModel",
+       "width" : 200,
+       "header" : "Name",
+       "$ renderer" : "function(v) { return String.format('{0}', v); }",
+       "$ xns" : "Roo.grid",
+       "* prop" : "colModel[]",
+       "dataIndex" : "name"
+      },
+      {
+       "xtype" : "RowSelectionModel",
+       "singleSelect" : true,
+       "$ xns" : "Roo.grid",
+       "* prop" : "sm"
+      }
+     ]
+    }
+   ]
+  }
+ ]
 }
\ No newline at end of file