コード例 #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()
コード例 #2
0
ファイル: consolewindow.py プロジェクト: weizx208/gaphor
 def __init__(self):
     self.action_group = build_action_group(self)
     self.window = None
コード例 #3
0
ファイル: undomanager.py プロジェクト: gitter-badger/dabbler
 def __init__(self):
     self._undo_stack = []
     self._redo_stack = []
     self._stack_depth = 20
     self._current_transaction = None
     self.action_group = build_action_group(self)
コード例 #4
0
 def __init__(self):
     self.action_group = build_action_group(self)
     self.console = None
     self.ui_manager = None # injected
コード例 #5
0
ファイル: undomanager.py プロジェクト: dieterv/gaphor
 def __init__(self):
     self._undo_stack = []
     self._redo_stack = []
     self._stack_depth = 20
     self._current_transaction = None
     self.action_group = build_action_group(self)
コード例 #6
0
ファイル: consolewindow.py プロジェクト: heharkon/gaphor
 def __init__(self):
     self.action_group = build_action_group(self)
     self.console = None
     self.ui_manager = None  # injected
コード例 #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
コード例 #8
0
ファイル: consolewindow.py プロジェクト: amolenaar/gaphor
 def __init__(self):
     self.action_group = build_action_group(self)
     self.window = None