summaryrefslogtreecommitdiff
path: root/modules/preferences/includes
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/preferences/includes
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/preferences/includes')
-rwxr-xr-xmodules/preferences/includes/dynlib_preferences_scilab.h28
-rwxr-xr-xmodules/preferences/includes/getScilabPreference.h61
-rwxr-xr-xmodules/preferences/includes/gw_preferences.h24
3 files changed, 113 insertions, 0 deletions
diff --git a/modules/preferences/includes/dynlib_preferences_scilab.h b/modules/preferences/includes/dynlib_preferences_scilab.h
new file mode 100755
index 000000000..b95bed147
--- /dev/null
+++ b/modules/preferences/includes/dynlib_preferences_scilab.h
@@ -0,0 +1,28 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2011 - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __DYNLIB_PREFERENCES_SCILAB_H__
+#define __DYNLIB_PREFERENCES_SCILAB_H__
+
+#ifdef _MSC_VER
+#ifdef PREFERENCES_SCILAB_EXPORTS
+#define PREFERENCES_SCILAB_IMPEXP __declspec(dllexport)
+#else
+#define PREFERENCES_SCILAB_IMPEXP __declspec(dllimport)
+#endif
+#else
+#define PREFERENCES_SCILAB_IMPEXP
+#endif
+
+#endif /* __DYNLIB_PREFERENCES_SCILAB_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/preferences/includes/getScilabPreference.h b/modules/preferences/includes/getScilabPreference.h
new file mode 100755
index 000000000..15cb5a051
--- /dev/null
+++ b/modules/preferences/includes/getScilabPreference.h
@@ -0,0 +1,61 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __GETSCILABPREFERENCES_H__
+#define __GETSCILABPREFERENCES_H__
+
+#include "dynlib_preferences_scilab.h"
+
+typedef struct
+{
+ const char * heapSize;
+ const char * adaptToDisplay;
+ const char * columnsToDisplay;
+ const char * linesToDisplay;
+ const char * historySaveAfter;
+ const char * historyFile;
+ const char * historyLines;
+ const char * historyEnable;
+ const char * ieee;
+ const char * format;
+ const char * formatWidth;
+ const char * language;
+ const char * startup_dir_use;
+ const char * startup_dir_default;
+ const char * startup_dir_previous;
+} ScilabPreferences;
+
+#define HEAPSIZE_XPATH (const xmlChar*)"//general/body/java-heap-memory/@heap-size"
+#define ADAPTTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@adapt-to-display"
+#define COLUMNSTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@columns-to-display"
+#define LINESTODISPLAY_XPATH (const xmlChar*)"//console/body/display/@lines-to-display"
+#define HISTORYSAVEAFTER_XPATH (const xmlChar*)"//command-history/body/history-save/@after"
+#define HISTORYFILE_XPATH (const xmlChar*)"//command-history/body/history-settings/@history-file"
+#define HISTORYLINES_XPATH (const xmlChar*)"//command-history/body/history-settings/@history-lines"
+#define HISTORYENABLE_XPATH (const xmlChar*)"//command-history/body/history-settings/@enable"
+#define IEEE_XPATH (const xmlChar*)"//general/body/environment/@fpe"
+#define FORMAT_XPATH (const xmlChar*)"//general/body/environment/@printing-format"
+#define FORMATWIDTH_XPATH (const xmlChar*)"//general/body/environment/@width"
+#define LANGUAGE_XPATH (const xmlChar*)"//general/body/languages/@lang"
+#define STARTUP_DIR_USE_XPATH (const xmlChar*)"//general/body/startup/@use"
+#define STARTUP_DIR_DEFAULT_XPATH (const xmlChar*)"//general/body/startup/@default"
+#define STARTUP_DIR_PREVIOUS_XPATH (const xmlChar*)"//general/body/startup/@previous"
+
+PREFERENCES_SCILAB_IMPEXP const ScilabPreferences * getScilabPreferences(void);
+PREFERENCES_SCILAB_IMPEXP void reloadScilabPreferences(void);
+PREFERENCES_SCILAB_IMPEXP void clearScilabPreferences(void);
+PREFERENCES_SCILAB_IMPEXP char * getPrefAttributeValue(const char * xpath, const char * attribute);
+PREFERENCES_SCILAB_IMPEXP char ** getPrefAttributesValues(const char * xpath, const char ** attributes, const unsigned int attrLen);
+PREFERENCES_SCILAB_IMPEXP void setAttributesValues(const char * xpath, const char ** attributes, const unsigned int kvLen);
+PREFERENCES_SCILAB_IMPEXP void setPrefAttributesValues(const char * xpath, const char ** kv, const unsigned int kvLen);
+
+#endif // __GETSCILABPREFERENCES_H__
diff --git a/modules/preferences/includes/gw_preferences.h b/modules/preferences/includes/gw_preferences.h
new file mode 100755
index 000000000..31ebdf17c
--- /dev/null
+++ b/modules/preferences/includes/gw_preferences.h
@@ -0,0 +1,24 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2011 - DIGITEO - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+#ifndef __GW_PREFERENCES__
+#define __GW_PREFERENCES__
+/*--------------------------------------------------------------------------*/
+#include "dynlib_preferences_scilab.h"
+/*--------------------------------------------------------------------------*/
+PREFERENCES_SCILAB_IMPEXP int gw_preferences(void);
+int sci_addModulePreferences(char * fname, unsigned long l);
+int sci_removeModulePreferences(char * fname, unsigned long l);
+int sci_preferences(char * fname, unsigned long l);
+/*--------------------------------------------------------------------------*/
+#endif /* __GW_PREFERENCES__ */
+/*--------------------------------------------------------------------------*/