Sat, 18 Dec 2010 18:11:02 +0100
Added display of suppressed client termination messages.
Debugger/DebugUI.py | file | annotate | diff | comparison | revisions | |
UI/UserInterface.py | file | annotate | diff | comparison | revisions | |
changelog | file | annotate | diff | comparison | revisions |
--- a/Debugger/DebugUI.py Sat Dec 18 15:11:10 2010 +0100 +++ b/Debugger/DebugUI.py Sat Dec 18 18:11:02 2010 +0100 @@ -40,6 +40,8 @@ @signal resetUI() emitted to reset the UI @signal exceptionInterrupt() emitted after the execution was interrupted 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 """ clientStack = pyqtSignal(list) resetUI = pyqtSignal() @@ -47,6 +49,7 @@ compileForms = pyqtSignal() compileResources = pyqtSignal() debuggingStarted = pyqtSignal(str) + appendStdout = pyqtSignal(str) def __init__(self, ui, vm, debugServer, debugViewer, project): """ @@ -940,14 +943,24 @@ if not Preferences.getDebugger("SuppressClientExit") or status != 0: if self.ui.currentProg is None: - E5MessageBox.information(self.ui,Program, + E5MessageBox.information(self.ui, Program, self.trUtf8('<p>The program has terminated with an exit' ' status of {0}.</p>').format(status)) else: - E5MessageBox.information(self.ui,Program, + E5MessageBox.information(self.ui, Program, self.trUtf8('<p><b>{0}</b> has terminated with an exit' ' status of {1}.</p>') .format(Utilities.normabspath(self.ui.currentProg), status)) + else: + if self.ui.currentProg is None: + self.appendStdout.emit( + self.trUtf8('The program has terminated with an exit' + ' status of {0}.').format(status)) + else: + self.appendStdout.emit( + self.trUtf8('"{0}" has terminated with an exit' + ' status of {1}.') + .format(Utilities.normabspath(self.ui.currentProg), status)) def __clientSyntaxError(self, message, filename, lineNo, characterNo): """ @@ -1978,4 +1991,4 @@ @return list of all actions (list of E5Action) """ - return self.actions[:] \ No newline at end of file + return self.actions[:]
--- a/UI/UserInterface.py Sat Dec 18 15:11:10 2010 +0100 +++ b/UI/UserInterface.py Sat Dec 18 18:11:02 2010 +0100 @@ -376,6 +376,7 @@ self.projectBrowser.pfBrowser.compileChangedForms) self.debuggerUI.compileResources.connect( self.projectBrowser.prBrowser.compileChangedResources) + self.debuggerUI.appendStdout.connect(self.appendToStdout) debugServer.passiveDebugStarted.connect( self.debugViewer.exceptionLogger.debuggingStarted)
--- a/changelog Sat Dec 18 15:11:10 2010 +0100 +++ b/changelog Sat Dec 18 18:11:02 2010 +0100 @@ -6,6 +6,7 @@ syntax errors and warnings) - added support for additional configurable file filters - added a certificate manager to the eric web browser +- added display of suppressed client termination messages Version 5.1-snapshot-20101029: - bug fixes