5870 """ |
5870 """ |
5871 Public slot to start the help viewer/web browser. |
5871 Public slot to start the help viewer/web browser. |
5872 |
5872 |
5873 @param home filename of file to be shown or URL to be opened |
5873 @param home filename of file to be shown or URL to be opened |
5874 @type str or QUrl |
5874 @type str or QUrl |
5875 @keyparam searchWord word to search for |
5875 @param searchWord word to search for |
5876 @type str |
5876 @type str |
5877 @keyparam useSingle flag indicating to use a single browser window |
5877 @param useSingle flag indicating to use a single browser window |
5878 @type bool |
5878 @type bool |
5879 """ |
5879 """ |
5880 if isinstance(home, QUrl): |
5880 if isinstance(home, QUrl): |
5881 home = home.toString(QUrl.None_) |
5881 home = home.toString(QUrl.None_) |
5882 |
5882 |
6654 |
6654 |
6655 def showFindFilesDialog(self, txt="", searchDir="", openFiles=False): |
6655 def showFindFilesDialog(self, txt="", searchDir="", openFiles=False): |
6656 """ |
6656 """ |
6657 Public slot to show the Find In Files dialog. |
6657 Public slot to show the Find In Files dialog. |
6658 |
6658 |
6659 @keyparam txt text to search for (string) |
6659 @param txt text to search for (string) |
6660 @keyparam searchDir directory to search in (string) |
6660 @param searchDir directory to search in (string) |
6661 @keyparam openFiles flag indicating to operate on open files (boolean) |
6661 @param openFiles flag indicating to operate on open files (boolean) |
6662 """ |
6662 """ |
6663 if self.findFilesDialog is None: |
6663 if self.findFilesDialog is None: |
6664 from .FindFileDialog import FindFileDialog |
6664 from .FindFileDialog import FindFileDialog |
6665 self.findFilesDialog = FindFileDialog(self.project) |
6665 self.findFilesDialog = FindFileDialog(self.project) |
6666 self.findFilesDialog.sourceFile.connect( |
6666 self.findFilesDialog.sourceFile.connect( |
6676 |
6676 |
6677 def showReplaceFilesDialog(self, txt="", searchDir="", openFiles=False): |
6677 def showReplaceFilesDialog(self, txt="", searchDir="", openFiles=False): |
6678 """ |
6678 """ |
6679 Public slot to show the Find & Replace In Files dialog. |
6679 Public slot to show the Find & Replace In Files dialog. |
6680 |
6680 |
6681 @keyparam txt text to search for (string) |
6681 @param txt text to search for (string) |
6682 @keyparam searchDir directory to search in (string) |
6682 @param searchDir directory to search in (string) |
6683 @keyparam openFiles flag indicating to operate on open files (boolean) |
6683 @param openFiles flag indicating to operate on open files (boolean) |
6684 """ |
6684 """ |
6685 if self.replaceFilesDialog is None: |
6685 if self.replaceFilesDialog is None: |
6686 from .FindFileDialog import FindFileDialog |
6686 from .FindFileDialog import FindFileDialog |
6687 self.replaceFilesDialog = FindFileDialog( |
6687 self.replaceFilesDialog = FindFileDialog( |
6688 self.project, replaceMode=True) |
6688 self.project, replaceMode=True) |
6972 """ |
6972 """ |
6973 Public method to check the internet for an eric6 update. |
6973 Public method to check the internet for an eric6 update. |
6974 |
6974 |
6975 @param manual flag indicating an invocation via the menu (boolean) |
6975 @param manual flag indicating an invocation via the menu (boolean) |
6976 @param alternative index of server to download from (integer) |
6976 @param alternative index of server to download from (integer) |
6977 @keyparam showVersions flag indicating the show versions mode (boolean) |
6977 @param showVersions flag indicating the show versions mode (boolean) |
6978 """ |
6978 """ |
6979 if self.isOnline(): |
6979 if self.isOnline(): |
6980 if not manual: |
6980 if not manual: |
6981 if VersionOnly.startswith("@@"): |
6981 if VersionOnly.startswith("@@"): |
6982 return |
6982 return |