Statistics
| Revision:

root / trunk / extensions / extCAD / sm / PointCADTool.sm @ 3883

History | View | Annotate | Download (847 Bytes)

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

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

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

    
13

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

    
18
Initial
19

    
20
	Entry {
21
		setQuestion("PUNTO" + "\n" +
22
		"Defina el punto");
23
		setDescription(new String[]{"Cancelar"});
24
		}
25
	Exit {
26
		}
27

    
28
	{
29

    
30
		addPoint( pointX:double,pointY:double)
31
			First {
32
				setQuestion("Insertar punto");
33
				setDescription(new String[]{"Cancelar"});
34
				addPoint( pointX,pointY);
35
				}
36
	}
37
First{
38
	addPoint( pointX:double,pointY:double)
39
		First {
40
			setQuestion("Insertar punto");
41
			setDescription(new String[]{"Cancelar"});
42
			addPoint( pointX,pointY);
43
			}
44
}
45
Default
46
{
47
	addOption(s:String)
48
		[s.equals("Cancelar")]
49
		Initial{
50
			end();
51
			}
52
}
53
%%