summaryrefslogtreecommitdiff
path: root/etc/FOSSEE_Communication_Systems_Toolbox.start
diff options
context:
space:
mode:
authorrupak2020-01-21 15:20:25 +0530
committerrupak2020-01-21 15:20:25 +0530
commit36aca8aaaee5cf8cb5452268fd07c0b558b000a3 (patch)
tree97a39a1561849978ea3d45228d3a51c74bc46ac0 /etc/FOSSEE_Communication_Systems_Toolbox.start
parent777c4c1cc8e7d2632149bd87b79e60fd2f0e7e50 (diff)
downloadFOSSEE-Communication-Systems-Toolbox-36aca8aaaee5cf8cb5452268fd07c0b558b000a3.tar.gz
FOSSEE-Communication-Systems-Toolbox-36aca8aaaee5cf8cb5452268fd07c0b558b000a3.tar.bz2
FOSSEE-Communication-Systems-Toolbox-36aca8aaaee5cf8cb5452268fd07c0b558b000a3.zip
created a scilab toolbox structure
Diffstat (limited to 'etc/FOSSEE_Communication_Systems_Toolbox.start')
-rw-r--r--etc/FOSSEE_Communication_Systems_Toolbox.start65
1 files changed, 65 insertions, 0 deletions
diff --git a/etc/FOSSEE_Communication_Systems_Toolbox.start b/etc/FOSSEE_Communication_Systems_Toolbox.start
new file mode 100644
index 0000000..6f6b455
--- /dev/null
+++ b/etc/FOSSEE_Communication_Systems_Toolbox.start
@@ -0,0 +1,65 @@
+// Copyright (C) 2008 - INRIA
+// Copyright (C) 2009 - DIGITEO
+
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function scilab_toolboxlib = startModule()
+
+ TOOLBOX_NAME = "FOSSEE_Communication_Systems_Toolbox";
+ TOOLBOX_TITLE = "FOSSEE_Communication_Systems_Toolbox";
+
+ mprintf("Start " + TOOLBOX_TITLE + "\n");
+
+ if isdef("FOSSEE_Communication_Systems_Toolboxlib") then
+ warning("FOSSEE_Communication_Systems_Toolbox library is already loaded");
+ return;
+ end
+
+ etc_tlbx = get_absolute_file_path("FOSSEE_Communication_Systems_Toolbox.start");
+ etc_tlbx = getshortpathname(etc_tlbx);
+ root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
+
+//Load functions library
+// =============================================================================
+ mprintf("\tLoad macros\n");
+ pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
+ scilab_toolboxlib = lib(pathmacros);
+
+// load gateways and Java libraries
+// =============================================================================
+// verboseMode = ilib_verbose();
+// ilib_verbose(0);
+// mprintf("\tLoad gateways\n");
+// exec(pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f));
+
+// load localization
+ addlocalizationdomain(TOOLBOX_NAME, root_tlbx + "/locales");
+
+// Load and add help chapter
+// =============================================================================
+ if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad help\n");
+ path_addchapter = pathconvert(root_tlbx+"/jar");
+ if ( isdir(path_addchapter) <> [] ) then
+ add_help_chapter(TOOLBOX_NAME, path_addchapter, %F);
+ end
+ end
+
+// Load demos
+// =============================================================================
+// if or(getscilabmode() == ["NW";"STD"]) then
+// mprintf("\tLoad demos\n");
+// pathdemos = pathconvert(root_tlbx+"/demos/scilab_toolbox.dem.gateway.sce", %F, %T);
+// add_demo(TOOLBOX_TITLE, pathdemos);
+// end
+
+// Load Preferences GUI
+// =============================================================================
+ // if getscilabmode() == "STD" then
+ // addModulePreferences(TOOLBOX_TITLE, root_tlbx, etc_tlbx + "scilab_toolbox_preferences.xml");
+// end
+
+endfunction
+
+scilab_toolboxlib = startModule();
+clear startModule; // remove startModule on stack