302 |
|
|
303 |
def OpenSession(self): |
def OpenSession(self): |
304 |
self.save_modified_session() |
self.save_modified_session() |
305 |
dlg = wxFileDialog(self, _("Select a session file"), ".", "", |
dlg = wxFileDialog(self, _("Open Session"), ".", "", |
306 |
"*.thuban", wxOPEN) |
"*.thuban", wxOPEN) |
307 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
308 |
self.application.OpenSession(dlg.GetPath()) |
self.application.OpenSession(dlg.GetPath()) |
314 |
self.application.SaveSession() |
self.application.SaveSession() |
315 |
|
|
316 |
def SaveSessionAs(self): |
def SaveSessionAs(self): |
317 |
dlg = wxFileDialog(self, _("Enter a filename for session"), ".", "", |
dlg = wxFileDialog(self, _("Save Session As"), ".", "", |
318 |
"*.thuban", wxOPEN) |
"*.thuban", wxOPEN) |
319 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
320 |
self.application.session.SetFilename(dlg.GetPath()) |
self.application.session.SetFilename(dlg.GetPath()) |
443 |
if layer is not None: |
if layer is not None: |
444 |
color = self.choose_color() |
color = self.choose_color() |
445 |
if color is not None: |
if color is not None: |
446 |
layer.SetFill(color) |
layer.classification.SetDefaultFill(color) |
447 |
|
|
448 |
def LayerTransparentFill(self): |
def LayerTransparentFill(self): |
449 |
layer = self.current_layer() |
layer = self.current_layer() |
450 |
if layer is not None: |
if layer is not None: |
451 |
layer.SetFill(None) |
layer.classification.SetDefaultFill(None) |
452 |
|
|
453 |
def LayerOutlineColor(self): |
def LayerOutlineColor(self): |
454 |
layer = self.current_layer() |
layer = self.current_layer() |
455 |
if layer is not None: |
if layer is not None: |
456 |
color = self.choose_color() |
color = self.choose_color() |
457 |
if color is not None: |
if color is not None: |
458 |
layer.SetStroke(color) |
layer.classification.SetDefaultStroke(color) |
459 |
|
|
460 |
def LayerNoOutline(self): |
def LayerNoOutline(self): |
461 |
layer = self.current_layer() |
layer = self.current_layer() |
462 |
if layer is not None: |
if layer is not None: |
463 |
layer.SetStroke(None) |
layer.classification.SetDefaultStroke(None) |
464 |
|
|
465 |
def HideLayer(self): |
def HideLayer(self): |
466 |
layer = self.current_layer() |
layer = self.current_layer() |