11 import enum |
11 import enum |
12 import os |
12 import os |
13 import time |
13 import time |
14 import types |
14 import types |
15 |
15 |
16 from PyQt6.QtCore import pyqtSignal, pyqtSlot, Qt, QMetaObject, QRect |
16 from PyQt6.QtCore import QMetaObject, QRect, Qt, pyqtSignal, pyqtSlot |
17 from PyQt6.QtGui import QPixmap |
17 from PyQt6.QtGui import QPixmap |
18 from PyQt6.QtWidgets import ( |
18 from PyQt6.QtWidgets import ( |
|
19 QAbstractScrollArea, |
|
20 QApplication, |
|
21 QDialog, |
|
22 QDialogButtonBox, |
|
23 QFrame, |
|
24 QLabel, |
|
25 QLineEdit, |
|
26 QScrollArea, |
19 QSizePolicy, |
27 QSizePolicy, |
20 QSpacerItem, |
28 QSpacerItem, |
|
29 QSplitter, |
|
30 QStackedWidget, |
|
31 QTreeWidget, |
|
32 QTreeWidgetItem, |
|
33 QVBoxLayout, |
21 QWidget, |
34 QWidget, |
22 QTreeWidget, |
|
23 QStackedWidget, |
|
24 QDialog, |
|
25 QSplitter, |
|
26 QScrollArea, |
|
27 QApplication, |
|
28 QDialogButtonBox, |
|
29 QFrame, |
|
30 QVBoxLayout, |
|
31 QTreeWidgetItem, |
|
32 QLabel, |
|
33 QAbstractScrollArea, |
|
34 QLineEdit, |
|
35 ) |
35 ) |
36 |
36 |
|
37 from eric7 import Preferences |
|
38 from eric7.EricGui import EricPixmapCache |
|
39 from eric7.EricWidgets import EricMessageBox |
37 from eric7.EricWidgets.EricApplication import ericApp |
40 from eric7.EricWidgets.EricApplication import ericApp |
38 from eric7.EricWidgets import EricMessageBox |
|
39 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
41 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
40 |
42 from eric7.Globals import getConfig, getWebBrowserSupport, isMacPlatform |
41 from eric7.Globals import isMacPlatform, getWebBrowserSupport |
|
42 |
|
43 from eric7 import Preferences |
|
44 |
|
45 from eric7.EricGui import EricPixmapCache |
|
46 |
|
47 from eric7.Globals import getConfig |
|
48 |
43 |
49 |
44 |
50 class ConfigurationPageItem(QTreeWidgetItem): |
45 class ConfigurationPageItem(QTreeWidgetItem): |
51 """ |
46 """ |
52 Class implementing a QTreeWidgetItem holding the configuration page data. |
47 Class implementing a QTreeWidgetItem holding the configuration page data. |
1100 def __initLexers(self): |
1095 def __initLexers(self): |
1101 """ |
1096 """ |
1102 Private method to initialize the dictionary of preferences lexers. |
1097 Private method to initialize the dictionary of preferences lexers. |
1103 """ |
1098 """ |
1104 from eric7.QScintilla import Lexers |
1099 from eric7.QScintilla import Lexers |
|
1100 |
1105 from .PreferencesLexer import PreferencesLexer, PreferencesLexerLanguageError |
1101 from .PreferencesLexer import PreferencesLexer, PreferencesLexerLanguageError |
1106 |
1102 |
1107 self.lexers = {} |
1103 self.lexers = {} |
1108 for language in Lexers.getSupportedLanguages(): |
1104 for language in Lexers.getSupportedLanguages(): |
1109 if language not in self.lexers: |
1105 if language not in self.lexers: |