615 files.append(fn) |
615 files.append(fn) |
616 |
616 |
617 dlg = DeleteFilesConfirmationDialog( |
617 dlg = DeleteFilesConfirmationDialog( |
618 self.parent(), |
618 self.parent(), |
619 self.tr("Delete resources"), |
619 self.tr("Delete resources"), |
620 self.tr( |
620 self.tr("Do you really want to delete these resources from the project?"), |
621 "Do you really want to delete these resources from the" " project?" |
|
622 ), |
|
623 files, |
621 files, |
624 ) |
622 ) |
625 |
623 |
626 if dlg.exec() == QDialog.DialogCode.Accepted: |
624 if dlg.exec() == QDialog.DialogCode.Accepted: |
627 for fn2, fn in zip(fullNames, files): |
625 for fn2, fn in zip(fullNames, files): |
689 ): |
687 ): |
690 self.project.appendFile(ofn) |
688 self.project.appendFile(ofn) |
691 ui.showNotification( |
689 ui.showNotification( |
692 EricPixmapCache.getPixmap("resourcesCompiler48"), |
690 EricPixmapCache.getPixmap("resourcesCompiler48"), |
693 self.tr("Resource Compilation"), |
691 self.tr("Resource Compilation"), |
694 self.tr("The compilation of the resource file" " was successful."), |
692 self.tr("The compilation of the resource file was successful."), |
695 ) |
693 ) |
696 except OSError as msg: |
694 except OSError as msg: |
697 if not self.noDialog: |
695 if not self.noDialog: |
698 EricMessageBox.information( |
696 EricMessageBox.information( |
699 self, |
697 self, |
794 progress.cancel() |
792 progress.cancel() |
795 EricMessageBox.critical( |
793 EricMessageBox.critical( |
796 self, |
794 self, |
797 self.tr("Process Generation Error"), |
795 self.tr("Process Generation Error"), |
798 self.tr( |
796 self.tr( |
799 "Could not start {0}.<br>" "Ensure that it is in the search path." |
797 "Could not start {0}.<br>Ensure that it is in the search path." |
800 ).format(self.rccCompiler), |
798 ).format(self.rccCompiler), |
801 ) |
799 ) |
802 return None |
800 return None |
803 |
801 |
804 def __compileResource(self): |
802 def __compileResource(self): |