src/eric7/Project/QuickFindFileDialog.py

branch
eric7
changeset 9516
0f023e61a9b5
parent 9514
2b104ad132a4
child 9531
155b2646799a
equal deleted inserted replaced
9515:275334bc9607 9516:0f023e61a9b5
143 Private method to generate a set of locations that can be searched. 143 Private method to generate a set of locations that can be searched.
144 144
145 @yield set of files in our project 145 @yield set of files in our project
146 @ytype str 146 @ytype str
147 """ 147 """
148 # TODO: change this to use fileType 148 ##for typ in [
149 for typ in [ 149 ##"SOURCES",
150 "SOURCES", 150 ##"FORMS",
151 "FORMS", 151 ##"INTERFACES",
152 "INTERFACES", 152 ##"PROTOCOLS",
153 "PROTOCOLS", 153 ##"RESOURCES",
154 "RESOURCES", 154 ##"TRANSLATIONS",
155 "TRANSLATIONS", 155 ##"OTHERS",
156 "OTHERS", 156 ##]:
157 ]: 157 for fileCategory in self.project.getFileCategories():
158 entries = self.project.getProjectData(dataKey=typ, default=[]) 158 entries = self.project.getProjectData(dataKey=fileCategory, default=[])
159 yield from entries[:] 159 yield from entries[:]
160 160
161 def __sortedMatches(self, items, searchTerm): 161 def __sortedMatches(self, items, searchTerm):
162 """ 162 """
163 Private method to find the subset of items which match a search term. 163 Private method to find the subset of items which match a search term.

eric ide

mercurial