Revision 5730

View differences:

trunk/extensions/extCAD/sm/EllipseCADTool.sm
64 64
		FirstPointAxis{
65 65
			end();
66 66
			}
67
	addOption(s:String)
68
		FirstPointAxis{
69
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
70
			}
71
	addValue(d:double)
72
		FirstPointAxis{
73
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
74
			}
75
	addPoint(pointX:double,pointY:double,event:InputEvent)
76
		FirstPointAxis{
77
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
78
			}
67 79
}
68 80
%%
trunk/extensions/extCAD/sm/RotateCADTool.sm
59 59
		PointMain{
60 60
			end();
61 61
			}
62
	addOption(s:String)
63
		PointMain{
64
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
65
			}
66
	addValue(d:double)
67
		PointMain{
68
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
69
			}
70
	addPoint(pointX:double,pointY:double,event:InputEvent)
71
		PointMain{
72
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
73
			}
62 74
}
63 75
%%
trunk/extensions/extCAD/sm/CircleCADTool.sm
85 85
		CenterPointOr3p{
86 86
			end();
87 87
			}
88
	addOption(s:String)
89
		CenterPointOr3p{
90
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
91
			}
92
	addValue(d:double)
93
		CenterPointOr3p{
94
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
95
			}
96
	addPoint(pointX:double,pointY:double,event:InputEvent)
97
		CenterPointOr3p{
98
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
99
			}
88 100
}
89 101
%%
trunk/extensions/extCAD/sm/RectangleCADTool.sm
66 66
		FirstPoint{
67 67
			end();
68 68
			}
69
	addOption(s:String)
70
		FirstPoint{
71
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
72
			}
73
	addValue(d:double)
74
		FirstPoint{
75
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
76
			}
77
	addPoint(pointX:double,pointY:double,event:InputEvent)
78
		FirstPoint{
79
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
80
			}
69 81
}
70 82
%%
trunk/extensions/extCAD/sm/ArcCADTool.sm
58 58
		FirstPoint{
59 59
			end();
60 60
			}
61
	addOption(s:String)
62
		FirstPoint{
63
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
64
			}
65
	addValue(d:double)
66
		FirstPoint{
67
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
68
			}
69
	addPoint(pointX:double,pointY:double,event:InputEvent)
70
		FirstPoint{
71
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
72
			}
61 73
}
62 74
%%
trunk/extensions/extCAD/sm/MoveCADTool.sm
52 52
		FirstPointToMove{
53 53
			end();
54 54
			}
55
	addOption(s:String)
56
		FirstPointToMove{
57
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
58
			}
59
	addValue(d:double)
60
		FirstPointToMove{
61
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
62
			}
63
	addPoint(pointX:double,pointY:double,event:InputEvent)
64
		FirstPointToMove{
65
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
66
			}
55 67
}
56 68
%%
trunk/extensions/extCAD/sm/CopyCADTool.sm
52 52
		FirstPointToMove{
53 53
			end();
54 54
			}
55
	addOption(s:String)
56
		FirstPointToMove{
57
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
58
			}
59
	addValue(d:double)
60
		FirstPointToMove{
61
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
62
			}
63
	addPoint(pointX:double,pointY:double,event:InputEvent)
64
		FirstPointToMove{
65
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
66
			}
55 67
}
56 68
%%
trunk/extensions/extCAD/sm/ComplexSelectionCADTool.sm
220 220
    FirstPoint{
221 221
      end();
222 222
      }
223
     addOption(s:String)
224
		FirstPoint{
225
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
226
			}
227
	addValue(d:double)
228
		FirstPoint{
229
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
230
			}
231
	addPoint(pointX:double,pointY:double,event:InputEvent)
232
		FirstPoint{
233
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
234
			}
223 235
}
224 236
%%
trunk/extensions/extCAD/sm/EditVertexCADTool.sm
50 50
		SelectVertexOrDelete{
51 51
			end();
52 52
			}
53
	addOption(s:String)
54
		SelectVertexOrDelete{
55
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
56
			}
57
	addValue(d:double)
58
		SelectVertexOrDelete{
59
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
60
			}
61
	addPoint(pointX:double,pointY:double,event:InputEvent)
62
		SelectVertexOrDelete{
63
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
64
			}
53 65
}
54 66
%%
trunk/extensions/extCAD/sm/BreakCADTool.sm
80 80
		FirstPoint{
81 81
			end();
82 82
			}
83
	addOption(s:String)
84
		FirstPoint{
85
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
86
			}
87
	addValue(d:double)
88
		FirstPoint{
89
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
90
			}
91
	addPoint(pointX:double,pointY:double,event:InputEvent)
92
		FirstPoint{
93
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
94
			}
83 95
}
84 96
%%
trunk/extensions/extCAD/sm/InternalPolygonCADTool.sm
50 50
		AddNextPoint{
51 51
			end();
52 52
			}
53
	addOption(s:String)
54
		AddNextPoint{
55
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
56
			}
57
	addValue(d:double)
58
		AddNextPoint{
59
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
60
			}
61
	addPoint(pointX:double,pointY:double,event:InputEvent)
62
		AddNextPoint{
63
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
64
			}
53 65
}
54 66
%%
trunk/extensions/extCAD/sm/SelectionCADTool.sm
128 128
    FirstPoint{
129 129
      end();
130 130
      }
131
    addOption(s:String)
132
		FirstPoint{
133
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
134
			}
135
	addValue(d:double)
136
		FirstPoint{
137
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
138
			}
139
	addPoint(pointX:double,pointY:double,event:InputEvent)
140
		FirstPoint{
141
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
142
			}
131 143
}
132 144
%%
trunk/extensions/extCAD/sm/LineCADTool.sm
77 77
		FirstPoint{
78 78
			end();
79 79
			}
80
	addOption(s:String)
81
		FirstPoint{
82
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
83
			}
84
	addValue(d:double)
85
		FirstPoint{
86
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
87
			}
88
	addPoint(pointX:double,pointY:double,event:InputEvent)
89
		FirstPoint{
90
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
91
			}
80 92

  
81 93
}
82 94
%%
trunk/extensions/extCAD/sm/PolygonCADTool.sm
28 28

  
29 29
	{
30 30
		addValue(d:double)
31
			[d<3]
32
			NumberOrCenterPoint{
33
				throwValueException(PluginServices.getText(this,"num_lados_insuficiente"),d);
34
			}
35
		addValue(d:double)
36
			[d>2]
31 37
			CenterPoint {
32 38
				setQuestion(PluginServices.getText(this,"insert_central_point_polygon"));
33 39
				setDescription(new String[]{"cancel"});
......
87 93
		NumberOrCenterPoint{
88 94
			end();
89 95
			}
96
	addOption(s:String)
97
		NumberOrCenterPoint{
98
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
99
			}
100
	addValue(d:double)
101
		NumberOrCenterPoint{
102
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
103
			}
104
	addPoint(pointX:double,pointY:double,event:InputEvent)
105
		NumberOrCenterPoint{
106
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
107
			}
90 108
}
91 109
%%
trunk/extensions/extCAD/sm/ScaleCADTool.sm
110 110
		PointMain{
111 111
			end();
112 112
			}
113
	addOption(s:String)
114
		PointMain{
115
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
116
			}
117
	addValue(d:double)
118
		PointMain{
119
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
120
			}
121
	addPoint(pointX:double,pointY:double,event:InputEvent)
122
		PointMain{
123
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
124
			}
113 125
}
114 126
%%
trunk/extensions/extCAD/sm/PointCADTool.sm
44 44
		FirstPoint{
45 45
			end();
46 46
			}
47
	addOption(s:String)
48
		FirstPoint{
49
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
50
			}
51
	addValue(d:double)
52
		FirstPoint{
53
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
54
			}
55
	addPoint(pointX:double,pointY:double,event:InputEvent)
56
		FirstPoint{
57
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
58
			}
47 59
}
48 60
%%
trunk/extensions/extCAD/sm/PolylineCADTool.sm
109 109
		FirstPoint{
110 110
			endGeometry();
111 111
			}
112
	addOption(s:String)
113
		FirstPoint{
114
			throwOptionException(PluginServices.getText(this,"incorrect_option"),s);
115
			}
116
	addValue(d:double)
117
		FirstPoint{
118
			throwValueException(PluginServices.getText(this,"incorrect_value"),d);
119
			}
120
	addPoint(pointX:double,pointY:double,event:InputEvent)
121
		FirstPoint{
122
			throwPointException(PluginServices.getText(this,"incorrect_point"),pointX,pointY);
123
			}
112 124

  
113 125
}
114 126
%%

Also available in: Unified diff