-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
globalundoredo.h
36 lines (28 loc) · 858 Bytes
/
globalundoredo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef GLOBALUNDOREDO_H
#define GLOBALUNDOREDO_H
class UndoRedo;
class MainWindow;
class GlassColor;
class Cane;
class Piece;
namespace GlobalUndoRedo
{
void setMainWindow(MainWindow* mw);
void undo();
void redo();
void addedGlassColor(GlassColor* gc, unsigned int index);
void deletedGlassColor(GlassColor* gc, unsigned int index);
void modifiedGlassColor(GlassColor* gc);
void movedGlassColor(unsigned int index, int direction);
void addedCane(Cane* c, unsigned int index);
void deletedCane(Cane* c, unsigned int index);
void modifiedCane(Cane* c);
void movedCane(unsigned int index, int direction);
void addedPiece(Piece* p, unsigned int index);
void deletedPiece(Piece* p, unsigned int index);
void modifiedPiece(Piece* p);
void movedPiece(unsigned int index, int direction);
void noPriorUndo();
void clearHistory();
}
#endif