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.
36 lines
753 B
C++
36 lines
753 B
C++
#include "stdafx.h"
|
|
#include "ActionMoveItemSelected.h"
|
|
#include "SigmaDoc.h"
|
|
#include "ItemSelect.h"
|
|
|
|
namespace NAction
|
|
{
|
|
CActionMoveItemSelected::CActionMoveItemSelected()
|
|
{
|
|
}
|
|
|
|
CActionMoveItemSelected::CActionMoveItemSelected(CSigmaDoc * ppDoc, UINT actionType, const CPositionList& list, REAL* pmatrix)
|
|
:CActionMoveItem(ppDoc, actionType, list, pmatrix)
|
|
{
|
|
}
|
|
|
|
void CActionMoveItemSelected::Undo()
|
|
{
|
|
CActionMoveItem::Undo();
|
|
CItemSelect * pItemSelect = GetDoc()->GetSelectItem();
|
|
if (pItemSelect == 0)
|
|
return;
|
|
|
|
pItemSelect->ReloadTrackerPath();
|
|
}
|
|
|
|
void CActionMoveItemSelected::Redo()
|
|
{
|
|
CActionMoveItem::Redo();
|
|
CItemSelect * pItemSelect = GetDoc()->GetSelectItem();
|
|
if (pItemSelect == 0)
|
|
return;
|
|
|
|
pItemSelect->ReloadTrackerPath();
|
|
}
|
|
} |