14 import os |
14 import os |
15 import fnmatch |
15 import fnmatch |
16 |
16 |
17 from PyQt4.QtCore import pyqtSignal, Qt |
17 from PyQt4.QtCore import pyqtSignal, Qt |
18 from PyQt4.QtGui import QHeaderView, QLineEdit, QTreeWidget, QDialog, \ |
18 from PyQt4.QtGui import QHeaderView, QLineEdit, QTreeWidget, QDialog, \ |
19 QInputDialog, QApplication, QMenu, QAbstractItemView, QProgressDialog, \ |
19 QInputDialog, QApplication, QMenu, QAbstractItemView, QTreeWidgetItem |
20 QTreeWidgetItem |
|
21 |
20 |
22 from E5Gui.E5Application import e5App |
21 from E5Gui.E5Application import e5App |
23 from E5Gui import E5MessageBox |
22 from E5Gui import E5MessageBox |
|
23 from E5Gui.E5ProgressDialog import E5ProgressDialog |
24 |
24 |
25 from .Task import Task |
25 from .Task import Task |
26 |
26 |
27 import UI.PixmapCache |
27 import UI.PixmapCache |
28 |
28 |
540 |
540 |
541 # remove all project tasks |
541 # remove all project tasks |
542 self.clearProjectTasks(fileOnly=True) |
542 self.clearProjectTasks(fileOnly=True) |
543 |
543 |
544 # now process them |
544 # now process them |
545 progress = QProgressDialog( |
545 progress = E5ProgressDialog( |
546 self.trUtf8("Extracting project tasks..."), |
546 self.trUtf8("Extracting project tasks..."), |
547 self.trUtf8("Abort"), 0, len(files)) |
547 self.trUtf8("Abort"), 0, len(files), self.trUtf8("%v/%m Files")) |
548 progress.setMinimumDuration(0) |
548 progress.setMinimumDuration(0) |
549 count = 0 |
549 count = 0 |
550 |
550 |
551 for file in files: |
551 for file in files: |
552 progress.setLabelText( |
552 progress.setLabelText( |