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