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