1 | // Aseprite |
---|---|
2 | // Copyright (C) 2001-2015 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_palette.h" |
12 | |
13 | namespace app { |
14 | namespace cmd { |
15 | |
16 | using namespace doc; |
17 | |
18 | RemovePalette::RemovePalette(Sprite* sprite, Palette* pal) |
19 | : AddPalette(sprite, pal) |
20 | { |
21 | } |
22 | |
23 | void RemovePalette::onExecute() |
24 | { |
25 | AddPalette::onUndo(); |
26 | } |
27 | |
28 | void RemovePalette::onUndo() |
29 | { |
30 | AddPalette::onRedo(); |
31 | } |
32 | |
33 | } // namespace cmd |
34 | } // namespace app |
35 |