Revision 4583 trunk/extensions/extCAD/sm/CircleCADTool.sm
CircleCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.CircleCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
%map Circle |
15 | 16 |
%% |
... | ... | |
18 | 19 |
CenterPointOr3p |
19 | 20 |
|
20 | 21 |
Entry { |
21 |
setQuestion("CIRCULO" + "\n" +
|
|
22 |
"Insertar punto central o [3P]:");
|
|
23 |
setDescription(new String[]{"Cancelar","3P"});
|
|
22 |
setQuestion(ctxt.getName() + "\n" +
|
|
23 |
PluginServices.getText(this,"insert_central_point_or_3p"));
|
|
24 |
setDescription(new String[]{"cancel","3P"});
|
|
24 | 25 |
} |
25 | 26 |
Exit{ |
26 | 27 |
} |
... | ... | |
28 | 29 |
{ |
29 | 30 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
30 | 31 |
PointOrRadius { |
31 |
setQuestion("Insertar radio o segundo punto");
|
|
32 |
setDescription(new String[]{"Cancelar"});
|
|
32 |
setQuestion(PluginServices.getText(this,"insert_radius_or_second_point"));
|
|
33 |
setDescription(new String[]{"cancel"});
|
|
33 | 34 |
addPoint( pointX,pointY,event); |
34 | 35 |
} |
35 | 36 |
addOption( s:String) |
36 | 37 |
[s.equals("3p") || s.equals("3P")] |
37 | 38 |
FirstPoint{ |
38 |
setQuestion("Insertar primer punto");
|
|
39 |
setDescription(new String[]{"Cancelar"});
|
|
39 |
setQuestion(PluginServices.getText(this,"insert_first_point"));
|
|
40 |
setDescription(new String[]{"cancel"});
|
|
40 | 41 |
addOption( s); |
41 | 42 |
} |
42 | 43 |
} |
... | ... | |
55 | 56 |
SecondPoint{ |
56 | 57 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
57 | 58 |
ThirdPoint { |
58 |
setQuestion("Insertar tercer punto");
|
|
59 |
setDescription(new String[]{"Cancelar"});
|
|
59 |
setQuestion(PluginServices.getText(this,"insert_third_point"));
|
|
60 |
setDescription(new String[]{"cancel"});
|
|
60 | 61 |
addPoint( pointX,pointY,event); |
61 | 62 |
} |
62 | 63 |
} |
... | ... | |
71 | 72 |
FirstPoint{ |
72 | 73 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
73 | 74 |
SecondPoint { |
74 |
setQuestion("Insertar segundo punto");
|
|
75 |
setDescription(new String[]{"Cancelar"});
|
|
75 |
setQuestion(PluginServices.getText(this,"insert_second_point"));
|
|
76 |
setDescription(new String[]{"cancel"});
|
|
76 | 77 |
addPoint( pointX,pointY,event); |
77 | 78 |
} |
78 | 79 |
} |
... | ... | |
80 | 81 |
Default |
81 | 82 |
{ |
82 | 83 |
addOption(s:String) |
83 |
[s.equals("Cancelar")]
|
|
84 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
84 | 85 |
CenterPointOr3p{ |
85 | 86 |
end(); |
86 | 87 |
} |
Also available in: Unified diff