386 @param evt close event (QCloseEvent) |
386 @param evt close event (QCloseEvent) |
387 """ |
387 """ |
388 if self.__modified: |
388 if self.__modified: |
389 res = E5MessageBox.question( |
389 res = E5MessageBox.question( |
390 self, |
390 self, |
391 self.tr("eric6 Snapshot"), |
391 self.tr("eric Snapshot"), |
392 self.tr( |
392 self.tr( |
393 """The application contains an unsaved snapshot."""), |
393 """The application contains an unsaved snapshot."""), |
394 E5MessageBox.StandardButtons( |
394 E5MessageBox.StandardButtons( |
395 E5MessageBox.Abort | |
395 E5MessageBox.Abort | |
396 E5MessageBox.Discard | |
396 E5MessageBox.Discard | |
416 """ |
416 """ |
417 Private method to update the window caption. |
417 Private method to update the window caption. |
418 """ |
418 """ |
419 self.setWindowTitle("{0}[*] - {1}".format( |
419 self.setWindowTitle("{0}[*] - {1}".format( |
420 os.path.basename(self.__filename), |
420 os.path.basename(self.__filename), |
421 self.tr("eric6 Snapshot"))) |
421 self.tr("eric Snapshot"))) |
422 self.setWindowModified(self.__modified) |
422 self.setWindowModified(self.__modified) |
423 self.pathNameEdit.setText(os.path.dirname(self.__filename)) |
423 self.pathNameEdit.setText(os.path.dirname(self.__filename)) |
424 |
424 |
425 @pyqtSlot(int) |
425 @pyqtSlot(int) |
426 def on_modeCombo_currentIndexChanged(self, index): |
426 def on_modeCombo_currentIndexChanged(self, index): |