src/eric7/WebBrowser/WebBrowserWindow.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9482
a2bc06a54d9d
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
717 self, 717 self,
718 "webbrowser_file_new_tab", 718 "webbrowser_file_new_tab",
719 ) 719 )
720 self.newTabAct.setStatusTip(self.tr("Open a new web browser tab")) 720 self.newTabAct.setStatusTip(self.tr("Open a new web browser tab"))
721 self.newTabAct.setWhatsThis( 721 self.newTabAct.setWhatsThis(
722 self.tr("""<b>New Tab</b>""" """<p>This opens a new web browser tab.</p>""") 722 self.tr("""<b>New Tab</b><p>This opens a new web browser tab.</p>""")
723 ) 723 )
724 self.newTabAct.triggered.connect(self.newTab) 724 self.newTabAct.triggered.connect(self.newTab)
725 self.__actions.append(self.newTabAct) 725 self.__actions.append(self.newTabAct)
726 726
727 self.newAct = EricAction( 727 self.newAct = EricAction(
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(
822 """<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 ) 823 )
824 ) 824 )
825 self.saveAsAct.triggered.connect(self.__savePageAs) 825 self.saveAsAct.triggered.connect(self.__savePageAs)
826 self.__actions.append(self.saveAsAct) 826 self.__actions.append(self.saveAsAct)
827 else: 827 else:
899 self, 899 self,
900 "webbrowser_file_print", 900 "webbrowser_file_print",
901 ) 901 )
902 self.printAct.setStatusTip(self.tr("Print the displayed help")) 902 self.printAct.setStatusTip(self.tr("Print the displayed help"))
903 self.printAct.setWhatsThis( 903 self.printAct.setWhatsThis(
904 self.tr("""<b>Print</b>""" """<p>Print the displayed help text.</p>""") 904 self.tr("""<b>Print</b><p>Print the displayed help text.</p>""")
905 ) 905 )
906 self.printAct.triggered.connect(self.__tabWidget.printBrowser) 906 self.printAct.triggered.connect(self.__tabWidget.printBrowser)
907 self.__actions.append(self.printAct) 907 self.__actions.append(self.printAct)
908 908
909 self.printPdfAct = EricAction( 909 self.printPdfAct = EricAction(
977 "webbrowser_file_close", 977 "webbrowser_file_close",
978 ) 978 )
979 self.closeAct.setStatusTip(self.tr("Close the current help window")) 979 self.closeAct.setStatusTip(self.tr("Close the current help window"))
980 self.closeAct.setWhatsThis( 980 self.closeAct.setWhatsThis(
981 self.tr( 981 self.tr(
982 """<b>Close</b>""" """<p>Closes the current web browser window.</p>""" 982 """<b>Close</b><p>Closes the current web browser window.</p>"""
983 ) 983 )
984 ) 984 )
985 self.closeAct.triggered.connect(self.__tabWidget.closeBrowser) 985 self.closeAct.triggered.connect(self.__tabWidget.closeBrowser)
986 self.__actions.append(self.closeAct) 986 self.__actions.append(self.closeAct)
987 987
1012 self, 1012 self,
1013 "webbrowser_file_quit", 1013 "webbrowser_file_quit",
1014 ) 1014 )
1015 self.exitAct.setStatusTip(self.tr("Quit the eric Web Browser")) 1015 self.exitAct.setStatusTip(self.tr("Quit the eric Web Browser"))
1016 self.exitAct.setWhatsThis( 1016 self.exitAct.setWhatsThis(
1017 self.tr("""<b>Quit</b>""" """<p>Quit the eric Web Browser.</p>""") 1017 self.tr("""<b>Quit</b><p>Quit the eric Web Browser.</p>""")
1018 ) 1018 )
1019 self.exitAct.triggered.connect(self.shutdown) 1019 self.exitAct.triggered.connect(self.shutdown)
1020 self.__actions.append(self.exitAct) 1020 self.__actions.append(self.exitAct)
1021 1021
1022 self.backAct = EricAction( 1022 self.backAct = EricAction(
1068 self, 1068 self,
1069 "webbrowser_go_home", 1069 "webbrowser_go_home",
1070 ) 1070 )
1071 self.homeAct.setStatusTip(self.tr("Move to the initial screen")) 1071 self.homeAct.setStatusTip(self.tr("Move to the initial screen"))
1072 self.homeAct.setWhatsThis( 1072 self.homeAct.setWhatsThis(
1073 self.tr("""<b>Home</b>""" """<p>Moves to the initial screen.</p>""") 1073 self.tr("""<b>Home</b><p>Moves to the initial screen.</p>""")
1074 ) 1074 )
1075 self.homeAct.triggered.connect(self.__home) 1075 self.homeAct.triggered.connect(self.__home)
1076 self.__actions.append(self.homeAct) 1076 self.__actions.append(self.homeAct)
1077 1077
1078 self.reloadAct = EricAction( 1078 self.reloadAct = EricAction(
1084 self, 1084 self,
1085 "webbrowser_go_reload", 1085 "webbrowser_go_reload",
1086 ) 1086 )
1087 self.reloadAct.setStatusTip(self.tr("Reload the current screen")) 1087 self.reloadAct.setStatusTip(self.tr("Reload the current screen"))
1088 self.reloadAct.setWhatsThis( 1088 self.reloadAct.setWhatsThis(
1089 self.tr("""<b>Reload</b>""" """<p>Reloads the current screen.</p>""") 1089 self.tr("""<b>Reload</b><p>Reloads the current screen.</p>""")
1090 ) 1090 )
1091 self.reloadAct.triggered.connect(self.__reload) 1091 self.reloadAct.triggered.connect(self.__reload)
1092 self.__actions.append(self.reloadAct) 1092 self.__actions.append(self.reloadAct)
1093 1093
1094 self.stopAct = EricAction( 1094 self.stopAct = EricAction(
1100 self, 1100 self,
1101 "webbrowser_go_stop", 1101 "webbrowser_go_stop",
1102 ) 1102 )
1103 self.stopAct.setStatusTip(self.tr("Stop loading")) 1103 self.stopAct.setStatusTip(self.tr("Stop loading"))
1104 self.stopAct.setWhatsThis( 1104 self.stopAct.setWhatsThis(
1105 self.tr("""<b>Stop</b>""" """<p>Stops loading of the current tab.</p>""") 1105 self.tr("""<b>Stop</b><p>Stops loading of the current tab.</p>""")
1106 ) 1106 )
1107 self.stopAct.triggered.connect(self.__stopLoading) 1107 self.stopAct.triggered.connect(self.__stopLoading)
1108 self.__actions.append(self.stopAct) 1108 self.__actions.append(self.stopAct)
1109 1109
1110 self.copyAct = EricAction( 1110 self.copyAct = EricAction(
1117 "webbrowser_edit_copy", 1117 "webbrowser_edit_copy",
1118 ) 1118 )
1119 self.copyAct.setStatusTip(self.tr("Copy the selected text")) 1119 self.copyAct.setStatusTip(self.tr("Copy the selected text"))
1120 self.copyAct.setWhatsThis( 1120 self.copyAct.setWhatsThis(
1121 self.tr( 1121 self.tr(
1122 """<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 ) 1123 )
1124 ) 1124 )
1125 self.copyAct.triggered.connect(self.__copy) 1125 self.copyAct.triggered.connect(self.__copy)
1126 self.__actions.append(self.copyAct) 1126 self.__actions.append(self.copyAct)
1127 1127
1135 "webbrowser_edit_cut", 1135 "webbrowser_edit_cut",
1136 ) 1136 )
1137 self.cutAct.setStatusTip(self.tr("Cut the selected text")) 1137 self.cutAct.setStatusTip(self.tr("Cut the selected text"))
1138 self.cutAct.setWhatsThis( 1138 self.cutAct.setWhatsThis(
1139 self.tr( 1139 self.tr(
1140 """<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 ) 1141 )
1142 ) 1142 )
1143 self.cutAct.triggered.connect(self.__cut) 1143 self.cutAct.triggered.connect(self.__cut)
1144 self.__actions.append(self.cutAct) 1144 self.__actions.append(self.cutAct)
1145 1145
1152 self, 1152 self,
1153 "webbrowser_edit_paste", 1153 "webbrowser_edit_paste",
1154 ) 1154 )
1155 self.pasteAct.setStatusTip(self.tr("Paste text from the clipboard")) 1155 self.pasteAct.setStatusTip(self.tr("Paste text from the clipboard"))
1156 self.pasteAct.setWhatsThis( 1156 self.pasteAct.setWhatsThis(
1157 self.tr("""<b>Paste</b>""" """<p>Paste some text from the clipboard.</p>""") 1157 self.tr("""<b>Paste</b><p>Paste some text from the clipboard.</p>""")
1158 ) 1158 )
1159 self.pasteAct.triggered.connect(self.__paste) 1159 self.pasteAct.triggered.connect(self.__paste)
1160 self.__actions.append(self.pasteAct) 1160 self.__actions.append(self.pasteAct)
1161 1161
1162 self.undoAct = EricAction( 1162 self.undoAct = EricAction(
1168 self, 1168 self,
1169 "webbrowser_edit_undo", 1169 "webbrowser_edit_undo",
1170 ) 1170 )
1171 self.undoAct.setStatusTip(self.tr("Undo the last edit action")) 1171 self.undoAct.setStatusTip(self.tr("Undo the last edit action"))
1172 self.undoAct.setWhatsThis( 1172 self.undoAct.setWhatsThis(
1173 self.tr("""<b>Undo</b>""" """<p>Undo the last edit action.</p>""") 1173 self.tr("""<b>Undo</b><p>Undo the last edit action.</p>""")
1174 ) 1174 )
1175 self.undoAct.triggered.connect(self.__undo) 1175 self.undoAct.triggered.connect(self.__undo)
1176 self.__actions.append(self.undoAct) 1176 self.__actions.append(self.undoAct)
1177 1177
1178 self.redoAct = EricAction( 1178 self.redoAct = EricAction(
1184 self, 1184 self,
1185 "webbrowser_edit_redo", 1185 "webbrowser_edit_redo",
1186 ) 1186 )
1187 self.redoAct.setStatusTip(self.tr("Redo the last edit action")) 1187 self.redoAct.setStatusTip(self.tr("Redo the last edit action"))
1188 self.redoAct.setWhatsThis( 1188 self.redoAct.setWhatsThis(
1189 self.tr("""<b>Redo</b>""" """<p>Redo the last edit action.</p>""") 1189 self.tr("""<b>Redo</b><p>Redo the last edit action.</p>""")
1190 ) 1190 )
1191 self.redoAct.triggered.connect(self.__redo) 1191 self.redoAct.triggered.connect(self.__redo)
1192 self.__actions.append(self.redoAct) 1192 self.__actions.append(self.redoAct)
1193 1193
1194 self.selectAllAct = EricAction( 1194 self.selectAllAct = EricAction(
1237 self, 1237 self,
1238 "webbrowser_edit_find", 1238 "webbrowser_edit_find",
1239 ) 1239 )
1240 self.findAct.setStatusTip(self.tr("Find text in page")) 1240 self.findAct.setStatusTip(self.tr("Find text in page"))
1241 self.findAct.setWhatsThis( 1241 self.findAct.setWhatsThis(
1242 self.tr("""<b>Find</b>""" """<p>Find text in the current page.</p>""") 1242 self.tr("""<b>Find</b><p>Find text in the current page.</p>""")
1243 ) 1243 )
1244 self.findAct.triggered.connect(self.__find) 1244 self.findAct.triggered.connect(self.__find)
1245 self.__actions.append(self.findAct) 1245 self.__actions.append(self.findAct)
1246 1246
1247 self.findNextAct = EricAction( 1247 self.findNextAct = EricAction(
1602 self, 1602 self,
1603 "webbrowser_cookies", 1603 "webbrowser_cookies",
1604 ) 1604 )
1605 self.cookiesAct.setStatusTip(self.tr("Configure cookies handling")) 1605 self.cookiesAct.setStatusTip(self.tr("Configure cookies handling"))
1606 self.cookiesAct.setWhatsThis( 1606 self.cookiesAct.setWhatsThis(
1607 self.tr("""<b>Cookies</b>""" """<p>Configure cookies handling.</p>""") 1607 self.tr("""<b>Cookies</b><p>Configure cookies handling.</p>""")
1608 ) 1608 )
1609 self.cookiesAct.triggered.connect(self.__showCookiesConfiguration) 1609 self.cookiesAct.triggered.connect(self.__showCookiesConfiguration)
1610 self.__actions.append(self.cookiesAct) 1610 self.__actions.append(self.cookiesAct)
1611 1611
1612 self.personalDataAct = EricAction( 1612 self.personalDataAct = EricAction(
1740 self.showIndexAct = EricAction( 1740 self.showIndexAct = EricAction(
1741 self.tr("Index"), self.tr("Index"), 0, 0, self, "webbrowser_show_index" 1741 self.tr("Index"), self.tr("Index"), 0, 0, self, "webbrowser_show_index"
1742 ) 1742 )
1743 self.showIndexAct.setStatusTip(self.tr("Shows the index window")) 1743 self.showIndexAct.setStatusTip(self.tr("Shows the index window"))
1744 self.showIndexAct.setWhatsThis( 1744 self.showIndexAct.setWhatsThis(
1745 self.tr("""<b>Index</b>""" """<p>Shows the index window.</p>""") 1745 self.tr("""<b>Index</b><p>Shows the index window.</p>""")
1746 ) 1746 )
1747 self.showIndexAct.triggered.connect(self.__showIndexWindow) 1747 self.showIndexAct.triggered.connect(self.__showIndexWindow)
1748 self.__actions.append(self.showIndexAct) 1748 self.__actions.append(self.showIndexAct)
1749 1749
1750 self.showSearchAct = EricAction( 1750 self.showSearchAct = EricAction(
1755 self, 1755 self,
1756 "webbrowser_show_search", 1756 "webbrowser_show_search",
1757 ) 1757 )
1758 self.showSearchAct.setStatusTip(self.tr("Shows the search window")) 1758 self.showSearchAct.setStatusTip(self.tr("Shows the search window"))
1759 self.showSearchAct.setWhatsThis( 1759 self.showSearchAct.setWhatsThis(
1760 self.tr("""<b>Search</b>""" """<p>Shows the search window.</p>""") 1760 self.tr("""<b>Search</b><p>Shows the search window.</p>""")
1761 ) 1761 )
1762 self.showSearchAct.triggered.connect(self.__showSearchWindow) 1762 self.showSearchAct.triggered.connect(self.__showSearchWindow)
1763 self.__actions.append(self.showSearchAct) 1763 self.__actions.append(self.showSearchAct)
1764 1764
1765 self.manageQtHelpDocsAct = EricAction( 1765 self.manageQtHelpDocsAct = EricAction(
1980 self, 1980 self,
1981 "webbrowser_show_downloads", 1981 "webbrowser_show_downloads",
1982 ) 1982 )
1983 self.showDownloadManagerAct.setStatusTip(self.tr("Shows the downloads window")) 1983 self.showDownloadManagerAct.setStatusTip(self.tr("Shows the downloads window"))
1984 self.showDownloadManagerAct.setWhatsThis( 1984 self.showDownloadManagerAct.setWhatsThis(
1985 self.tr("""<b>Downloads</b>""" """<p>Shows the downloads window.</p>""") 1985 self.tr("""<b>Downloads</b><p>Shows the downloads window.</p>""")
1986 ) 1986 )
1987 self.showDownloadManagerAct.triggered.connect(self.__showDownloadsWindow) 1987 self.showDownloadManagerAct.triggered.connect(self.__showDownloadsWindow)
1988 self.__actions.append(self.showDownloadManagerAct) 1988 self.__actions.append(self.showDownloadManagerAct)
1989 1989
1990 self.feedsManagerAct = EricAction( 1990 self.feedsManagerAct = EricAction(
2121 self, 2121 self,
2122 "webbrowser_show_tab_manager", 2122 "webbrowser_show_tab_manager",
2123 ) 2123 )
2124 self.showTabManagerAct.setStatusTip(self.tr("Shows the tab manager window")) 2124 self.showTabManagerAct.setStatusTip(self.tr("Shows the tab manager window"))
2125 self.showTabManagerAct.setWhatsThis( 2125 self.showTabManagerAct.setWhatsThis(
2126 self.tr("""<b>Tab Manager</b>""" """<p>Shows the tab manager window.</p>""") 2126 self.tr("""<b>Tab Manager</b><p>Shows the tab manager window.</p>""")
2127 ) 2127 )
2128 self.showTabManagerAct.triggered.connect( 2128 self.showTabManagerAct.triggered.connect(
2129 lambda: self.__showTabManager(self.showTabManagerAct) 2129 lambda: self.__showTabManager(self.showTabManagerAct)
2130 ) 2130 )
2131 self.__actions.append(self.showTabManagerAct) 2131 self.__actions.append(self.showTabManagerAct)

eric ide

mercurial