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_layer.h"
12
13#include "doc/layer.h"
14#include "doc/layer.h"
15
16namespace app {
17namespace cmd {
18
19using namespace doc;
20
21RemoveLayer::RemoveLayer(Layer* layer)
22 : AddLayer(layer->parent(), layer, layer->getPrevious())
23{
24}
25
26void RemoveLayer::onExecute()
27{
28 AddLayer::onUndo();
29}
30
31void RemoveLayer::onUndo()
32{
33 AddLayer::onRedo();
34}
35
36void RemoveLayer::onRedo()
37{
38 AddLayer::onUndo();
39}
40
41} // namespace cmd
42} // namespace app
43