Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
QHexDocument Class Reference

#include <qhexdocument.h>

+ Inheritance diagram for QHexDocument:
+ Collaboration diagram for QHexDocument:

Public Slots

void undo ()
 
void redo ()
 
void cut (bool hex=false)
 
void copy (bool hex=false)
 
void paste (bool hex=false)
 
void insert (qint64 offset, uchar b)
 
void replace (qint64 offset, uchar b)
 
void insert (qint64 offset, const QByteArray &data)
 
void replace (qint64 offset, const QByteArray &data)
 
void remove (qint64 offset, int len)
 
QByteArray read (qint64 offset, int len) const
 
bool saveTo (QIODevice *device)
 
qint64 searchForward (const QByteArray &ba)
 
qint64 searchBackward (const QByteArray &ba)
 

Signals

void canUndoChanged (bool canUndo)
 
void canRedoChanged (bool canRedo)
 
void documentChanged ()
 
void lineChanged (quint64 line)
 

Public Member Functions

bool isEmpty () const
 
bool atEnd () const
 
bool canUndo () const
 
bool canRedo () const
 
qint64 length () const
 
quint64 baseAddress () const
 
QHexCursorcursor () const
 
QHexMetadatametadata () const
 
int areaIndent () const
 
void setAreaIndent (quint8 value)
 
int hexLineWidth () const
 
void setHexLineWidth (quint8 value)
 
void removeSelection ()
 
QByteArray read (qint64 offset, int len=0)
 
QByteArray selectedBytes () const
 
char at (int offset) const
 
void setBaseAddress (quint64 baseaddress)
 
void sync ()
 

Static Public Member Functions

template<typename T >
static QHexDocumentfromDevice (QIODevice *iodevice, QObject *parent=nullptr)
 
template<typename T >
static QHexDocumentfromFile (QString filename, QObject *parent=nullptr)
 
template<typename T >
static QHexDocumentfromMemory (char *data, int size, QObject *parent=nullptr)
 
template<typename T >
static QHexDocumentfromMemory (const QByteArray &ba, QObject *parent=nullptr)
 
static QHexDocumentfromLargeFile (QString filename, QObject *parent=nullptr)
 

Member Function Documentation

◆ areaIndent()

int QHexDocument::areaIndent ( ) const
+ Here is the caller graph for this function:

◆ at()

char QHexDocument::at ( int  offset) const
+ Here is the call graph for this function:

◆ atEnd()

bool QHexDocument::atEnd ( ) const
+ Here is the call graph for this function:

◆ baseAddress()

quint64 QHexDocument::baseAddress ( ) const

◆ canRedo()

bool QHexDocument::canRedo ( ) const

◆ canRedoChanged

void QHexDocument::canRedoChanged ( bool  canRedo)
signal

◆ canUndo()

bool QHexDocument::canUndo ( ) const

◆ canUndoChanged

void QHexDocument::canUndoChanged ( bool  canUndo)
signal

◆ copy

void QHexDocument::copy ( bool  hex = false)
slot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cursor()

QHexCursor * QHexDocument::cursor ( ) const
+ Here is the caller graph for this function:

◆ cut

void QHexDocument::cut ( bool  hex = false)
slot
+ Here is the call graph for this function:

◆ documentChanged

void QHexDocument::documentChanged ( )
signal
+ Here is the caller graph for this function:

◆ fromDevice()

template<typename T >
QHexDocument * QHexDocument::fromDevice ( QIODevice *  iodevice,
QObject *  parent = nullptr 
)
static
+ Here is the call graph for this function:

◆ fromFile()

template<typename T >
QHexDocument * QHexDocument::fromFile ( QString  filename,
QObject *  parent = nullptr 
)
static

◆ fromLargeFile()

QHexDocument * QHexDocument::fromLargeFile ( QString  filename,
QObject *  parent = nullptr 
)
static
+ Here is the call graph for this function:

◆ fromMemory() [1/2]

template<typename T >
QHexDocument * QHexDocument::fromMemory ( char *  data,
int  size,
QObject *  parent = nullptr 
)
static
+ Here is the call graph for this function:

◆ fromMemory() [2/2]

template<typename T >
QHexDocument * QHexDocument::fromMemory ( const QByteArray &  ba,
QObject *  parent = nullptr 
)
static
+ Here is the call graph for this function:

◆ hexLineWidth()

int QHexDocument::hexLineWidth ( ) const
+ Here is the caller graph for this function:

◆ insert [1/2]

void QHexDocument::insert ( qint64  offset,
const QByteArray &  data 
)
slot

◆ insert [2/2]

void QHexDocument::insert ( qint64  offset,
uchar  b 
)
slot
+ Here is the caller graph for this function:

◆ isEmpty()

bool QHexDocument::isEmpty ( ) const
+ Here is the call graph for this function:

◆ length()

qint64 QHexDocument::length ( ) const
+ Here is the call graph for this function:

◆ lineChanged

void QHexDocument::lineChanged ( quint64  line)
signal

◆ metadata()

QHexMetadata * QHexDocument::metadata ( ) const
+ Here is the caller graph for this function:

◆ paste

void QHexDocument::paste ( bool  hex = false)
slot
+ Here is the call graph for this function:

◆ read [1/2]

QByteArray QHexDocument::read ( qint64  offset,
int  len 
) const
slot
+ Here is the call graph for this function:

◆ read() [2/2]

QByteArray QHexDocument::read ( qint64  offset,
int  len = 0 
)
+ Here is the call graph for this function:

◆ redo

void QHexDocument::redo ( )
slot

◆ remove

void QHexDocument::remove ( qint64  offset,
int  len 
)
slot
+ Here is the caller graph for this function:

◆ removeSelection()

void QHexDocument::removeSelection ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ replace [1/2]

void QHexDocument::replace ( qint64  offset,
const QByteArray &  data 
)
slot

◆ replace [2/2]

void QHexDocument::replace ( qint64  offset,
uchar  b 
)
slot
+ Here is the caller graph for this function:

◆ saveTo

bool QHexDocument::saveTo ( QIODevice *  device)
slot
+ Here is the call graph for this function:

◆ searchBackward

qint64 QHexDocument::searchBackward ( const QByteArray &  ba)
slot
+ Here is the call graph for this function:

◆ searchForward

qint64 QHexDocument::searchForward ( const QByteArray &  ba)
slot
+ Here is the call graph for this function:

◆ selectedBytes()

QByteArray QHexDocument::selectedBytes ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAreaIndent()

void QHexDocument::setAreaIndent ( quint8  value)

◆ setBaseAddress()

void QHexDocument::setBaseAddress ( quint64  baseaddress)

◆ setHexLineWidth()

void QHexDocument::setHexLineWidth ( quint8  value)
+ Here is the call graph for this function:

◆ sync()

void QHexDocument::sync ( )

◆ undo

void QHexDocument::undo ( )
slot

The documentation for this class was generated from the following files: