{
- "id": "roo-file-196",
- "name": "Pman.Tab.BuilderPalette",
- "parent": "Pman.Tab.BuilderTab",
- "title": "Pman.Tab.BuilderPalette",
- "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
- "items": [
+ "name" : "Pman.Tab.BuilderPalette",
+ "parent" : "Pman.Tab.BuilderTab",
+ "title" : "Pman.Tab.BuilderPalette",
+ "path" : "/home/edward/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}"
+ },
+ "fitToframe" : true,
+ "background" : true,
+ "region" : "east",
+ "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 \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 //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" : [
{
- "listeners": {
- "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({})\n }\n}"
- },
- "background": true,
- "fitContainer": true,
- "fitToframe": true,
- "region": "east",
- "tableName": "palette",
- "title": "palette",
- "xtype": "GridPanel",
- "|xns": "Roo",
- "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 \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 //Roo.log(cls);\n rowcfg.rowClass = cls;\n // what is the currently selected element..\n \n}"
- },
- "*prop": "grid",
- "autoExpandColumn": "name",
- "ddGroup": "component",
- "enableDrag": true,
- "loadMask": true,
- "xtype": "Grid",
- "|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"
- }
- ]
- },
- {
- "*prop": "colModel[]",
- "dataIndex": "name",
- "header": "Name",
- "width": 200,
- "xtype": "ColumnModel",
- "|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid"
- },
- {
- "*prop": "sm",
- "singleSelect": true,
- "xtype": "RowSelectionModel",
- "|xns": "Roo.grid"
- }
- ]
- }
- ]
+ "$ url" : "baseURL + '/Builder/Palette.php'",
+ "xtype" : "HttpProxy",
+ "method" : "GET",
+ "$ 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",
+ "header" : "Name",
+ "width" : 200,
+ "$ 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
// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+Roo.namespace('Pman.Tab');
+
Pman.Tab.BuilderPalette = new Roo.XComponent({
- part : ["Builder","Palette"],
- order : '001-Pman.Tab.BuilderPalette',
- region : 'center',
- parent : 'Pman.Tab.BuilderTab',
- name : "Pman.Tab.BuilderPalette",
- disabled : false,
- permname : '',
- _tree : function()
- {
- var _this = this;
- var MODULE = this;
- return {
- xtype: 'GridPanel',
- xns: Roo,
- listeners : {
- activate : function() {
- _this.panel = this;
- if (_this.grid) {
- _this.grid.ds.load({})
- }
- }
- },
- background : true,
- fitContainer : true,
- fitToframe : true,
- region : 'east',
- tableName : 'palette',
- title : "palette",
- grid : {
- xtype: 'Grid',
- xns: Roo.grid,
- listeners : {
- render : function()
- {
- _this.grid = this;
- //_this.dialog = Pman.Dialog.FILL_IN
- if (_this.panel.active) {
- this.ds.load({})
- }
- if (_this.ss) {
- return;
- }
- _this.ss = Roo.util.CSS.createStyleSheet(
- '.pman-builder-palete-hide { display: none; } ' + "\n"
- , Roo.id())
-
-
-
- },
- rowclass : function (gridview, rowcfg)
- {
- var sn = Pman.Builder.Tree.currentNodeType();
- // Roo.log(rowcfg);
- if (!sn) {
- sn = '*top';
- }
- var cls = 'pman-builder-palete-hide';
-
-
- Roo.each(rowcfg.record.json.parents, function(n) {
- if (n == sn || n.split(':').shift() == sn)
- cls = '';
- return true;
- }
- );
- //Roo.log(cls);
- rowcfg.rowClass = cls;
- // what is the currently selected element..
-
- }
- },
- autoExpandColumn : 'name',
- ddGroup : 'component',
- enableDrag : true,
- loadMask : true,
- dataSource : {
- xtype: 'Store',
- xns: Roo.data,
- remoteSort : true,
- sortInfo : { field : 'name', direction: 'ASC' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Builder/Palette.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- fields : [
-
- {
- 'name': 'name',
- 'type': 'string'
- }
- ]
- }
- },
- colModel : [
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- dataIndex : 'name',
- header : 'Name',
- width : 200,
- renderer : function(v) { return String.format('{0}', v); }
- }
- ],
- sm : {
- xtype: 'RowSelectionModel',
- xns: Roo.grid,
- singleSelect : true
- }
- }
- };
- }
+
+ _strings : {
+ '5ca5a8d02077b7f6a0da48bda450f755' :"palette",
+ '49ee3087348e8d44e1feda1917443987' :"Name"
+ },
+
+ part : ["Builder", "Palette" ],
+ order : '001-Pman.Tab.BuilderPalette',
+ region : 'center',
+ parent : 'Pman.Tab.BuilderTab',
+ name : "Pman.Tab.BuilderPalette",
+ disabled : false,
+ permname : '',
+ _tree : function()
+ {
+ var _this = this;
+ var MODULE = this;
+ return {
+ xtype : 'GridPanel',
+ background : true,
+ fitContainer : true,
+ fitToframe : true,
+ region : 'east',
+ tableName : 'palette',
+ title : _this._strings['5ca5a8d02077b7f6a0da48bda450f755'] /* palette */,
+ listeners : {
+ activate : function() {
+ _this.panel = this;
+ if (_this.grid) {
+ _this.grid.ds.load({})
+ }
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo',
+ grid : {
+ xtype : 'Grid',
+ autoExpandColumn : 'name',
+ ddGroup : 'component',
+ enableDrag : true,
+ loadMask : true,
+ listeners : {
+ render : function()
+ {
+ _this.grid = this;
+ //_this.dialog = Pman.Dialog.FILL_IN
+ if (_this.panel.active) {
+ this.ds.load({})
+ }
+ if (_this.ss) {
+ return;
+ }
+ _this.ss = Roo.util.CSS.createStyleSheet(
+ '.pman-builder-palete-hide { display: none; } ' + "\n"
+ , Roo.id());
+
+
+
+ },
+ rowclass : function (gridview, rowcfg)
+ {
+ var sn = Pman.Builder.Tree.currentNodeType();
+ // Roo.log(rowcfg);
+ if (!sn) {
+ sn = '*top';
+ }
+ var cls = 'pman-builder-palete-hide';
+
+
+ Roo.each(rowcfg.record.json.parents, function(n) {
+ if (n == sn || n.split(':').shift() == sn)
+ cls = '';
+ return true;
+ }
+ );
+ //Roo.log(cls);
+ rowcfg.rowClass = cls;
+ // what is the currently selected element..
+
+ }
+ },
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid',
+ dataSource : {
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { field : 'name', direction: 'ASC' },
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
+ proxy : {
+ xtype : 'HttpProxy',
+ method : 'GET',
+ url : baseURL + '/Builder/Palette.php',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ },
+ reader : {
+ xtype : 'JsonReader',
+ fields : [
+
+ {
+ 'name': 'name',
+ 'type': 'string'
+ }
+ ],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ },
+ sm : {
+ xtype : 'RowSelectionModel',
+ singleSelect : true,
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
+ },
+ colModel : [
+ {
+ xtype : 'ColumnModel',
+ dataIndex : 'name',
+ header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
+ renderer : function(v) { return String.format('{0}', v); },
+ width : 200,
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
+ }
+ ]
+ }
+ }; }
});