[Laszlo-checkins] r10163 - in openlaszlo/trunk/WEB-INF/lps/lfc: core data kernel/dhtml kernel/swf services views
pbr@openlaszlo.org
pbr at openlaszlo.org
Tue Jul 1 17:44:55 PDT 2008
Author: pbr
Date: 2008-07-01 17:44:47 -0700 (Tue, 01 Jul 2008)
New Revision: 10163
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
Log:
Change 20080701-Philip-0 by Philip at Philip-DC on 2008-07-01 12:06:46 EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Update LFC to access global service objects using lz.*
New Features:
Bugs Fixed: LPP-6570 (partial)
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
I cleaned up the LFC so all references to the global service objects use lz.* syntax. The deprecated service objects (such as LzIdle,
LzTimer) will be removed in a future changeset because the components and demos/examples need to be modified first.
Tests:
smokecheck swf/dhtml
lzpix swf/dhtml
Files:
M WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
M WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
M WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
M WEB-INF/lps/lfc/services/LzTrack.lzs
M WEB-INF/lps/lfc/core/LzNode.lzs
M WEB-INF/lps/lfc/views/LaszloView.lzs
M WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M WEB-INF/lps/lfc/data/LzReplicationManager.lzs
M WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080701-Philip-0.tar
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -327,7 +327,7 @@
this._profile_instantiator_name = nm;
}
// Set _profile_instantiator_name to constructor._dbg_name for
- // annotation in LzInstantiator.makeSomeViews
+ // annotation in lz.Instantiator.makeSomeViews
else {
this._profile_instantiator_name = this['constructor']._dbg_name;
}
@@ -813,7 +813,7 @@
function __LZinstantiationDone (){
if ( !this.immediateparent || this.immediateparent.isinited ||
( this.initstage == "early" ) ||
- ( this.__LZisnew && LzInstantiator.syncNew ) ){
+ ( this.__LZisnew && lz.Instantiator.syncNew ) ){
//we need to init this and its subnodes
this.__LZcallInit( );
}
@@ -914,9 +914,9 @@
//aren't done initing
this.initstage = 'early';
if ( myis == "defer" ){
- LzInstantiator.createImmediate( this ,this.__LZdeferredcarr );
+ lz.Instantiator.createImmediate( this ,this.__LZdeferredcarr );
} else {
- LzInstantiator.completeTrickle( this );
+ lz.Instantiator.completeTrickle( this );
}
}
}
@@ -1063,12 +1063,12 @@
this.__LZdeferredcarr = carr;
} else if ( "late" == this.initstage ){
this.__LZlateinit = true;
- LzInstantiator.trickleInstantiate( this , carr );
- } else if ( ( this.__LZisnew && LzInstantiator.syncNew ) ||
+ lz.Instantiator.trickleInstantiate( this , carr );
+ } else if ( ( this.__LZisnew && lz.Instantiator.syncNew ) ||
"immediate" == this.initstage ){
- LzInstantiator.createImmediate( this , carr );
+ lz.Instantiator.createImmediate( this , carr );
} else {
- LzInstantiator.requestInstantiation( this , carr );
+ lz.Instantiator.requestInstantiation( this , carr );
}
}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -270,7 +270,7 @@
//no change
if ( offset == 0 && newlength == oldlength ) return;
- LzInstantiator.enableDataReplicationQueuing( );
+ lz.Instantiator.enableDataReplicationQueuing( );
var oldclones:Array = this.clones;
this.clones = [];
@@ -323,7 +323,7 @@
}
this.__LZdataoffset = newstart;
- LzInstantiator.clearDataReplicationQueue( );
+ lz.Instantiator.clearDataReplicationQueue( );
}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -541,7 +541,7 @@
//this makes sure that children created as a result of data replication
//init in order
- LzInstantiator.enableDataReplicationQueuing( );
+ lz.Instantiator.enableDataReplicationQueuing( );
while ( this.nodes && this.nodes.length > this.clones.length ){
var cl:LzNode = this.getNewClone();
@@ -550,7 +550,7 @@
this.clones.push( cl );
}
- LzInstantiator.clearDataReplicationQueue( );
+ lz.Instantiator.clearDataReplicationQueue( );
while ( this.nodes && this.nodes.length < this.clones.length ){
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -110,7 +110,7 @@
s.style.top = LzMouseKernel.__y + 'px';
s.style.display = 'block';
- this.__LZmousedowndel.register(LzGlobalMouse, 'onmousedown');
+ this.__LZmousedowndel.register(lz.GlobalMouse, 'onmousedown');
if (this._delegate != null) this._delegate.execute(this);
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -61,7 +61,7 @@
*/
function startCopyTask ( ){
// Debug.write("starting copy idle task ");
- this.copyTaskDel.register( LzIdle, "onidle" );
+ this.copyTaskDel.register( lz.Idle, "onidle" );
}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -114,7 +114,7 @@
*/
function startingLoad ( loadmc ){
this.checkonce = false;
- this.loadChecker.register( LzIdle, "onidle" );
+ this.loadChecker.register( lz.Idle, "onidle" );
this.removeLoadCheckerDel.register( this, "onloaddone" );
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as 2008-07-02 00:44:47 UTC (rev 10163)
@@ -38,7 +38,7 @@
this._sound.start(t)
//Debug.write('play mp3', t);
this._playdel.unregisterAll();
- this._playdel.register( LzIdle, "onidle" );
+ this._playdel.register( lz.Idle, "onidle" );
}
/**
@@ -77,7 +77,7 @@
this._sound.loadSound(reqstr, true);
this.loadstate = 1;
//this._playdel.unregisterAll();
- //this._playdel.register( LzIdle, "onidle" );
+ //this._playdel.register( lz.Idle, "onidle" );
}
@@ -165,7 +165,7 @@
//Debug.write('done loading');
this.loadstate = 2;
this._playdel.unregisterAll();
- this._playdel.register( LzIdle, "onidle" );
+ this._playdel.register( lz.Idle, "onidle" );
}
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-07-02 00:44:47 UTC (rev 10163)
@@ -1389,7 +1389,7 @@
this.__LZtracking = true;
if (this.updatePlayDel)
this.updatePlayDel.unregisterAll();
- this.updatePlayDel.register( LzIdle, "onidle" );
+ this.updatePlayDel.register( lz.Idle, "onidle" );
}
@@ -1456,7 +1456,7 @@
if (('isaudio' in this.getMCRef()) && (this.getMCRef().isaudio == true)) this.__lzskipplaychecklimit = LzSprite.prototype.__lzskipplaychecklimitmax;
//Debug.warn('checkPlayStatus %w %w %w %w', this.__lzcheckframe, this.frame, this.totalframes, this.__lzskipplaychecklimit);
- this.checkPlayStatusDel.register( LzIdle, "onidle" );
+ this.checkPlayStatusDel.register( lz.Idle, "onidle" );
}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -136,7 +136,7 @@
super();
this.__LZtrackDel = new LzDelegate( this, "__LZtrack" );// called on idle
- this.__LZmouseupDel = new LzDelegate( this, "__LZmouseup", LzGlobalMouse, 'onmouseup');// called on global mouseup
+ this.__LZmouseupDel = new LzDelegate( this, "__LZmouseup", lz.GlobalMouse, 'onmouseup');// called on global mouseup
this.__LZactivegroups = [];
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -329,9 +329,9 @@
this.parent = this;
this.makeMasked();
- this.__LZmouseupDel = new LzDelegate( this , "__LZmouseup", LzGlobalMouse, 'onmouseup');// called on global mouseup
- this.__LZmousedownDel = new LzDelegate( this , "__LZmousedown", LzGlobalMouse, 'onmousedown');// called on global mousedown
- this.__LZmousemoveDel = new LzDelegate( this , "__LZmousemove", LzGlobalMouse, 'onmousemove');// called on global mousemove
+ this.__LZmouseupDel = new LzDelegate( this , "__LZmouseup", lz.GlobalMouse, 'onmouseup');// called on global mouseup
+ this.__LZmousedownDel = new LzDelegate( this , "__LZmousedown", lz.GlobalMouse, 'onmousedown');// called on global mousedown
+ this.__LZmousemoveDel = new LzDelegate( this , "__LZmousemove", lz.GlobalMouse, 'onmousemove');// called on global mousemove
// Create the default dataprovider
this.defaultdataprovider = this.httpdataprovider = new LzHTTPDataProvider();
@@ -552,7 +552,7 @@
//this.isinited = false;
//Debug.write('LzCanvas.initDone');
- LzInstantiator.requestInstantiation( this, sva );
+ lz.Instantiator.requestInstantiation( this, sva );
}
@@ -589,8 +589,8 @@
this.percentcreated = 1;
this.updatePercentCreatedEnabled = false;
- if (this.onpercentcreated.ready) this.onpercentcreated.sendEvent( this.percentcreated );
- LzInstantiator.resume();
+ if (this.onpercentcreated.ready) this.onpercentcreated.sendEvent( this.percentcreated );
+ lz.Instantiator.resume();
this.__LZcallInit();
}
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2008-07-02 00:28:46 UTC (rev 10162)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2008-07-02 00:44:47 UTC (rev 10163)
@@ -2413,7 +2413,7 @@
/** @access private */
function $lzc$getMouse_dependencies(...ignore ) {
- return [ LzIdle, "idle" ];
+ return [ lz.Idle, "idle" ];
}
More information about the Laszlo-checkins
mailing list