* Bug 15067 fixed: adds D&D of XMI files
[scilab.git] / scilab / modules / graphics / macros / datatips / datatipSetGUI.sci
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2010 - INRIA - Serge Steer <serge.steer@inria.fr>
3 //
4 // Copyright (C) 2012 - 2016 - Scilab Enterprises
5 //
6 // This file is hereby licensed under the terms of the GNU GPL v2.0,
7 // pursuant to article 5.3.4 of the CeCILL v.2.1.
8 // This file was originally licensed under the terms of the CeCILL v2.1,
9 // and continues to be available under such terms.
10 // For more information, see the COPYING file which you should have received
11 // along with this program.
12 function datatipSetGUI()
13     global datatipGUIwin
14     if datatipGUIwin==[] then return,end
15     global datatipGUIHandles datatipGUICurve
16     ud=datatipGetStruct(datatipGUICurve)
17     if typeof(ud)<>"datatips" then
18         //no datatips structure yet, initialize it
19         ud=datatipGetStruct(curve)
20     end
21     style=ud.style
22     if style(1)==1 then
23         datatipGUIHandles(1,1).value=1
24         datatipGUIHandles(1,2).value=0
25     else
26         datatipGUIHandles(1,1).value=0
27         datatipGUIHandles(1,2).value=1
28     end
29     if style(3)==1 then
30         datatipGUIHandles(2,1).value=1
31         datatipGUIHandles(2,2).value=0
32     else
33         datatipGUIHandles(2,1).value=0
34         datatipGUIHandles(2,2).value=1
35     end
36     if style(2)==1 then
37         datatipGUIHandles(3,1).value=1
38         datatipGUIHandles(3,2).value=0
39     else
40         datatipGUIHandles(3,1).value=0
41         datatipGUIHandles(3,2).value=1
42     end
43     if ~ud.interpolate then
44         datatipGUIHandles(4,1).value=1
45         datatipGUIHandles(4,2).value=0
46     else
47         datatipGUIHandles(4,1).value=0
48         datatipGUIHandles(4,2).value=1
49     end
50     if ~ud.replace then
51         datatipGUIHandles(5,1).value=1
52         datatipGUIHandles(5,2).value=0
53     else
54         datatipGUIHandles(5,1).value=0
55         datatipGUIHandles(5,2).value=1
56     end
57 endfunction
58
59