Revision: 3192
http://vexi.svn.sourceforge.net/vexi/?rev=3192&view=rev
Author: clrg
Date: 2008-11-10 16:23:34 +0000 (Mon, 10 Nov 2008)
Log Message:
-----------
Small improvements
Modified Paths:
--------------
trunk/widgets/org.vexi.guide/src/org/vexi/guide/board.t
trunk/widgets/org.vexi.guide/src/org/vexi/guide/property/basic.t
Modified: trunk/widgets/org.vexi.guide/src/org/vexi/guide/board.t
===================================================================
--- trunk/widgets/org.vexi.guide/src/org/vexi/guide/board.t 2008-11-10
15:08:11 UTC (rev 3191)
+++ trunk/widgets/org.vexi.guide/src/org/vexi/guide/board.t 2008-11-10
16:23:34 UTC (rev 3192)
@@ -165,6 +165,12 @@
////////
// normal selection logic
+ thisbox.selected ++= function(v) {
+ if (selected) selected.selected = false;
+ cascade = v;
+ if (selected) selected.selected = true;
+ }
+
var selectreq = null;
/** assigned to uiobject._Press1 to request selection */
@@ -194,12 +200,12 @@
/** handles final selection and insertion */
$select.Press1 ++= function(v) {
- cascade = v;
if (selectreq) {
selectreq.Leave ++= dragObject;
selectreq.Release1 ++= selectObject;
}
focused = true;
+ return;
}
/** deselect if clicking on the background */
@@ -309,6 +315,7 @@
s.thisbox = null;
s = null;
}
+ selected = null;
break;
// cancel an insert request, otherwise deselect
case "escape":
Modified: trunk/widgets/org.vexi.guide/src/org/vexi/guide/property/basic.t
===================================================================
--- trunk/widgets/org.vexi.guide/src/org/vexi/guide/property/basic.t
2008-11-10 15:08:11 UTC (rev 3191)
+++ trunk/widgets/org.vexi.guide/src/org/vexi/guide/property/basic.t
2008-11-10 16:23:34 UTC (rev 3192)
@@ -12,18 +12,18 @@
<item />
<wi:shadepane orient="vertical" title="Unsorted Properties">
<wi:check id="filtermanaged" text="Filter managed properties" />
- <ui:box>
- <ui:box hshrink="true" text=" Property:" />
- <wi:textfield id="newprop" />
- <wi:button id="addprop" text="Add" />
+ <ui:box vshrink="true">
+ <wi:textfield id="newprop" shadowtext="[property]" />
+ <wi:textfield id="newval" shadowtext="[value]" />
+ <wi:button id="addprop" padding="0 2" text="Add" vshrink="false" />
</ui:box>
<lay:pad padding="0 10">
<lay:grid id="content" cols="2">
<ui:box text="Property" />
<ui:box text="Value" />
</lay:grid>
+ <wi:separator colspan="2" vshrink="true" />
</lay:pad>
- <wi:separator vshrink="true" />
var accessmap;
var proxies = [];
@@ -65,11 +65,11 @@
}
$addprop.action ++= function(v) {
- var p = $newprop.text.split('=');
- if (target.properties[p[0]]!=null) return;
+ var p = $newprop.text;
+ if (target.properties[p]!=null) return;
var c = .basic(vexi.box);
- c.prop = p[0];
- c.value = p.length>1?p[1]:"";
+ c.prop = p;
+ c.value = $newval.text;
c.target = target;
proxies[$content.numchildren/2] = c;
$content[$content.numchildren] = c;
@@ -78,7 +78,8 @@
$newprop.KeyPressed ++= function(v) {
cascade = v;
- $addprop.enabled = target and ($newprop.text!="");
+ var p = $newprop.text;
+ $addprop.enabled = target and (p!="" and
target.properties[p]!=null);
}
surface ++= function(v) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn