summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/undocommands.h
blob: bbdf6c37c8d94d8500d1b62dd63107731a804b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
  * These classes store the data required to undo/redo a single UI action.
  */

#ifndef UNDOCOMMANDS_H
#define UNDOCOMMANDS_H

#include "tikzscene.h"

#include <QUndoCommand>

class MoveCommand : public QUndoCommand
{
public:
    explicit MoveCommand(TikzScene *scene, QUndoCommand *parent = 0);
    void undo() override;
    void redo() override;
private:
    TikzScene *_scene;
};

#endif // UNDOCOMMANDS_H