--- a/Project/ProjectInterfacesBrowser.py Sun Nov 04 17:39:08 2012 +0100 +++ b/Project/ProjectInterfacesBrowser.py Mon Nov 05 16:55:16 2012 +0100 @@ -24,6 +24,7 @@ from UI.BrowserModel import BrowserFileItem, BrowserClassItem, BrowserMethodItem, \ BrowserClassAttributeItem from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog +import UI.PixmapCache import Preferences import Utilities @@ -440,6 +441,7 @@ @param exitStatus exit status of the process (QProcess.ExitStatus) """ self.compileRunning = False + ui = e5App().getObject("UserInterface") if exitStatus == QProcess.NormalExit and exitCode == 0: path = os.path.dirname(self.idlFile) poaList = glob.glob(os.path.join(path, "*__POA")) @@ -449,15 +451,23 @@ fileList += Utilities.direntries(dir, True, "*.py") for file in fileList: self.project.appendFile(file) - if not self.noDialog: + if not self.noDialog and not ui.notificationsEnabled(): E5MessageBox.information(self, self.trUtf8("Interface Compilation"), self.trUtf8("The compilation of the interface file was successful.")) + else: + ui.showNotification(UI.PixmapCache.getPixmap("corba48.png"), + self.trUtf8("Interface Compilation"), + self.trUtf8("The compilation of the interface file was successful.")) else: if not self.noDialog: E5MessageBox.information(self, self.trUtf8("Interface Compilation"), self.trUtf8("The compilation of the interface file failed.")) + else: + ui.showNotification(UI.PixmapCache.getPixmap("corba48.png"), + self.trUtf8("Interface Compilation"), + self.trUtf8("The compilation of the interface file failed.")) self.compileProc = None def __compileIDL(self, fn, noDialog=False, progress=None):