summaryrefslogtreecommitdiffstats
path: root/scilab/modules/compatibility_functions/macros/mtlb_get.sci
blob: 3252e9f120e06244cb1fa7b46dcaea32d12b3a7d (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) ???? - INRIA - Scilab
// 
// 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

function v=mtlb_get(H,property)

[lhs,rhs]=argn()
win=xget('window')
xset('window',h)
if rhs==1 then
else
  v=[]
  select convstr(property)
  case 'backingstore' then
  case 'color' then
  case 'colormap' then
    v=xget('colormap')
  case 'currentaxes' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'currentcharacter' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'currentmenu' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'currentobject' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'currentpoint' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'fixedcolors' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'inverthardcopy' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'keypressfcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'menubar' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'mincolormap' then
    v=xget('colormap')
    v=size(v,1)
  case 'name' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'nextplot' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'numbertitle' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'paperunits' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'paperorientation' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'paperposition' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'papersize' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'papertype' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'pointer' then
    v='arrow'
  case 'position' then
    o=xget('wpos')
    sz=xget('wdim')
    v=[o(:);sz(:)]'
  case 'resize' then
    v='on'
  case 'resizefcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'selectiontype' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'sharecolors' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'units' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'windowbuttondownfcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'windowbuttonmotionfcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'windowbuttonupfcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'buttondownfcn' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'children' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'clipping' then
    v=xget('clipping')
    if v(1)<>0 then v='on',else v='off',end
  case 'interruptible' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'parent' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'type' then
    v='figure'
  case 'userdata' then
    error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
  case 'visible' then    
    v='on'
  end   
end
xset('window',win)
endfunction