PropList.php
[Pman.Builder] / Pman.Dialog.BuilderViewCode.bjs
index 9abcda4..92bec55 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-2",
+    "id": "roo-file-165",
     "name": "Pman.Dialog.BuilderViewCode",
     "parent": "",
     "title": "Builder - View Dialog",
@@ -7,34 +7,60 @@
     "items": [
         {
             "listeners": {
-                "|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.load({\n                url: baseURL + '/Builder/Code.php',\n                method: 'GET',\n                params: {\n                    id: _this.data.id\n                    \n                }\n            });\n            \n}"
+                "|show": "function (_self)\n{\n    if (_this.isBuilder) {\n       return;\n    }\n    _this.dialog = _self;        \n    this.getLayout().beginUpdate();\n     \n    this.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);\n    this.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));\n \n    \n    this.moveTo(35,35);\n    \n    this.getLayout().endUpdate();\n    \n    _this.previewContentPanel.setContent(\n        '<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'\n    );\n         \n    _this.jsonContentPanel.setContent(\n        '<PRE>' + Roo.util.Format.htmlEncode(_this.data.json) + '</PRE>'\n    );\n    \n     _this.htmlContentPanel.setContent(\n        '<PRE>' + Roo.util.Format.htmlEncode(_this.data.html) + '</PRE>'\n    );\n       \n     this.layout.showPanel(0)     \n}"
             },
             "background": true,
             "closable": false,
             "collapsible": false,
             "height": 400,
             "modal": true,
-            "resizable": false,
+            "resizable": true,
             "title": "View Generated Code",
             "width": 400,
             "xtype": "LayoutDialog",
             "|xns": "Roo",
             "items": [
                 {
-                    "xtype": "LayoutRegion",
                     "*prop": "center",
+                    "tabPosition": "top",
                     "titlebar": false,
+                    "xtype": "LayoutRegion",
                     "|xns": "Roo"
                 },
                 {
+                    "listeners": {
+                        "|activate": "function (_self)\n{\n_this.previewContentPanel = _self;\n}"
+                    },
+                    "autoScroll": true,
+                    "background": false,
+                    "fitToFrame": true,
+                    "region": "center",
+                    "title": "Javascript",
                     "xtype": "ContentPanel",
+                    "|xns": "Roo"
+                },
+                {
+                    "listeners": {
+                        "|activate": "function (_self)\n{\n_this.jsonContentPanel = _self;\n}"
+                    },
+                    "autoScroll": true,
                     "background": false,
                     "fitToFrame": true,
                     "region": "center",
+                    "title": "JSON",
+                    "xtype": "ContentPanel",
+                    "|xns": "Roo"
+                },
+                {
                     "listeners": {
-                        "|activate": "function (_self)\n{\n_this.previewContentPanel = _self;\n}"
+                        "|activate": "function (_self)\n{\n_this.htmlContentPanel = _self;\n}"
                     },
                     "autoScroll": true,
+                    "background": false,
+                    "fitToFrame": true,
+                    "region": "center",
+                    "title": "HTML",
+                    "xtype": "ContentPanel",
                     "|xns": "Roo"
                 },
                 {