mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 17:59:50 +00:00
Added prompt in folders dialog under Qt.
This commit is contained in:
parent
b6f56721cb
commit
f45997afe4
@ -9,7 +9,7 @@
|
|||||||
from PyQt4.QtCore import QRect
|
from PyQt4.QtCore import QRect
|
||||||
from PyQt4.QtGui import (QWidget, QFileDialog, QHeaderView, QVBoxLayout, QHBoxLayout, QTreeView,
|
from PyQt4.QtGui import (QWidget, QFileDialog, QHeaderView, QVBoxLayout, QHBoxLayout, QTreeView,
|
||||||
QAbstractItemView, QSpacerItem, QSizePolicy, QPushButton, QApplication, QMessageBox, QMainWindow,
|
QAbstractItemView, QSpacerItem, QSizePolicy, QPushButton, QApplication, QMessageBox, QMainWindow,
|
||||||
QMenuBar, QMenu, QIcon, QPixmap)
|
QMenuBar, QMenu, QIcon, QPixmap, QLabel)
|
||||||
|
|
||||||
from hscommon.trans import tr, trmsg
|
from hscommon.trans import tr, trmsg
|
||||||
from qtlib.recent import Recent
|
from qtlib.recent import Recent
|
||||||
@ -100,6 +100,8 @@ class DirectoriesDialog(QMainWindow):
|
|||||||
self.resize(420, 338)
|
self.resize(420, 338)
|
||||||
self.centralwidget = QWidget(self)
|
self.centralwidget = QWidget(self)
|
||||||
self.verticalLayout = QVBoxLayout(self.centralwidget)
|
self.verticalLayout = QVBoxLayout(self.centralwidget)
|
||||||
|
self.promptLabel = QLabel(trmsg("SelectFolderToScanMsg"), self.centralwidget)
|
||||||
|
self.verticalLayout.addWidget(self.promptLabel)
|
||||||
self.treeView = QTreeView(self.centralwidget)
|
self.treeView = QTreeView(self.centralwidget)
|
||||||
self.treeView.setItemDelegate(self.directoriesDelegate)
|
self.treeView.setItemDelegate(self.directoriesDelegate)
|
||||||
self.treeView.setModel(self.directoriesModel)
|
self.treeView.setModel(self.directoriesModel)
|
||||||
@ -222,6 +224,7 @@ class DirectoriesDialog(QMainWindow):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
|
from . import dg_rc
|
||||||
from ..testapp import TestApp
|
from ..testapp import TestApp
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
dgapp = TestApp()
|
dgapp = TestApp()
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
<TS version="2.0" language="en_US">
|
<TS version="2.0" language="en_US">
|
||||||
<context>
|
<context>
|
||||||
<name>message</name>
|
<name>message</name>
|
||||||
|
<message>
|
||||||
|
<source>SelectFolderToScanMsg</source>
|
||||||
|
<translation>Select folders to scan and press "Scan".</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>TaskHangingMsg</source>
|
<source>TaskHangingMsg</source>
|
||||||
<translation>A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.</translation>
|
<translation>A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.</translation>
|
||||||
|
@ -539,6 +539,10 @@
|
|||||||
<!-- ******** Message ******** -->
|
<!-- ******** Message ******** -->
|
||||||
<context>
|
<context>
|
||||||
<name>message</name>
|
<name>message</name>
|
||||||
|
<message>
|
||||||
|
<source>SelectFolderToScanMsg</source>
|
||||||
|
<translation>Sélectionnez les dossiers à scanner puis faites "Scan".</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>TaskHangingMsg</source>
|
<source>TaskHangingMsg</source>
|
||||||
<translation>Une action précédente est encore en cours. Attendez quelques secondes avant d'en repartir une nouvelle.</translation>
|
<translation>Une action précédente est encore en cours. Attendez quelques secondes avant d'en repartir une nouvelle.</translation>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user