22 from PyQt6.QtGui import QFont, QKeySequence, QPainter, QPalette |
22 from PyQt6.QtGui import QFont, QKeySequence, QPainter, QPalette |
23 from PyQt6.QtWidgets import QAbstractScrollArea, QApplication |
23 from PyQt6.QtWidgets import QAbstractScrollArea, QApplication |
24 |
24 |
25 from eric7 import Globals |
25 from eric7 import Globals |
26 from eric7.EricWidgets.EricApplication import ericApp |
26 from eric7.EricWidgets.EricApplication import ericApp |
|
27 from eric7.SystemUtilities import OSUtilities |
27 |
28 |
28 from .HexEditChunks import HexEditChunks |
29 from .HexEditChunks import HexEditChunks |
29 from .HexEditUndoStack import HexEditUndoStack |
30 from .HexEditUndoStack import HexEditUndoStack |
30 |
31 |
31 |
32 |
124 self.__bPosLast = 0 |
125 self.__bPosLast = 0 |
125 self.__bPosCurrent = 0 |
126 self.__bPosCurrent = 0 |
126 |
127 |
127 self.__chunks = HexEditChunks() |
128 self.__chunks = HexEditChunks() |
128 self.__undoStack = HexEditUndoStack(self.__chunks, self) |
129 self.__undoStack = HexEditUndoStack(self.__chunks, self) |
129 if Globals.isWindowsPlatform(): |
130 if OSUtilities.isWindowsPlatform(): |
130 self.setFont(QFont(["Courier"], 10)) |
131 self.setFont(QFont(["Courier"], 10)) |
131 else: |
132 else: |
132 self.setFont(QFont(["Monospace"], 10)) |
133 self.setFont(QFont(["Monospace"], 10)) |
133 |
134 |
134 self.__cursorTimer = QTimer() |
135 self.__cursorTimer = QTimer() |