src/eric7/Project/ProjectBrowserModel.py

branch
eric7
changeset 9524
6a730f4d0080
parent 9516
0f023e61a9b5
child 9527
8601253e7633
equal deleted inserted replaced
9523:240eb59dfb13 9524:6a730f4d0080
26 26
27 ProjectBrowserItemSimpleDirectory = 100 27 ProjectBrowserItemSimpleDirectory = 100
28 ProjectBrowserItemDirectory = 101 28 ProjectBrowserItemDirectory = 101
29 ProjectBrowserItemFile = 102 29 ProjectBrowserItemFile = 102
30 30
31 # TODO: change to project browser provided IDs 31 # TODO: move these definitions to the project browser repository
32 ProjectBrowserNoType = 0 32 ProjectBrowserNoType = "none"
33 ProjectBrowserSourceType = 1 33 ProjectBrowserSourceType = "source"
34 ProjectBrowserFormType = 2 34 ProjectBrowserFormType = "form"
35 ProjectBrowserInterfaceType = 3 35 ProjectBrowserInterfaceType = "interface"
36 ProjectBrowserTranslationType = 4 36 ProjectBrowserTranslationType = "translation"
37 ProjectBrowserOthersType = 5 37 ProjectBrowserOthersType = "other"
38 ProjectBrowserResourceType = 6 38 ProjectBrowserResourceType = "resource"
39 ProjectBrowserProtocolsType = 7 39 ProjectBrowserProtocolsType = "protocol"
40 40
41 41
42 class ProjectBrowserItemMixin: 42 class ProjectBrowserItemMixin:
43 """ 43 """
44 Class implementing common methods of project browser items. 44 Class implementing common methods of project browser items.
255 self.watcher = QFileSystemWatcher(self) 255 self.watcher = QFileSystemWatcher(self)
256 self.watcher.directoryChanged.connect(self.directoryChanged) 256 self.watcher.directoryChanged.connect(self.directoryChanged)
257 257
258 self.inRefresh = False 258 self.inRefresh = False
259 259
260 # TODO: move this to ProjectBrowser (ProjectBrowserRepository)
261 # mapping of file category to project browser type
260 self.projectBrowserTypes = { 262 self.projectBrowserTypes = {
261 "SOURCES": ProjectBrowserSourceType, 263 "SOURCES": ProjectBrowserSourceType,
262 "FORMS": ProjectBrowserFormType, 264 "FORMS": ProjectBrowserFormType,
263 "RESOURCES": ProjectBrowserResourceType, 265 "RESOURCES": ProjectBrowserResourceType,
264 "INTERFACES": ProjectBrowserInterfaceType, 266 "INTERFACES": ProjectBrowserInterfaceType,

eric ide

mercurial