def __showContextMenuDir(self): """ Private slot called by the dirMenu aboutToShow signal. """ ProjectBaseBrowser._showContextMenuDir(self, self.dirMenu) self.emit(SIGNAL("showMenu"), "MainDir", self.dirMenu)
def __showContextMenuDir(self): """ Private slot called by the dirMenu aboutToShow signal. """ if self.project.getProjectType() in \ ["Qt4", "Qt4C", "E4Plugin", "PySide", "PySideC"]: if self.pylupdateProcRunning: for act in self.tsprocDirMenuActions: act.setEnabled(False) if self.lreleaseProcRunning: for act in self.qmprocDirMenuActions: act.setEnabled(True) self.__addTranslationDirAct.setEnabled(self.project.getTranslationPattern() != "") ProjectBaseBrowser._showContextMenuDir(self, self.dirMenu) self.emit(SIGNAL("showMenu"), "MainDir", self.dirMenu)