Pman.Dialog.BuilderViewCode.bjs
[Pman.Builder] / Pman.Dialog.BuilderViewCode.bjs
1 {
2     "id": "roo-file-78",
3     "name": "Pman.Dialog.BuilderViewCode",
4     "parent": "",
5     "title": "Builder - View Dialog",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderViewCode.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "|show": "function (_self)\n{\n    if (_this.isBuilder) {\n       return;\n    }\n    _this.dialog = _self;        \n    _this.dialog.getLayout().beginUpdate();\n     \n    _this.dialog.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);\n    _this.dialog.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));\n \n    \n    _this.dialog.moveTo(35,35);\n    \n    _this.dialog.getLayout().endUpdate();\n    \n    _this.previewContentPanel.setContent(\n        '<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'\n    );\n        \n    \n    _this.previewContentPanel.load({\n        url: baseURL + '/Roo/Code.php',\n        method: 'GET',\n        params: {\n            id: _this.data.id\n            \n        }\n    });\n            \n}"
11             },
12             "background": true,
13             "closable": false,
14             "collapsible": false,
15             "height": 400,
16             "modal": true,
17             "resizable": false,
18             "title": "View Generated Code",
19             "width": 400,
20             "xtype": "LayoutDialog",
21             "|xns": "Roo",
22             "items": [
23                 {
24                     "xtype": "LayoutRegion",
25                     "*prop": "center",
26                     "titlebar": false,
27                     "|xns": "Roo"
28                 },
29                 {
30                     "listeners": {
31                         "|activate": "function (_self)\n{\n_this.previewContentPanel = _self;\n}"
32                     },
33                     "autoScroll": true,
34                     "background": false,
35                     "fitToFrame": true,
36                     "region": "center",
37                     "xtype": "ContentPanel",
38                     "|xns": "Roo"
39                 },
40                 {
41                     "text": "OK",
42                     "xtype": "Button",
43                     "|xns": "Roo",
44                     "listeners": {
45                         "|click": "function() {\n    _this.dialog.hide();\n\n}"
46                     },
47                     "*prop": "buttons[]"
48                 }
49             ]
50         }
51     ],
52     "permname": "",
53     "modOrder": "001"
54 }