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

Updated hscommon to its tip.

Because the latest changes in hscommon include the introduction of a base GUIObject which significantly changes view setting mechanisms, significant adjustments had to be made in dupeGuru.
This commit is contained in:
Virgil Dupras
2012-03-13 14:27:08 -04:00
parent 878c744c21
commit 49a7043b4d
11 changed files with 56 additions and 60 deletions

View File

@@ -9,7 +9,7 @@
from hscommon.gui.tree import Tree, Node
from ..directories import DirectoryState
from .base import GUIObject
from .base import DupeGuruGUIObject
STATE_ORDER = [DirectoryState.Normal, DirectoryState.Reference, DirectoryState.Excluded]
@@ -54,17 +54,16 @@ class DirectoryNode(Node):
self._tree.update_all_states()
class DirectoryTree(GUIObject, Tree):
class DirectoryTree(Tree, DupeGuruGUIObject):
#--- model -> view calls:
# refresh()
# refresh_states() # when only states label need to be refreshed
#
def __init__(self, app):
GUIObject.__init__(self, app)
Tree.__init__(self)
DupeGuruGUIObject.__init__(self, app)
def connect(self):
GUIObject.connect(self)
def _view_updated(self):
self._refresh()
self.view.refresh()