1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Updated the qt part of dupeguru to adjust to the latest column reorganization.

This commit is contained in:
Virgil Dupras
2011-11-28 10:27:17 -05:00
parent 9226a4fb7c
commit d9ae967439
12 changed files with 80 additions and 172 deletions

View File

@@ -11,6 +11,7 @@ from core_me.app import DupeGuru as DupeGuruModel
from ..base.app import DupeGuru as DupeGuruBase
from .details_dialog import DetailsDialog
from .results_model import ResultsModel
from .preferences import Preferences
from .preferences_dialog import PreferencesDialog
@@ -20,6 +21,11 @@ class DupeGuru(DupeGuruBase):
LOGO_NAME = 'logo_me'
NAME = __appname__
DETAILS_DIALOG_CLASS = DetailsDialog
RESULT_MODEL_CLASS = ResultsModel
PREFERENCES_CLASS = Preferences
PREFERENCES_DIALOG_CLASS = PreferencesDialog
def _update_options(self):
DupeGuruBase._update_options(self)
self.model.scanner.min_match_percentage = self.prefs.filter_hardness
@@ -41,12 +47,3 @@ class DupeGuru(DupeGuruBase):
scanned_tags.add('year')
self.model.scanner.scanned_tags = scanned_tags
def _create_details_dialog(self, parent):
return DetailsDialog(parent, self)
def _create_preferences(self):
return Preferences()
def _create_preferences_dialog(self, parent):
return PreferencesDialog(parent, self)

View File

@@ -11,28 +11,6 @@ from core.scanner import ScanType
from ..base.preferences import Preferences as PreferencesBase
class Preferences(PreferencesBase):
# (width, is_visible)
COLUMNS_DEFAULT_ATTRS = [
(200, True), # name
(180, True), # path
(60, True), # size
(60, True), # Time
(50, True), # Bitrate
(60, False), # Sample Rate
(40, False), # Kind
(120, False), # modification
(120, False), # Title
(120, False), # Artist
(120, False), # Album
(80, False), # Genre
(40, False), # Year
(40, False), # Track Number
(120, False), # Comment
(60, True), # match %
(120, False), # Words Used
(80, False), # dupe count
]
def _load_specific(self, settings):
get = self.get_value
self.scan_type = get('ScanType', self.scan_type)