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

Pushed connect() calls in objc into the core.

--HG--
branch : objp
This commit is contained in:
Virgil Dupras
2012-01-13 16:34:21 -05:00
parent 58347bc36f
commit 9392f818cc
9 changed files with 13 additions and 31 deletions

View File

@@ -112,7 +112,12 @@ class DupeGuru(RegistrableApplication, Broadcaster):
self.prioritize_dialog = PrioritizeDialog(self)
self.problem_dialog = ProblemDialog(self)
self.stats_label = StatsLabel(self)
# subclasses must create self.result_table
self.result_table = self._create_result_table()
children = [self.result_table, self.directory_tree, self.problem_dialog, self.stats_label,
self.details_panel]
for child in children:
child.connect()
# subclasses must create and connect self.result_table
#--- Virtual
def _get_display_info(self, dupe, group, delta):
@@ -127,6 +132,9 @@ class DupeGuru(RegistrableApplication, Broadcaster):
def _prioritization_categories(self):
raise NotImplementedError()
def _create_result_table(self):
raise NotImplementedError()
#--- Private
def _do_delete(self, j, replace_with_hardlinks):
def op(dupe):

View File

@@ -17,6 +17,7 @@ class ProblemDialog(GUIObject, Broadcaster):
Broadcaster.__init__(self)
self._selected_dupe = None
self.problem_table = ProblemTable(self)
self.problem_table.connect()
def reveal_selected_dupe(self):
if self._selected_dupe is not None: