diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-08 05:26:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:31:32 -0500 |
commit | 32015e5cdc3a94c90a28bd299b0c9bd28e5d5edf (patch) | |
tree | 20d2bc460185f2f31c0f84893761b842b2ba9e22 /swat/esptest | |
parent | c8dfaec28a470c09430454a52bf3f4206ebf7037 (diff) | |
download | samba-32015e5cdc3a94c90a28bd299b0c9bd28e5d5edf.tar.gz samba-32015e5cdc3a94c90a28bd299b0c9bd28e5d5edf.tar.bz2 samba-32015e5cdc3a94c90a28bd299b0c9bd28e5d5edf.zip |
r9213: some improvements to the registry editor code
(This used to be commit 5cd33fa9f898f95a78397a387a42977a4839fb20)
Diffstat (limited to 'swat/esptest')
-rw-r--r-- | swat/esptest/registry.esp | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/swat/esptest/registry.esp b/swat/esptest/registry.esp index 85843c41d9..2b6a214473 100644 --- a/swat/esptest/registry.esp +++ b/swat/esptest/registry.esp @@ -12,31 +12,21 @@ function folder_list(t, list) { var i; t.populated = true; - t.reg_list = new Object(); + t.removeAll(); for (i=0;i<list.length;i++) { var te; - if (t.reg_list.working != undefined) { - te = t.reg_list.working; - t.reg_list = new Object(); - te.label = list[i]; - } else { - te = new QxTreeFolder(list[i]); - t.add(te); - } + te = new QxTreeFolder(list[i]); + t.add(te); te.binding = t.binding; if (t.reg_path == '\\\\') { te.reg_path = list[i]; } else { te.reg_path = t.reg_path + '\\\\' + list[i]; } - te.reg_list = new Object(); - te.reg_list.working = new QxTreeFolder('Working ...'); - te.add(te.reg_list.working); - t.reg_list[list[i]] = te; + te.add(new QxTreeFolder('Working ...')); te.addEventListener("click", function() { var el = this; folder_click(el); }); - te.setOverflow("auto"); t.setOpen(1); } } @@ -54,16 +44,15 @@ function registry_tree(binding) { var t = new QxTree("registry: " + binding); t.binding = binding; t.reg_path = "\\\\"; - t.reg_list = new Object(); t.populated = false; with(t) { setBackgroundColor(255); setBorder(QxBorder.presets.inset); - setOverflow("auto"); + setOverflow("scroll"); setStyleProperty("padding", "2px"); - setWidth(200); - setHeight("100%"); + setWidth(400); + setHeight(400); setTop(20); addEventListener("click", function() { folder_click(t); }); } @@ -74,7 +63,7 @@ function registry_tree(binding) { { var inlineWidget = new QxInline; var fieldSet = new QxFieldSet("Registry"); - var binding = "ncacn_np:win2003"; + var binding = "ncalrpc:"; with(fieldSet) { |