Project/Project.py

changeset 517
fe6fe492f82e
parent 501
5c615a85241a
child 520
b0f523c3b037
equal deleted inserted replaced
513:a5329d7867c5 517:fe6fe492f82e
303 def __initData(self): 303 def __initData(self):
304 """ 304 """
305 Private method to initialize the project data part. 305 Private method to initialize the project data part.
306 """ 306 """
307 self.loaded = False # flag for the loaded status 307 self.loaded = False # flag for the loaded status
308 self.dirty = False # dirty flag 308 self.__dirty = False # dirty flag
309 self.pfile = "" # name of the project file 309 self.pfile = "" # name of the project file
310 self.ppath = "" # name of the project directory 310 self.ppath = "" # name of the project directory
311 self.ppathRe = None 311 self.ppathRe = None
312 self.translationsRoot = "" # the translations prefix 312 self.translationsRoot = "" # the translations prefix
313 self.name = "" 313 self.name = ""
521 521
522 It emits the signal dirty(int). 522 It emits the signal dirty(int).
523 523
524 @param b dirty state (boolean) 524 @param b dirty state (boolean)
525 """ 525 """
526 self.dirty = b 526 self.__dirty = b
527 self.saveAct.setEnabled(b) 527 self.saveAct.setEnabled(b)
528 self.dirty.emit(bool(b)) 528 self.dirty.emit(bool(b))
529 529
530 def isDirty(self): 530 def isDirty(self):
531 """ 531 """
532 Public method to return the dirty state. 532 Public method to return the dirty state.
533 533
534 @return dirty state (boolean) 534 @return dirty state (boolean)
535 """ 535 """
536 return self.dirty 536 return self.__dirty
537 537
538 def isOpen(self): 538 def isOpen(self):
539 """ 539 """
540 Public method to return the opened state. 540 Public method to return the opened state.
541 541

eric ide

mercurial