IconEditor/IconEditorGrid.py

changeset 538
7f1a56e80124
parent 519
3636a66eb5a2
child 539
87f9bce38a44
equal deleted inserted replaced
537:72b32daeb8d6 538:7f1a56e80124
7 Module implementing the icon editor grid. 7 Module implementing the icon editor grid.
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 from .cursors import cursors_rc 15 from .cursors import cursors_rc
14 16
15 from .IconSizeDialog import IconSizeDialog 17 from .IconSizeDialog import IconSizeDialog
16 18
828 @param pasting flag indicating part two of the paste operation (boolean) 830 @param pasting flag indicating part two of the paste operation (boolean)
829 """ 831 """
830 img, ok = self.__clipboardImage() 832 img, ok = self.__clipboardImage()
831 if ok: 833 if ok:
832 if img.width() > self.__image.width() or img.height() > self.__image.height(): 834 if img.width() > self.__image.width() or img.height() > self.__image.height():
833 res = QMessageBox.question(self, 835 res = E5MessageBox.question(self,
834 self.trUtf8("Paste"), 836 self.trUtf8("Paste"),
835 self.trUtf8("""<p>The clipboard image is larger than the current """ 837 self.trUtf8("""<p>The clipboard image is larger than the current """
836 """image.<br/>Paste as new image?</p>"""), 838 """image.<br/>Paste as new image?</p>"""),
837 QMessageBox.StandardButtons(\ 839 QMessageBox.StandardButtons(\
838 QMessageBox.No | \ 840 QMessageBox.No | \

eric ide

mercurial