blob: 10acf0917f7be71ff6b58bbb921fdd62c710ed1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
// Copyright (C) 2008 - INRIA
// Copyright (C) 2009 - DIGITEO
// This file is released under the 3-clause BSD license. See COPYING-BSD.
function test_toolboxlib = startModule()
TOOLBOX_NAME = "test_toolbox";
TOOLBOX_TITLE = "test_toolbox";
mprintf("Start " + TOOLBOX_TITLE + "\n");
if isdef("test_toolboxlib") then
warning("scilab_toolbox library is already loaded");
return;
end
etc_tlbx = get_absolute_file_path("test_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();
test_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
|