def initActions(self): collection = self.actionCollection() self.loadAction = KStdAction.open(self.slotLoad, collection) #self.editAction = KStdAction.replace(self.mainView.slotEdit, collection) self.editAction = EditAction(self.mainView.slotEdit, collection) self.saveAction = KStdAction.save(self.slotSave, collection) self.quitAction = KStdAction.quit(self.close, collection)
def initActions(self): collection = self.actionCollection() self.quitAction = KStdAction.quit(self.close, collection) self.openNewAction = KStdAction.openNew(self.slotOpenNew, collection) self.openAction = KStdAction.open(self.slotOpen, collection) self.saveAction = KStdAction.save(self.slotSave, collection) self.saveAsAction = KStdAction.saveAs(self.slotSaveAs, collection)
def initActions(self): collection = self.actionCollection() self.quitAction = KStdAction.quit(self.close, collection) self.saveAction = KStdAction.save(self.slotSave, collection) self.newAction = KStdAction.openNew(self.slotNew, collection)
def initActions(self): collection = self.actionCollection() self.quitAction = KStdAction.quit(self.close, collection) self.saveAction = KStdAction.save(self.slotSave, collection)