Fri, 29 Apr 2022 11:40:00 +0200
Created new branch <external_find>.
eric7/UI/FindFileWidget.py | file | annotate | diff | comparison | revisions | |
eric7/UI/UserInterface.py | file | annotate | diff | comparison | revisions |
--- a/eric7/UI/FindFileWidget.py Fri Apr 29 09:31:46 2022 +0200 +++ b/eric7/UI/FindFileWidget.py Fri Apr 29 11:40:00 2022 +0200 @@ -248,9 +248,9 @@ self.__toggleReplaceMode() if searchDir: - self.setSearchDirectory(searchDir) + self.__setSearchDirectory(searchDir) if openFiles: - self.setOpenFiles() + self.__setOpenFiles() @pyqtSlot() def __toggleReplaceMode(self): @@ -762,9 +762,9 @@ dirs.remove(d) return files - def setSearchDirectory(self, searchDir): + def __setSearchDirectory(self, searchDir): """ - Public slot to set the name of the directory to search in. + Private slot to set the name of the directory to search in. @param searchDir name of the directory to search in @type str @@ -773,9 +773,9 @@ self.dirPicker.setEditText(Utilities.toNativeSeparators(searchDir)) @pyqtSlot() - def setOpenFiles(self): + def __setOpenFiles(self): """ - Public slot to set the mode to search in open files. + Private slot to set the mode to search in open files. """ self.openFilesButton.setChecked(True) @@ -897,3 +897,5 @@ cb = QApplication.clipboard() cb.setText(fn) + +# TODO: add separate dialog variant
--- a/eric7/UI/UserInterface.py Fri Apr 29 09:31:46 2022 +0200 +++ b/eric7/UI/UserInterface.py Fri Apr 29 11:40:00 2022 +0200 @@ -944,6 +944,7 @@ self.__virtualenvManagerWidget = VirtualenvManagerWidget( self.virtualenvManager, self) + # TODO: add separate dialog variant # Create the find in files widget from .FindFileWidget import FindFileWidget self.__findFileWidget = FindFileWidget(self.project, self) @@ -956,6 +957,7 @@ self.__findFileWidget.svgFile.connect(self.__showSvg) self.__findFileWidget.umlFile.connect(self.__showUml) + # TODO: add separate dialog variant # Create the find location (file) widget from .FindLocationWidget import FindLocationWidget self.__findLocationWidget = FindLocationWidget(self.project, self) @@ -7161,6 +7163,7 @@ (defaults to False) @type bool (optional) """ + # TODO: add separate dialog variant self.__activateFindFileWidget() self.__findFileWidget.activate( replaceMode=False, txt=txt, searchDir=searchDir, @@ -7178,6 +7181,7 @@ (defaults to False) @type bool (optional) """ + # TODO: add separate dialog variant self.__activateFindFileWidget() self.__findFileWidget.activate( replaceMode=True, txt=txt, searchDir=searchDir, @@ -7202,6 +7206,7 @@ """ Public method to show the Find File widget. """ + # TODO: add separate dialog variant self.__activateFindLocationWidget() def __activateFindLocationWidget(self):