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