aseprite/src/app/cmd/remove_cel.cpp

43 lines
595 B
C++

// Aseprite
// Copyright (C) 2001-2015 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "app/cmd/remove_cel.h"
#include "doc/cel.h"
#include "doc/layer.h"
namespace app {
namespace cmd {
using namespace doc;
RemoveCel::RemoveCel(Cel* cel)
: AddCel(cel->layer(), cel)
{
}
void RemoveCel::onExecute()
{
AddCel::onUndo();
}
void RemoveCel::onUndo()
{
AddCel::onRedo();
}
void RemoveCel::onRedo()
{
AddCel::onUndo();
}
} // namespace cmd
} // namespace app