1 | // Aseprite |
---|---|
2 | // Copyright (C) 2017 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifdef HAVE_CONFIG_H |
8 | #include "config.h" |
9 | #endif |
10 | |
11 | #include "app/cmd/remove_slice.h" |
12 | |
13 | namespace app { |
14 | namespace cmd { |
15 | |
16 | using namespace doc; |
17 | |
18 | RemoveSlice::RemoveSlice(Sprite* sprite, Slice* slice) |
19 | : AddSlice(sprite, slice) |
20 | { |
21 | } |
22 | |
23 | void RemoveSlice::onExecute() |
24 | { |
25 | AddSlice::onUndo(); |
26 | } |
27 | |
28 | void RemoveSlice::onUndo() |
29 | { |
30 | AddSlice::onRedo(); |
31 | } |
32 | |
33 | void RemoveSlice::onRedo() |
34 | { |
35 | AddSlice::onUndo(); |
36 | } |
37 | |
38 | } // namespace cmd |
39 | } // namespace app |
40 |