def __showProperties(self): """ Private slot to display the properties dialog. """ dlg = PropertiesDialog(self, False) if dlg.exec_() == QDialog.Accepted: dlg.storeData() self.setDirty(True) self.emit(SIGNAL('multiProjectPropertiesChanged'))
def newMultiProject(self): """ Public slot to build a new multi project. This method displays the new multi project dialog and initializes the multi project object with the data entered. """ if not self.checkDirty(): return dlg = PropertiesDialog(self, True) if dlg.exec_() == QDialog.Accepted: self.closeMultiProject() dlg.storeData() self.opened = True self.setDirty(True) self.closeAct.setEnabled(True) self.saveasAct.setEnabled(True) self.addProjectAct.setEnabled(True) self.propsAct.setEnabled(True) self.emit(SIGNAL('newMultiProject'))