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_COPY_CEL_H_INCLUDED 8 #define APP_CMD_COPY_CEL_H_INCLUDED 9 #pragma once 10 11 #include "app/cmd/with_layer.h" 12 #include "app/cmd_sequence.h" 13 #include "doc/color.h" 14 #include "doc/frame.h" 15 16 namespace doc { 17 class LayerImage; 18 } 19 20 namespace app { 21 namespace cmd { 22 using namespace doc; 23 24 class CopyCel : public CmdSequence { 25 public: 26 CopyCel( 27 LayerImage* srcLayer, frame_t srcFrame, 28 LayerImage* dstLayer, frame_t dstFrame, bool continuous); 29 30 protected: 31 void onExecute() override; 32 void onFireNotifications() override; 33 34 private: 35 WithLayer m_srcLayer, m_dstLayer; 36 frame_t m_srcFrame, m_dstFrame; 37 bool m_continuous; 38 }; 39 40 } // namespace cmd 41 } // namespace app 42 43 #endif 44