1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

The directories dialog is now the main window. There's probably many glitches left to fix due to that change, but the basic functionalities are there.

--HG--
rename : qt/base/main_window.py => qt/base/result_window.py
rename : qt/pe/main_window.py => qt/pe/result_window.py
This commit is contained in:
Virgil Dupras
2011-01-15 16:29:35 +01:00
parent 30eb26af7d
commit d51f5184d7
7 changed files with 251 additions and 225 deletions

View File

@@ -20,7 +20,7 @@ from core_pe.scanner import ScannerPE
from ..base.app import DupeGuru as DupeGuruBase
from .block import getblocks
from .details_dialog import DetailsDialog
from .main_window import MainWindow
from .result_window import ResultWindow
from .preferences import Preferences
from .preferences_dialog import PreferencesDialog
@@ -79,8 +79,8 @@ class DupeGuru(DupeGuruBase):
def _create_details_dialog(self, parent):
return DetailsDialog(parent, self)
def _create_main_window(self):
return MainWindow(app=self)
def _create_result_window(self):
return ResultWindow(app=self)
def _create_preferences(self):
return Preferences()

View File

@@ -9,11 +9,11 @@
from PyQt4.QtCore import SIGNAL
from PyQt4.QtGui import QMessageBox, QAction
from ..base.main_window import MainWindow as MainWindowBase
from ..base.result_window import ResultWindow as ResultWindowBase
class MainWindow(MainWindowBase):
class ResultWindow(ResultWindowBase):
def _setupUi(self):
MainWindowBase._setupUi(self)
ResultWindowBase._setupUi(self)
self.actionClearPictureCache = QAction("Clear Picture Cache", self)
self.menuFile.insertAction(self.actionClearIgnoreList, self.actionClearPictureCache)
self.connect(self.actionClearPictureCache, SIGNAL("triggered()"), self.clearPictureCacheTriggered)
@@ -21,7 +21,7 @@ class MainWindow(MainWindowBase):
def clearPictureCacheTriggered(self):
title = "Clear Picture Cache"
msg = "Do you really want to remove all your cached picture analysis?"
if self._confirm(title, msg, QMessageBox.No):
if self.app.confirm(title, msg, QMessageBox.No):
self.app.scanner.clear_picture_cache()
QMessageBox.information(self, title, "Picture cache cleared.")