Bug #10041 fixed - WFILE_f block was not declared as deprecated 34/8734/3
Alexandre HERISSE [Mon, 20 Aug 2012 07:46:42 +0000 (09:46 +0200)]
Change-Id: I3dcf121857772b81f3f2b44a863c02634be8a8c6

scilab/CHANGES_5.4.X
scilab/modules/scicos_blocks/macros/Sinks/WFILE_f.sci
scilab/modules/xcos/etc/palettes.xml
scilab/modules/xcos/help/en_US/palettes/Sinks_pal/WFILE_f.xml

index 3b74711..f1bb168 100644 (file)
@@ -4,6 +4,8 @@
 Xcos
 ====
 
+* Bug #10041 fixed - WFILE_f block was not declared as deprecated
+
 * Bug #10781 fixed - DFlipflop incorrectly reported problem in port size or type
 
 
index 47c7a2f..494ac0f 100644 (file)
@@ -32,6 +32,11 @@ case 'getoutputs' then
 case 'getorigin' then
   [x,y]=standard_origin(arg1)
 case 'set' then
+  warnobsolete('WRITEC_f', '6.0.0');
+  warnMessage = msprintf(_("Feature %s is obsolete."), 'WFILE_f');
+  warnAdvise = msprintf(_("Please use %s instead."), 'WRITEC_f');
+  warnXcosMessage = msprintf("%s %s", warnMessage, warnAdvise);
+  warnBlockByUID(arg1.model.label, warnXcosMessage);
   x=arg1;
   graphics=arg1.graphics;exprs=graphics.exprs
   model=arg1.model;
index c42a728..d7d4661 100644 (file)
       <block name="TRASH_f">
         <icon variable="SCI" path="/modules/xcos/images/palettes/TRASH_f.png"/>
       </block>
-      <block name="WFILE_f">
-        <icon variable="SCI" path="/modules/xcos/images/palettes/WFILE_f.png"/>
-      </block>
       <block name="WRITEAU_f">
         <icon variable="SCI" path="/modules/xcos/images/palettes/WRITEAU_f.png"/>
       </block>
index 03dc905..b5d61d3 100644 (file)
@@ -25,7 +25,7 @@
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="WFILE_f" xml:lang="en_US">
     <refnamediv>
         <refname>WFILE_f</refname>
-        <refpurpose>Write to output file</refpurpose>
+        <refpurpose>Write to output file. <emphasis role="bold">This function is obsolete.</emphasis></refpurpose>
     </refnamediv>
     <refsection>
         <title>Block Screenshot</title>
     <refsection id="Description_WFILE_f">
         <title>Description</title>
         <para>
-            This block allows user to save data in a file with the name defined with the <emphasis role="bold">Output File Name</emphasis> parameter, in text formatted mode or in binary mode.
+            This block is <emphasis role="bold">obsolete</emphasis>. This block allows user to save data in a file with the name defined with the <emphasis role="bold">Output File Name</emphasis> parameter, in text formatted mode or in binary mode.
         </para>
         <para>
             The file is a sequence of records. Each record has a length <emphasis role="bold">Output Size</emphasis> <literal> + 1 </literal> and the structure shown below:
             </listitem>
         </itemizedlist>
     </refsection>
+    <refsection>
+        <title>History</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>WFILE_f block declared as obsolete.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
 </refentry>