2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2011 - DIGITEO - Calixte DENIZET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12 /*--------------------------------------------------------------------------*/
13 #include "gw_preferences.h"
15 #include "callFunctionFromGateway.h"
17 #include "scilabmode.h"
18 #include "localization.h"
21 #include "loadOnUseClassPath.h"
22 /*--------------------------------------------------------------------------*/
23 static BOOL loadedDep = FALSE;
24 /*--------------------------------------------------------------------------*/
25 static gw_generic_table Tab[]=
27 {sci_addToolboxInfos, "addToolboxInfos"},
28 {sci_removeToolboxInfos, "removeToolboxInfos"}
30 /*--------------------------------------------------------------------------*/
31 int gw_preferences(void)
35 if ( getScilabMode() == SCILAB_NWNI)
37 Scierror(999,_("Scilab '%s' module disabled in -nogui or -nwni mode.\n"), "preferences");
43 loadOnUseClassPath("preferences");
46 callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab));
49 /*--------------------------------------------------------------------------*/