1 | // Aseprite |
2 | // Copyright (C) 2021 Igara Studio S.A. |
3 | // Copyright (C) 2015-2018 David Capello |
4 | // |
5 | // This program is distributed under the terms of |
6 | // the End-User License Agreement for Aseprite. |
7 | |
8 | #ifndef APP_DOCUMENT_UNDO_OBSERVER_H_INCLUDED |
9 | #define APP_DOCUMENT_UNDO_OBSERVER_H_INCLUDED |
10 | #pragma once |
11 | |
12 | namespace undo { |
13 | class UndoState; |
14 | } |
15 | |
16 | namespace app { |
17 | |
18 | class DocUndo; |
19 | |
20 | class DocUndoObserver { |
21 | public: |
22 | virtual ~DocUndoObserver() { } |
23 | virtual void onAddUndoState(DocUndo* history) { } |
24 | virtual void onDeleteUndoState(DocUndo* history, |
25 | undo::UndoState* state) { } |
26 | virtual void onCurrentUndoStateChange(DocUndo* history) { } |
27 | virtual void onClearRedo(DocUndo* history) { } |
28 | virtual void onTotalUndoSizeChange(DocUndo* history) { } |
29 | }; |
30 | |
31 | } // namespace app |
32 | |
33 | #endif |
34 | |