2015-02-12 23:16:25 +08:00
|
|
|
// Aseprite
|
|
|
|
// Copyright (C) 2001-2015 David Capello
|
|
|
|
//
|
2016-08-27 04:02:58 +08:00
|
|
|
// This program is distributed under the terms of
|
|
|
|
// the End-User License Agreement for Aseprite.
|
2011-03-25 05:03:38 +08:00
|
|
|
|
2015-01-19 09:05:33 +08:00
|
|
|
#ifndef APP_CMD_CLEAR_CEL_H_INCLUDED
|
|
|
|
#define APP_CMD_CLEAR_CEL_H_INCLUDED
|
2014-03-30 06:40:17 +08:00
|
|
|
#pragma once
|
2011-03-25 05:03:38 +08:00
|
|
|
|
2015-01-19 09:05:33 +08:00
|
|
|
#include "app/cmd.h"
|
|
|
|
#include "app/cmd/with_cel.h"
|
|
|
|
#include "app/cmd_sequence.h"
|
2011-03-25 05:03:38 +08:00
|
|
|
|
2024-12-16 21:10:34 +08:00
|
|
|
namespace app { namespace cmd {
|
|
|
|
using namespace doc;
|
|
|
|
|
|
|
|
class ClearCel : public Cmd,
|
|
|
|
public WithCel {
|
|
|
|
public:
|
|
|
|
ClearCel(Cel* cel);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void onExecute() override;
|
|
|
|
void onUndo() override;
|
|
|
|
void onRedo() override;
|
|
|
|
size_t onMemSize() const override { return sizeof(*this) + m_seq.memSize(); }
|
|
|
|
|
|
|
|
private:
|
|
|
|
CmdSequence m_seq;
|
|
|
|
};
|
|
|
|
|
|
|
|
}} // namespace app::cmd
|
2011-03-25 05:03:38 +08:00
|
|
|
|
|
|
|
#endif
|