summaryrefslogtreecommitdiff
path: root/swat/scripting/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-22 03:48:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:19 -0500
commit656a885c226829e5fca8de732c0e298282f6d8d0 (patch)
tree72ca25760a548b4ed14d98af09df4272c0d9c3ac /swat/scripting/client
parent8005114fda2f19e4f96fcb38613c8e67a945f7b2 (diff)
downloadsamba-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)
Diffstat (limited to 'swat/scripting/client')
-rw-r--r--swat/scripting/client/regedit.js32
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);