You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
778 B
C++

#include "StdAfx.h"
#include "CommandCopy.h"
#include "Layer.h"
#include "GlobalFunction.h"
CCommandCopy::CCommandCopy(void)
{
}
CCommandCopy::~CCommandCopy(void)
{
}
void CCommandCopy::ExcuteExt()
{
CLayer &layer = gLayer;
layer.AddObject(m_ObjContainer);
}
void CCommandCopy::UndoExt()
{
CLayer &layer = gLayer;
layer.DelObj(m_ObjContainer);
}
CString CCommandCopy::GetStr()
{
CString str = "_copy ¸´ÖÆ-----";
vector<Sptr<CObjBase>> &vec = m_ObjContainer.GetObjVec();
vector<Sptr<CObjBase>>::iterator iter = vec.begin();
vector<Sptr<CObjBase>>::iterator iter_end = vec.end();
if(vec.size()>1)
{
CString str1;
str1.Format("%ld",vec.size());
str +="[ÊýÁ¿] : <"+str1+">";
}
return str;
};