Beispiel #1
0
    def __init__(self, event_manager):
        self.event_manager = event_manager
        self._undo_stack = []
        self._redo_stack = []
        self._stack_depth = 20
        self._current_transaction = None
        self.action_group = build_action_group(self)

        logger.info("Starting")

        event_manager.subscribe(self.reset)
        event_manager.subscribe(self.begin_transaction)
        event_manager.subscribe(self.commit_transaction)
        event_manager.subscribe(self.rollback_transaction)
        event_manager.subscribe(self._action_executed)
        self._register_undo_handlers()
        self._action_executed()
Beispiel #2
0
 def __init__(self):
     self.action_group = build_action_group(self)
     self.window = None
Beispiel #3
0
 def __init__(self):
     self._undo_stack = []
     self._redo_stack = []
     self._stack_depth = 20
     self._current_transaction = None
     self.action_group = build_action_group(self)
Beispiel #4
0
 def __init__(self):
     self.action_group = build_action_group(self)
     self.console = None
     self.ui_manager = None # injected
Beispiel #5
0
 def __init__(self):
     self._undo_stack = []
     self._redo_stack = []
     self._stack_depth = 20
     self._current_transaction = None
     self.action_group = build_action_group(self)
Beispiel #6
0
 def __init__(self):
     self.action_group = build_action_group(self)
     self.console = None
     self.ui_manager = None  # injected
Beispiel #7
0
 def __init__(self, component_registry, main_window):
     self.component_registry = component_registry
     self.main_window = main_window
     self.action_group = build_action_group(self)
     self.window = None
Beispiel #8
0
 def __init__(self):
     self.action_group = build_action_group(self)
     self.window = None