Revision 4583 trunk/extensions/extCAD/sm/LineCADTool.sm
LineCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.LineCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
%map Line |
15 | 16 |
%% |
... | ... | |
18 | 19 |
FirstPoint |
19 | 20 |
|
20 | 21 |
Entry { |
21 |
setQuestion("LINEA" + "\n" +
|
|
22 |
"Insertar primer punto");
|
|
23 |
setDescription(new String[]{"Cancelar"});
|
|
22 |
setQuestion(ctxt.getName() + "\n" +
|
|
23 |
PluginServices.getText(this,"insert_first_point"));
|
|
24 |
setDescription(new String[]{"cancel"});
|
|
24 | 25 |
} |
25 | 26 |
Exit{ |
26 | 27 |
} |
... | ... | |
29 | 30 |
|
30 | 31 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
31 | 32 |
SecondPointOrAngle { |
32 |
setQuestion("Insertar segundo punto o angulo");
|
|
33 |
setDescription(new String[]{"Cancelar"});
|
|
33 |
setQuestion(PluginServices.getText(this,"insert_second_point_angle"));
|
|
34 |
setDescription(new String[]{"cancel"});
|
|
34 | 35 |
addPoint( pointX,pointY,event); |
35 | 36 |
} |
36 | 37 |
|
... | ... | |
38 | 39 |
SecondPointOrAngle{ |
39 | 40 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
40 | 41 |
SecondPointOrAngle { |
41 |
setQuestion("Insertar segundo punto o angulo");
|
|
42 |
setDescription(new String[]{"Cancelar"});
|
|
42 |
setQuestion(PluginServices.getText(this,"insert_second_point_angle"));
|
|
43 |
setDescription(new String[]{"cancel"});
|
|
43 | 44 |
addPoint( pointX,pointY,event); |
44 | 45 |
} |
45 | 46 |
addValue( d:double) |
46 | 47 |
LenghtOrPoint { |
47 |
setQuestion("Insertar longitud o punto");
|
|
48 |
setDescription(new String[]{"Cancelar"});
|
|
48 |
setQuestion(PluginServices.getText(this,"insert_length_or_point"));
|
|
49 |
setDescription(new String[]{"cancel"});
|
|
49 | 50 |
addValue( d); |
50 | 51 |
} |
51 | 52 |
|
... | ... | |
53 | 54 |
LenghtOrPoint{ |
54 | 55 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
55 | 56 |
SecondPointOrAngle { |
56 |
setQuestion("Insertar segundo punto o angulo");
|
|
57 |
setDescription(new String[]{"Cancelar"});
|
|
57 |
setQuestion(PluginServices.getText(this,"insert_second_point_angle"));
|
|
58 |
setDescription(new String[]{"cancel"});
|
|
58 | 59 |
addPoint( pointX,pointY,event); |
59 | 60 |
} |
60 | 61 |
addValue( d:double) |
61 | 62 |
SecondPointOrAngle { |
62 |
setQuestion("Insertar segundo punto o angulo");
|
|
63 |
setDescription(new String[]{"Cancelar"});
|
|
63 |
setQuestion(PluginServices.getText(this,"insert_second_point_angle"));
|
|
64 |
setDescription(new String[]{"cancel"});
|
|
64 | 65 |
addValue( d); |
65 | 66 |
} |
66 | 67 |
} |
67 | 68 |
Default |
68 | 69 |
{ |
69 | 70 |
addOption(s:String) |
70 |
[s.equals("Cancelar")]
|
|
71 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
71 | 72 |
FirstPoint{ |
72 | 73 |
end(); |
73 | 74 |
} |
... | ... | |
76 | 77 |
FirstPoint{ |
77 | 78 |
end(); |
78 | 79 |
} |
79 |
|
|
80 |
|
|
80 | 81 |
} |
81 | 82 |
%% |
Also available in: Unified diff