Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extCAD / sm / EditVertexCADTool.sm @ 4892

History | View | Annotate | Download (1.19 KB)

1 4118 caballero
// -*- tab-width: 4; -*-
2
3
%{
4
//
5
// Vicente Caballero Navarro
6
%}
7
8
%start EditVertex::SelectVertexOrDelete
9
%class EditVertexCADTool
10
%package com.iver.cit.gvsig.gui.cad.tools.smc
11
%import com.iver.cit.gvsig.gui.cad.tools.EditVertexCADTool
12 4365 caballero
%import java.awt.event.InputEvent
13 4583 caballero
%import com.iver.andami.PluginServices
14 4118 caballero
15
%map EditVertex
16
%%
17
// A task begins life in suspended animation.
18
19
SelectVertexOrDelete
20
	Entry {
21
		selection();
22 4892 caballero
		setQuestion(
23 4583 caballero
		PluginServices.getText(this,"next_previous_add_del_cancel"));
24
		setDescription(new String[]{"next","previous","add","del","cancel"});
25 4118 caballero
26
		}
27
	Exit{
28
		}
29
30
	{
31 4365 caballero
		addPoint( pointX:double,pointY:double,event:InputEvent)
32
			SelectVertexOrDelete {
33 4583 caballero
				setQuestion(PluginServices.getText(this,"select_from_point"));
34
				setDescription(new String[]{"next","previous","add","del","cancel"});
35 4365 caballero
				addPoint( pointX,pointY,event);
36
				}
37 4118 caballero
		addOption(s:String)
38
			SelectVertexOrDelete {
39 4583 caballero
				setQuestion(PluginServices.getText(this,"next_previous_add_del_cancel"));
40
				setDescription(new String[]{"next","previous","add","del","cancel"});
41 4118 caballero
				addOption(s);
42
				}
43
	}
44
45 4365 caballero
46 4118 caballero
Default
47
{
48
	addOption(s:String)
49 4583 caballero
		[s.equals(PluginServices.getText(this,"cancel"))]
50 4118 caballero
		SelectVertexOrDelete{
51
			end();
52
			}
53
}
54
%%