140 "pgm": self.tr("Portable Graymap File (*.pgm)"), |
140 "pgm": self.tr("Portable Graymap File (*.pgm)"), |
141 "png": self.tr("Portable Network Graphics File (*.png)"), |
141 "png": self.tr("Portable Network Graphics File (*.png)"), |
142 "ppm": self.tr("Portable Pixmap File (*.ppm)"), |
142 "ppm": self.tr("Portable Pixmap File (*.ppm)"), |
143 "sgi": self.tr("Silicon Graphics Image File (*.sgi)"), |
143 "sgi": self.tr("Silicon Graphics Image File (*.sgi)"), |
144 "svg": self.tr("Scalable Vector Graphics File (*.svg)"), |
144 "svg": self.tr("Scalable Vector Graphics File (*.svg)"), |
145 "svgz": self.tr("Compressed Scalable Vector Graphics File" " (*.svgz)"), |
145 "svgz": self.tr("Compressed Scalable Vector Graphics File (*.svgz)"), |
146 "tga": self.tr("Targa Graphic File (*.tga)"), |
146 "tga": self.tr("Targa Graphic File (*.tga)"), |
147 "tif": self.tr("TIFF File (*.tif)"), |
147 "tif": self.tr("TIFF File (*.tif)"), |
148 "tiff": self.tr("TIFF File (*.tiff)"), |
148 "tiff": self.tr("TIFF File (*.tiff)"), |
149 "wbmp": self.tr("WAP Bitmap File (*.wbmp)"), |
149 "wbmp": self.tr("WAP Bitmap File (*.wbmp)"), |
150 "webp": self.tr("WebP Image File (*.webp)"), |
150 "webp": self.tr("WebP Image File (*.webp)"), |
290 self, |
290 self, |
291 "iconEditor_file_close", |
291 "iconEditor_file_close", |
292 ) |
292 ) |
293 self.closeAct.setStatusTip(self.tr("Close the current icon editor window")) |
293 self.closeAct.setStatusTip(self.tr("Close the current icon editor window")) |
294 self.closeAct.setWhatsThis( |
294 self.closeAct.setWhatsThis( |
295 self.tr( |
295 self.tr("""<b>Close</b><p>Closes the current icon editor window.</p>""") |
296 """<b>Close</b><p>Closes the current icon editor window.</p>""" |
|
297 ) |
|
298 ) |
296 ) |
299 self.closeAct.triggered.connect(self.close) |
297 self.closeAct.triggered.connect(self.close) |
300 self.__actions.append(self.closeAct) |
298 self.__actions.append(self.closeAct) |
301 |
299 |
302 self.closeAllAct = EricAction( |
300 self.closeAllAct = EricAction( |
490 self, |
488 self, |
491 "iconEditor_edit_select_all", |
489 "iconEditor_edit_select_all", |
492 ) |
490 ) |
493 self.selectAllAct.setStatusTip(self.tr("Select the complete icon image")) |
491 self.selectAllAct.setStatusTip(self.tr("Select the complete icon image")) |
494 self.selectAllAct.setWhatsThis( |
492 self.selectAllAct.setWhatsThis( |
495 self.tr( |
493 self.tr("""<b>Select All</b><p>Selects the complete icon image.</p>""") |
496 """<b>Select All</b><p>Selects the complete icon image.</p>""" |
|
497 ) |
|
498 ) |
494 ) |
499 self.selectAllAct.triggered.connect(self.__editor.editSelectAll) |
495 self.selectAllAct.triggered.connect(self.__editor.editSelectAll) |
500 self.__actions.append(self.selectAllAct) |
496 self.__actions.append(self.selectAllAct) |
501 |
497 |
502 self.resizeAct = EricAction( |
498 self.resizeAct = EricAction( |
807 0, |
803 0, |
808 0, |
804 0, |
809 self.drawingActGrp, |
805 self.drawingActGrp, |
810 "iconEditor_tools_line", |
806 "iconEditor_tools_line", |
811 ) |
807 ) |
812 self.drawLineAct.setWhatsThis( |
808 self.drawLineAct.setWhatsThis(self.tr("""<b>Line</b><p>Draw a line.</p>""")) |
813 self.tr("""<b>Line</b><p>Draw a line.</p>""") |
|
814 ) |
|
815 self.drawLineAct.setCheckable(True) |
809 self.drawLineAct.setCheckable(True) |
816 self.esm.setMapping(self.drawLineAct, IconEditorTool.LINE) |
810 self.esm.setMapping(self.drawLineAct, IconEditorTool.LINE) |
817 self.drawLineAct.triggered.connect(self.esm.map) |
811 self.drawLineAct.triggered.connect(self.esm.map) |
818 self.__actions.append(self.drawLineAct) |
812 self.__actions.append(self.drawLineAct) |
819 |
813 |