1// Aseprite
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2015 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_CMD_SET_TAG_ANIDIR_H_INCLUDED
9#define APP_CMD_SET_TAG_ANIDIR_H_INCLUDED
10#pragma once
11
12#include "app/cmd.h"
13#include "app/cmd/with_tag.h"
14#include "doc/anidir.h"
15
16namespace app {
17namespace cmd {
18 using namespace doc;
19
20 class SetTagAniDir : public Cmd
21 , public WithTag {
22 public:
23 SetTagAniDir(Tag* tag, doc::AniDir anidir);
24
25 protected:
26 void onExecute() override;
27 void onUndo() override;
28 size_t onMemSize() const override {
29 return sizeof(*this);
30 }
31
32 private:
33 doc::AniDir m_oldAniDir;
34 doc::AniDir m_newAniDir;
35 };
36
37} // namespace cmd
38} // namespace app
39
40#endif
41