xpad module
Allan CORNET [Tue, 28 Jul 2009 09:50:19 +0000 (11:50 +0200)]
38 files changed:
scilab/Scilab.sln
scilab/Scilab_f2c.sln
scilab/etc/classpath.xml.in
scilab/etc/classpath.xml.vc
scilab/etc/librarypath.xml
scilab/etc/modules.xml.in
scilab/etc/modules.xml.vc
scilab/modules/Makefile.am
scilab/modules/core/includes/callinterf.h
scilab/modules/core/src/c/callinterf.c
scilab/modules/core/src/c/dynamic_gateways.c
scilab/modules/core/src/c/dynamic_gateways.h
scilab/modules/xpad/.gitignore [new file with mode: 0644]
scilab/modules/xpad/Makefile.am [new file with mode: 0644]
scilab/modules/xpad/build.xml [new file with mode: 0644]
scilab/modules/xpad/changelog.txt [new file with mode: 0644]
scilab/modules/xpad/etc/xpad.quit [new file with mode: 0644]
scilab/modules/xpad/etc/xpad.start [new file with mode: 0644]
scilab/modules/xpad/includes/dynlib_xpad.h [new file with mode: 0644]
scilab/modules/xpad/includes/gw_xpad.h [new file with mode: 0644]
scilab/modules/xpad/license.txt [new file with mode: 0644]
scilab/modules/xpad/macros/buildmacros.bat [new file with mode: 0644]
scilab/modules/xpad/macros/buildmacros.sce [new file with mode: 0644]
scilab/modules/xpad/macros/cleanmacros.bat [new file with mode: 0644]
scilab/modules/xpad/sci_gateway/c/gw_xpad.c [new file with mode: 0644]
scilab/modules/xpad/sci_gateway/cpp/sci_Xpad.cpp [new file with mode: 0644]
scilab/modules/xpad/sci_gateway/xpad_gateway.xml [new file with mode: 0644]
scilab/modules/xpad/src/c/DllmainXPAD.c [new file with mode: 0644]
scilab/modules/xpad/src/c/LibScilab_Import.def [new file with mode: 0644]
scilab/modules/xpad/src/c/xpad.vcproj [new file with mode: 0644]
scilab/modules/xpad/src/java/org/scilab/modules/xpad/XPad.java [new file with mode: 0644]
scilab/modules/xpad/src/java/xpad-JAVA.vcproj [new file with mode: 0644]
scilab/modules/xpad/src/noxpad/noxpad.c [new file with mode: 0644]
scilab/modules/xpad/src/noxpad/noxpad.h [new file with mode: 0644]
scilab/modules/xpad/version.xml [new file with mode: 0644]
scilab/modules/xpad/xpad.iss [new file with mode: 0644]
scilab/scilab-lib.properties.in
scilab/scilab-lib.properties.vc

index b2dba9e..c39058b 100644 (file)
@@ -1033,6 +1033,23 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hdf5", "modules\hdf5\src\c\
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hdf5-Ant", "modules\hdf5\src\java\hdf5-JAVA.vcproj", "{9B6500B0-66F6-44F0-910D-47A1435B4E02}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xpad-Ant", "modules\xpad\src\java\xpad-JAVA.vcproj", "{43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}"
+       ProjectSection(ProjectDependencies) = postProject
+               {FBA3BC3F-8A2C-4D47-A50D-EB808BE42F43} = {FBA3BC3F-8A2C-4D47-A50D-EB808BE42F43}
+               {B2911268-79E2-4FE5-AD59-2C3CB7CB794E} = {B2911268-79E2-4FE5-AD59-2C3CB7CB794E}
+               {F01C26E3-E409-4E74-BA84-C7C4A71A7FDC} = {F01C26E3-E409-4E74-BA84-C7C4A71A7FDC}
+       EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xpad", "modules\xpad\src\c\xpad.vcproj", "{BAE68B54-2C1A-44D0-A0E9-05156A784E79}"
+       ProjectSection(ProjectDependencies) = postProject
+               {ECFFEB0C-1EDA-45EE-9A10-B18143852E17} = {ECFFEB0C-1EDA-45EE-9A10-B18143852E17}
+               {6A84AD8C-BA18-4A3F-9C72-EC3DF0939E9E} = {6A84AD8C-BA18-4A3F-9C72-EC3DF0939E9E}
+               {8BA2DDA8-BD04-4D4D-8EE6-6CAA955F7470} = {8BA2DDA8-BD04-4D4D-8EE6-6CAA955F7470}
+               {43C5BAB1-1DCA-4743-A183-77E0D42FE7D0} = {43C5BAB1-1DCA-4743-A183-77E0D42FE7D0}
+               {3170E4C2-1173-4264-A222-7EE8CCB3DDF7} = {3170E4C2-1173-4264-A222-7EE8CCB3DDF7}
+               {A5911CD7-F8E8-440C-A23E-4843A0636F3A} = {A5911CD7-F8E8-440C-A23E-4843A0636F3A}
+       EndProjectSection
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -2121,6 +2138,22 @@ Global
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|Win32.Build.0 = Release|Win32
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|x64.ActiveCfg = Release|x64
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|x64.Build.0 = Release|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|Win32.ActiveCfg = Debug|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|Win32.Build.0 = Debug|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|x64.ActiveCfg = Debug|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|x64.Build.0 = Debug|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|Win32.ActiveCfg = Release|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|Win32.Build.0 = Release|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|x64.ActiveCfg = Release|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|x64.Build.0 = Release|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|Win32.ActiveCfg = Debug|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|Win32.Build.0 = Debug|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|x64.ActiveCfg = Debug|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|x64.Build.0 = Debug|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|Win32.ActiveCfg = Release|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|Win32.Build.0 = Release|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|x64.ActiveCfg = Release|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index d83ac84..9cc9384 100644 (file)
@@ -1033,6 +1033,24 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hdf5", "modules\hdf5\src\c\
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hdf5-Ant", "modules\hdf5\src\java\hdf5-JAVA.vcproj", "{9B6500B0-66F6-44F0-910D-47A1435B4E02}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xpad-Ant", "modules\xpad\src\java\xpad-JAVA.vcproj", "{43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}"
+       ProjectSection(ProjectDependencies) = postProject
+               {FBA3BC3F-8A2C-4D47-A50D-EB808BE42F43} = {FBA3BC3F-8A2C-4D47-A50D-EB808BE42F43}
+               {B2911268-79E2-4FE5-AD59-2C3CB7CB794E} = {B2911268-79E2-4FE5-AD59-2C3CB7CB794E}
+               {E9783492-017E-4811-9CC7-6B71856F847C} = {E9783492-017E-4811-9CC7-6B71856F847C}
+               {F01C26E3-E409-4E74-BA84-C7C4A71A7FDC} = {F01C26E3-E409-4E74-BA84-C7C4A71A7FDC}
+       EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xpad", "modules\xpad\src\c\xpad.vcproj", "{BAE68B54-2C1A-44D0-A0E9-05156A784E79}"
+       ProjectSection(ProjectDependencies) = postProject
+               {ECFFEB0C-1EDA-45EE-9A10-B18143852E17} = {ECFFEB0C-1EDA-45EE-9A10-B18143852E17}
+               {6A84AD8C-BA18-4A3F-9C72-EC3DF0939E9E} = {6A84AD8C-BA18-4A3F-9C72-EC3DF0939E9E}
+               {8BA2DDA8-BD04-4D4D-8EE6-6CAA955F7470} = {8BA2DDA8-BD04-4D4D-8EE6-6CAA955F7470}
+               {43C5BAB1-1DCA-4743-A183-77E0D42FE7D0} = {43C5BAB1-1DCA-4743-A183-77E0D42FE7D0}
+               {3170E4C2-1173-4264-A222-7EE8CCB3DDF7} = {3170E4C2-1173-4264-A222-7EE8CCB3DDF7}
+               {A5911CD7-F8E8-440C-A23E-4843A0636F3A} = {A5911CD7-F8E8-440C-A23E-4843A0636F3A}
+       EndProjectSection
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -2121,6 +2139,22 @@ Global
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|Win32.Build.0 = Release|Win32
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|x64.ActiveCfg = Release|x64
                {9B6500B0-66F6-44F0-910D-47A1435B4E02}.Release|x64.Build.0 = Release|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|Win32.ActiveCfg = Debug|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|Win32.Build.0 = Debug|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|x64.ActiveCfg = Debug|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Debug|x64.Build.0 = Debug|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|Win32.ActiveCfg = Release|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|Win32.Build.0 = Release|Win32
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|x64.ActiveCfg = Release|x64
+               {43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}.Release|x64.Build.0 = Release|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|Win32.ActiveCfg = Debug|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|Win32.Build.0 = Debug|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|x64.ActiveCfg = Debug|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Debug|x64.Build.0 = Debug|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|Win32.ActiveCfg = Release|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|Win32.Build.0 = Release|Win32
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|x64.ActiveCfg = Release|x64
+               {BAE68B54-2C1A-44D0-A0E9-05156A784E79}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 4a58d56..2aecb5a 100644 (file)
@@ -109,4 +109,9 @@ The option is "disableUnderMode" and can be:
 
 <path value="$SCILAB/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar"/>
 
+<!-- xpad module -->
+<path value="$SCILAB/modules/xpad/jar/org.scilab.modules.xpad.jar" load="onUse">
+       <load on="Xpad"/>
+</path>
+
 </classpaths>
index 098ca24..7313134 100644 (file)
@@ -113,4 +113,9 @@ The option is "disableUnderMode" and can be:
 <path value="$SCILAB/modules/localization/jar/org.scilab.modules.localization.jar" load="startup"/>
 <path value="$SCILAB/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar" load="startup"/>
 
+<!-- xpad module -->
+<path value="$SCILAB/modules/xpad/jar/org.scilab.modules.xpad.jar" load="onUse">
+       <load on="Xpad"/>
+</path>
+
 </classpaths>
index f5004d1..de97a37 100644 (file)
@@ -26,6 +26,7 @@
 <path value="$SCILAB/modules/localization/.libs"/>
 <path value="$SCILAB/modules/renderer/.libs"/>
 <path value="$SCILAB/modules/graphic_export/.libs"/>
+<path value="$SCILAB/modules/xpad/.libs"/>
 <path value="$SCILAB/.libs"/>
 
 <!-- Default path to the JNI classes under some Linux (JoGL under Debian for example) -->
index 0840a43..e6e8e8f 100644 (file)
@@ -83,4 +83,5 @@
 <module name="atoms" activate="yes"/>
 <module name="matio" activate="@MATIO_ENABLE@"/>
 <module name="hdf5" activate="yes"/>
+<module name="xpad" activate="@XPAD_ENABLE@"/>
 </modules>
index 061d0e3..4702fe2 100644 (file)
@@ -85,5 +85,6 @@
 <module name="matio" activate="yes"/>
 <module name="atoms" activate="yes"/>
 <module name="hdf5" activate="yes"/>
+<module name="xpad" activate="yes"/>
 <!-- comments -->
 </modules>
index 65dd000..58a7d92 100644 (file)
@@ -82,7 +82,8 @@ simulated_annealing \
 parameters \
 matio \
 atoms \
-hdf5
+hdf5 \
+xpad
 
 #umfpack
 
@@ -127,14 +128,16 @@ GUI_LIBS =        $(top_builddir)/modules/gui/libscigui.la \
        $(top_builddir)/modules/graphics/libscigraphics.la \
        $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
        $(top_builddir)/modules/console/libsciconsole.la \
-       $(top_builddir)/modules/jvm/libscijvm.la
+       $(top_builddir)/modules/jvm/libscijvm.la \
+       $(top_builddir)/modules/xpad/libscixpad.la
 
 NO_GUI_LIBS = $(top_builddir)/modules/gui/libscigui-disable.la \
        $(top_builddir)/modules/renderer/libscirenderer-disable.la \
        $(top_builddir)/modules/graphics/libscigraphics-disable.la \
        $(top_builddir)/modules/graphic_export/libscigraphic_export-disable.la \
        $(top_builddir)/modules/console/libsciconsole-disable.la \
-       $(top_builddir)/modules/jvm/libscijvm-disable.la
+       $(top_builddir)/modules/jvm/libscijvm-disable.la \
+       $(top_builddir)/modules/xpad/libscixpad-disable.la
 
 ENGINE_LIBS =  $(top_builddir)/modules/fileio/libscifileio.la \
        $(top_builddir)/modules/mexlib/libmex.la \
index 9edf11f..4534935 100644 (file)
@@ -84,6 +84,7 @@
 /* 60 */                                               #include "dynamic_gateways.h" /* helptools */
 /* 61 */                                               #include "../../call_scilab/includes/gw_call_scilab.h"
 /* 62 */                                               #include "../../hdf5/includes/gw_hdf5.h"
+/* 63 */                                               #include "dynamic_gateways.h" /* xpad */
 
 /*-------------------------------------
  * long jump to stop interface computation
index eb5dff7..d63f55f 100644 (file)
@@ -33,7 +33,7 @@ static void sci_sigint_addinter(int n);
  ** Watch out the positions are crutial !!!
  ** @TODO : Make this less crappy...
  **/
-#define INTERFACES_MAX 62
+#define INTERFACES_MAX 63
 static OpTab Interfaces[INTERFACES_MAX] = {
     /* 01  */ {gw_user}, /* free position may be used */
        /* 02  */ {gw_linear_algebra},
@@ -96,7 +96,8 @@ static OpTab Interfaces[INTERFACES_MAX] = {
        /* 59  */ {gw_dynamic_matio},
        /* 60  */ {gw_dynamic_helptools},
        /* 61  */ {gw_call_scilab},
-       /* 62  */ {gw_hdf5}
+       /* 62  */ {gw_hdf5},
+       /* 63  */ {gw_dynamic_xpad}
 };
 /*--------------------------------------------------------------------------*/
 static int sig_ok = 0;
index b1f5e07..f452765 100644 (file)
@@ -254,3 +254,19 @@ int gw_dynamic_functions(void)
                &ptr_gw_functions);
 }
 /*--------------------------------------------------------------------------*/
+/* xpad module */
+#define XPAD_MODULE_NAME "xpad"
+static DynLibHandle hXpadLib = NULL;
+static PROC_GATEWAY ptr_gw_xpad = NULL;
+static char* dynlibname_xpad = NULL;
+static char* gatewayname_xpad = NULL;
+/*--------------------------------------------------------------------------*/
+int gw_dynamic_xpad(void)
+{
+       return gw_dynamic_generic(XPAD_MODULE_NAME,
+               &dynlibname_xpad,
+               &gatewayname_xpad,
+               &hXpadLib,
+               &ptr_gw_xpad);
+}
+/*--------------------------------------------------------------------------*/
index 07cfb3d..347c324 100644 (file)
 
 
 /**
+* xpad gateway
+* functions is loaded dynamically at runtime
+* load gw_functions in SCI/modules/xpad/sci_gateway/gw_xpad.c
+*/
+int gw_dynamic_xpad(void);
+
+/**
 * functions gateway
 * functions is loaded dynamically at runtime
 * load gw_functions in SCI/modules/functions/sci_gateway/gw_functions.c
diff --git a/scilab/modules/xpad/.gitignore b/scilab/modules/xpad/.gitignore
new file mode 100644 (file)
index 0000000..3fbdd82
--- /dev/null
@@ -0,0 +1,4 @@
+#
+#generated .def files (windows)
+#
+xpad.def
diff --git a/scilab/modules/xpad/Makefile.am b/scilab/modules/xpad/Makefile.am
new file mode 100644 (file)
index 0000000..f0a6519
--- /dev/null
@@ -0,0 +1,100 @@
+#
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) DIGITEO - 2009 - Allan CORNET
+# 
+# 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-en.txt
+#
+
+#### Target ######
+modulename=xpad
+
+
+#### xpad : Conf files ####
+libscixpad_la_rootdir = $(mydatadir)
+libscixpad_la_root_DATA = changelog.txt license.txt readme.txt version.xml
+
+
+#### xpad : init scripts ####
+libscixpad_la_etcdir = $(mydatadir)/etc
+libscixpad_la_etc_DATA = etc/xpad.quit \
+etc/xpad.start \
+
+include $(top_srcdir)/Makefile.incl.am
+
+XPAD_C_SOURCES = 
+
+XPAD_CPP_SOURCES = 
+
+GIWS_WRAPPERS = 
+
+if GIWS
+BUILT_SOURCES=giws
+endif
+
+
+GATEWAY_C_SOURCES = sci_gateway/c/gw_xpad.c
+
+GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_Xpad
+
+libscixpad_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
+                       -I$(top_srcdir)/libs/MALLOC/includes/ \
+                       -I$(top_srcdir)/modules/jvm/includes/ \
+                       -I$(top_srcdir)/modules/output_stream/includes \
+                       -I$(top_srcdir)/modules/localization/includes \
+                       -I$(top_srcdir)/modules/api_scilab/includes
+
+libscixpad_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
+                       -I$(srcdir)/includes/ \
+                       -I$(srcdir)/src/cpp/ \
+                       -I$(srcdir)/src/c/ \
+                       -I$(top_srcdir)/modules/jvm/includes/ \
+                       -I$(top_srcdir)/modules/output_stream/includes \
+                       -I$(top_srcdir)/modules/localization/includes \                 
+                       -I$(top_srcdir)/modules/api_scilab/includes
+
+
+# Without the xpad module 
+libscixpad_disable_la_CFLAGS = -Iincludes/ \
+                       -I$(top_srcdir)/modules/output_stream/includes
+
+XPAD_DISABLE_C_SOURCES = src/noxpad/noxpad.c
+libscixpad_disable_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
+libscixpad_disable_la_SOURCES = $(XPAD_DISABLE_C_SOURCES)
+
+pkglib_LTLIBRARIES = libscixpad-disable.la
+
+if GUI
+pkglib_LTLIBRARIES += libscixpad.la 
+endif
+
+libscixpad_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
+
+libscixpad_la_SOURCES = $(XPAD_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(XPAD_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC= $(XPAD_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscixpad_la_CFLAGS)
+
+
+libscixpad_la_LIBADD = $(top_builddir)/modules/core/libscicore.la \
+$(top_builddir)/libs/MALLOC/libscimalloc.la \
+$(top_builddir)/modules/output_stream/libscioutput_stream.la
+
+
+#### xpad : gateway declaration ####
+libscixpad_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscixpad_la_sci_gateway_DATA = sci_gateway/xpad_gateway.xml
+
+
+#### xpad : include files ####
+libscixpad_la_includedir=$(pkgincludedir)/xpad
+libscixpad_la_include_HEADERS = includes/gw_xpad.h \
+includes/dynlib_xpad.h
+
+if GUI
+USEANT=1
+endif
diff --git a/scilab/modules/xpad/build.xml b/scilab/modules/xpad/build.xml
new file mode 100644 (file)
index 0000000..00ae9d4
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan CORNET
+ * 
+ * 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-en.txt
+ *
+ -->
+
+<project name="xpad" default="jar">
+
+  <import file="../../build.incl.xml"/>
+  <property name="library.name" value="${library.xpad.name}" />
+
+  <description>
+                       Build the Scilab xpad module
+  </description>
+
+</project>
diff --git a/scilab/modules/xpad/changelog.txt b/scilab/modules/xpad/changelog.txt
new file mode 100644 (file)
index 0000000..aeb31f2
--- /dev/null
@@ -0,0 +1,4 @@
+xpad (0.1-1) stable; urgency=medium
+
+  * First version of the module
+
diff --git a/scilab/modules/xpad/etc/xpad.quit b/scilab/modules/xpad/etc/xpad.quit
new file mode 100644 (file)
index 0000000..9f3588e
--- /dev/null
@@ -0,0 +1,14 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// 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-en.txt
+
+// Delete help chapter
+// =============================================================================
+if WITH_HELPTOOLS then
+//     del_help_chapter("Xpad",%t);
+end
diff --git a/scilab/modules/xpad/etc/xpad.start b/scilab/modules/xpad/etc/xpad.start
new file mode 100644 (file)
index 0000000..a1fb2b0
--- /dev/null
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+// 
+// 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-en.txt
+
+// Load  functions libraries
+// =============================================================================
+//load('SCI/modules/xpad/macros/lib');
+
+// Add help chapter
+// =============================================================================
+if WITH_HELPTOOLS then
+       //add_module_help_chapter("Xpad");
+end
+
+// Add demos
+// =============================================================================
+if WITH_DEMOS then
+       //pathdemos = pathconvert(SCI+"/modules/xpad/demos/xpad.dem.sce",%f,%t);
+       //add_demo(gettext('Xpad'),pathdemos);
+       //clear pathdemos;
+end
diff --git a/scilab/modules/xpad/includes/dynlib_xpad.h b/scilab/modules/xpad/includes/dynlib_xpad.h
new file mode 100644 (file)
index 0000000..476a058
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2009 - Allan CORNET
+* 
+* 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-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/ 
+#ifndef __DYNLIB_XPAD_H__
+#define __DYNLIB_XPAD_H__
+
+#ifdef _MSC_VER
+       #ifdef XPAD_EXPORTS
+               #define XPAD_IMPEXP __declspec(dllexport)
+       #else
+               #define XPAD_IMPEXP __declspec(dllimport)
+       #endif
+#else
+       #define XPAD_IMPEXP
+#endif
+
+#endif /* __DYNLIB_XPAD_H__ */
+/*--------------------------------------------------------------------------*/ 
diff --git a/scilab/modules/xpad/includes/gw_xpad.h b/scilab/modules/xpad/includes/gw_xpad.h
new file mode 100644 (file)
index 0000000..d05c0cf
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2009 - DIGITEO - Allan CORNET
+* 
+* 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-en.txt
+*
+*/
+
+#ifndef __GW_XPAD__
+#define __GW_XPAD__
+/*--------------------------------------------------------------------------*/
+#include "dynlib_xpad.h"
+/*--------------------------------------------------------------------------*/
+XPAD_IMPEXP int gw_xpad(void);
+XPAD_IMPEXP int sci_Xpad(char* fname, unsigned long l);
+/*--------------------------------------------------------------------------*/
+#endif /* __GW_XPAD__ */
+/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/xpad/license.txt b/scilab/modules/xpad/license.txt
new file mode 100644 (file)
index 0000000..393778b
--- /dev/null
@@ -0,0 +1,9 @@
+Copyright:
+Copyright (c) 2009 - DIGITEO
+
+License:
+This module must be used under the terms of the CeCILL.
+This module 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-en.txt
diff --git a/scilab/modules/xpad/macros/buildmacros.bat b/scilab/modules/xpad/macros/buildmacros.bat
new file mode 100644 (file)
index 0000000..f9bd674
--- /dev/null
@@ -0,0 +1,11 @@
+
+rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+rem Copyright (C) 2009 - DIGITEO
+rem
+rem This file must be used under the terms of the CeCILL.
+rem This source file is licensed as described in the file COPYING, which
+rem you should have received as part of this distribution.  The terms
+rem are also available at
+rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+
+@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
diff --git a/scilab/modules/xpad/macros/buildmacros.sce b/scilab/modules/xpad/macros/buildmacros.sce
new file mode 100644 (file)
index 0000000..38e1bea
--- /dev/null
@@ -0,0 +1,16 @@
+
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET <allan.cornet@inria.fr>
+//
+// 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-en.txt
+
+if (isdef('genlib') == %f) then
+  exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce');
+end
+
+// genlib("xpadlib","SCI/modules/xpad/macros",%f,%t);
+
diff --git a/scilab/modules/xpad/macros/cleanmacros.bat b/scilab/modules/xpad/macros/cleanmacros.bat
new file mode 100644 (file)
index 0000000..d8e26bf
--- /dev/null
@@ -0,0 +1,13 @@
+
+rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+rem Copyright (C) 2009 - DIGITEO
+rem
+rem This file must be used under the terms of the CeCILL.
+rem This source file is licensed as described in the file COPYING, which
+rem you should have received as part of this distribution.  The terms
+rem are also available at
+rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+
+@del *.bin 2>NUL
+@del lib 2>NUL
+@del names 2>NUL
diff --git a/scilab/modules/xpad/sci_gateway/c/gw_xpad.c b/scilab/modules/xpad/sci_gateway/c/gw_xpad.c
new file mode 100644 (file)
index 0000000..e4c32b1
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ *  Copyright (C) 2009 - DIGITEO - Allan CORNET
+ *
+ *  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-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#include "gw_xpad.h"
+#include "stack-c.h"
+#include "callFunctionFromGateway.h"
+#include "BOOL.h"
+#include "scilabmode.h"
+#include "localization.h"
+#include "Scierror.h"
+#include "BOOL.h"
+#include "loadOnUseClassPath.h"
+/*--------------------------------------------------------------------------*/
+static BOOL loadedDep = FALSE;
+/*--------------------------------------------------------------------------*/
+#define XPAD_TAB_SIZE 1
+static gw_generic_table Tab[XPAD_TAB_SIZE]={
+  {sci_Xpad, "Xpad"}
+};
+
+/*--------------------------------------------------------------------------*/
+int gw_xpad(void)
+{
+       Rhs = Max(0, Rhs);
+
+       if ( getScilabMode() == SCILAB_NWNI)
+       {
+               Scierror(999,_("Scilab '%s' module disabled in -nogui or -nwni mode."), "xpad");
+               return 0;
+       }
+
+       if (!loadedDep) 
+       {
+               loadOnUseClassPath("Xpad");
+               loadedDep = TRUE;
+       }
+       callFunctionFromGateway(Tab,XPAD_TAB_SIZE);
+       return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/xpad/sci_gateway/cpp/sci_Xpad.cpp b/scilab/modules/xpad/sci_gateway/cpp/sci_Xpad.cpp
new file mode 100644 (file)
index 0000000..b891b60
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2009 - DIGITEO - Allan CORNET
+*
+* 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-en.txt
+*
+*/
+/*--------------------------------------------------------------------------*/
+extern "C"
+{
+#include "gw_xpad.h"
+#include "stack-c.h"
+}
+/*--------------------------------------------------------------------------*/
+int sci_Xpad(char *fname,unsigned long fname_len)
+{
+       LhsVar(1) = 0;
+       PutLhsVar();
+       return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/xpad/sci_gateway/xpad_gateway.xml b/scilab/modules/xpad/sci_gateway/xpad_gateway.xml
new file mode 100644 (file)
index 0000000..9cf7183
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd">
+<GATEWAY name="xpad">
+<!-- =================== -->
+<!--
+ Scilab
+ Interface description. In this file, we define the list of the function which
+ will be available into Scilab and the link to the "native" function.
+
+ gatewayId is the position in the hashtable 'Interfaces' defined in the
+ file SCI/modules/core/src/c/callinterf.h
+
+ primitiveId is the position in the hashtable '<module>Table Tab[]' defined
+ in the file modules/<module>/sci_gateway/c/gw_<module>.c
+
+ primitiveName is the name of the Scilab function
+
+ @author Allan CORNET
+ @date DIGITEO 2009
+ ===================
+ Don't touch if you do not know what you are doing
+-->
+<!-- =================== -->
+
+<PRIMITIVE gatewayId="63" primitiveId="1" primitiveName="Xpad" />
+</GATEWAY>
diff --git a/scilab/modules/xpad/src/c/DllmainXPAD.c b/scilab/modules/xpad/src/c/DllmainXPAD.c
new file mode 100644 (file)
index 0000000..caf1f15
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan CORNET
+ * 
+ * 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-en.txt
+ *
+ */
+
+#include <windows.h> 
+/*--------------------------------------------------------------------------*/ 
+#pragma comment(lib,"../../../../bin/libintl.lib")
+/*--------------------------------------------------------------------------*/ 
+int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved)
+{
+       switch (reason) 
+       {
+       case DLL_PROCESS_ATTACH:
+               break;
+       case DLL_PROCESS_DETACH:
+               break;
+       case DLL_THREAD_ATTACH:
+               break;
+       case DLL_THREAD_DETACH:
+               break;
+       }
+       return 1;
+}
+/*--------------------------------------------------------------------------*/ 
+
diff --git a/scilab/modules/xpad/src/c/LibScilab_Import.def b/scilab/modules/xpad/src/c/LibScilab_Import.def
new file mode 100644 (file)
index 0000000..adcdefd
--- /dev/null
@@ -0,0 +1,10 @@
+LIBRARY    LibScilab.dll
+
+
+EXPORTS
+;
+callFunctionFromGateway
+putlhsvar_
+intersci_
+getScilabMode
+com_
\ No newline at end of file
diff --git a/scilab/modules/xpad/src/c/xpad.vcproj b/scilab/modules/xpad/src/c/xpad.vcproj
new file mode 100644 (file)
index 0000000..9f428d0
--- /dev/null
@@ -0,0 +1,437 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="9,00"
+       Name="xpad"
+       ProjectGUID="{BAE68B54-2C1A-44D0-A0E9-05156A784E79}"
+       RootNamespace="xpad"
+       Keyword="Win32Proj"
+       TargetFrameworkVersion="0"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+               <Platform
+                       Name="x64"
+               />
+       </Platforms>
+       <ToolFiles>
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="2"
+                       CharacterSet="2"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=".;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../includes;../../../../libs/MALLOC/includes;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../output_stream/includes;../cpp"
+                               PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;XPAD_EXPORTS"
+                               MinimalRebuild="true"
+                               BasicRuntimeChecks="0"
+                               RuntimeLibrary="3"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="false"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                               Description="Make dependencies"
+                               CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalDependencies="..\..\..\..\bin\scilocalization.lib libscilab.lib"
+                               OutputFile="../../../../bin/$(ProjectName).dll"
+                               LinkIncremental="1"
+                               ModuleDefinitionFile=""
+                               GenerateDebugInformation="true"
+                               SubSystem="2"
+                               RandomizedBaseAddress="1"
+                               DataExecutionPrevention="0"
+                               ImportLibrary="../../../../bin/$(ProjectName).lib"
+                               TargetMachine="1"
+                               CLRUnmanagedCodeCheck="true"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Debug|x64"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="2"
+                       CharacterSet="2"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               TargetEnvironment="3"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               AdditionalIncludeDirectories=".;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../includes;../../../../libs/MALLOC/includes;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../output_stream/includes;../cpp"
+                               PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;XPAD_EXPORTS"
+                               MinimalRebuild="true"
+                               BasicRuntimeChecks="0"
+                               RuntimeLibrary="3"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="false"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                               Description="Make dependencies"
+                               CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;&#x0D;&#x0A;"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalDependencies="libscilab.lib"
+                               OutputFile="../../../../bin/$(ProjectName).dll"
+                               LinkIncremental="1"
+                               ModuleDefinitionFile=""
+                               GenerateDebugInformation="true"
+                               SubSystem="2"
+                               RandomizedBaseAddress="1"
+                               DataExecutionPrevention="0"
+                               ImportLibrary="../../../../bin/$(ProjectName).lib"
+                               TargetMachine="17"
+                               CLRUnmanagedCodeCheck="true"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="2"
+                       CharacterSet="2"
+                       WholeProgramOptimization="0"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               InlineFunctionExpansion="1"
+                               FavorSizeOrSpeed="1"
+                               WholeProgramOptimization="false"
+                               AdditionalIncludeDirectories=".;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../includes;../../../../libs/MALLOC/includes;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../output_stream/includes;../cpp"
+                               PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;XPAD_EXPORTS"
+                               StringPooling="true"
+                               RuntimeLibrary="2"
+                               EnableEnhancedInstructionSet="0"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="false"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                               Description="Make dependencies"
+                               CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalDependencies="..\..\..\..\bin\scilocalization.lib libscilab.lib"
+                               OutputFile="../../../../bin/$(ProjectName).dll"
+                               LinkIncremental="1"
+                               ModuleDefinitionFile="xpad.def"
+                               GenerateDebugInformation="false"
+                               SubSystem="2"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                               LinkTimeCodeGeneration="0"
+                               RandomizedBaseAddress="1"
+                               DataExecutionPrevention="0"
+                               ImportLibrary="../../../../bin/$(ProjectName).lib"
+                               TargetMachine="1"
+                               CLRUnmanagedCodeCheck="true"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|x64"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="2"
+                       CharacterSet="2"
+                       WholeProgramOptimization="0"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                               TargetEnvironment="3"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               InlineFunctionExpansion="1"
+                               FavorSizeOrSpeed="1"
+                               WholeProgramOptimization="false"
+                               AdditionalIncludeDirectories=".;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../includes;../../../../libs/MALLOC/includes;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../output_stream/includes;../cpp"
+                               PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;XPAD_EXPORTS"
+                               StringPooling="true"
+                               RuntimeLibrary="2"
+                               EnableEnhancedInstructionSet="0"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="false"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                               Description="Make dependencies"
+                               CommandLine="lib /DEF:&quot;$(InputDir)LibScilab_Import.def&quot; /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:&quot;$(InputDir)LibScilab.lib&quot; 1&gt;NUL 2&gt;NUL&#x0D;&#x0A;&#x0D;&#x0A;"
+                       />
+                       <Tool
+                               Name="VCLinkerTool"
+                               AdditionalDependencies="libscilab.lib"
+                               OutputFile="../../../../bin/$(ProjectName).dll"
+                               LinkIncremental="1"
+                               ModuleDefinitionFile="xpad.def"
+                               GenerateDebugInformation="false"
+                               SubSystem="2"
+                               OptimizeReferences="2"
+                               EnableCOMDATFolding="2"
+                               LinkTimeCodeGeneration="0"
+                               RandomizedBaseAddress="1"
+                               DataExecutionPrevention="0"
+                               ImportLibrary="../../../../bin/$(ProjectName).lib"
+                               TargetMachine="17"
+                               CLRUnmanagedCodeCheck="true"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCManifestTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCAppVerifierTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+       </Configurations>
+       <References>
+       </References>
+       <Files>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+                       >
+                       <File
+                               RelativePath=".\DllmainXPAD.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="..\..\sci_gateway\c\gw_xpad.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath="..\..\sci_gateway\cpp\sci_Xpad.cpp"
+                               >
+                       </File>
+               </Filter>
+               <Filter
+                       Name="Header Files"
+                       Filter="h;hpp;hxx;hm;inl"
+                       >
+                       <File
+                               RelativePath="..\..\includes\dynlib_xpad.h"
+                               >
+                       </File>
+                       <File
+                               RelativePath="..\..\includes\gw_xpad.h"
+                               >
+                       </File>
+               </Filter>
+               <Filter
+                       Name="localization"
+                       >
+                       <File
+                               RelativePath="..\..\locales\en_US\messages.pot"
+                               >
+                       </File>
+               </Filter>
+               <Filter
+                       Name="Libraries Dependencies"
+                       >
+                       <Filter
+                               Name="Imports"
+                               >
+                               <File
+                                       RelativePath=".\LibScilab_Import.def"
+                                       >
+                               </File>
+                       </Filter>
+               </Filter>
+               <File
+                       RelativePath="..\..\Makefile.am"
+                       >
+               </File>
+               <File
+                       RelativePath="..\..\version.xml"
+                       >
+               </File>
+               <File
+                       RelativePath="..\..\xpad.iss"
+                       >
+               </File>
+               <File
+                       RelativePath="..\..\sci_gateway\xpad_gateway.xml"
+                       >
+               </File>
+       </Files>
+       <Globals>
+       </Globals>
+</VisualStudioProject>
diff --git a/scilab/modules/xpad/src/java/org/scilab/modules/xpad/XPad.java b/scilab/modules/xpad/src/java/org/scilab/modules/xpad/XPad.java
new file mode 100644 (file)
index 0000000..e5ab043
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Bruno JOFRET
+ *
+ * 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-en.txt
+ *
+ */
+
+package org.scilab.modules.xpad;
+
+import javax.swing.JTextPane;
+
+public class XPad extends JTextPane { 
+
+    public static void main(String[] args) {
+    }
+    
+    public XPad() {
+    }
+}
diff --git a/scilab/modules/xpad/src/java/xpad-JAVA.vcproj b/scilab/modules/xpad/src/java/xpad-JAVA.vcproj
new file mode 100644 (file)
index 0000000..3c0eef6
--- /dev/null
@@ -0,0 +1,963 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="9,00"
+       Name="xpad-Ant"
+       ProjectGUID="{43B095CB-B86C-44CB-BCE8-87FE8E7D2A0E}"
+       RootNamespace="xpad-Ant"
+       Keyword="MakeFileProj"
+       TargetFrameworkVersion="0"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+               <Platform
+                       Name="x64"
+               />
+       </Platforms>
+       <ToolFiles>
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="0"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;"
+                               Output=""
+                               PreprocessorDefinitions="WIN32;_DEBUG"
+                               IncludeSearchPath=""
+                               ForcedIncludes=""
+                               AssemblySearchPath=""
+                               ForcedUsingAssemblies=""
+                               CompileAsManaged=""
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Debug|x64"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="0"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;"
+                               Output=""
+                               PreprocessorDefinitions="WIN32;_DEBUG"
+                               IncludeSearchPath=""
+                               ForcedIncludes=""
+                               AssemblySearchPath=""
+                               ForcedUsingAssemblies=""
+                               CompileAsManaged=""
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="0"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;"
+                               Output=""
+                               PreprocessorDefinitions="WIN32;NDEBUG"
+                               IncludeSearchPath=""
+                               ForcedIncludes=""
+                               AssemblySearchPath=""
+                               ForcedUsingAssemblies=""
+                               CompileAsManaged=""
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|x64"
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+                       IntermediateDirectory="$(ConfigurationName)"
+                       ConfigurationType="0"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               ReBuildCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant&#x0D;&#x0A;"
+                               CleanCommandLine="set JAVA_HOME=$(SolutionDir)\java\jdk&#x0D;&#x0A;set PATH=$(SolutionDir)\java\ant\bin;%PATH%;&#x0D;&#x0A;cd ..\..&#x0D;&#x0A;call ant clean&#x0D;&#x0A;"
+                               Output=""
+                               PreprocessorDefinitions="WIN32;NDEBUG"
+                               IncludeSearchPath=""
+                               ForcedIncludes=""
+                               AssemblySearchPath=""
+                               ForcedUsingAssemblies=""
+                               CompileAsManaged=""
+                       />
+               </Configuration>
+       </Configurations>
+       <References>
+       </References>
+       <Files>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+                       >
+                       <Filter
+                               Name="brigde"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\bridge\CallScilabBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\bridge\ScilabBridge.java"
+                                       >
+                               </File>
+                               <Filter
+                                       Name="canvas"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\canvas\SwingScilabCanvas.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="checkbox"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\checkbox\SwingScilabCheckBox.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="console"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\console\SwingScilabConsole.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="editbox"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\editbox\SwingScilabEditBox.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="filechooser"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\filechooser\SwingScilabFileChooser.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="frame"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\frame\SwingScilabFrame.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="label"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\label\SwingScilabLabel.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="layout"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\layout\SwingScilabBorderLayout.java"
+                                               >
+                                       </File>
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\layout\SwingScilabFlowLayout.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="listbox"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\listbox\SwingScilabListBox.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="menu"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\menu\SwingScilabMenu.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="menubar"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\menubar\SwingScilabMenuBar.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="menuitem"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\menuitem\SwingScilabMenuItem.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="popupmenu"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\popupmenu\SwingScilabPopupMenu.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="pushbutton"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\pushbutton\SwingScilabPushButton.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="radiobutton"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\radiobutton\SwingScilabRadioButton.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="radiogroup"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\radiogroup\SwingScilabRadioGroup.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="separator"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\separator\SwingScilabSeparator.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="slider"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\slider\SwingScilabSlider.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="tab"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\tab\SwingScilabTab.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="textbox"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\textbox\SwingScilabTextBox.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="toolbar"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\toolbar\SwingScilabToolBar.java"
+                                               >
+                                       </File>
+                               </Filter>
+                               <Filter
+                                       Name="window"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\bridge\window\SwingScilabWindow.java"
+                                               >
+                                       </File>
+                               </Filter>
+                       </Filter>
+                       <Filter
+                               Name="canvas"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\canvas\Canvas.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\canvas\ScilabCanvas.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\canvas\ScilabCanvasBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\canvas\SimpleCanvas.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="checkbox"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\checkbox\CheckBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\checkbox\ScilabCheckBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\checkbox\ScilabCheckBoxBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\checkbox\SimpleCheckBox.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="console"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\console\Console.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\console\ScilabConsole.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\console\ScilabConsoleBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\console\SimpleConsole.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="container"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\container\Container.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\container\ScilabContainer.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="dockable"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\dockable\Dockable.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\dockable\ScilabDockable.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="editbox"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\editbox\EditBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\editbox\ScilabEditBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\editbox\ScilabEditBoxBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\editbox\SimpleEditBox.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="events"
+                               >
+                               <Filter
+                                       Name="callback"
+                                       >
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\events\callback\CallBack.java"
+                                               >
+                                       </File>
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\events\callback\JavaCallBack.java"
+                                               >
+                                       </File>
+                                       <File
+                                               RelativePath=".\org\scilab\modules\xpad\events\callback\ScilabCallBack.java"
+                                               >
+                                       </File>
+                               </Filter>
+                       </Filter>
+                       <Filter
+                               Name="filechooser"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\filechooser\FileChooser.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\filechooser\ScilabFileChooser.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\filechooser\ScilabFileChooserBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\filechooser\SimpleFileChooser.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="frame"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\frame\Frame.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\frame\ScilabFrame.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\frame\ScilabFrameBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\frame\SimpleFrame.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="graphicWindow"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\graphicWindow\ScilabGraphicWindow.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\graphicWindow\ScilabRendererProperties.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="label"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\label\Label.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\label\ScilabLabel.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\label\ScilabLabelBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\label\SimpleLabel.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="layout"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\BorderLayout.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\FlowLayout.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\LayoutManager.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\ScilabBorderLayout.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\ScilabBorderLayoutBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\ScilabFlowLayout.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\layout\ScilabFlowLayoutBridge.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="listbox"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\listbox\ListBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\listbox\ScilabListBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\listbox\ScilabListBoxBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\listbox\SimpleListBox.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="menu"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menu\Menu.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menu\ScilabMenu.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menu\ScilabMenuBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menu\SimpleMenu.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="menubar"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menubar\MenuBar.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menubar\ScilabMenuBar.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menubar\ScilabMenuBarBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menubar\SimpleMenuBar.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="menuitem"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menuitem\MenuItem.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menuitem\ScilabMenuItem.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menuitem\ScilabMenuItemBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\menuitem\SimpleMenuItem.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="popupmenu"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\popupmenu\PopupMenu.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\popupmenu\ScilabPopupMenu.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\popupmenu\ScilabPopupMenuBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\popupmenu\SimplePopupMenu.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="pushbutton"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\pushbutton\PushButton.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\pushbutton\ScilabPushButton.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\pushbutton\ScilabPushButtonBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\pushbutton\SimplePushButton.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="radiobutton"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiobutton\RadioButton.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiobutton\ScilabRadioButton.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiobutton\ScilabRadioButtonBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiobutton\SimpleRadioButton.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="radiogroup"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiogroup\RadioGroup.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\radiogroup\ScilabRadioGroupBridge.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="separator"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\separator\ScilabSeparator.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\separator\ScilabSeparatorBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\separator\Separator.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="slider"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\slider\ScilabSlider.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\slider\ScilabSliderBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\slider\SimpleSlider.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\slider\Slider.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="tab"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\tab\ScilabTab.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\tab\ScilabTabBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\tab\SimpleTab.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\tab\Tab.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="text"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\text\ScilabText.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\text\SimpleText.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\text\Text.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="textbox"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\textbox\ScilabTextBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\textbox\ScilabTextBoxBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\textbox\SimpleTextBox.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\textbox\TextBox.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="toolbar"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\toolbar\ScilabToolBar.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\toolbar\ScilabToolBarBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\toolbar\SimpleToolBar.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\toolbar\ToolBar.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="uielement"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\uielement\ScilabUIElement.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\uielement\SimpleUIElement.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\uielement\UIElement.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="utils"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\BarUpdater.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ConfigManager.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ImageExporter.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ImageExportRenderer.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\Layout.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\LookAndFeelManager.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\MenuBarBuilder.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\MenuBarConfiguration.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\Position.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\PositionConverter.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\PrinterHelper.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\PrinterWriter.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\SciActionListener.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\SciDockingListener.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\SciFileFilter.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ScilabAlignment.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ScilabPrint.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ScilabRelief.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ScilabSwingUtilities.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ScilabWidgetBorder.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\SciTranslator.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\SciUndockingAction.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\Size.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ToolBarBuilder.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\ToolBarConfiguration.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\UIElementMapper.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\utils\WebBrowser.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="widget"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\widget\ScilabWidget.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\widget\Widget.java"
+                                       >
+                               </File>
+                       </Filter>
+                       <Filter
+                               Name="window"
+                               >
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\window\ScilabWindow.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\window\ScilabWindowBridge.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\window\SimpleWindow.java"
+                                       >
+                               </File>
+                               <File
+                                       RelativePath=".\org\scilab\modules\xpad\window\Window.java"
+                                       >
+                               </File>
+                       </Filter>
+               </Filter>
+               <File
+                       RelativePath="..\..\build.xml"
+                       >
+               </File>
+       </Files>
+       <Globals>
+       </Globals>
+</VisualStudioProject>
diff --git a/scilab/modules/xpad/src/noxpad/noxpad.c b/scilab/modules/xpad/src/noxpad/noxpad.c
new file mode 100644 (file)
index 0000000..f3e3aba
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan CORNET
+ * 
+ * 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-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#include "noxpad.h"
+#include "Scierror.h"
+#include "localization.h"
+/*--------------------------------------------------------------------------*/
+int gw_xpad(void)
+{
+       Scierror(999,_("Scilab '%s' module not installed.\n"), "xpad");
+       return 0;
+}
+/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/xpad/src/noxpad/noxpad.h b/scilab/modules/xpad/src/noxpad/noxpad.h
new file mode 100644 (file)
index 0000000..da0af03
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan CORNET
+ * 
+ * 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-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+/**
+ * This function is a wrapper / fake when Scilab is compiled without xpad
+ *
+ * @return 0
+ */
+int gw_xpad(void);
+/*--------------------------------------------------------------------------*/
diff --git a/scilab/modules/xpad/version.xml b/scilab/modules/xpad/version.xml
new file mode 100644 (file)
index 0000000..f18953a
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan CORNET
+ * Scilab
+ * Defines the version of a module
+ * 
+ * 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-en.txt
+ *
+ -->
+
+<!DOCTYPE MODULE_VERSION SYSTEM "../core/xml/version.dtd">
+<MODULE_VERSION name="xpad">
+
+<VERSION major="5" minor="2" maintenance="0" revision="0" string="unstable-git" />
+</MODULE_VERSION>
diff --git a/scilab/modules/xpad/xpad.iss b/scilab/modules/xpad/xpad.iss
new file mode 100644 (file)
index 0000000..54248ac
--- /dev/null
@@ -0,0 +1,40 @@
+;##############################################################################################################
+; Scilab ( http://mwww.scilab.org/ ) - This file is part of Scilab
+; Copyright (C) 2009 - DIGITEO - llan CORNET
+;
+; 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-en.txt
+;##############################################################################################################
+;--------------------------------------------------------------------------------------------------------------
+; xpad module
+;--------------------------------------------------------------------------------------------------------------
+;
+#define XPAD "xpad"
+;
+Source: bin\xpad.dll; DestDir: {app}\bin; Components: {#COMPN_XPAD}
+;
+Source: modules\{#XPAD}\jar\org.scilab.modules.xpad.jar; DestDir: {app}\modules\{#XPAD}\jar; Components: {#COMPN_XPAD}
+;
+Source: modules\{#XPAD}\VERSION.xml; DestDir: {app}\modules\{#XPAD}; Components: {#COMPN_XPAD}
+Source: modules\{#XPAD}\readme.txt; DestDir: {app}\modules\{#XPAD}; Components: {#COMPN_XPAD}
+Source: modules\{#XPAD}\license.txt; DestDir: {app}\modules\{#XPAD}; Components: {#COMPN_XPAD}
+Source: modules\{#XPAD}\changelog.txt; DestDir: {app}\modules\{#XPAD}; Components: {#COMPN_XPAD}
+;
+Source: modules\{#XPAD}\sci_gateway\xpad_gateway.xml; DestDir: {app}\modules\{#XPAD}\sci_gateway; Components: {#COMPN_XPAD}
+;
+Source: modules\{#XPAD}\etc\{#XPAD}.quit; DestDir: {app}\modules\{#XPAD}\etc; Components: {#COMPN_XPAD}
+Source: modules\{#XPAD}\etc\{#XPAD}.start; DestDir: {app}\modules\{#XPAD}\etc; Components: {#COMPN_XPAD}
+;
+;Source: modules\{#XPAD}\help\addchapter.sce; DestDir: {app}\modules\{#XPAD}\help; Flags: recursesubdirs; Components:  {#COMPN_XPAD}
+;
+Source: modules\{#XPAD}\includes\*.h; DestDir: {app}\modules\{#XPAD}\includes; Components: {#COMPN_XPAD}
+;
+;
+;Source: modules\{#XPAD}\demos\*.*; DestDir: {app}\modules\{#XPAD}\demos; Flags: recursesubdirs; Components: {#COMPN_XPAD}
+;
+;Source: modules\{#XPAD}\tests\*.*; DestDir: {app}\modules\{#XPAD}\tests; Flags: recursesubdirs; Components: {#COMPN_XPAD} and {#COMPN_TESTS}
+;
+;--------------------------------------------------------------------------------------------------------------
index f53c9ea..4ae4add 100644 (file)
@@ -54,3 +54,6 @@ library.javasci.name=javasci.jar
 
 library.hdf5.dir=${modules.dir}/hdf5/${build.jar.dir}/
 library.hdf5.name=org.scilab.modules.hdf5.jar
+
+library.xpad.dir=${modules.dir}/xpad/${build.jar.dir}/
+library.xpad.name=org.scilab.modules.xpad.jar
index 4df7ecb..7493fbc 100644 (file)
@@ -56,3 +56,6 @@ library.graphic_export.name=org.scilab.modules.graphic_export.jar
 
 library.hdf5.dir=${modules.dir}/hdf5/${build.jar.dir}/
 library.hdf5.name=org.scilab.modules.hdf5.jar
+
+library.xpad.dir=${modules.dir}/xpad/${build.jar.dir}/
+library.xpad.name=org.scilab.modules.xpad.jar