mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Updated hscommon and adapted to changes in hscommon.gui.table.Table.refresh().
This commit is contained in:
parent
6770d22438
commit
95efac187b
1
README
1
README
@ -13,7 +13,6 @@ There are also other sub-folder that comes from external repositories (automatic
|
|||||||
with svn:externals):
|
with svn:externals):
|
||||||
|
|
||||||
- hscommon: A collection of helpers used across HS applications.
|
- hscommon: A collection of helpers used across HS applications.
|
||||||
- hsgui: Cross-toolkit GUI-related helper classes.
|
|
||||||
- cocoalib: A collection of helpers used across Cocoa UI codebases of HS applications.
|
- cocoalib: A collection of helpers used across Cocoa UI codebases of HS applications.
|
||||||
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.
|
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# which should be included with this package. The terms are also available at
|
# which should be included with this package. The terms are also available at
|
||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from hsgui.tree import Tree, Node
|
from hscommon.gui.tree import Tree, Node
|
||||||
|
|
||||||
from ..directories import STATE_NORMAL, STATE_REFERENCE, STATE_EXCLUDED
|
from ..directories import STATE_NORMAL, STATE_REFERENCE, STATE_EXCLUDED
|
||||||
from .base import GUIObject
|
from .base import GUIObject
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# http://www.hardcoded.net/licenses/bsd_license
|
# http://www.hardcoded.net/licenses/bsd_license
|
||||||
|
|
||||||
from hscommon.notify import Listener
|
from hscommon.notify import Listener
|
||||||
from hsgui.table import GUITable, Row
|
from hscommon.gui.table import GUITable, Row
|
||||||
|
|
||||||
class ProblemTable(GUITable, Listener):
|
class ProblemTable(GUITable, Listener):
|
||||||
def __init__(self, view, problem_dialog):
|
def __init__(self, view, problem_dialog):
|
||||||
@ -31,7 +31,6 @@ class ProblemTable(GUITable, Listener):
|
|||||||
#--- Event handlers
|
#--- Event handlers
|
||||||
def problems_changed(self):
|
def problems_changed(self):
|
||||||
self.refresh()
|
self.refresh()
|
||||||
self.view.refresh()
|
|
||||||
|
|
||||||
|
|
||||||
class ProblemRow(Row):
|
class ProblemRow(Row):
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
|
|
||||||
from hsgui.table import GUITable, Row
|
from hscommon.gui.table import GUITable, Row
|
||||||
|
|
||||||
from .base import GUIObject
|
from .base import GUIObject
|
||||||
|
|
||||||
@ -87,7 +87,6 @@ class ResultTable(GUIObject, GUITable):
|
|||||||
|
|
||||||
def _refresh_with_view(self):
|
def _refresh_with_view(self):
|
||||||
self.refresh()
|
self.refresh()
|
||||||
self.view.refresh()
|
|
||||||
self.view.show_selected_row()
|
self.view.show_selected_row()
|
||||||
|
|
||||||
#--- Public
|
#--- Public
|
||||||
@ -139,7 +138,6 @@ class ResultTable(GUIObject, GUITable):
|
|||||||
return
|
return
|
||||||
self._delta_values = value
|
self._delta_values = value
|
||||||
self.refresh()
|
self.refresh()
|
||||||
self.view.refresh()
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def selected_dupe_count(self):
|
def selected_dupe_count(self):
|
||||||
@ -156,7 +154,7 @@ class ResultTable(GUIObject, GUITable):
|
|||||||
# What we want to to here is that instead of restoring selected *dupes* after refresh, we
|
# What we want to to here is that instead of restoring selected *dupes* after refresh, we
|
||||||
# restore selected *paths*.
|
# restore selected *paths*.
|
||||||
indexes = self.selected_indexes
|
indexes = self.selected_indexes
|
||||||
self.refresh()
|
self.refresh(refresh_view=False)
|
||||||
self.select(indexes)
|
self.select(indexes)
|
||||||
self.view.refresh()
|
self.view.refresh()
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ def package_debian(edition):
|
|||||||
os.makedirs(destpath)
|
os.makedirs(destpath)
|
||||||
os.makedirs(srcpath)
|
os.makedirs(srcpath)
|
||||||
shutil.copy('run.py', op.join(srcpath, 'run.py'))
|
shutil.copy('run.py', op.join(srcpath, 'run.py'))
|
||||||
packages = ['hscommon', 'hsgui', 'core', ed('core_{0}'), 'qtlib', 'qt', 'hsutil', 'send2trash', 'jobprogress']
|
packages = ['hscommon', 'core', ed('core_{0}'), 'qtlib', 'qt', 'hsutil', 'send2trash', 'jobprogress']
|
||||||
if edition == 'me':
|
if edition == 'me':
|
||||||
packages.append('hsaudiotag')
|
packages.append('hsaudiotag')
|
||||||
copy_packages(packages, srcpath)
|
copy_packages(packages, srcpath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user