Revision: 1927
http://svn.sourceforge.net/vexi/?rev=1927&view=rev
Author: clrg
Date: 2007-07-05 22:48:26 -0700 (Thu, 05 Jul 2007)
Log Message:
-----------
Text widgets almost restored...
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
2007-07-06 05:40:57 UTC (rev 1926)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
2007-07-06 05:48:26 UTC (rev 1927)
@@ -30,7 +30,7 @@
thisbox.reflow = function() { static.reflowBlock($content, thisbox); }
/** reusable function for updating mWord notifier */
- $content.activeTrap = function(v) { mWord = trapee; }
+ $content.activeTrap = function(v) { cascade = v; mWord = trapee; }
$content.reflow = static.reflowBlock;
// assign static trap functions
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2007-07-06
05:40:57 UTC (rev 1926)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2007-07-06
05:48:26 UTC (rev 1927)
@@ -152,7 +152,7 @@
///////////////////////////////////////////////////////////////
/** public but for internal usage */
- thisbox.newblock ++= static.newblockFunc;
+ thisbox.newblock ++= static.newblockFunc;
/** used as a trap to invoke syncCursor() */
var syncCursorAndOffset = function(v)
@@ -162,7 +162,7 @@
}
/** for maintaining the mBlock variable */
- var activeTrap = function(v) { mBlock = trapee; }
+ var activeTrap = function(v) { cascade = v; mBlock = trapee; }
/** sync cursor for cBlock after reflow */
var syncBlock = function(v)
@@ -848,6 +848,7 @@
/** to be applied to surface.Move */
var moveFunc = function(v)
{
+ cascade = v;
doHighlight = true;
findCurThreadRequest();
}
@@ -862,6 +863,7 @@
/** handles keyboard editing - cursor movement, character insertion
and deletion */
KeyPressed ++= function(v)
{
+ cascade = v;
// the index of cWord in cBlock
cwInd = cWord ? cBlock.indexof(cWord) : null;
@@ -1591,6 +1593,7 @@
/** select word if double-clicked on */
thisbox.DoubleClick1 ++= function(v)
{
+ cascade = v;
if (!mBlock or !mBlock.mWord) return;
mBlock.mWord.highlight = true;
@@ -1611,6 +1614,7 @@
/** standard mouse interaction */
thisbox.Press1 ++= function(v)
{
+ cascade = v;
// previously in select mode
if (select)
{
@@ -1719,6 +1723,7 @@
$text[i].multiline = true;
// FEATURE: support single-multi-single switching
if (!v) cascade = multiline;
+ else cascade = v;
}
/** read trap to return the textual content of this edit box */
@@ -1798,6 +1803,7 @@
/** propagate new textalign to all blocks of text */
var propagateToBlocks = function(v)
{
+ cascade = v;
for (var i=0; $text.numchildren > i; i++)
if ($text[i][trapname] != v) $text[i][trapname] = 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn