816 self, |
816 self, |
817 "webbrowser_file_save_as", |
817 "webbrowser_file_save_as", |
818 ) |
818 ) |
819 self.saveAsAct.setStatusTip(self.tr("Save the current page to disk")) |
819 self.saveAsAct.setStatusTip(self.tr("Save the current page to disk")) |
820 self.saveAsAct.setWhatsThis( |
820 self.saveAsAct.setWhatsThis( |
821 self.tr( |
821 self.tr("""<b>Save As...</b><p>Saves the current page to disk.</p>""") |
822 """<b>Save As...</b><p>Saves the current page to disk.</p>""" |
|
823 ) |
|
824 ) |
822 ) |
825 self.saveAsAct.triggered.connect(self.__savePageAs) |
823 self.saveAsAct.triggered.connect(self.__savePageAs) |
826 self.__actions.append(self.saveAsAct) |
824 self.__actions.append(self.saveAsAct) |
827 else: |
825 else: |
828 self.saveAsAct = None |
826 self.saveAsAct = None |
835 0, |
833 0, |
836 self, |
834 self, |
837 "webbrowser_file_save_visible_page_screen", |
835 "webbrowser_file_save_visible_page_screen", |
838 ) |
836 ) |
839 self.saveVisiblePageScreenAct.setStatusTip( |
837 self.saveVisiblePageScreenAct.setStatusTip( |
840 self.tr("Save the visible part of the current page as a" " screen shot") |
838 self.tr("Save the visible part of the current page as a screen shot") |
841 ) |
839 ) |
842 self.saveVisiblePageScreenAct.setWhatsThis( |
840 self.saveVisiblePageScreenAct.setWhatsThis( |
843 self.tr( |
841 self.tr( |
844 """<b>Save Page Screen...</b>""" |
842 """<b>Save Page Screen...</b>""" |
845 """<p>Saves the visible part of the current page as a""" |
843 """<p>Saves the visible part of the current page as a""" |
976 self, |
974 self, |
977 "webbrowser_file_close", |
975 "webbrowser_file_close", |
978 ) |
976 ) |
979 self.closeAct.setStatusTip(self.tr("Close the current help window")) |
977 self.closeAct.setStatusTip(self.tr("Close the current help window")) |
980 self.closeAct.setWhatsThis( |
978 self.closeAct.setWhatsThis( |
981 self.tr( |
979 self.tr("""<b>Close</b><p>Closes the current web browser window.</p>""") |
982 """<b>Close</b><p>Closes the current web browser window.</p>""" |
|
983 ) |
|
984 ) |
980 ) |
985 self.closeAct.triggered.connect(self.__tabWidget.closeBrowser) |
981 self.closeAct.triggered.connect(self.__tabWidget.closeBrowser) |
986 self.__actions.append(self.closeAct) |
982 self.__actions.append(self.closeAct) |
987 |
983 |
988 self.closeAllAct = EricAction( |
984 self.closeAllAct = EricAction( |
1116 self, |
1112 self, |
1117 "webbrowser_edit_copy", |
1113 "webbrowser_edit_copy", |
1118 ) |
1114 ) |
1119 self.copyAct.setStatusTip(self.tr("Copy the selected text")) |
1115 self.copyAct.setStatusTip(self.tr("Copy the selected text")) |
1120 self.copyAct.setWhatsThis( |
1116 self.copyAct.setWhatsThis( |
1121 self.tr( |
1117 self.tr("""<b>Copy</b><p>Copy the selected text to the clipboard.</p>""") |
1122 """<b>Copy</b><p>Copy the selected text to the clipboard.</p>""" |
|
1123 ) |
|
1124 ) |
1118 ) |
1125 self.copyAct.triggered.connect(self.__copy) |
1119 self.copyAct.triggered.connect(self.__copy) |
1126 self.__actions.append(self.copyAct) |
1120 self.__actions.append(self.copyAct) |
1127 |
1121 |
1128 self.cutAct = EricAction( |
1122 self.cutAct = EricAction( |
1134 self, |
1128 self, |
1135 "webbrowser_edit_cut", |
1129 "webbrowser_edit_cut", |
1136 ) |
1130 ) |
1137 self.cutAct.setStatusTip(self.tr("Cut the selected text")) |
1131 self.cutAct.setStatusTip(self.tr("Cut the selected text")) |
1138 self.cutAct.setWhatsThis( |
1132 self.cutAct.setWhatsThis( |
1139 self.tr( |
1133 self.tr("""<b>Cut</b><p>Cut the selected text to the clipboard.</p>""") |
1140 """<b>Cut</b><p>Cut the selected text to the clipboard.</p>""" |
|
1141 ) |
|
1142 ) |
1134 ) |
1143 self.cutAct.triggered.connect(self.__cut) |
1135 self.cutAct.triggered.connect(self.__cut) |
1144 self.__actions.append(self.cutAct) |
1136 self.__actions.append(self.cutAct) |
1145 |
1137 |
1146 self.pasteAct = EricAction( |
1138 self.pasteAct = EricAction( |
5551 fn = EricFileDialog.getOpenFileName( |
5543 fn = EricFileDialog.getOpenFileName( |
5552 None, |
5544 None, |
5553 self.tr("Import Keyboard Shortcuts"), |
5545 self.tr("Import Keyboard Shortcuts"), |
5554 "", |
5546 "", |
5555 self.tr( |
5547 self.tr( |
5556 "Keyboard Shortcuts File (*.ekj);;" "XML Keyboard shortcut file (*.e4k)" |
5548 "Keyboard Shortcuts File (*.ekj);;XML Keyboard shortcut file (*.e4k)" |
5557 ), |
5549 ), |
5558 ) |
5550 ) |
5559 |
5551 |
5560 if fn: |
5552 if fn: |
5561 Shortcuts.importShortcuts(fn, helpViewer=self) |
5553 Shortcuts.importShortcuts(fn, helpViewer=self) |