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.getLayout().beginUpdate();
42 this.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
43 this.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
48 this.getLayout().endUpdate();
50 _this.previewContentPanel.setContent(
51 '<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'
54 _this.jsonContentPanel.setContent(
55 '<PRE>' + Roo.util.Format.htmlEncode(_this.data.json) + '</PRE>'
58 _this.htmlContentPanel.setContent(
59 '<PRE>' + Roo.util.Format.htmlEncode(_this.data.html) + '</PRE>'
62 this.layout.showPanel(0)
71 title : "View Generated Code",
75 xtype: 'ContentPanel',
78 activate : function (_self)
80 _this.previewContentPanel = _self;
90 xtype: 'ContentPanel',
93 activate : function (_self)
95 _this.jsonContentPanel = _self;
105 xtype: 'ContentPanel',
108 activate : function (_self)
110 _this.htmlContentPanel = _self;
121 xtype: 'LayoutRegion',