9 |
9 |
10 import os |
10 import os |
11 import shutil |
11 import shutil |
12 |
12 |
13 from PyQt6.QtCore import ( |
13 from PyQt6.QtCore import ( |
|
14 QCoreApplication, |
|
15 QElapsedTimer, |
|
16 QItemSelectionModel, |
|
17 QModelIndex, |
|
18 Qt, |
|
19 QUrl, |
14 pyqtSignal, |
20 pyqtSignal, |
15 pyqtSlot, |
21 pyqtSlot, |
16 Qt, |
|
17 QUrl, |
|
18 QCoreApplication, |
|
19 QItemSelectionModel, |
|
20 QModelIndex, |
|
21 QElapsedTimer, |
|
22 ) |
22 ) |
23 from PyQt6.QtGui import QAction, QDesktopServices |
23 from PyQt6.QtGui import QAction, QDesktopServices |
24 from PyQt6.QtWidgets import ( |
24 from PyQt6.QtWidgets import ( |
25 QTreeView, |
25 QAbstractItemView, |
26 QApplication, |
26 QApplication, |
27 QMenu, |
27 QDialog, |
28 QAbstractItemView, |
|
29 QInputDialog, |
28 QInputDialog, |
30 QLineEdit, |
29 QLineEdit, |
31 QDialog, |
30 QMenu, |
|
31 QTreeView, |
32 ) |
32 ) |
33 |
33 |
|
34 from eric7 import Preferences, Utilities |
|
35 from eric7.EricGui import EricPixmapCache |
|
36 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
34 from eric7.EricWidgets.EricApplication import ericApp |
37 from eric7.EricWidgets.EricApplication import ericApp |
35 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
|
36 |
|
37 from eric7.Project.ProjectBrowserModel import ProjectBrowserSimpleDirectoryItem |
38 from eric7.Project.ProjectBrowserModel import ProjectBrowserSimpleDirectoryItem |
|
39 from eric7.Utilities import MimeTypes |
|
40 |
38 from .BrowserModel import ( |
41 from .BrowserModel import ( |
39 BrowserModel, |
42 BrowserClassAttributeItem, |
|
43 BrowserClassItem, |
40 BrowserDirectoryItem, |
44 BrowserDirectoryItem, |
41 BrowserFileItem, |
45 BrowserFileItem, |
42 BrowserClassItem, |
46 BrowserGlobalsItem, |
43 BrowserMethodItem, |
|
44 BrowserClassAttributeItem, |
|
45 BrowserImportItem, |
47 BrowserImportItem, |
46 BrowserImportsItem, |
48 BrowserImportsItem, |
|
49 BrowserItemDirectory, |
|
50 BrowserMethodItem, |
|
51 BrowserModel, |
47 BrowserSysPathItem, |
52 BrowserSysPathItem, |
48 BrowserGlobalsItem, |
|
49 BrowserItemDirectory, |
|
50 ) |
53 ) |
51 from .BrowserSortFilterProxyModel import BrowserSortFilterProxyModel |
54 from .BrowserSortFilterProxyModel import BrowserSortFilterProxyModel |
52 |
|
53 from eric7.EricGui import EricPixmapCache |
|
54 from eric7 import Preferences, Utilities |
|
55 from eric7.Utilities import MimeTypes |
|
56 |
55 |
57 |
56 |
58 class Browser(QTreeView): |
57 class Browser(QTreeView): |
59 """ |
58 """ |
60 Class used to display a file system tree. |
59 Class used to display a file system tree. |