src/eric7/HelpViewer/HelpViewerWidget.py

branch
eric7
changeset 9686
2eee7a645cba
parent 9683
5c7cf7704fd0
child 10080
f834e57a5b13
equal deleted inserted replaced
9685:b43e04854aba 9686:2eee7a645cba
42 from eric7.EricWidgets.EricApplication import ericApp 42 from eric7.EricWidgets.EricApplication import ericApp
43 from eric7.EricWidgets.EricTextEditSearchWidget import ( 43 from eric7.EricWidgets.EricTextEditSearchWidget import (
44 EricTextEditSearchWidget, 44 EricTextEditSearchWidget,
45 EricTextEditType, 45 EricTextEditType,
46 ) 46 )
47 from eric7.WebBrowser.QtHelp.HelpIndexWidget import HelpIndexWidget 47 from eric7.QtHelpInterface.HelpIndexWidget import HelpIndexWidget
48 from eric7.WebBrowser.QtHelp.HelpSearchWidget import HelpSearchWidget 48 from eric7.QtHelpInterface.HelpSearchWidget import HelpSearchWidget
49 from eric7.WebBrowser.QtHelp.HelpTocWidget import HelpTocWidget 49 from eric7.QtHelpInterface.HelpTocWidget import HelpTocWidget
50 50
51 from .HelpBookmarksWidget import HelpBookmarksWidget 51 from .HelpBookmarksWidget import HelpBookmarksWidget
52 from .OpenPagesWidget import OpenPagesWidget 52 from .OpenPagesWidget import OpenPagesWidget
53 53
54 54
710 def __lookForNewDocumentation(self): 710 def __lookForNewDocumentation(self):
711 """ 711 """
712 Private slot to look for new documentation to be loaded into the 712 Private slot to look for new documentation to be loaded into the
713 help database. 713 help database.
714 """ 714 """
715 from eric7.WebBrowser.QtHelp.HelpDocsInstaller import HelpDocsInstaller 715 from eric7.QtHelpInterface.HelpDocsInstaller import HelpDocsInstaller
716 716
717 self.__helpInstaller = HelpDocsInstaller(self.__helpEngine.collectionFile()) 717 self.__helpInstaller = HelpDocsInstaller(self.__helpEngine.collectionFile())
718 self.__helpInstaller.errorMessage.connect(self.__showInstallationError) 718 self.__helpInstaller.errorMessage.connect(self.__showInstallationError)
719 self.__helpInstaller.docsInstalled.connect(self.__docsInstalled) 719 self.__helpInstaller.docsInstalled.connect(self.__docsInstalled)
720 720
770 @pyqtSlot() 770 @pyqtSlot()
771 def __manageQtHelpDocuments(self): 771 def __manageQtHelpDocuments(self):
772 """ 772 """
773 Private slot to manage the QtHelp documentation database. 773 Private slot to manage the QtHelp documentation database.
774 """ 774 """
775 from eric7.WebBrowser.QtHelp.QtHelpDocumentationConfigurationDialog import ( 775 from eric7.QtHelpInterface.QtHelpDocumentationConfigurationDialog import (
776 QtHelpDocumentationConfigurationDialog, 776 QtHelpDocumentationConfigurationDialog,
777 ) 777 )
778 778
779 dlg = QtHelpDocumentationConfigurationDialog(self.__helpEngine, self) 779 dlg = QtHelpDocumentationConfigurationDialog(self.__helpEngine, self)
780 dlg.exec() 780 dlg.exec()
1099 1099
1100 def __initQWebEngine(self): 1100 def __initQWebEngine(self):
1101 """ 1101 """
1102 Private method to initialize global QWebEngine related objects. 1102 Private method to initialize global QWebEngine related objects.
1103 """ 1103 """
1104 from eric7.WebBrowser.Network.QtHelpSchemeHandler import QtHelpSchemeHandler 1104 from eric7.QtHelpInterface.QtHelpSchemeHandler import QtHelpSchemeHandler
1105 1105
1106 self.__webProfile = QWebEngineProfile.defaultProfile() 1106 self.__webProfile = QWebEngineProfile.defaultProfile()
1107 self.__webProfile.setHttpCacheType( 1107 self.__webProfile.setHttpCacheType(
1108 QWebEngineProfile.HttpCacheType.MemoryHttpCache 1108 QWebEngineProfile.HttpCacheType.MemoryHttpCache
1109 ) 1109 )

eric ide

mercurial