eric7/Tasks/TaskViewer.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
19 from PyQt6.QtWidgets import ( 19 from PyQt6.QtWidgets import (
20 QHeaderView, QLineEdit, QTreeWidget, QDialog, QInputDialog, QApplication, 20 QHeaderView, QLineEdit, QTreeWidget, QDialog, QInputDialog, QApplication,
21 QMenu, QAbstractItemView, QTreeWidgetItem 21 QMenu, QAbstractItemView, QTreeWidgetItem
22 ) 22 )
23 23
24 from E5Gui.E5Application import e5App 24 from E5Gui.EricApplication import ericApp
25 from E5Gui import E5MessageBox 25 from E5Gui import EricMessageBox
26 from E5Gui.E5ProgressDialog import E5ProgressDialog 26 from E5Gui.EricProgressDialog import EricProgressDialog
27 27
28 from .Task import Task, TaskType, TaskPriority 28 from .Task import Task, TaskType, TaskPriority
29 29
30 import UI.PixmapCache 30 import UI.PixmapCache
31 31
669 Private slot to handle the "Filtered display" context menu entry. 669 Private slot to handle the "Filtered display" context menu entry.
670 670
671 @param on flag indicating the filter state (boolean) 671 @param on flag indicating the filter state (boolean)
672 """ 672 """
673 if on and not self.taskFilter.hasActiveFilter(): 673 if on and not self.taskFilter.hasActiveFilter():
674 res = E5MessageBox.yesNo( 674 res = EricMessageBox.yesNo(
675 self, 675 self,
676 self.tr("Activate task filter"), 676 self.tr("Activate task filter"),
677 self.tr( 677 self.tr(
678 """The task filter doesn't have any active filters.""" 678 """The task filter doesn't have any active filters."""
679 """ Do you want to configure the filter settings?"""), 679 """ Do you want to configure the filter settings?"""),
742 if quiet: 742 if quiet:
743 ppath = self.project.getProjectPath() 743 ppath = self.project.getProjectPath()
744 self.__projectTaskExtractionThread.scan( 744 self.__projectTaskExtractionThread.scan(
745 markers, [os.path.join(ppath, f) for f in files]) 745 markers, [os.path.join(ppath, f) for f in files])
746 else: 746 else:
747 progress = E5ProgressDialog( 747 progress = EricProgressDialog(
748 self.tr("Extracting project tasks..."), 748 self.tr("Extracting project tasks..."),
749 self.tr("Abort"), 0, len(files), self.tr("%v/%m Files")) 749 self.tr("Abort"), 0, len(files), self.tr("%v/%m Files"))
750 progress.setMinimumDuration(0) 750 progress.setMinimumDuration(0)
751 progress.setWindowTitle(self.tr("Tasks")) 751 progress.setWindowTitle(self.tr("Tasks"))
752 752
792 792
793 def __configure(self): 793 def __configure(self):
794 """ 794 """
795 Private method to open the configuration dialog. 795 Private method to open the configuration dialog.
796 """ 796 """
797 e5App().getObject("UserInterface").showPreferences("tasksPage") 797 ericApp().getObject("UserInterface").showPreferences("tasksPage")
798 798
799 def saveProjectTasks(self): 799 def saveProjectTasks(self):
800 """ 800 """
801 Public method to write the project tasks. 801 Public method to write the project tasks.
802 """ 802 """

eric ide

mercurial