13 |
|
|
14 |
from wxproj import draw_polygon_shape |
from wxproj import draw_polygon_shape |
15 |
|
|
16 |
|
from Thuban import _ |
17 |
|
|
18 |
from Thuban.Model.layer import SHAPETYPE_POLYGON, SHAPETYPE_ARC, \ |
from Thuban.Model.layer import SHAPETYPE_POLYGON, SHAPETYPE_ARC, \ |
19 |
SHAPETYPE_POINT |
SHAPETYPE_POINT |
20 |
from Thuban.Model.label import ALIGN_CENTER, ALIGN_TOP, ALIGN_BOTTOM, \ |
from Thuban.Model.label import ALIGN_CENTER, ALIGN_TOP, ALIGN_BOTTOM, \ |
246 |
if shapetype == SHAPETYPE_POINT: |
if shapetype == SHAPETYPE_POINT: |
247 |
self.draw_point_shape(layer, index) |
self.draw_point_shape(layer, index) |
248 |
else: |
else: |
249 |
raise TypeError("Unhandled shape type %s" % shapetype) |
raise TypeError(_("Unhandled shape type %s") % shapetype) |
250 |
|
|
251 |
def layer_ids(self, layer): |
def layer_ids(self, layer): |
252 |
"""Return the shapeids covered by the region that has to be redrawn |
"""Return the shapeids covered by the region that has to be redrawn |