Class TUndoShowHideScreenObject

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoShowHideScreenObject = class(TUndoChangeSelection)

Description

TUndoShowHideScreenObject is used to show or hide TScreenObjects.

Hierarchy

Overview

Fields

Protected FScreenObjectsToChange: TList;

Methods

Protected function Description: string; override;
Protected procedure ToggleVisibility;
Public function AddScreenObjectToChange(const ScreenObject: TScreenObject): integer;
Public constructor Create;
Public destructor Destroy; override;
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;

Description

Fields

Protected FScreenObjectsToChange: TList;

FScreenObjectsToChange is a list of the TScreenObjects whose Visible property will be changed.

Methods

Protected function Description: string; override;

Description tells what TUndoShowHideScreenObject does.

Protected procedure ToggleVisibility;

ToggleVisibility changes the Visible property of each TScreenObject in FScreenObjectsToChange.

Public function AddScreenObjectToChange(const ScreenObject: TScreenObject): integer;

AddScreenObjectToChange stores ScreenObject and will toggle its Visible property when required.

Public constructor Create;

Create creates and instance of TUndoShowHideScreenObject.

Public destructor Destroy; override;

Destroy destroys the current TUndoShowHideScreenObject. Do not call Destroy directly. Call Free instead.

Public procedure DoCommand; override;

DoCommand changes the visibility of all the TScreenObjects in FScreenObjectsToChange.

Public procedure Redo; override;

Redo redoes the changes in visibility of all the TScreenObjects in FScreenObjectsToChange.

Public procedure Undo; override;

Undo undoes the changes in visibility of all the TScreenObjects in FScreenObjectsToChange.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:06