QScintilla/Exporters/ExporterBase.py

changeset 539
87f9bce38a44
parent 24
9233b51b54d1
child 546
c3e7bf5648be
equal deleted inserted replaced
538:7f1a56e80124 539:87f9bce38a44
7 Module implementing the exporter base class. 7 Module implementing the exporter base class.
8 """ 8 """
9 9
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12
13 from E5Gui import E5MessageBox
12 14
13 import Utilities 15 import Utilities
14 16
15 class ExporterBase(QObject): 17 class ExporterBase(QObject):
16 """ 18 """
49 if not ext: 51 if not ext:
50 ex = selectedFilter.split("(*")[1].split(")")[0] 52 ex = selectedFilter.split("(*")[1].split(")")[0]
51 if ex: 53 if ex:
52 fn += ex 54 fn += ex
53 if QFileInfo(fn).exists(): 55 if QFileInfo(fn).exists():
54 res = QMessageBox.warning(self.editor, 56 res = E5MessageBox.warning(self.editor,
55 self.trUtf8("Export source"), 57 self.trUtf8("Export source"),
56 self.trUtf8("<p>The file <b>{0}</b> already exists.</p>") 58 self.trUtf8("<p>The file <b>{0}</b> already exists.</p>")
57 .format(fn), 59 .format(fn),
58 QMessageBox.StandardButtons(\ 60 QMessageBox.StandardButtons(\
59 QMessageBox.Abort | \ 61 QMessageBox.Abort | \

eric ide

mercurial