Example #1
0
 def moveEventToTrash(self, path):
     group, event = self.getObjsByPath(path)
     if not confirmEventTrash(event):
         return
     ui.moveEventToTrash(group, event)
     self.trees.remove(self.trees.get_iter(path))
     if core.eventTrashLastTop:
         self.insertEventRow(self.trashIter, 0, event)
     else:
         self.appendEventRow(self.trashIter, event)
Example #2
0
	def moveEventToTrash(self, path):
		try:
			gid = self.trees[path][0]
			eid = self.trees[path][1]
		except:
			return
		group = ui.eventGroups[gid]
		event = group[eid]
		if not confirmEventTrash(event):
			return
		ui.moveEventToTrash(group, event)
		ui.reloadTrash = True
		ui.eventDiff.add('-', event)
		self.trees.remove(self.trees.get_iter(path))
Example #3
0
 def moveEventToTrash(self, path):
     try:
         gid = self.trees[path][0]
         eid = self.trees[path][1]
     except:
         return
     group = ui.eventGroups[gid]
     event = group[eid]
     if not confirmEventTrash(event):
         return
     ui.moveEventToTrash(group, event)
     ui.reloadTrash = True
     ui.eventDiff.add('-', event)
     self.trees.remove(self.trees.get_iter(path))
Example #4
0
 def moveEventToTrash(self, path):
     group, event = self.getObjsByPath(path)
     ui.moveEventToTrash(group, event)
     self.trees.remove(self.trees.get_iter(path))
     if core.eventTrashLastTop:
         self.trees.insert(
             self.trashIter,
             0,
             self.getEventRow(event),
         )
     else:
         self.trees.append(
             self.trashIter,
             self.getEventRow(event),
         )
Example #5
0
 def moveEventToTrash(self, menu, group, event):
     eventIndex = group.index(event.id)
     ui.moveEventToTrash(group, event)
     ui.trashedEvents.append((group.id, event.id, eventIndex))
     self.onConfigChange()