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

Moved column information in new edition-specific core result_table units.

This commit is contained in:
Virgil Dupras
2011-11-27 12:47:00 -05:00
parent eb83b830df
commit 7e95404903
17 changed files with 149 additions and 113 deletions

View File

@@ -3,12 +3,13 @@ import logging
from jobprogress import job
from hscommon import cocoa
from hscommon.cocoa import install_exception_hook
from hscommon.cocoa.inter import signature, PyFairware
from hscommon.cocoa.inter import signature, subproxy, PyFairware
from hscommon.cocoa.objcmin import (NSNotificationCenter, NSSearchPathForDirectoriesInDomains,
NSApplicationSupportDirectory, NSUserDomainMask, NSWorkspace)
from hscommon.trans import trget
from core.app import JobType
from .result_table import PyResultTable
tr = trget('ui')
@@ -31,6 +32,8 @@ class PyDupeGuruBase(PyFairware):
def bindCocoa_(self, cocoa):
self.cocoa = cocoa
resultTable = subproxy('resultTable', 'result_table', PyResultTable)
#---Directories
def addDirectory_(self, directory):
return self.py.add_directory(directory)

View File

@@ -1,10 +1,6 @@
from hscommon.cocoa.inter import signature, PyTable
from core.gui.result_table import ResultTable
class PyResultTable(PyTable):
py_class = ResultTable
@signature('c@:')
def powerMarkerMode(self):
return self.py.power_marker
@@ -29,7 +25,7 @@ class PyResultTable(PyTable):
def renameSelected_(self, newname):
return self.py.rename_selected(newname)
@signature('v@:ic')
@signature('v@:@c')
def sortBy_ascending_(self, key, asc):
self.py.sort(key, asc)