5 |
5 |
6 """ |
6 """ |
7 Module implementing a class used to display the Sources part of the project. |
7 Module implementing a class used to display the Sources part of the project. |
8 """ |
8 """ |
9 |
9 |
|
10 import contextlib |
10 import os |
11 import os |
11 import contextlib |
|
12 |
12 |
13 from PyQt6.QtCore import pyqtSignal |
13 from PyQt6.QtCore import pyqtSignal |
14 from PyQt6.QtWidgets import QDialog, QInputDialog, QMenu |
14 from PyQt6.QtWidgets import QDialog, QInputDialog, QMenu |
15 |
15 |
|
16 from eric7 import Utilities |
|
17 from eric7.CodeFormatting.BlackFormattingAction import BlackFormattingAction |
|
18 from eric7.CodeFormatting.BlackUtilities import aboutBlack |
|
19 from eric7.CodeFormatting.IsortFormattingAction import IsortFormattingAction |
|
20 from eric7.CodeFormatting.IsortUtilities import aboutIsort |
|
21 from eric7.EricGui import EricPixmapCache |
16 from eric7.EricWidgets import EricMessageBox |
22 from eric7.EricWidgets import EricMessageBox |
17 from eric7.EricWidgets.EricApplication import ericApp |
23 from eric7.EricWidgets.EricApplication import ericApp |
18 |
|
19 from eric7.UI.BrowserModel import ( |
24 from eric7.UI.BrowserModel import ( |
|
25 BrowserClassAttributeItem, |
|
26 BrowserClassItem, |
20 BrowserFileItem, |
27 BrowserFileItem, |
21 BrowserClassItem, |
28 BrowserImportItem, |
22 BrowserMethodItem, |
29 BrowserMethodItem, |
23 BrowserClassAttributeItem, |
|
24 BrowserImportItem, |
|
25 ) |
30 ) |
26 |
31 |
|
32 from .ProjectBaseBrowser import ProjectBaseBrowser |
27 from .ProjectBrowserModel import ( |
33 from .ProjectBrowserModel import ( |
|
34 ProjectBrowserDirectoryItem, |
28 ProjectBrowserFileItem, |
35 ProjectBrowserFileItem, |
29 ProjectBrowserSimpleDirectoryItem, |
36 ProjectBrowserSimpleDirectoryItem, |
30 ProjectBrowserDirectoryItem, |
|
31 ProjectBrowserSourceType, |
37 ProjectBrowserSourceType, |
32 ) |
38 ) |
33 from .ProjectBaseBrowser import ProjectBaseBrowser |
|
34 |
|
35 from eric7 import Utilities |
|
36 from eric7.EricGui import EricPixmapCache |
|
37 |
|
38 from eric7.CodeFormatting.BlackFormattingAction import BlackFormattingAction |
|
39 from eric7.CodeFormatting.BlackUtilities import aboutBlack |
|
40 |
|
41 from eric7.CodeFormatting.IsortFormattingAction import IsortFormattingAction |
|
42 from eric7.CodeFormatting.IsortUtilities import aboutIsort |
|
43 |
39 |
44 |
40 |
45 class ProjectSourcesBrowser(ProjectBaseBrowser): |
41 class ProjectSourcesBrowser(ProjectBaseBrowser): |
46 """ |
42 """ |
47 A class used to display the Sources part of the project. |
43 A class used to display the Sources part of the project. |