| 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_WITH_TAG_H_INCLUDED |
| 9 | #define APP_CMD_WITH_TAG_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | #include "doc/object_id.h" |
| 13 | |
| 14 | namespace doc { |
| 15 | class Tag; |
| 16 | } |
| 17 | |
| 18 | namespace app { |
| 19 | namespace cmd { |
| 20 | using namespace doc; |
| 21 | |
| 22 | class WithTag { |
| 23 | public: |
| 24 | WithTag(Tag* tag); |
| 25 | Tag* tag(); |
| 26 | |
| 27 | private: |
| 28 | ObjectId m_tagId; |
| 29 | }; |
| 30 | |
| 31 | } // namespace cmd |
| 32 | } // namespace app |
| 33 | |
| 34 | #endif |
| 35 | |