269 "hexEditor_file_close", |
269 "hexEditor_file_close", |
270 ) |
270 ) |
271 self.closeAct.setStatusTip(self.tr("Close the current hex editor window")) |
271 self.closeAct.setStatusTip(self.tr("Close the current hex editor window")) |
272 self.closeAct.setWhatsThis( |
272 self.closeAct.setWhatsThis( |
273 self.tr( |
273 self.tr( |
274 """<b>Close</b>""" """<p>Closes the current hex editor window.</p>""" |
274 """<b>Close</b><p>Closes the current hex editor window.</p>""" |
275 ) |
275 ) |
276 ) |
276 ) |
277 self.closeAct.triggered.connect(self.close) |
277 self.closeAct.triggered.connect(self.close) |
278 self.__actions.append(self.closeAct) |
278 self.__actions.append(self.closeAct) |
279 |
279 |
285 self, |
285 self, |
286 "hexEditor_file_close_all", |
286 "hexEditor_file_close_all", |
287 ) |
287 ) |
288 self.closeAllAct.setStatusTip(self.tr("Close all hex editor windows")) |
288 self.closeAllAct.setStatusTip(self.tr("Close all hex editor windows")) |
289 self.closeAllAct.setWhatsThis( |
289 self.closeAllAct.setWhatsThis( |
290 self.tr("""<b>Close All</b>""" """<p>Closes all hex editor windows.</p>""") |
290 self.tr("""<b>Close All</b><p>Closes all hex editor windows.</p>""") |
291 ) |
291 ) |
292 self.closeAllAct.triggered.connect(self.__closeAll) |
292 self.closeAllAct.triggered.connect(self.__closeAll) |
293 self.__actions.append(self.closeAllAct) |
293 self.__actions.append(self.closeAllAct) |
294 |
294 |
295 self.closeOthersAct = EricAction( |
295 self.closeOthersAct = EricAction( |
319 self, |
319 self, |
320 "hexEditor_file_quit", |
320 "hexEditor_file_quit", |
321 ) |
321 ) |
322 self.exitAct.setStatusTip(self.tr("Quit the hex editor")) |
322 self.exitAct.setStatusTip(self.tr("Quit the hex editor")) |
323 self.exitAct.setWhatsThis( |
323 self.exitAct.setWhatsThis( |
324 self.tr("""<b>Quit</b>""" """<p>Quit the hex editor.</p>""") |
324 self.tr("""<b>Quit</b><p>Quit the hex editor.</p>""") |
325 ) |
325 ) |
326 if not self.__fromEric: |
326 if not self.__fromEric: |
327 self.exitAct.triggered.connect(self.__closeAll) |
327 self.exitAct.triggered.connect(self.__closeAll) |
328 self.__actions.append(self.exitAct) |
328 self.__actions.append(self.exitAct) |
329 |
329 |
340 self, |
340 self, |
341 "hexEditor_edit_undo", |
341 "hexEditor_edit_undo", |
342 ) |
342 ) |
343 self.undoAct.setStatusTip(self.tr("Undo the last change")) |
343 self.undoAct.setStatusTip(self.tr("Undo the last change")) |
344 self.undoAct.setWhatsThis( |
344 self.undoAct.setWhatsThis( |
345 self.tr("""<b>Undo</b>""" """<p>Undo the last change done.</p>""") |
345 self.tr("""<b>Undo</b><p>Undo the last change done.</p>""") |
346 ) |
346 ) |
347 self.undoAct.triggered.connect(self.__editor.undo) |
347 self.undoAct.triggered.connect(self.__editor.undo) |
348 self.__actions.append(self.undoAct) |
348 self.__actions.append(self.undoAct) |
349 |
349 |
350 self.redoAct = EricAction( |
350 self.redoAct = EricAction( |
356 self, |
356 self, |
357 "hexEditor_edit_redo", |
357 "hexEditor_edit_redo", |
358 ) |
358 ) |
359 self.redoAct.setStatusTip(self.tr("Redo the last change")) |
359 self.redoAct.setStatusTip(self.tr("Redo the last change")) |
360 self.redoAct.setWhatsThis( |
360 self.redoAct.setWhatsThis( |
361 self.tr("""<b>Redo</b>""" """<p>Redo the last change done.</p>""") |
361 self.tr("""<b>Redo</b><p>Redo the last change done.</p>""") |
362 ) |
362 ) |
363 self.redoAct.triggered.connect(self.__editor.redo) |
363 self.redoAct.triggered.connect(self.__editor.redo) |
364 self.__actions.append(self.redoAct) |
364 self.__actions.append(self.redoAct) |
365 |
365 |
366 self.revertAct = EricAction( |
366 self.revertAct = EricAction( |
429 self, |
429 self, |
430 "hexEditor_edit_paste", |
430 "hexEditor_edit_paste", |
431 ) |
431 ) |
432 self.pasteAct.setStatusTip(self.tr("Paste the clipboard contents")) |
432 self.pasteAct.setStatusTip(self.tr("Paste the clipboard contents")) |
433 self.pasteAct.setWhatsThis( |
433 self.pasteAct.setWhatsThis( |
434 self.tr("""<b>Paste</b>""" """<p>Paste the clipboard contents.</p>""") |
434 self.tr("""<b>Paste</b><p>Paste the clipboard contents.</p>""") |
435 ) |
435 ) |
436 self.pasteAct.triggered.connect(self.__editor.paste) |
436 self.pasteAct.triggered.connect(self.__editor.paste) |
437 self.__actions.append(self.pasteAct) |
437 self.__actions.append(self.pasteAct) |
438 |
438 |
439 self.selectAllAct = EricAction( |
439 self.selectAllAct = EricAction( |
446 "hexEditor_edit_select_all", |
446 "hexEditor_edit_select_all", |
447 ) |
447 ) |
448 self.selectAllAct.setStatusTip(self.tr("Select the complete binary data")) |
448 self.selectAllAct.setStatusTip(self.tr("Select the complete binary data")) |
449 self.selectAllAct.setWhatsThis( |
449 self.selectAllAct.setWhatsThis( |
450 self.tr( |
450 self.tr( |
451 """<b>Select All</b>""" """<p>Selects the complete binary data.</p>""" |
451 """<b>Select All</b><p>Selects the complete binary data.</p>""" |
452 ) |
452 ) |
453 ) |
453 ) |
454 self.selectAllAct.triggered.connect(self.__editor.selectAll) |
454 self.selectAllAct.triggered.connect(self.__editor.selectAll) |
455 self.__actions.append(self.selectAllAct) |
455 self.__actions.append(self.selectAllAct) |
456 |
456 |
463 "hexEditor_edit_deselect_all", |
463 "hexEditor_edit_deselect_all", |
464 ) |
464 ) |
465 self.deselectAllAct.setStatusTip(self.tr("Deselect all binary data")) |
465 self.deselectAllAct.setStatusTip(self.tr("Deselect all binary data")) |
466 self.deselectAllAct.setWhatsThis( |
466 self.deselectAllAct.setWhatsThis( |
467 self.tr( |
467 self.tr( |
468 """<b>Deselect All</b>""" """<p>Deselect all all binary data.</p>""" |
468 """<b>Deselect All</b><p>Deselect all all binary data.</p>""" |
469 ) |
469 ) |
470 ) |
470 ) |
471 self.deselectAllAct.triggered.connect(self.__editor.deselectAll) |
471 self.deselectAllAct.triggered.connect(self.__editor.deselectAll) |
472 self.__actions.append(self.deselectAllAct) |
472 self.__actions.append(self.deselectAllAct) |
473 |
473 |