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. |