1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#138] Added drag & drop re-ordering capabilities to the pri-pist (Cocoa).

This commit is contained in:
Virgil Dupras
2011-09-16 11:08:24 -04:00
parent 880f0787ce
commit 5a26f1c2ae
8 changed files with 103 additions and 3 deletions

View File

@@ -282,7 +282,7 @@ class PyPrioritizeDialog(PyGUIObject):
def prioritizationList(self):
if not hasattr(self, '_prioritizationList'):
self._prioritizationList = PySelectableList.alloc().initWithPy_(self.py.prioritization_list)
self._prioritizationList = PyPrioritizeList.alloc().initWithPy_(self.py.prioritization_list)
return self._prioritizationList
def addSelected(self):
@@ -293,3 +293,9 @@ class PyPrioritizeDialog(PyGUIObject):
def performReprioritization(self):
self.py.perform_reprioritization()
class PyPrioritizeList(PySelectableList):
@signature('v@:@i')
def moveIndexes_toIndex_(self, indexes, dest_index):
self.py.move_indexes(indexes, dest_index)