def undo_box_discard(self):
        if self.is_discarded():
            for overlay in getattr(self, "box_discard_overlay"):
                ui.undo(overlay)
            self.box_discard_overlay = []
            
            self.draw_box()

            # draw either an exact or fitted star location
            if isinstance(self.star_selection, MosaicTileExactSelection):
                self.handle_exact_star(self.star_selection.get_mosaic_location())
            else:
                assert isinstance(self.star_selection, MosaicTileSelection)
                self.handle_select_star(self.star_selection)            
Ejemplo n.º 2
0
 def undo_previous_selection(self):
     for overlay in self.undo:
         ui.undo(overlay)
     self.undo = []
Ejemplo n.º 3
0
 def undo_marked_center(self):
     if getattr(self, "marked_center", None) is not None:
         ui.undo(self.marked_center)
     self.marked_center = None
Ejemplo n.º 4
0
 def maybe_undo(self):
     ui.undo(self.overlays)
 def undo_previous_star_selection(self):
     for overlay in getattr(self, "star_selection_overlay", []):
         ui.undo(overlay)
     self.star_selection_overlay = []
 def undo_previous_box(self):
     for overlay in getattr(self, "box_overlay", []):
         ui.undo(overlay)
     self.box_overlay = []