Update of /cvsroot/qooxdoo/qooxdoo/source/test/user
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12584/source/test/user
Modified Files:
Tag: renderer
Native_Window_1.html
Log Message:
Added dependent property to QxNativeWindow. Change default for allowScrollbars to true, re-structured test-example variable names
Index: Native_Window_1.html
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Native_Window_1.html,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -d -r1.1.2.12 -r1.1.2.13
--- Native_Window_1.html 24 Jan 2006 12:26:00 -0000 1.1.2.12
+++ Native_Window_1.html 24 Jan 2006 14:59:13 -0000 1.1.2.13
@@ -98,17 +98,26 @@
var chk6 = new QxCheckBox("Allow Scrollbars");
chk6.setLocation(0, 100);
- chk6.setChecked(false);
+ chk6.setChecked(true);
chk6.addEventListener("changeChecked", function(e) {
w1.setAllowScrollbars(e.getNewValue());
});
- var chkb2 = new QxCheckBox("Modal");
- chkb2.setLocation(0, 120);
- chkb2.setChecked(false);
- chkb2.addEventListener("changeChecked", function(e) { w1.setModal(e.getNewValue()); });
+ var chk7 = new QxCheckBox("Modal");
+ chk7.setLocation(0, 120);
+ chk7.setChecked(false);
+ chk7.addEventListener("changeChecked", function(e) {
+ w1.setModal(e.getNewValue());
+ });
+
+ var chk8 = new QxCheckBox("Dependent");
+ chk8.setLocation(0, 140);
+ chk8.setChecked(true);
+ chk8.addEventListener("changeChecked", function(e) {
+ w1.setDependent(e.getNewValue());
+ });
- fs1.add(chk1, chk2, chk3, chk4, chk5, chk6, chkb2);
+ fs1.add(chk1, chk2, chk3, chk4, chk5, chk6, chk7, chk8);
@@ -121,13 +130,17 @@
fs2.setHeight("auto");
l.add(fs2);
- var tf6 = new QxTextField("http://www.google.com");
- tf6.setLocation(0, 2);
- tf6.setWidth(150);
- var btn6 = new QxButton("Set Url", "icons/16/buttonok.png");
- btn6.setLocation(155, 0);
- btn6.addEventListener("click", function() { w1.setUrl(tf6.getValue()); });
+
+ var tf1 = new QxTextField("http://www.google.com");
+ tf1.setLocation(0, 2);
+ tf1.setWidth(150);
+
+ var btn1 = new QxButton("Set Url", "icons/16/buttonok.png");
+ btn1.setLocation(155, 0);
+ btn1.addEventListener("click", function() {
+ w1.setUrl(tf6.getValue());
+ });
@@ -138,7 +151,9 @@
var btn2 = new QxButton("Set Width", "icons/16/buttonok.png");
btn2.setLocation(55, 40);
- btn2.addEventListener("click", function() { w1.setWidth(parseInt(tf2.getValue())); });
+ btn2.addEventListener("click", function() {
+ w1.setWidth(parseInt(tf2.getValue()));
+ });
@@ -149,25 +164,33 @@
var btn3 = new QxButton("Set Height", "icons/16/buttonok.png");
btn3.setLocation(55, 70);
- btn3.addEventListener("click", function() { w1.setHeight(parseInt(tf3.getValue())); });
+ btn3.addEventListener("click", function() {
+ w1.setHeight(parseInt(tf3.getValue()));
+ });
- var btn7 = new QxButton("Center to screen", "icons/16/kpersonalizer.png");
- btn7.setLocation(0, 110);
- btn7.addEventListener("click", function() { w1.centerToScreen() });
+ var btn4 = new QxButton("Center to screen", "icons/16/kpersonalizer.png");
+ btn4.setLocation(0, 110);
+ btn4.addEventListener("click", function() {
+ w1.centerToScreen()
+ });
- var btn8 = new QxButton("Center to screen area", "icons/16/kpersonalizer.png");
- btn8.setLocation(0, 140);
- btn8.addEventListener("click", function() { w1.centerToScreenArea() });
+ var btn5 = new QxButton("Center to screen area", "icons/16/kpersonalizer.png");
+ btn5.setLocation(0, 140);
+ btn5.addEventListener("click", function() {
+ w1.centerToScreenArea()
+ });
- var btn9 = new QxButton("Center to opener", "icons/16/kpersonalizer.png");
- btn9.setLocation(0, 170);
- btn9.addEventListener("click", function() { w1.centerToOpener() });
+ var btn6 = new QxButton("Center to opener", "icons/16/kpersonalizer.png");
+ btn6.setLocation(0, 170);
+ btn6.addEventListener("click", function() {
+ w1.centerToOpener()
+ });
- fs2.add(tf6, btn6, tf2, btn2, tf3, btn3, btn7, btn8, btn9);
+ fs2.add(tf1, btn1, tf2, btn2, tf3, btn3, btn4, btn5, btn6);
};
</script>
</body>
|