43 |
|
|
44 |
import labeldialog |
import labeldialog |
45 |
|
|
46 |
from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION |
from messages import LAYER_SELECTED, SHAPES_SELECTED, VIEW_POSITION, \ |
47 |
|
SCALE_CHANGED |
48 |
|
|
49 |
|
|
50 |
# |
# |
279 |
"SelectShapes": "selection", |
"SelectShapes": "selection", |
280 |
"SelectedLayer": "selection", |
"SelectedLayer": "selection", |
281 |
"HasSelectedLayer": "selection", |
"HasSelectedLayer": "selection", |
282 |
"HasSelectedShapes": "selection"} |
"HasSelectedShapes": "selection", |
283 |
|
"SelectedShapes": "selection"} |
284 |
|
|
285 |
def __init__(self, parent, winid): |
def __init__(self, parent, winid): |
286 |
wxWindow.__init__(self, parent, winid) |
wxWindow.__init__(self, parent, winid) |
477 |
self.scale = scale |
self.scale = scale |
478 |
self.offset = offset |
self.offset = offset |
479 |
self.full_redraw() |
self.full_redraw() |
480 |
|
self.issue(SCALE_CHANGED, scale) |
481 |
|
|
482 |
def proj_to_win(self, x, y): |
def proj_to_win(self, x, y): |
483 |
"""\ |
"""\ |