{
- "id": "roo-file-248",
+ "id": "roo-file-200",
"name": "Pman.Tab.BuilderTop",
"parent": "Pman.Tab.BuilderTab",
"title": "Pman.Tab.BuilderTop",
- "path": "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderTop.bjs",
+ "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderTop.bjs",
"items": [
{
"background": true,
"xtype": "Menu",
"*prop": "menu",
"items": [
+ {
+ "listeners": {
+ "click": "function (_self, e)\n{\n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n if (!_this.filesel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Part\");\n return false;\n }\n Pman.Dialog.BuilderPart.show( {\n id : _this.filesel.getValue(),\n module_id: _this.modsel.getValue() \n } ,\n function(data) {\n //_this.filesel.reset();\n if (!data.id) {\n return;\n }\n _this.filesel.setFromData(data);\n // set the part name on the json..\n \n \n pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())\n });\n\n}"
+ },
+ "text": "Rename",
+ "xtype": "Item",
+ "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
+ "|xns": "Roo.menu"
+ },
+ {
+ "|xns": "Roo.menu",
+ "xtype": "Separator"
+ },
{
"listeners": {
"click": "function (_self, e)\n{\n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n \n Pman.Dialog.BuilderPart.show( {\n id : 0, \n module_id: _this.modsel.getValue() \n } ,\n function(data) {\n _this.filesel.reset();\n if (!data.id) {\n return;\n }\n _this.filesel.setfromdata(data);\n Pman.Builder.Tree.clearAll();\n Pman.Builder.Tree.setCurrentNode(Pman.Tab.BuilderTree.tree.root,true);\n \n Pman.Tab.BuilderPanel.redraw.defer(100,Pman.Tab.BuilderPanel,[true]);\n });\n\n}"
"text": "Delete",
"xtype": "Item",
"|xns": "Roo.menu"
+ },
+ {
+ "|xns": "Roo.menu",
+ "xtype": "Separator"
+ },
+ {
+ "listeners": {
+ "click": "function (_self, e)\n{\n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n if (!_this.filesel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Part\");\n return false;\n }\n Pman.Dialog.BuilderImport.show( {\n id : _this.filesel.getValue(), \n module_id: _this.modsel.getValue() \n } ,\n function(data) {\n var bt = Pman.Tab.BuilderTree.tree;\n var pt = Pman.Builder.Tree;\n \n \n //bv.panel.el.unmask();\n Pman.Tab.BuilderTab.layout.getRegion('west').el.unmask();\n pt.loadBJS(_this.modsel.getValue(), _this.filesel.getValue())\n\n \n });\n\n}"
+ },
+ "text": "Import (by pasting)",
+ "xtype": "Item",
+ "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
+ "|xns": "Roo.menu"
}
]
}
"xtype": "Fill"
},
{
- "allowBlank": "false",
- "displayField": "",
- "editable": "false",
- "emptyText": "Select CampaignAssign",
- "fieldLabel": "CampaignAssign",
+ "listeners": {
+ "select": "function (combo, record, index)\n{\n Pman.Builder.View.frameUpdateTheme(record.data.name);\n}"
+ },
+ "allowBlank": false,
+ "displayField": "name",
+ "editable": false,
+ "emptyText": "Select Theme",
"forceSelection": true,
- "hiddenName": "",
- "listWidth": 400,
+ "hiddenName": "name",
+ "listWidth": 200,
"loadingText": "Searching...",
"minChars": 2,
- "name": "",
+ "name": "name",
"pageSize": 20,
- "qtip": "Select CampaignAssign",
+ "qtip": "Select Theme",
"queryParam": "",
"selectOnFocus": true,
"tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
"triggerAction": "all",
"typeAhead": true,
- "valueField": "id",
- "width": 300,
+ "valueField": "name",
+ "width": 200,
"xtype": "ComboBox",
"|xns": "Roo.form",
"items": [
{
- "*prop": "store",
- "xtype": "Store",
- "|xns": "Roo.data",
- "remoteSort": true,
- "|sortInfo": "{ direction : 'ASC', field: 'id' }",
"listeners": {
"|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
},
+ "*prop": "store",
+ "remoteSort": false,
+ "xtype": "Store",
+ "|sortInfo": "{ direction : 'ASC', field: 'name' }",
+ "|xns": "Roo.data",
"items": [
{
"*prop": "proxy",
- "xtype": "HttpProxy",
"method": "GET",
- "|xns": "Roo.data",
- "|url": "baseURL + '/Roo/CampaignAssign.php'"
+ "xtype": "HttpProxy",
+ "|url": "baseURL + '/Builder/Themes'",
+ "|xns": "Roo.data"
},
{
"*prop": "reader",
- "xtype": "JsonReader",
- "|xns": "Roo.data",
- "id": "id",
+ "id": "name",
"root": "data",
"totalProperty": "total",
- "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"assigntype\",\"type\":\"string\"}]"
+ "xtype": "JsonReader",
+ "|fields": "[\"name\"]",
+ "|xns": "Roo.data"
}
]
}