mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Moved column information in new edition-specific core result_table units.
This commit is contained in:
@@ -12,7 +12,8 @@ from hscommon.notify import Listener
|
||||
class GUIObject(Listener):
|
||||
def __init__(self, view, app):
|
||||
Listener.__init__(self, app)
|
||||
self.view = view
|
||||
if view is not None:
|
||||
self.view = view
|
||||
self.app = app
|
||||
|
||||
def directories_changed(self):
|
||||
|
||||
@@ -26,12 +26,12 @@ class DetailsPanel(GUIObject):
|
||||
else:
|
||||
dupe = None
|
||||
group = None
|
||||
l1 = self.app.get_display_info(dupe, group, False)
|
||||
data1 = self.app.get_display_info(dupe, group, False)
|
||||
# we don't want the two sides of the table to display the stats for the same file
|
||||
ref = group.ref if group is not None and group.ref is not dupe else None
|
||||
l2 = self.app.get_display_info(ref, group, False)
|
||||
names = [c.display for c in self.app.COLUMNS]
|
||||
self._table = list(zip(names, l1, l2))
|
||||
data2 = self.app.get_display_info(ref, group, False)
|
||||
columns = self.app.result_table.COLUMNS[1:] # first column is the 'marked' column
|
||||
self._table = [(c.display, data1[c.name], data2[c.name]) for c in columns]
|
||||
|
||||
#--- Public
|
||||
def row_count(self):
|
||||
|
||||
@@ -52,14 +52,13 @@ class DupeRow(Row):
|
||||
|
||||
|
||||
class ResultTable(GUIObject, GUITable):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
def __init__(self, app):
|
||||
GUIObject.__init__(self, None, app)
|
||||
GUITable.__init__(self)
|
||||
self.COLUMNS = app.COLUMNS
|
||||
self.columns = Columns(self, prefaccess=app, savename='ResultTable')
|
||||
self._power_marker = False
|
||||
self._delta_values = False
|
||||
self._sort_descriptors = (0, True)
|
||||
self._sort_descriptors = ('name', True)
|
||||
|
||||
#--- Override
|
||||
def connect(self):
|
||||
|
||||
Reference in New Issue
Block a user