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.

39 lines
685 B
C++

#include "StdAfx.h"
#include "CommandDelete.h"
#include "Layer.h"
#include "GlobalFunction.h"
CCommandDelete::CCommandDelete(void)
{
}
CCommandDelete::~CCommandDelete(void)
{
}
void CCommandDelete::ExcuteExt()
{
CLayer &layer = gLayer;
layer.DelObj(m_ObjContainer);
}
void CCommandDelete::UndoExt()
{
CLayer &layer = gLayer;
layer.AddObject(m_ObjContainer);
}
CString CCommandDelete::GetStr()
{
CString str = "_erase ɾ³ý-----";
vector<Sptr<CObjBase>> &vec = m_ObjContainer.GetObjVec();
if(vec.empty()==false)
{
CString str1;
str1.Format("%ld",vec.size());
str +="[ÊýÁ¿] : <"+str1+">";
}
return str;
}