MultiProject/MultiProject.py

changeset 517
fe6fe492f82e
parent 495
b31b0bffa5b0
child 520
b0f523c3b037
equal deleted inserted replaced
513:a5329d7867c5 517:fe6fe492f82e
87 def __initData(self): 87 def __initData(self):
88 """ 88 """
89 Private method to initialize the multi project data part. 89 Private method to initialize the multi project data part.
90 """ 90 """
91 self.loaded = False # flag for the loaded status 91 self.loaded = False # flag for the loaded status
92 self.dirty = False # dirty flag 92 self.__dirty = False # dirty flag
93 self.pfile = "" # name of the multi project file 93 self.pfile = "" # name of the multi project file
94 self.ppath = "" # name of the multi project directory 94 self.ppath = "" # name of the multi project directory
95 self.description = "" # description of the multi project 95 self.description = "" # description of the multi project
96 self.name = "" 96 self.name = ""
97 self.opened = False 97 self.opened = False
137 137
138 It emits the signal dirty(int). 138 It emits the signal dirty(int).
139 139
140 @param b dirty state (boolean) 140 @param b dirty state (boolean)
141 """ 141 """
142 self.dirty = b 142 self.__dirty = b
143 self.saveAct.setEnabled(b) 143 self.saveAct.setEnabled(b)
144 self.dirty.emit(bool(b)) 144 self.dirty.emit(bool(b))
145 145
146 def isDirty(self): 146 def isDirty(self):
147 """ 147 """
148 Public method to return the dirty state. 148 Public method to return the dirty state.
149 149
150 @return dirty state (boolean) 150 @return dirty state (boolean)
151 """ 151 """
152 return self.dirty 152 return self.__dirty
153 153
154 def isOpen(self): 154 def isOpen(self):
155 """ 155 """
156 Public method to return the opened state. 156 Public method to return the opened state.
157 157

eric ide

mercurial