[Laszlo-checkins] r10864 - in openlaszlo/trunk/WEB-INF/lps: lfc/views schema

bargull@openlaszlo.org bargull at openlaszlo.org
Wed Sep 3 12:35:28 PDT 2008


Author: bargull
Date: 2008-09-03 12:35:23 -0700 (Wed, 03 Sep 2008)
New Revision: 10864

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
   openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
Log:
Change 20080903-bargull-F1K by bargull at dell--p4--2-53 on 2008-09-03 21:19:04
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: remove deprecated properties of LzView

New Features:

Bugs Fixed: LPP-6922

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
All these properties/functions/events were already deprecated in LPS3.1.x, safe to remove now.
Affects:
- getPlayPerc()
- loadperc and onloadperc
- getWidth(), getHeight()
- searchimmediateparents()
    

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs	2008-09-03 19:23:11 UTC (rev 10863)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs	2008-09-03 19:35:23 UTC (rev 10864)
@@ -183,13 +183,6 @@
   */
 var onload = LzDeclaredEvent;
 
-/** Sends a percentage (0-1) reflecting the amount of a media file that's been downloaded.  Deprecated - see onframesloadratio.
-  * @lzxtype event
-  * @keywords deprecated 
-  * @access public
-  */
-var onloadperc = LzDeclaredEvent;
-
 /** Sends a percentage (0-1) reflecting the number of frames downloaded.
   * @lzxtype event
   * @access public
@@ -957,10 +950,6 @@
 /** @access private */
 function $lzc$set_frame(v) { this.setResourceNumber(v); }
 
-/** @keywords deprecated 
-  * @access private 
-  */
-var loadperc =   0;
 /** For views whose resource is loaded at runtime,
   * the ratio of the loaded frames to the total frames. This is a number between
   * zero and 1.
@@ -1189,15 +1178,6 @@
     return null;
 }
 
-/** @access private */
-function searchimmediateparents ( prop ){
-    if ( $debug ){
-      Debug.deprecated(this, arguments.callee, this.searchParents);
-    }
-
-    return this.searchParents( prop );
-}
-
 /**
  * The layouts that are controlling the layout of this view.
  * @type [LzLayout]
@@ -1970,31 +1950,7 @@
     }
 }
 
-
 /**
-  * Returns the width of the view.
-  * @keywords private
-  * @deprecated use the width attribute directly
-  */
-function getWidth (){
-    if ($debug) Debug.deprecated(this, arguments.callee, 'width');
-    return this.width;
-}
-
-/**
-  * Returns the height of the view.
-  * @keywords private
-  * @deprecated use the height attribute directly
-  */
-function getHeight (){
-    if ($debug) Debug.deprecated(this, arguments.callee, 'height');
-    return this.height;
-}
-
-//__LZcheckwidth = true;
-//__LZcheckheight = true;
-
-/**
  * @devnote measureSize must agree with this
  *
  * @access private 
@@ -2836,27 +2792,6 @@
     }
 }
 
-
-/** @access private */
-var __LZdidPPwarn = false;
-
-/** @access private */
-function getPlayPerc ( ){
-    if ( $debug ){
-        if ( !this.__LZdidPPwarn ){
-          Debug.info("%w.%s is deprecated.  Use frame/totalframes attributes instead.",
-                     this, arguments.callee);
-        }
-        this.__LZdidPPwarn = true;
-    }
-    return this.frame/this.totalframes;
-}
-
-/** @access private */
-function $lzc$getPlayPerc_dependencies ( who , self ){
-    return [ self, "frame" ];
-}
-
 /**
   * Shows or hides the hand cursor for this view.
   * @param Boolean s: true shows the hand cursor for this view, false hides 
@@ -3140,8 +3075,8 @@
         this.cachebitmap = cache;
         if (this.capabilities.bitmapcaching) {
             this.sprite.setBitmapCache(cache);
-        } else {
-            if ($debug) this.__warnCapability('view.cachebitmap'); 
+        } else if ($debug) {
+            this.__warnCapability('view.cachebitmap'); 
         }
     }
 }

Modified: openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx	2008-09-03 19:23:11 UTC (rev 10863)
+++ openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx	2008-09-03 19:35:23 UTC (rev 10864)
@@ -326,7 +326,6 @@
   <method name="$lzc$getBounds_dependencies"/>
   <method name="$lzc$getCurrentTime_dependencies"/>
   <method name="$lzc$getMouse_dependencies"/>
-  <method name="$lzc$getPlayPerc_dependencies"/>
   <method name="$lzc$getTotalTime_dependencies"/>
   <method name="$lzc$setAttributeRelative_dependencies"/>
   <method name="$lzc$set_aaactive"/>
@@ -389,18 +388,15 @@
   <method name="getContextMenu"/>
   <method name="getCurrentTime"/>
   <method name="getDepthList"/>
-  <method name="getHeight"/>
   <method name="getID3"/>
   <method name="getLinkage"/>
   <method name="getMCRef"/>
   <method name="getMouse"/>
   <method name="getNextSelection"/>
   <method name="getPan"/>
-  <method name="getPlayPerc"/>
   <method name="getPrevSelection"/>
   <method name="getTotalTime"/>
   <method name="getVolume"/>
-  <method name="getWidth"/>
   <method name="getZ"/>
   <method name="init"/>
   <method name="makeMasked"/>
@@ -418,7 +414,6 @@
   <method name="resourceloaderror"/>
   <method name="resourceloadtimeout"/>
   <method name="searchSubviews"/>
-  <method name="searchimmediateparents"/>
   <method name="seek"/>
   <method name="sendBehind"/>
   <method name="sendInFrontOf"/>



More information about the Laszlo-checkins mailing list