QHexEdit: /media/winni/1p4/Werkstatt/qt/qhexedit2/src/commands.h Source File

QHexEdit

Loading...
Searching...
No Matches
commands.h
1#ifndef COMMANDS_H
2#define COMMANDS_H
3
6#include <QUndoStack>
7
8#include "chunks.h"
9
28class UndoStack : public QUndoStack
29{
30 Q_OBJECT
31
32public:
33 UndoStack(Chunks *chunks, QObject * parent=0);
34 void insert(qint64 pos, char c);
35 void insert(qint64 pos, const QByteArray &ba);
36 void removeAt(qint64 pos, qint64 len=1);
37 void overwrite(qint64 pos, char c);
38 void overwrite(qint64 pos, int len, const QByteArray &ba);
39
40private:
41 Chunks * _chunks;
42 QObject * _parent;
43};
44
47#endif // COMMANDS_H