Statistics
| Revision:

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

History | View | Annotate | Download (1 KB)

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

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

    
8
%start ExecuteMap::Initial
9
%class LineCADTool
10
%package com.iver.cit.gvsig.gui.cad.tools.smc
11
%import com.iver.cit.gvsig.gui.cad.tools.LineCADTool
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");
22
		}
23
	Exit{
24
		end();
25
		}
26

    
27
	{
28

    
29
		addPoint( pointX:double,pointY:double)
30
			First {
31
				setQuestion("Insertar segundo punto o angulo");
32
				addPoint( pointX,pointY);
33
				}
34

    
35
	}
36
First{
37
	addPoint( pointX:double,pointY:double)
38
		First {
39
			setQuestion("Insertar segundo punto o angulo");
40
			addPoint( pointX,pointY);
41
			}
42
	addValue( d:double)
43
		Second {
44
			setQuestion("Insertar longitud o punto");
45
			addValue( d);
46
			}
47

    
48
}
49
Second{
50
	addPoint( pointX:double,pointY:double)
51
		First {
52
			setQuestion("Insertar segundo punto o angulo");
53
			addPoint( pointX,pointY);
54
			}
55
	addValue( d:double)
56
		First {
57
			setQuestion("Insertar segundo punto o angulo");
58
			addValue( d);
59
			}
60
	}
61
Default
62
{
63

    
64
}
65
%%