📄 undoitem.cpp
字号:
/* ==========================================================================
Class : CUndoItem
Date : 06/04/04
Purpose : The "CUndoItem" class represents a single state of the
application data, and is used for the undo-handling.
Description : The class is a simple data-holder with members for the
screen size and an array with copies of all the objects
in the container at the time the instance of this class
was created. Instantiation is made in
"CDiagramEntityContainer::Snapshot".
Usage : See "CDiagramEntityContainer" on how to use the class.
========================================================================*/
#include "stdafx.h"
#include "UndoItem.h"
// Construction/destruction
CUndoItem::CUndoItem()
/* ============================================================
Function : CUndoItem::CUndoItem
Description : constructor
Access : Public
Return : void
Parameters : none
Usage :
============================================================*/
{
}
CUndoItem::~CUndoItem()
/* ============================================================
Function : CUndoItem::~CUndoItem
Description : Destructor
Access : Public
Return : void
Parameters : none
Usage : Deletes all associated memory.
============================================================*/
{
int max = arr.GetSize();
for (int t = 0 ; t < max ; t++ )
delete arr.GetAt( t );
arr.RemoveAll();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -