Exemplo n.º 1
0
 def moveEventToTrash(self, menu, group, event):
     from scal2.ui_gtk.event.utils import confirmEventTrash
     if not confirmEventTrash(event):
         return
     eventIndex = group.index(event.id)
     ui.moveEventToTrashFromOutside(group, event)
     self.onConfigChange()
Exemplo n.º 2
0
 def moveEventToTrash(self, menu, group, event):
     from scal2.ui_gtk.event.utils import confirmEventTrash
     if not confirmEventTrash(event):
         return
     eventIndex = group.index(event.id)
     ui.moveEventToTrashFromOutside(group, event)
     self.onConfigChange()
Exemplo n.º 3
0
 def moveEventToTrash(self, item, event, groupId):
     from scal2.ui_gtk.event.utils import confirmEventTrash
     #if not confirm(_('Press OK if you are sure to move event "%s" to trash')%event.summary):
     #	return
     if not confirmEventTrash(event):
         return
     ui.moveEventToTrashFromOutside(ui.eventGroups[groupId], event)
     self.onConfigChange()
Exemplo n.º 4
0
 def moveEventToTrash(self, item, event, groupId):
     from scal2.ui_gtk.event.utils import confirmEventTrash
     #if not confirm(_('Press OK if you are sure to move event "%s" to trash')%event.summary):
     #    return
     if not confirmEventTrash(event):
         return
     ui.moveEventToTrashFromOutside(ui.eventGroups[groupId], event)
     self.onConfigChange()
Exemplo n.º 5
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))
Exemplo n.º 6
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))