r9635: Seperate window logic from registry js file.
[jra/samba/.git] / swat / esptest / registry.esp
1 <%
2   page_header("columns", "ESP registry edit", "esptest"); 
3 %>
4
5 <script type="text/javascript" src="/scripting/client/encoder.js"></script>
6 <script type="text/javascript" src="/scripting/client/call.js"></script>
7 <script type="text/javascript" src="/scripting/client/regedit.js"></script>
8
9 <h1>Registry Editor</h1>
10
11 <script type="text/javascript">
12
13 /*** init the page for qooxdoo ***/
14 window.application.main = function()
15 {
16     var doc = this.getClientWindow().getDocument();
17     var inlineWidget = new QxInline;
18     var qwidget = new QxWidget;
19     qwidget.setHeight(800);
20     qwidget.setWidth("100%");
21     qwidget.setBorder(QxBorder.presets.groove);
22
23     var btn1 = new QxButton("Registry Editor");
24     btn1.set({ top: 20, left : 30 });
25     btn1.addEventListener("click", function() {
26             var regWindow = new QxWindow("Registry Editor");
27             with(regWindow) {
28                 setTop(50);
29                 setLeft(50);
30                 setMinWidth(600);
31                 setMinHeight(600);
32                 setResizeMethod("frame");
33             }
34
35             var regedit = regedit_widget("ncalrpc:");
36             regWindow.add(regedit);
37             qwidget.add(regWindow);
38             regWindow.setVisible(true);
39
40     });
41     qwidget.add(btn1);
42     inlineWidget.add(qwidget);
43     doc.add(inlineWidget, "canvas");
44 }
45
46 </script>
47
48 <div id="canvas" style="overflow:hidden;position:static;margin-top:38px;margin-left:10px;margin-right:700px;width:700px"></div>
49
50 <% page_footer(); %>