| 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 | #ifndef APP_CMD_UNLINK_CEL_H_INCLUDED |
| 8 | #define APP_CMD_UNLINK_CEL_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "app/cmd.h" |
| 12 | #include "app/cmd/with_cel.h" |
| 13 | |
| 14 | namespace app { |
| 15 | namespace cmd { |
| 16 | using namespace doc; |
| 17 | |
| 18 | class UnlinkCel : public Cmd |
| 19 | , public WithCel { |
| 20 | public: |
| 21 | UnlinkCel(Cel* cel); |
| 22 | |
| 23 | protected: |
| 24 | void onExecute() override; |
| 25 | void onUndo() override; |
| 26 | |
| 27 | private: |
| 28 | ObjectId m_newImageId; |
| 29 | ObjectId m_oldCelDataId; |
| 30 | ObjectId m_newCelDataId; |
| 31 | }; |
| 32 | |
| 33 | } // namespace cmd |
| 34 | } // namespace app |
| 35 | |
| 36 | #endif |
| 37 | |