root / trunk / extensions / extCAD / sm / ArcCADTool.sm @ 3883
History | View | Annotate | Download (973 Bytes)
1 |
// -*- tab-width: 4; -*- |
---|---|
2 |
|
3 |
%{ |
4 |
// |
5 |
// Vicente Caballero Navarro |
6 |
%} |
7 |
|
8 |
%start ExecuteMap::Initial |
9 |
%class ArcCADTool |
10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 |
%import com.iver.cit.gvsig.gui.cad.tools.ArcCADTool |
12 |
|
13 |
%map ExecuteMap |
14 |
%% |
15 |
// A task begins life in suspended animation. |
16 |
|
17 |
Initial |
18 |
|
19 |
Entry { |
20 |
setQuestion("ARCO" + "\n"+ |
21 |
"Insertar primer punto"); |
22 |
setDescription(new String[]{"Cancelar"}); |
23 |
} |
24 |
Exit{ |
25 |
} |
26 |
|
27 |
{ |
28 |
addPoint( pointX:double,pointY:double) |
29 |
First { |
30 |
setQuestion("Insertar segundo punto"); |
31 |
setDescription(new String[]{"Cancelar"}); |
32 |
addPoint( pointX,pointY); |
33 |
} |
34 |
|
35 |
} |
36 |
First{ |
37 |
addPoint( pointX:double,pointY:double) |
38 |
Second { |
39 |
setQuestion("Insertar ultimo punto"); |
40 |
setDescription(new String[]{"Cancelar"}); |
41 |
addPoint( pointX,pointY); |
42 |
} |
43 |
} |
44 |
Second{ |
45 |
addPoint( pointX:double,pointY:double) |
46 |
Third { |
47 |
addPoint(pointX,pointY); |
48 |
end(); |
49 |
} |
50 |
} |
51 |
Third{ |
52 |
} |
53 |
Default |
54 |
{ |
55 |
addOption(s:String) |
56 |
[s.equals("Cancelar")] |
57 |
Initial{ |
58 |
end(); |
59 |
} |
60 |
} |
61 |
%% |