Debugger/DebugUI.py

changeset 482
4650a72c307a
parent 481
ad71812ba395
child 486
e4711a55e482
--- a/Debugger/DebugUI.py	Tue Aug 10 13:15:03 2010 +0200
+++ b/Debugger/DebugUI.py	Tue Aug 10 14:17:54 2010 +0200
@@ -41,6 +41,11 @@
         exception and acknowledged by the user
     """
     clientStack = pyqtSignal(list)
+    resetUI = pyqtSignal()
+    exceptionInterrupt = pyqtSignal()
+    compileForms = pyqtSignal()
+    compileResources = pyqtSignal()
+    debuggingStarted = pyqtSignal(str)
     
     def __init__(self, ui, vm, debugServer, debugViewer, project):
         """
@@ -565,8 +570,7 @@
         dmenu.addAction(self.excIgnoreFilterAct)
         
         self.breakpointsMenu.aboutToShow.connect(self.__showBreakpointsMenu)
-        self.connect(self.breakpointsMenu, SIGNAL('triggered(QAction *)'),
-            self.__breakpointSelected)
+        self.breakpointsMenu.triggered.connect(self.__breakpointSelected)
         dmenu.aboutToShow.connect(self.__showDebugMenu)
         
         return smenu, dmenu
@@ -916,7 +920,7 @@
             else:
                 self.restartAct.setEnabled(False)
             self.stopAct.setEnabled(False)
-        self.emit(SIGNAL('resetUI'))
+        self.resetUI.emit()
         
     def __clientLine(self, fn, line, forStack):
         """
@@ -1035,7 +1039,7 @@
                             .format(exceptionType, 
                                     Utilities.html_encode(exceptionMessage)))
             if res == QMessageBox.Yes:
-                self.emit(SIGNAL('exceptionInterrupt'))
+                self.exceptionInterrupt.emit()
                 stack = []
                 for fn, ln in stackTrace:
                     stack.append((fn, ln, ''))
@@ -1312,9 +1316,9 @@
         is wanted.
         """
         if Preferences.getProject("AutoCompileForms"):
-            self.emit(SIGNAL('compileForms'))
+            self.compileForms.emit()
         if Preferences.getProject("AutoCompileResources"):
-            self.emit(SIGNAL('compileResources'))
+            self.compileResources.emit()
         QApplication.processEvents()
         
     def __coverageScript(self):
@@ -1748,7 +1752,7 @@
                     forkChild = forkIntoChild)
                 
                 # Signal that we have started a debugging session
-                self.emit(SIGNAL('debuggingStarted'), fn)
+                self.debuggingStarted.emit(fn)
                 
                 self.stopAct.setEnabled(True)
         
@@ -1799,7 +1803,7 @@
                     forkChild = self.forkIntoChild)
                 
                 # Signal that we have started a debugging session
-                self.emit(SIGNAL('debuggingStarted'), fn)
+                self.debuggingStarted.emit(fn)
             
             elif self.lastStartAction in [3, 4]:
                 # Ask the client to run the new program.
@@ -1845,7 +1849,7 @@
         self.setExceptionReporting(exc)
         
         # Signal that we have started a debugging session
-        self.emit(SIGNAL('debuggingStarted'), fn)
+        self.debuggingStarted.emit(fn)
         
     def __continue(self):
         """

eric ide

mercurial