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.
removecommand.h
Go to the documentation of this file.
1 #ifndef REMOVECOMMAND_H
2 #define REMOVECOMMAND_H
3 
4 #include "hexcommand.h"
5 
6 class RemoveCommand: public HexCommand
7 {
8  public:
9  RemoveCommand(QHexBuffer* buffer, qint64 offset, int length, QUndoCommand* parent = nullptr);
10  void undo() override;
11  void redo() override;
12 };
13 
14 #endif // REMOVECOMMAND_H
HexCommand
Definition: hexcommand.h:7
QHexBuffer
Definition: qhexbuffer.h:7
HexCommand::m_offset
qint64 m_offset
Definition: hexcommand.h:14
hexcommand.h
RemoveCommand::RemoveCommand
RemoveCommand(QHexBuffer *buffer, qint64 offset, int length, QUndoCommand *parent=nullptr)
Definition: removecommand.cpp:3
HexCommand::m_buffer
QHexBuffer * m_buffer
Definition: hexcommand.h:13
QHexBuffer::read
virtual void read(char *data, int size)
Definition: qhexbuffer.cpp:15
RemoveCommand::undo
void undo() override
Definition: removecommand.cpp:9
RemoveCommand::redo
void redo() override
Definition: removecommand.cpp:11
QHexBuffer::remove
virtual void remove(qint64 offset, int length)=0
RemoveCommand
Definition: removecommand.h:6
HexCommand::m_data
QByteArray m_data
Definition: hexcommand.h:16
QHexBuffer::insert
virtual void insert(qint64 offset, const QByteArray &data)=0
removecommand.h
HexCommand::m_length
int m_length
Definition: hexcommand.h:15