11 import re |
11 import re |
12 |
12 |
13 from PyQt6.QtCore import Qt, pyqtSignal, pyqtSlot |
13 from PyQt6.QtCore import Qt, pyqtSignal, pyqtSlot |
14 from PyQt6.QtWidgets import QTreeWidgetItem, QWidget |
14 from PyQt6.QtWidgets import QTreeWidgetItem, QWidget |
15 |
15 |
16 from eric7 import Preferences |
16 from eric7 import EricUtilities, Preferences |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
18 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
19 from eric7.EricWidgets.EricApplication import ericApp |
19 from eric7.EricWidgets.EricApplication import ericApp |
20 |
20 |
21 from .Ui_CallTraceViewer import Ui_CallTraceViewer |
21 from .Ui_CallTraceViewer import Ui_CallTraceViewer |
65 |
65 |
66 self.__projectMode = False |
66 self.__projectMode = False |
67 self.__project = None |
67 self.__project = None |
68 self.__tracedDebuggerId = "" |
68 self.__tracedDebuggerId = "" |
69 |
69 |
70 stopOnExit = Preferences.toBool( |
70 stopOnExit = EricUtilities.toBool( |
71 Preferences.getSettings().value("CallTrace/StopOnExit", True) |
71 Preferences.getSettings().value("CallTrace/StopOnExit", True) |
72 ) |
72 ) |
73 self.stopCheckBox.setChecked(stopOnExit) |
73 self.stopCheckBox.setChecked(stopOnExit) |
74 |
74 |
75 self.__callTraceEnabled = ( |
75 self.__callTraceEnabled = ( |
76 Preferences.toBool( |
76 EricUtilities.toBool( |
77 Preferences.getSettings().value("CallTrace/Enabled", False) |
77 Preferences.getSettings().value("CallTrace/Enabled", False) |
78 ) |
78 ) |
79 and not stopOnExit |
79 and not stopOnExit |
80 ) |
80 ) |
81 |
81 |