11 from PyQt6.QtGui import QRegularExpressionValidator |
11 from PyQt6.QtGui import QRegularExpressionValidator |
12 from PyQt6.QtWidgets import QWidget |
12 from PyQt6.QtWidgets import QWidget |
13 |
13 |
14 from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget |
14 from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget |
15 |
15 |
16 import UI.PixmapCache |
16 from eric7.EricGui import EricPixmapCache |
17 import Globals |
17 from eric7 import Globals |
18 |
18 |
19 |
19 |
20 class HexEditGotoWidget(QWidget, Ui_HexEditGotoWidget): |
20 class HexEditGotoWidget(QWidget, Ui_HexEditGotoWidget): |
21 """ |
21 """ |
22 Class implementing a movement (goto) widget for the hex editor. |
22 Class implementing a movement (goto) widget for the hex editor. |
49 } |
49 } |
50 formatOrder = ["hex", "dec"] |
50 formatOrder = ["hex", "dec"] |
51 |
51 |
52 self.__currentFormat = "" |
52 self.__currentFormat = "" |
53 |
53 |
54 self.closeButton.setIcon(UI.PixmapCache.getIcon("close")) |
54 self.closeButton.setIcon(EricPixmapCache.getIcon("close")) |
55 |
55 |
56 for dataFormat in formatOrder: |
56 for dataFormat in formatOrder: |
57 formatStr, validator = self.__formatAndValidators[dataFormat] |
57 formatStr, validator = self.__formatAndValidators[dataFormat] |
58 self.formatCombo.addItem(formatStr, dataFormat) |
58 self.formatCombo.addItem(formatStr, dataFormat) |
59 |
59 |