Class TUndoSolutionOptions

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoSolutionOptions = class(TCustomUndo)

Description

TUndoSolutionOptions is used to change or reverse the change to frmGoPhast.Model.SolutionOptions.

Hierarchy

Overview

Fields

Protected FOldSolutionOptions: TSolutionOptions;
Public FNewSolutionOptions: TSolutionOptions;

Methods

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

Description

Fields

Protected FOldSolutionOptions: TSolutionOptions;

FOldSolutionOptions: TSolutionOptions; FOldSolutionOptions is a copy of frmGoPhast.Model.SolutionOptions as it was when this instance of TUndoSolutionOptions was created.

Public FNewSolutionOptions: TSolutionOptions;

FNewSolutionOptions: TSolutionOptions; FNewSolutionOptions is the new value to be assigned to frmGoPhast.Model.SolutionOptions.

Methods

Protected function Description: string; override;

Description describes what TUndoSolutionOptions does.

Public constructor Create;

Create creates an instance of TUndoSolutionOptions, creates FOldSolutionOptions and FNewSolutionOptions and assigns frmGoPhast.Model.SolutionOptions to FOldSolutionOptions.

Public destructor Destroy; override;

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

Public procedure DoCommand; override;

DoCommand assigns FNewSolutionOptions to frmGoPhast.Model.SolutionOptions.

Public procedure Undo; override;

Undo assigns FOldSolutionOptions to frmGoPhast.Model.SolutionOptions.


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