Revision 13561 trunk/extensions/extCAD/sm/PolylineCADTool.sm
PolylineCADTool.sm | ||
---|---|---|
68 | 68 |
end(); |
69 | 69 |
} |
70 | 70 |
addOption(s:String) |
71 |
[s.equalsIgnoreCase(PluginServices.getText(this,"PolylineCADTool.end")) || s.equals(PluginServices.getText(this,"terminate"))]
|
|
71 |
[(s.equalsIgnoreCase(PluginServices.getText(this,"PolylineCADTool.end")) || s.equals(PluginServices.getText(this,"terminate"))) && ctxt.getLinesCount()!=0 ]
|
|
72 | 72 |
FirstPoint { |
73 | 73 |
addOption(s); |
74 | 74 |
endGeometry(); |
75 | 75 |
end(); |
76 | 76 |
} |
77 |
addOption(s:String) |
|
78 |
[!s.equals(PluginServices.getText(this,"cancel"))] |
|
79 |
NextPointOrArcOrClose { |
|
80 |
} |
|
77 | 81 |
addPoint( pointX:double,pointY:double,event:InputEvent) |
78 | 82 |
NextPointOrArcOrClose { |
79 | 83 |
setQuestion( |
... | ... | |
128 | 132 |
end(); |
129 | 133 |
} |
130 | 134 |
addOption(s:String) |
131 |
[s.equalsIgnoreCase(PluginServices.getText(this,"PolylineCADTool.end")) || s.equals(PluginServices.getText(this,"terminate"))]
|
|
135 |
[(s.equalsIgnoreCase(PluginServices.getText(this,"PolylineCADTool.end")) || s.equals(PluginServices.getText(this,"terminate"))) && ctxt.getLinesCount()!=0]
|
|
132 | 136 |
FirstPoint { |
133 | 137 |
addOption(s); |
134 | 138 |
endGeometry(); |
135 | 139 |
end(); |
136 | 140 |
} |
137 |
|
|
141 |
addOption(s:String) |
|
142 |
[!s.equals(PluginServices.getText(this,"cancel"))] |
|
143 |
NextPointOrLineOrClose { |
|
144 |
} |
|
138 | 145 |
} |
139 | 146 |
|
140 | 147 |
Default |
Also available in: Unified diff