1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
%Module(name=qhexedit)
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%If (Qt_5_0_0 -)
%Import QtWidgets/QtWidgetsmod.sip
%End
class QHexEdit : QAbstractScrollArea
{
%TypeHeaderCode
#include "../src/qhexedit.h"
%End
public:
explicit QHexEdit(QWidget *parent /TransferThis/ = 0);
virtual ~QHexEdit();
bool setData(QIODevice &);
QByteArray dataAt(qint64, qint64=-1);
bool write(QIODevice &iODevice, qint64=0, qint64=-1);
void insert(qint64, char);
void remove(qint64, qint64);
void replace(qint64, char);
void insert(qint64, QByteArray &);
void replace(qint64, qint64, QByteArray &);
bool addressArea();
bool addressWidth();
bool asciiArea();
qint64 cursorPosition(QPoint);
void ensureVisible();
qint64 indexOf(QByteArray &, qint64);
bool isModified();
bool highlighting();
qint64 lastIndexOf(QByteArray &, qint64);
QString selectionToReadableString();
QString selectedData();
void setFont(const QFont &);
QString toReadableString();
QColor addressAreaColor();
void setAddressAreaColor(const QColor &);
QColor addressFontColor();
void setAddressFontColor(const QColor &);
QColor asciiAreaColor();
void setAsciiAreaColor(const QColor &);
QColor asciiFontColor();
void setAsciiFontColor(const QColor &);
QColor hexFontColor();
void setHexFontColor(const QColor &);
qint64 addressOffset();
void setAddressOffset(qint64);
qint64 cursorPosition();
void setCursorPosition(qint64);
QByteArray data();
void setData(const QByteArray &);
QColor highlightingColor();
void setHighlightingColor(const QColor &);
bool overwriteMode();
void setOverwriteMode(bool);
bool isReadOnly();
void setReadOnly(bool);
QColor selectionColor();
void setSelectionColor(const QColor &);
public slots:
void redo();
void setAddressArea(bool);
void setAddressWidth(int);
void setAsciiArea(bool);
void setHighlighting(bool);
void undo();
signals:
void currentAddressChanged(qint64);
void currentSizeChanged(qint64);
void dataChanged();
void overwriteModeChanged(bool);
};
|