1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.BuilderViewCode = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
34 show : function (_self)
36 if (_this.isBuilder) {
40 _this.dialog.getLayout().beginUpdate();
42 _this.dialog.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
43 _this.dialog.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
46 _this.dialog.moveTo(35,35);
48 _this.dialog.getLayout().endUpdate();
50 _this.previewContentPanel.setContent(
51 '<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'
56 _this.jsonContentPanel.setContent(
57 '<PRE>' + Roo.util.Format.htmlEncode(_this.data.json) + '</PRE>'
69 title : "View Generated Code",
73 xtype: 'ContentPanel',
76 activate : function (_self)
78 _this.previewContentPanel = _self;
88 xtype: 'ContentPanel',
91 activate : function (_self)
93 _this.jsonContentPanel = _self;
104 xtype: 'LayoutRegion',