src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 9517
d73c3a1e432b
parent 9482
a2bc06a54d9d
child 9541
69167c94995f
--- a/src/eric7/Debugger/DebugUI.py	Wed Nov 16 18:11:52 2022 +0100
+++ b/src/eric7/Debugger/DebugUI.py	Thu Nov 17 18:11:42 2022 +0100
@@ -38,11 +38,6 @@
 
     @signal clientStack(stack, debuggerId) emitted at breaking after a reported
         exception
-    @signal compileForms() emitted if changed project forms should be compiled
-    @signal compileResources() emitted if changed project resources should be
-        compiled
-    @signal executeMake() emitted if a project specific make run should be
-        performed
     @signal debuggingStarted(filename) emitted when a debugging session was
         started
     @signal resetUI(full) emitted to reset the UI partially or fully
@@ -50,16 +45,16 @@
         by an exception and acknowledged by the user
     @signal appendStdout(msg) emitted when the client program has terminated
         and the display of the termination dialog is suppressed
+    @signal processChangedProjectFiles() emitted to indicate, that changed project files
+        should be processed
     """
 
     clientStack = pyqtSignal(list, str)
     resetUI = pyqtSignal(bool)
     exceptionInterrupt = pyqtSignal()
-    compileForms = pyqtSignal()
-    compileResources = pyqtSignal()
-    executeMake = pyqtSignal()
     debuggingStarted = pyqtSignal(str)
     appendStdout = pyqtSignal(str)
+    processChangedProjectFiles = pyqtSignal()
 
     def __init__(self, ui, vm, debugServer, debugViewer, project):
         """
@@ -1907,19 +1902,6 @@
         line = qvList[1]
         self.viewmanager.openSourceFile(filename, line)
 
-    def __compileChangedProjectFiles(self):
-        """
-        Private method to signal compilation of changed forms and resources
-        is wanted.
-        """
-        if Preferences.getProject("AutoCompileForms"):
-            self.compileForms.emit()
-        if Preferences.getProject("AutoCompileResources"):
-            self.compileResources.emit()
-        if Preferences.getProject("AutoExecuteMake"):
-            self.executeMake.emit()
-        QApplication.processEvents()
-
     def __coverageScript(self):
         """
         Private slot to handle the coverage of script action.
@@ -1930,7 +1912,7 @@
         """
         Private slot to handle the coverage of project action.
         """
-        self.__compileChangedProjectFiles()
+        self.processChangedProjectFiles.emit()
         self.doCoverage(True)
 
     def doCoverage(self, runProject, script=""):
@@ -2134,7 +2116,7 @@
         """
         Private slot to handle the profile project action.
         """
-        self.__compileChangedProjectFiles()
+        self.processChangedProjectFiles.emit()
         self.doProfile(True)
 
     def doProfile(self, runProject, script=""):
@@ -2338,7 +2320,7 @@
         """
         Private slot to handle the run project action.
         """
-        self.__compileChangedProjectFiles()
+        self.processChangedProjectFiles.emit()
         self.doRun(True)
 
     def doRun(self, runProject, script=""):
@@ -2533,7 +2515,7 @@
         """
         Private slot to handle the debug project action.
         """
-        self.__compileChangedProjectFiles()
+        self.processChangedProjectFiles.emit()
         self.doDebug(True)
 
     def doDebug(self, debugProject, script=""):
@@ -2788,7 +2770,7 @@
                 reportSyntaxErrors=True
             ):
                 doNotStart = True
-            self.__compileChangedProjectFiles()
+            self.processChangedProjectFiles.emit()
             forProject = True
         else:
             return  # should not happen

eric ide

mercurial