Class TUndoTimes

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoTimes = class(TCustomUndo)

Description

TUndoTimes is used to set or undo the setting of frmGoPhast.Model.Times.

Hierarchy

Overview

Fields

Protected FOldTimes: TTimeCollection;
Public FNewTimes: TTimeCollection;

Methods

Protected function Description: string; override;
Public constructor Create;
Public destructor Destroy; override;
Public procedure DoCommand; override;
Public procedure Undo; override;

Description

Fields

Protected FOldTimes: TTimeCollection;

FOldTimes: TTimeCollection; FOldTimes is a copy of frmGoPhast.Model.Times as it existed when this instance of TUndoTimes was created.

Public FNewTimes: TTimeCollection;

FNewTimes: TTimeCollection; FNewTimes is a new version of frmGoPhast.Model.Times.

Methods

Protected function Description: string; override;

Description describes what TUndoTimes does.

Public constructor Create;

Create creates an instance of TUndoTimes. Create creates FOldTimes and FNewTimes and assigns frmGoPhast.Model.Times to FOldTimes.

Public destructor Destroy; override;

Destroy destroys the current instance of TUndoTimes. Do not call Destroy directly. Call Free instead.

Public procedure DoCommand; override;

DoCommand assigns FNewTimes to frmGoPhast.Model.Times.

Public procedure Undo; override;

Undo assigns FOldTimes to frmGoPhast.Model.Times.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:41