summaryrefslogtreecommitdiffstats
path: root/swat
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
commite68db751f064a0d968bd0995805141ffe5938ee7 (patch)
tree350e28b488ed0e99c7f14945b4b7f7cf0b24f3db /swat
parenteeacd73ef2da16337f2968aec86f9f9313085c25 (diff)
downloadsamba-e68db751f064a0d968bd0995805141ffe5938ee7.tar.gz
samba-e68db751f064a0d968bd0995805141ffe5938ee7.tar.xz
samba-e68db751f064a0d968bd0995805141ffe5938ee7.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 :-)
Diffstat (limited to 'swat')
-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 60ee95a4835..5942f25991d 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);