16 QSortFilterProxyModel, pyqtSignal |
16 QSortFilterProxyModel, pyqtSignal |
17 ) |
17 ) |
18 from PyQt6.QtGui import QBrush, QFontMetrics |
18 from PyQt6.QtGui import QBrush, QFontMetrics |
19 from PyQt6.QtWidgets import QTreeView, QAbstractItemView, QToolTip, QMenu |
19 from PyQt6.QtWidgets import QTreeView, QAbstractItemView, QToolTip, QMenu |
20 |
20 |
21 from E5Gui.E5Application import e5App |
21 from E5Gui.EricApplication import ericApp |
22 |
22 |
23 from .Config import ConfigVarTypeDispStrings |
23 from .Config import ConfigVarTypeDispStrings |
24 from DebugClients.Python.DebugConfig import ConfigQtNames, ConfigKnownQtTypes |
24 from DebugClients.Python.DebugConfig import ConfigQtNames, ConfigKnownQtTypes |
25 |
25 |
26 import Preferences |
26 import Preferences |
776 |
776 |
777 node.pendigFetch = True |
777 node.pendigFetch = True |
778 # step 3: get a pathlist up to the requested variable |
778 # step 3: get a pathlist up to the requested variable |
779 pathlist = self.__buildTreePath(node) |
779 pathlist = self.__buildTreePath(node) |
780 # step 4: request the variable from the debugger |
780 # step 4: request the variable from the debugger |
781 variablesFilter = e5App().getObject("DebugUI").variablesFilter( |
781 variablesFilter = ericApp().getObject("DebugUI").variablesFilter( |
782 self.__globalScope) |
782 self.__globalScope) |
783 e5App().getObject("DebugServer").remoteClientVariable( |
783 ericApp().getObject("DebugServer").remoteClientVariable( |
784 e5App().getObject("DebugUI").getSelectedDebuggerId(), |
784 ericApp().getObject("DebugUI").getSelectedDebuggerId(), |
785 self.__globalScope, variablesFilter, pathlist, self.framenr) |
785 self.__globalScope, variablesFilter, pathlist, self.framenr) |
786 |
786 |
787 def setExpanded(self, index, state): |
787 def setExpanded(self, index, state): |
788 """ |
788 """ |
789 Public method to set the expanded state of item. |
789 Public method to set the expanded state of item. |
1192 |
1192 |
1193 def __configure(self): |
1193 def __configure(self): |
1194 """ |
1194 """ |
1195 Private method to open the configuration dialog. |
1195 Private method to open the configuration dialog. |
1196 """ |
1196 """ |
1197 e5App().getObject("UserInterface").showPreferences( |
1197 ericApp().getObject("UserInterface").showPreferences( |
1198 "debuggerGeneralPage") |
1198 "debuggerGeneralPage") |
1199 |
1199 |
1200 def __configureFilter(self): |
1200 def __configureFilter(self): |
1201 """ |
1201 """ |
1202 Private method to open the variables filter dialog. |
1202 Private method to open the variables filter dialog. |
1203 """ |
1203 """ |
1204 e5App().getObject("DebugUI").dbgFilterAct.triggered.emit() |
1204 ericApp().getObject("DebugUI").dbgFilterAct.triggered.emit() |
1205 |
1205 |
1206 # |
1206 # |
1207 # eflag: noqa = M822 |
1207 # eflag: noqa = M822 |