10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog, QComboBox |
13 from PyQt6.QtWidgets import QDialog, QComboBox |
14 |
14 |
15 from EricWidgets.EricCompleters import EricDirCompleter |
15 from eric7.EricWidgets.EricCompleters import EricDirCompleter |
16 from EricWidgets.EricPathPicker import EricPathPickerModes |
16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
17 from EricWidgets.EricApplication import ericApp |
17 from eric7.EricWidgets.EricApplication import ericApp |
18 |
18 |
19 from .Ui_DebuggerPropertiesDialog import Ui_DebuggerPropertiesDialog |
19 from .Ui_DebuggerPropertiesDialog import Ui_DebuggerPropertiesDialog |
20 |
20 |
21 |
21 |
22 from eric7config import getConfig |
22 from eric7config import getConfig |
23 |
23 |
24 import Preferences |
24 from eric7 import Preferences |
25 import UI.PixmapCache |
25 from eric7.EricGui import EricPixmapCache |
26 |
26 |
27 |
27 |
28 class DebuggerPropertiesDialog(QDialog, Ui_DebuggerPropertiesDialog): |
28 class DebuggerPropertiesDialog(QDialog, Ui_DebuggerPropertiesDialog): |
29 """ |
29 """ |
30 Class implementing a dialog for entering project specific debugger |
30 Class implementing a dialog for entering project specific debugger |
51 self.debugClientPicker.setInsertPolicy(QComboBox.InsertPolicy.InsertAtTop) |
51 self.debugClientPicker.setInsertPolicy(QComboBox.InsertPolicy.InsertAtTop) |
52 self.debugClientPicker.setSizeAdjustPolicy( |
52 self.debugClientPicker.setSizeAdjustPolicy( |
53 QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon |
53 QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon |
54 ) |
54 ) |
55 self.debugClientPicker.setPathsList(debugClientsHistory) |
55 self.debugClientPicker.setPathsList(debugClientsHistory) |
56 self.debugClientClearHistoryButton.setIcon(UI.PixmapCache.getIcon("editDelete")) |
56 self.debugClientClearHistoryButton.setIcon( |
|
57 EricPixmapCache.getIcon("editDelete") |
|
58 ) |
57 |
59 |
58 self.translationLocalCompleter = EricDirCompleter(self.translationLocalEdit) |
60 self.translationLocalCompleter = EricDirCompleter(self.translationLocalEdit) |
59 |
61 |
60 venvManager = ericApp().getObject("VirtualEnvManager") |
62 venvManager = ericApp().getObject("VirtualEnvManager") |
61 |
63 |