diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-22 03:48:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:19 -0500 |
commit | 656a885c226829e5fca8de732c0e298282f6d8d0 (patch) | |
tree | 72ca25760a548b4ed14d98af09df4272c0d9c3ac | |
parent | 8005114fda2f19e4f96fcb38613c8e67a945f7b2 (diff) | |
download | samba-656a885c226829e5fca8de732c0e298282f6d8d0.tar.gz samba-656a885c226829e5fca8de732c0e298282f6d8d0.tar.bz2 samba-656a885c226829e5fca8de732c0e298282f6d8d0.zip |
r9470: non-working attempt to add a little table for values to the reg editor
hopefully deryck will be able to tell me what I've screwed up :-)
(This used to be commit e68db751f064a0d968bd0995805141ffe5938ee7)
-rw-r--r-- | swat/scripting/client/regedit.js | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/swat/scripting/client/regedit.js b/swat/scripting/client/regedit.js index 60ee95a483..5942f25991 100644 --- a/swat/scripting/client/regedit.js +++ b/swat/scripting/client/regedit.js @@ -86,7 +86,7 @@ function __registry_tree(binding) setBorder(QxBorder.presets.inset); setOverflow("scroll"); setStyleProperty("padding", "2px"); - setWidth("100%"); + setWidth("50%"); setHeight("90%"); setTop("10%"); } @@ -97,8 +97,27 @@ function __registry_tree(binding) } /* - create a registry editing widget and return it as a object + the table of values +*/ +function __values_table() +{ + var headings = new Array("Name", "Type", "Size", "Value"); + var table = document.createElement('table'); + table.border = "1"; + var body = document.createElement('tbody'); + table.appendChild(body); + var th = document.createElement('th'); + for (var i=0;i<headings.length;i++) { + var td = document.createElement('td'); + td.appendChild(document.createTextNode(headings[i])); + th.appendChild(td); + } + body.appendChild(th); + return table; +} +/* + create a registry editing widget and return it as a object */ function regedit_widget(binding) { @@ -114,7 +133,7 @@ function regedit_widget(binding) setHeight("100%"); }; - var gl = new QxGridLayout("auto,auto,auto,auto,auto", "100%"); + var gl = new QxGridLayout("auto,auto,auto,auto,auto", "50%,50%"); gl.setEdge(0); gl.setCellPaddingTop(3); gl.setCellPaddingBottom(3); @@ -134,8 +153,11 @@ function regedit_widget(binding) var b = new QxTextField(regedit.binding); b.addEventListener("changeText", change_binding); - gl.add(b, { row : 1, col : 1 }); - gl.add(t, { row : 2, col : 1 }); + var values = new __values_table(); + + gl.add(b, { row : 1, col : 1 }); + gl.add(t, { row : 2, col : 1 }); +// gl.add(values, { row : 2, col : 2 }); fieldSet.add(gl); regedit.add(fieldSet); |