Updated hscommon and adapted to changes in hscommon.gui.table.Table.refresh().

This commit is contained in:
Virgil Dupras 2010-11-24 16:12:10 +01:00
parent 6770d22438
commit 95efac187b
5 changed files with 5 additions and 9 deletions

1
README
View File

@ -13,7 +13,6 @@ There are also other sub-folder that comes from external repositories (automatic
with svn:externals):
- 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.
- qtlib: A collection of helpers used across Qt UI codebases of HS applications.

View File

@ -7,7 +7,7 @@
# which should be included with this package. The terms are also available at
# 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 .base import GUIObject

View File

@ -8,7 +8,7 @@
# http://www.hardcoded.net/licenses/bsd_license
from hscommon.notify import Listener
from hsgui.table import GUITable, Row
from hscommon.gui.table import GUITable, Row
class ProblemTable(GUITable, Listener):
def __init__(self, view, problem_dialog):
@ -31,7 +31,6 @@ class ProblemTable(GUITable, Listener):
#--- Event handlers
def problems_changed(self):
self.refresh()
self.view.refresh()
class ProblemRow(Row):

View File

@ -9,7 +9,7 @@
from operator import attrgetter
from hsgui.table import GUITable, Row
from hscommon.gui.table import GUITable, Row
from .base import GUIObject
@ -87,7 +87,6 @@ class ResultTable(GUIObject, GUITable):
def _refresh_with_view(self):
self.refresh()
self.view.refresh()
self.view.show_selected_row()
#--- Public
@ -139,7 +138,6 @@ class ResultTable(GUIObject, GUITable):
return
self._delta_values = value
self.refresh()
self.view.refresh()
@property
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
# restore selected *paths*.
indexes = self.selected_indexes
self.refresh()
self.refresh(refresh_view=False)
self.select(indexes)
self.view.refresh()

View File

@ -86,7 +86,7 @@ def package_debian(edition):
os.makedirs(destpath)
os.makedirs(srcpath)
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':
packages.append('hsaudiotag')
copy_packages(packages, srcpath)