2010-04-12 10:21:01 +00:00
|
|
|
# Created By: Virgil Dupras
|
|
|
|
# Created On: 2010-04-12
|
2015-01-03 21:30:57 +00:00
|
|
|
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
2020-01-01 02:16:27 +00:00
|
|
|
#
|
|
|
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
2015-01-03 21:33:16 +00:00
|
|
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
2010-04-12 10:21:01 +00:00
|
|
|
|
2013-10-12 17:54:13 +00:00
|
|
|
from hscommon import desktop
|
|
|
|
|
2022-05-09 06:40:08 +00:00
|
|
|
from core.gui.problem_table import ProblemTable
|
2010-04-12 10:21:01 +00:00
|
|
|
|
2020-01-01 02:16:27 +00:00
|
|
|
|
2012-03-13 15:58:07 +00:00
|
|
|
class ProblemDialog:
|
2012-01-13 21:14:06 +00:00
|
|
|
def __init__(self, app):
|
2012-03-13 15:58:07 +00:00
|
|
|
self.app = app
|
2010-04-12 10:21:01 +00:00
|
|
|
self._selected_dupe = None
|
2012-01-13 21:14:06 +00:00
|
|
|
self.problem_table = ProblemTable(self)
|
2020-01-01 02:16:27 +00:00
|
|
|
|
2012-03-13 15:58:07 +00:00
|
|
|
def refresh(self):
|
|
|
|
self._selected_dupe = None
|
|
|
|
self.problem_table.refresh()
|
2020-01-01 02:16:27 +00:00
|
|
|
|
2010-04-12 10:21:01 +00:00
|
|
|
def reveal_selected_dupe(self):
|
|
|
|
if self._selected_dupe is not None:
|
2013-10-12 17:54:13 +00:00
|
|
|
desktop.reveal_path(self._selected_dupe.path)
|
2020-01-01 02:16:27 +00:00
|
|
|
|
2010-04-12 10:21:01 +00:00
|
|
|
def select_dupe(self, dupe):
|
|
|
|
self._selected_dupe = dupe
|