494 Private slot to handle the Find in directory popup menu entry. |
494 Private slot to handle the Find in directory popup menu entry. |
495 """ |
495 """ |
496 index = self.currentIndex() |
496 index = self.currentIndex() |
497 searchDir = self.model().item(index).dirName() |
497 searchDir = self.model().item(index).dirName() |
498 |
498 |
499 findFilesDialog = e5App().getObject("FindFilesDialog") |
499 e5App().getObject("UserInterface").showFindFilesDialog(searchDir=searchDir) |
500 findFilesDialog.setSearchDirectory(searchDir) |
|
501 findFilesDialog.show() |
|
502 findFilesDialog.raise_() |
|
503 findFilesDialog.activateWindow() |
|
504 |
500 |
505 def __replaceInDirectory(self): |
501 def __replaceInDirectory(self): |
506 """ |
502 """ |
507 Private slot to handle the Find&Replace in directory popup menu entry. |
503 Private slot to handle the Find&Replace in directory popup menu entry. |
508 """ |
504 """ |
509 index = self.currentIndex() |
505 index = self.currentIndex() |
510 searchDir = self.model().item(index).dirName() |
506 searchDir = self.model().item(index).dirName() |
511 |
507 |
512 replaceFilesDialog = e5App().getObject("ReplaceFilesDialog") |
508 e5App().getObject("UserInterface").showReplaceFilesDialog(searchDir=searchDir) |
513 replaceFilesDialog.setSearchDirectory(searchDir) |
|
514 replaceFilesDialog.show() |
|
515 replaceFilesDialog.raise_() |
|
516 replaceFilesDialog.activateWindow() |
|
517 |
509 |
518 def handleProgramChange(self, fn): |
510 def handleProgramChange(self, fn): |
519 """ |
511 """ |
520 Public slot to handle the programChange signal. |
512 Public slot to handle the programChange signal. |
521 """ |
513 """ |