Class TCastleComponentEditorDesigner

Unit

Declaration

type TCastleComponentEditorDesigner = class(TComponentEditorDesigner)

Description

Access instance of this from TComponentEditor descendants, using GetDesigner. This class allows to act on CGE editor from within a specific component editor.

Hierarchy

  • TObject
  • TComponentEditorDesigner
  • TCastleComponentEditorDesigner

Overview

Methods

Public procedure ProposeOpenDesign(const DesignUrl: String); virtual; abstract;
Public procedure FreeComponentRecursively(const C: TComponent); virtual; abstract;

Description

Methods

Public procedure ProposeOpenDesign(const DesignUrl: String); virtual; abstract;

Component editor can use this to propose opening a new design. For example TCastleTransformDesign can propose to open design in TCastleTransformDesign.URL.

Public procedure FreeComponentRecursively(const C: TComponent); virtual; abstract;

Free component C (which should be part of this designed, owned by DesignOwner) and all children.

We have to delete things recursively, otherwise they would keep existing, taking resources and reserving names in DesignOwner, even though they would not be visible when disconnected from parent hierarchy.

This does nothing if you try to free some internal component (like csTransient) or the design root (which can never be freed).


Generated by PasDoc 0.16.0-snapshot.