Statistics
| Revision:

root / trunk / extensions / extCAD / sm / RectangleCADTool.sm @ 3828

History | View | Annotate | Download (882 Bytes)

1
// -*- tab-width: 4; -*-
2

    
3
%{
4
//
5
// Vicente Caballero Navarro
6
%}
7

    
8
%start ExecuteMap::Initial
9
%class RectangleCADTool
10
%package com.iver.cit.gvsig.gui.cad.tools.smc
11
%import com.iver.cit.gvsig.gui.cad.tools.RectangleCADTool
12

    
13
%map ExecuteMap
14
%%
15
// A task begins life in suspended animation.
16

    
17
Initial
18

    
19
	Entry {
20
		init();
21
		setQuestion("Insertar primer punto de esquina");
22
		}
23
	Exit{
24
		}
25

    
26
	{
27

    
28
		addPoint(pointX:double,pointY:double)
29
			First {
30
				setQuestion("Insertar punto de esquina opuesta o Cuadrado[C]");
31
				addPoint(pointX,pointY);
32
				}
33

    
34
	}
35
First{
36
	addPoint(pointX:double,pointY:double)
37
		Third {
38
			addPoint(pointX,pointY);
39
			end();
40
			}
41
	addOption(s:String)
42
		Second {
43
			setQuestion("Insertar esquina opuesta");
44
			addOption(s);
45
			}
46

    
47
}
48
Second{
49
	addPoint(pointX:double,pointY:double)
50
		Fourth {
51
			addPoint(pointX,pointY);
52
			end();
53
			}
54
}
55
Third{
56
}
57
Fourth{
58
}
59
Default
60
{
61

    
62
}
63
%%