svn commit: samba r21118 - in
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse:
.
idra at samba.org
idra at samba.org
Thu Feb 1 23:53:28 GMT 2007
Author: idra
Date: 2007-02-01 23:53:27 +0000 (Thu, 01 Feb 2007)
New Revision: 21118
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21118
Log:
Looks a bit better ...
Modified:
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
Changeset:
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js 2007-02-01 22:12:37 UTC (rev 21117)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js 2007-02-01 23:53:27 UTC (rev 21118)
@@ -17,6 +17,7 @@
this._mainArea = new qx.ui.layout.VerticalBoxLayout();
this._mainArea.set({
+ overflow: "auto",
height: "1*",
spacing: 5
});
@@ -214,15 +215,19 @@
hlayout.set({ width: "auto", height: "auto", spacing: 10 });
var rButton = new qx.ui.form.Button("-");
+ rButton.set({ width: 15, height: 15});
rButton.addEventListener("execute", function() {
hlayout.setParent(null);
});
var aLabel = new qx.ui.basic.Label(name);
+ aLabel.setWidth(150);
var aTextField = new qx.ui.form.TextField(value);
+ aTextField.setWidth(250);
var aButton = new qx.ui.form.Button("+");
+ aButton.set({ left: 5, width: 15, height: 15});
aButton.addEventListener("execute", function() {
this._addNewAttribute(name, null, hlayout);
}, this);
@@ -241,28 +246,35 @@
var main = qx.ui.core.ClientDocument.getInstance();
var amw = new qx.ui.window.Window("New Attribute Name");
- amw.setSpace(100, 200, 100, 150);
- amw.setModal(true);
- amw.setShowMinimize(false);
- amw.setShowMaximize(false);
- amw.setShowClose(false);
- amw.setResizeable(false);
+ amw.set({
+ width: 200,
+ height: 70,
+ modal: true,
+ centered: true,
+ restrictToPageOnOpen: true,
+ showMinimize: false,
+ showMaximize: false,
+ showClose: false,
+ resizeable: false
+ });
- var hlayout = new qx.ui.layout.HorizontalBoxLayout();
- hlayout.set({ width: "auto", height: "auto", spacing: 10 });
- attrName = new qx.ui.form.TextField();
+ var attrName = new qx.ui.form.TextField();
+ attrName.addEventListener("execute", function() {
+ this._addNewAttribute(attrName.getValue());
+ amw.close();
+ }, this);
+ attrName.set({ top: 15, left: 10 });
+ amw.add(attrName);
var okButton = new qx.ui.form.Button("OK");
okButton.addEventListener("execute", function() {
this._addNewAttribute(attrName.getValue());
amw.close();
}, this);
+ okButton.set({ top: 12, left: 155 });
+ amw.add(okButton);
- hlayout.add(attrName, okButton);
-
- amw.add(hlayout);
-
main.add(amw);
amw.open();
@@ -273,6 +285,7 @@
this._attrArea = new qx.ui.layout.VerticalBoxLayout();
this._attrAddButton = new qx.ui.form.Button("+");
+ this._attrAddButton.set({ width: 15, height: 15});
this._attrAddButton.addEventListener("execute", this._createNewAttribute, this);
this._attrArea.add(this._attrAddButton);
More information about the samba-cvs
mailing list