* winclose removed. Please use close instead. 50/14250/2
Vincent COUVERT [Mon, 31 Mar 2014 12:18:30 +0000 (14:18 +0200)]
Change-Id: If91d810c04ac6e997853702f1751906526d233ff

scilab/CHANGES_5.5.X
scilab/modules/helptools/data/configuration/scilab_macros.txt
scilab/modules/tclsci/help/en_US/winclose.xml [deleted file]
scilab/modules/tclsci/macros/winclose.sci [deleted file]

index dc5fe70..dec25d4 100644 (file)
@@ -202,6 +202,8 @@ Obsolete & Removed Functions
 
 * fit_dat removed. Please use datafit instead.
 
+* winclose removed. Please use close instead.
+
 * regress tagged as obsolete. Will be removed in Scilab 5.5.1.
   Please use reglin instead.
 
diff --git a/scilab/modules/tclsci/help/en_US/winclose.xml b/scilab/modules/tclsci/help/en_US/winclose.xml
deleted file mode 100644 (file)
index eee3556..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) Jaime Urzua
- * ...
- * 
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at    
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="winclose">
-    <refnamediv>
-        <refname>winclose</refname>
-        <refpurpose>
-            close windows created by sciGUI. <emphasis role="bold">This function is obsolete.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>winclose(winIds)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>winIds</term>
-                <listitem>
-                    <para>matrix of integer greater than 0, window identificator.</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>winclose(winIds)</literal> close windows created by sciGUI.
-            <warning>This function is obsolete.</warning>
-            It is better to use <link linkend="close">close</link> instead of <literal>winclose</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-//CREATE SOME WINDOWS
-win1=waitbar('This is an example');
-win2=waitbar('HELLO!');
-winclose([win1,win2]);
- ]]></programlisting>
-    </refsection>
-    <refsection>
-        <title>History</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.1</revnumber>
-                <revdescription>
-                    Function tagged obsolete. Will be removed in 5.5.0. Please use <link linkend="close">close</link> instead.
-                </revdescription>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/tclsci/macros/winclose.sci b/scilab/modules/tclsci/macros/winclose.sci
deleted file mode 100644 (file)
index f843571..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2004 - Jaime Urzua
-// Copyright (C) 2008 - INRIA - Vincent COUVERT
-//
-// This file must be used under the terms of the CeCILL.
-// This source file is licensed as described in the file COPYING, which
-// you should have received as part of this distribution.  The terms
-// are also available at
-// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-
-
-function sta=winclose(h)
-    // Close a window
-    // This file is part of sciGUI toolbox
-    // rev. 0.1
-    //
-    // This program is free software; you can redistribute it and/or modify
-    //it under the terms of the GNU General Public License as published by
-    //the Free Software Foundation; either version 2 of the License, or
-    //(at your option) any later version.
-
-    warnobsolete("close", "5.5.0");
-
-    // Java waitbar or progressbar
-    if type(h) == 9 then
-        delete(h);
-        sta=1
-        return
-    end
-
-    if execstr("TCL_GetVar(''sciGUITable(win,id)'')","errcatch")<>0 then
-        sta=1
-        return
-    end
-    sta=0;
-    for j=1:length(h),
-        TCL_EvalStr("sciGUIDestroy "+string(h(j)));
-    end
-endfunction