4 #include <QAbstractScrollArea>
121 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
138 bool setData(QIODevice &iODevice);
143 QByteArray
dataAt(qint64 pos, qint64 count=-1);
148 bool write(QIODevice &iODevice, qint64 pos=0, qint64 count=-1);
158 void insert(qint64 pos,
char ch);
164 void remove(qint64 pos, qint64 len=1);
171 void replace(qint64 pos,
char ch);
181 void insert(qint64 pos, const QByteArray &ba);
189 void replace(qint64 pos, qint64 len, const QByteArray &ba);
208 qint64
indexOf(const QByteArray &ba, qint64 from);
220 qint64
lastIndexOf(const QByteArray &ba, qint64 from);
268 void setAddressArea(
bool addressArea);
271 void setAddressAreaColor(const QColor &color);
274 void setAddressOffset(qint64 addressArea);
277 void setAddressWidth(
int addressWidth);
280 void setAsciiArea(
bool asciiArea);
283 void setCursorPosition(qint64 position);
286 void setData(const QByteArray &ba);
289 void setHighlighting(
bool mode);
292 void setHighlightingColor(const QColor &color);
295 void setOverwriteMode(
bool overwriteMode);
301 void setSelectionColor(const QColor &color);
305 void keyPressEvent(QKeyEvent *event);
306 void mouseMoveEvent(QMouseEvent * event);
307 void mousePressEvent(QMouseEvent * event);
308 void paintEvent(QPaintEvent *event);
309 void resizeEvent(QResizeEvent *);
313 void resetSelection(qint64 pos);
314 void resetSelection();
315 void setSelection(qint64 pos);
316 int getSelectionBegin();
317 int getSelectionEnd();
322 QString toReadable(const QByteArray &ba);
326 void dataChangedPrivate(
int idx=0);
332 int _pxCharWidth, _pxCharHeight;
345 qint64 _bSelectionBegin;
346 qint64 _bSelectionEnd;
347 qint64 _bSelectionInit;
354 QColor _addressAreaColor;
357 qint64 _addressOffset;
360 QBrush _brushSelection;
362 QBrush _brushHighlighted;
363 QPen _penHighlighted;
372 qint64 _cursorPosition;
375 QByteArray _dataShown;
376 QByteArray _hexDataShown;
377 qint64 _lastEventSize;
378 QByteArray _markedShown;
381 UndoStack * _undoStack;
QColor selectionColor
Definition: qhexedit.h:114
QByteArray data
Definition: qhexedit.h:91
void currentAddressChanged(qint64 address)
bool overwriteMode
Definition: qhexedit.h:108
QString selectionToReadableString()
Definition: qhexedit.h:51
QColor highlightingColor
Definition: qhexedit.h:101
bool readOnly
Definition: qhexedit.h:121
bool highlighting
Definition: qhexedit.h:95
bool asciiArea
Definition: qhexedit.h:78
virtual void setFont(const QFont &font)
bool write(QIODevice &iODevice, qint64 pos=0, qint64 count=-1)
qint64 cursorPosition
Definition: qhexedit.h:84
void overwriteModeChanged(bool state)
void remove(qint64 pos, qint64 len=1)
void currentSizeChanged(qint64 size)
qint64 lastIndexOf(const QByteArray &ba, qint64 from)
void replace(qint64 pos, char ch)
bool setData(QIODevice &iODevice)
qint64 indexOf(const QByteArray &ba, qint64 from)
QByteArray dataAt(qint64 pos, qint64 count=-1)
qint64 addressOffset
Definition: qhexedit.h:70
bool addressArea
Definition: qhexedit.h:58
int addressWidth
Definition: qhexedit.h:74
QColor addressAreaColor
Definition: qhexedit.h:63
void insert(qint64 pos, char ch)
QString toReadableString()
QFont font
Definition: qhexedit.h:124