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.
|
|
|
|
#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 ɾ<><C9BE>-----";
|
|
|
|
|
vector<Sptr<CObjBase>> &vec = m_ObjContainer.GetObjVec();
|
|
|
|
|
if(vec.empty()==false)
|
|
|
|
|
{
|
|
|
|
|
CString str1;
|
|
|
|
|
str1.Format("%ld",vec.size());
|
|
|
|
|
str +="[<5B><><EFBFBD><EFBFBD>] : <"+str1+">";
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
|