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

Huge refactoring. I moved MGOutline from moneyGuru (as well as everything that comes with it) and used it to create DirectoryOutline for the directories panel.

This commit is contained in:
Virgil Dupras
2010-02-07 15:26:50 +01:00
parent 3e34502014
commit b5dd9651c3
18 changed files with 503 additions and 403 deletions

View File

@@ -13,25 +13,25 @@ from core_pe import block, cache, matchbase, data, _block_osx
class PyDupeGuru(PyDupeGuruBase):
def init(self):
self = super(PyDupeGuru, self).init()
self.app = app_pe_cocoa.DupeGuruPE()
self.py = app_pe_cocoa.DupeGuruPE()
return self
def clearPictureCache(self):
self.app.scanner.clear_picture_cache()
self.py.scanner.clear_picture_cache()
#---Information
def getSelectedDupePath(self):
return unicode(self.app.selected_dupe_path())
return unicode(self.py.selected_dupe_path())
def getSelectedDupeRefPath(self):
return unicode(self.app.selected_dupe_ref_path())
return unicode(self.py.selected_dupe_ref_path())
#---Properties
def setMatchScaled_(self,match_scaled):
self.app.scanner.match_scaled = match_scaled
self.py.scanner.match_scaled = match_scaled
def setMinMatchPercentage_(self,percentage):
self.app.scanner.threshold = int(percentage)
self.py.scanner.threshold = int(percentage)
#---Registration
def appName(self):