MultiProject/MultiProject.py

changeset 539
87f9bce38a44
parent 537
72b32daeb8d6
child 546
c3e7bf5648be
equal deleted inserted replaced
538:7f1a56e80124 539:87f9bce38a44
598 if not ext: 598 if not ext:
599 ex = selectedFilter.split("(*")[1].split(")")[0] 599 ex = selectedFilter.split("(*")[1].split(")")[0]
600 if ex: 600 if ex:
601 fn += ex 601 fn += ex
602 if QFileInfo(fn).exists(): 602 if QFileInfo(fn).exists():
603 res = QMessageBox.warning(None, 603 res = E5MessageBox.warning(self.parent(),
604 self.trUtf8("Save File"), 604 self.trUtf8("Save File"),
605 self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""") 605 self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""")
606 .format(fn), 606 .format(fn),
607 QMessageBox.StandardButtons(\ 607 QMessageBox.StandardButtons(\
608 QMessageBox.Abort | \ 608 QMessageBox.Abort | \
625 Public method to check the dirty status and open a message window. 625 Public method to check the dirty status and open a message window.
626 626
627 @return flag indicating whether this operation was successful (boolean) 627 @return flag indicating whether this operation was successful (boolean)
628 """ 628 """
629 if self.isDirty(): 629 if self.isDirty():
630 res = QMessageBox.warning(self.parent(), 630 res = E5MessageBox.warning(self.parent(),
631 self.trUtf8("Close Multiproject"), 631 self.trUtf8("Close Multiproject"),
632 self.trUtf8("The current multiproject has unsaved changes."), 632 self.trUtf8("The current multiproject has unsaved changes."),
633 QMessageBox.StandardButtons(\ 633 QMessageBox.StandardButtons(\
634 QMessageBox.Abort | \ 634 QMessageBox.Abort | \
635 QMessageBox.Discard | \ 635 QMessageBox.Discard | \

eric ide

mercurial