Revision 4583 trunk/extensions/extCAD/sm/RotateCADTool.sm
RotateCADTool.sm | ||
---|---|---|
10 | 10 |
%package com.iver.cit.gvsig.gui.cad.tools.smc |
11 | 11 |
%import com.iver.cit.gvsig.gui.cad.tools.RotateCADTool |
12 | 12 |
%import java.awt.event.InputEvent |
13 |
%import com.iver.andami.PluginServices |
|
13 | 14 |
|
14 | 15 |
%map Rotate |
15 | 16 |
%% |
... | ... | |
18 | 19 |
PointMain |
19 | 20 |
Entry { |
20 | 21 |
selection(); |
21 |
setQuestion("ROTAR" + "\n" +
|
|
22 |
"Precise punto base");
|
|
23 |
setDescription(new String[]{"Cancelar"});
|
|
22 |
setQuestion(ctxt.getName() + "\n" +
|
|
23 |
PluginServices.getText(this,"insert_basis_point"));
|
|
24 |
setDescription(new String[]{"cancel"});
|
|
24 | 25 |
|
25 | 26 |
} |
26 | 27 |
Exit{ |
... | ... | |
29 | 30 |
{ |
30 | 31 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
31 | 32 |
AngleOrPoint { |
32 |
setQuestion("Precise angulo de rotacion");
|
|
33 |
setDescription(new String[]{"Cancelar"});
|
|
33 |
setQuestion(PluginServices.getText(this,"insert_rotation_angle"));
|
|
34 |
setDescription(new String[]{"cancel"});
|
|
34 | 35 |
addPoint( pointX,pointY,event); |
35 | 36 |
} |
36 | 37 |
} |
37 | 38 |
AngleOrPoint{ |
38 | 39 |
addValue(d:double) |
39 | 40 |
PointMain{ |
40 |
setDescription(new String[]{"Cancelar"});
|
|
41 |
setDescription(new String[]{"cancel"});
|
|
41 | 42 |
addValue(d); |
42 | 43 |
end(); |
43 | 44 |
refresh(); |
44 | 45 |
} |
45 | 46 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
46 | 47 |
PointMain { |
47 |
setDescription(new String[]{"Cancelar"});
|
|
48 |
setDescription(new String[]{"cancel"});
|
|
48 | 49 |
addPoint( pointX,pointY,event); |
49 | 50 |
end(); |
50 | 51 |
refresh(); |
... | ... | |
54 | 55 |
Default |
55 | 56 |
{ |
56 | 57 |
addOption(s:String) |
57 |
[s.equals("Cancelar")]
|
|
58 |
[s.equals(PluginServices.getText(this,"cancel"))]
|
|
58 | 59 |
PointMain{ |
59 | 60 |
end(); |
60 | 61 |
} |
Also available in: Unified diff