src/eric7/UI/FindLocationWidget.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
20 QDialog, 20 QDialog,
21 QDialogButtonBox, 21 QDialogButtonBox,
22 QVBoxLayout, 22 QVBoxLayout,
23 ) 23 )
24 24
25 from EricWidgets.EricPathPicker import EricPathPickerModes 25 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
26 26
27 from .Ui_FindLocationWidget import Ui_FindLocationWidget 27 from .Ui_FindLocationWidget import Ui_FindLocationWidget
28 28
29 import UI.PixmapCache 29 from eric7.EricGui import EricPixmapCache
30 from Utilities import direntries 30 from eric7.Utilities import direntries
31 import Utilities 31 from eric7 import Utilities
32 32
33 33
34 class FindLocationWidget(QWidget, Ui_FindLocationWidget): 34 class FindLocationWidget(QWidget, Ui_FindLocationWidget):
35 """ 35 """
36 Class implementing a widget to search for files. 36 Class implementing a widget to search for files.
73 self.searchDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) 73 self.searchDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
74 74
75 self.fileList.headerItem().setText(self.fileList.columnCount(), "") 75 self.fileList.headerItem().setText(self.fileList.columnCount(), "")
76 76
77 self.stopButton.setEnabled(False) 77 self.stopButton.setEnabled(False)
78 self.stopButton.setIcon(UI.PixmapCache.getIcon("stopLoading")) 78 self.stopButton.setIcon(EricPixmapCache.getIcon("stopLoading"))
79 self.stopButton.setAutoDefault(False) 79 self.stopButton.setAutoDefault(False)
80 self.stopButton.clicked.connect(self.__stopSearch) 80 self.stopButton.clicked.connect(self.__stopSearch)
81 81
82 self.findButton.setIcon(UI.PixmapCache.getIcon("find")) 82 self.findButton.setIcon(EricPixmapCache.getIcon("find"))
83 self.findButton.setAutoDefault(False) 83 self.findButton.setAutoDefault(False)
84 self.findButton.clicked.connect(self.__searchFile) 84 self.findButton.clicked.connect(self.__searchFile)
85 85
86 self.clearButton.setEnabled(False) 86 self.clearButton.setEnabled(False)
87 self.clearButton.setIcon(UI.PixmapCache.getIcon("clear")) 87 self.clearButton.setIcon(EricPixmapCache.getIcon("clear"))
88 self.clearButton.setAutoDefault(False) 88 self.clearButton.setAutoDefault(False)
89 self.clearButton.clicked.connect(self.__clearResults) 89 self.clearButton.clicked.connect(self.__clearResults)
90 90
91 self.openButton.setEnabled(False) 91 self.openButton.setEnabled(False)
92 self.openButton.setIcon(UI.PixmapCache.getIcon("open")) 92 self.openButton.setIcon(EricPixmapCache.getIcon("open"))
93 self.openButton.setAutoDefault(False) 93 self.openButton.setAutoDefault(False)
94 self.openButton.clicked.connect(self.__openFile) 94 self.openButton.clicked.connect(self.__openFile)
95 95
96 self.__project = project 96 self.__project = project
97 self.__project.projectOpened.connect(self.__projectOpened) 97 self.__project.projectOpened.connect(self.__projectOpened)

eric ide

mercurial