Debugger/DebugUI.py

changeset 486
e4711a55e482
parent 482
4650a72c307a
child 536
6d8d39753c82
equal deleted inserted replaced
485:b17b3aea644e 486:e4711a55e482
123 debugServer.clientRawInput.connect(debugViewer.handleRawInput) 123 debugServer.clientRawInput.connect(debugViewer.handleRawInput)
124 debugServer.clientRawInputSent.connect(debugViewer.restoreCurrentPage) 124 debugServer.clientRawInputSent.connect(debugViewer.restoreCurrentPage)
125 debugServer.clientThreadList.connect(debugViewer.showThreadList) 125 debugServer.clientThreadList.connect(debugViewer.showThreadList)
126 126
127 # Connect the signals emitted by the viewmanager 127 # Connect the signals emitted by the viewmanager
128 self.connect(vm, SIGNAL('editorOpened'), self.__editorOpened) 128 vm.editorOpened.connect(self.__editorOpened)
129 self.connect(vm, SIGNAL('lastEditorClosed'), self.__lastEditorClosed) 129 vm.lastEditorClosed.connect(self.__lastEditorClosed)
130 self.connect(vm, SIGNAL('checkActions'), self.__checkActions) 130 vm.checkActions.connect(self.__checkActions)
131 self.connect(vm, SIGNAL('cursorChanged'), self.__cursorChanged) 131 vm.cursorChanged.connect(self.__cursorChanged)
132 self.connect(vm, SIGNAL('breakpointToggled'), self.__cursorChanged) 132 vm.breakpointToggled.connect(self.__cursorChanged)
133 133
134 # Connect the signals emitted by the project 134 # Connect the signals emitted by the project
135 self.connect(project, SIGNAL('projectOpened'), self.__projectOpened) 135 project.projectOpened.connect(self.__projectOpened)
136 self.connect(project, SIGNAL('newProject'), self.__projectOpened) 136 project.newProject.connect(self.__projectOpened)
137 self.connect(project, SIGNAL('projectClosed'), self.__projectClosed) 137 project.projectClosed.connect(self.__projectClosed)
138 self.connect(project, SIGNAL('projectSessionLoaded'),
139 self.__projectSessionLoaded)
140 138
141 # Set a flag for the passive debug mode 139 # Set a flag for the passive debug mode
142 self.passive = Preferences.getDebugger("PassiveDbgEnabled") 140 self.passive = Preferences.getDebugger("PassiveDbgEnabled")
143 141
144 def variablesFilter(self, scope): 142 def variablesFilter(self, scope):
840 838
841 if not self.editorOpen: 839 if not self.editorOpen:
842 self.restartAct.setEnabled(False) 840 self.restartAct.setEnabled(False)
843 self.lastDebuggedFile = None 841 self.lastDebuggedFile = None
844 self.lastStartAction = 0 842 self.lastStartAction = 0
845
846 def __projectSessionLoaded(self):
847 """
848 Private slot to handle the projectSessionLoaded signal.
849 """
850 fn = self.project.getMainScript(True)
851 if fn is not None:
852 self.lastStartAction = 2
853 self.lastDebuggedFile = fn
854 self.restartAct.setEnabled(True)
855 843
856 def shutdown(self): 844 def shutdown(self):
857 """ 845 """
858 Public method to perform shutdown actions. 846 Public method to perform shutdown actions.
859 """ 847 """

eric ide

mercurial