-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFormUndoStack.h
42 lines (33 loc) · 969 Bytes
/
FormUndoStack.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
36
37
38
39
40
41
42
#pragma once
#include "[BGSEEBase]\FormUndoStack.h"
namespace cse
{
namespace formUndoStack
{
class FormUndoStackOperator;
class FormUndoProxy : public bgsee::FormUndoProxy
{
protected:
TESForm* Parent;
TESForm* Buffer;
friend class FormUndoStackOperator;
public:
FormUndoProxy(TESForm* ParentForm, TESForm* CopySource = nullptr);
virtual ~FormUndoProxy();
virtual UInt32 GetFormID(void) const;
virtual UInt8 GetType(void) const;
virtual const char* GetTypeString(void) const;
virtual void Undo(void);
};
class FormUndoStackOperator : public bgsee::FormUndoStackOperator
{
public:
virtual ~FormUndoStackOperator();
virtual bool GetIsFormTypeUndoable(UInt8 Type);
virtual bool PreUndoRedoCallback(bgsee::FormUndoProxy* Proxy, bgsee::FormUndoProxy** OutAltProxy);
virtual void PostUndoRedoCallback(void);
};
void Initialize();
void Deinitialize();
}
}