4924 self.findFileNameDialog.designerFile.connect(self.__designer) |
4924 self.findFileNameDialog.designerFile.connect(self.__designer) |
4925 self.findFileNameDialog.show() |
4925 self.findFileNameDialog.show() |
4926 self.findFileNameDialog.raise_() |
4926 self.findFileNameDialog.raise_() |
4927 self.findFileNameDialog.activateWindow() |
4927 self.findFileNameDialog.activateWindow() |
4928 |
4928 |
4929 def showFindFilesDialog(self, txt="", searchDir=""): |
4929 def showFindFilesDialog(self, txt="", searchDir="", openFiles=False): |
4930 """ |
4930 """ |
4931 Public slot to show the Find In Files dialog. |
4931 Public slot to show the Find In Files dialog. |
4932 |
4932 |
4933 @keyparam txt text to search for (string) |
4933 @keyparam txt text to search for (string) |
4934 @keyparam searchDir directory to search in (string) |
4934 @keyparam searchDir directory to search in (string) |
|
4935 @keyparam openFiles flag indicating to operate on open files (boolean) |
4935 """ |
4936 """ |
4936 if self.findFilesDialog is None: |
4937 if self.findFilesDialog is None: |
4937 self.findFilesDialog = FindFileDialog(self.project) |
4938 self.findFilesDialog = FindFileDialog(self.project) |
4938 self.findFilesDialog.sourceFile.connect( |
4939 self.findFilesDialog.sourceFile.connect( |
4939 self.viewmanager.openSourceFile) |
4940 self.viewmanager.openSourceFile) |
4940 self.findFilesDialog.designerFile.connect(self.__designer) |
4941 self.findFilesDialog.designerFile.connect(self.__designer) |
4941 if searchDir: |
4942 if searchDir: |
4942 self.findFilesDialog.setSearchDirectory(searchDir) |
4943 self.findFilesDialog.setSearchDirectory(searchDir) |
4943 self.findFilesDialog.show(txt) |
4944 self.findFilesDialog.show(txt) |
|
4945 if openFiles: |
|
4946 self.findFilesDialog.setOpenFiles() |
4944 self.findFilesDialog.raise_() |
4947 self.findFilesDialog.raise_() |
4945 self.findFilesDialog.activateWindow() |
4948 self.findFilesDialog.activateWindow() |
4946 |
4949 |
4947 def showReplaceFilesDialog(self, txt="", searchDir=""): |
4950 def showReplaceFilesDialog(self, txt="", searchDir="", openFiles=False): |
4948 """ |
4951 """ |
4949 Public slot to show the Find & Replace In Files dialog. |
4952 Public slot to show the Find & Replace In Files dialog. |
4950 |
4953 |
4951 @keyparam txt text to search for (string) |
4954 @keyparam txt text to search for (string) |
4952 @keyparam searchDir directory to search in (string) |
4955 @keyparam searchDir directory to search in (string) |
|
4956 @keyparam openFiles flag indicating to operate on open files (boolean) |
4953 """ |
4957 """ |
4954 if self.replaceFilesDialog is None: |
4958 if self.replaceFilesDialog is None: |
4955 self.replaceFilesDialog = FindFileDialog(self.project, replaceMode=True) |
4959 self.replaceFilesDialog = FindFileDialog(self.project, replaceMode=True) |
4956 self.replaceFilesDialog.sourceFile.connect( |
4960 self.replaceFilesDialog.sourceFile.connect( |
4957 self.viewmanager.openSourceFile) |
4961 self.viewmanager.openSourceFile) |
4958 self.replaceFilesDialog.designerFile.connect(self.__designer) |
4962 self.replaceFilesDialog.designerFile.connect(self.__designer) |
4959 if searchDir: |
4963 if searchDir: |
4960 self.replaceFilesDialog.setSearchDirectory(searchDir) |
4964 self.replaceFilesDialog.setSearchDirectory(searchDir) |
4961 self.replaceFilesDialog.show(txt) |
4965 self.replaceFilesDialog.show(txt) |
|
4966 if openFiles: |
|
4967 self.replaceFilesDialog.setOpenFiles() |
4962 self.replaceFilesDialog.raise_() |
4968 self.replaceFilesDialog.raise_() |
4963 self.replaceFilesDialog.activateWindow() |
4969 self.replaceFilesDialog.activateWindow() |
4964 |
4970 |
4965 ########################################################## |
4971 ########################################################## |
4966 ## Below are slots to handle StdOut and StdErr |
4972 ## Below are slots to handle StdOut and StdErr |