Class TWindowRecentFiles

Unit

Declaration

type TWindowRecentFiles = class(TRecentFiles)

Description

Manage a list of recently opened files, and show a menu in TCastleWindow.

Source: src/window/castlewindowrecentfiles.pas (line 28).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TRecentFiles
  • TWindowRecentFiles

Overview

Methods

Protected procedure MenuCreate; override;
Protected procedure MenuDestroy; override;

Properties

Public property NextMenuItem: TMenuEntry read FNextMenuItem write SetNextMenuItem;

Description

Methods

Protected procedure MenuCreate; override;

This item has no description. Showing description inherited from TRecentFiles.MenuCreate.

Create and destroy menu (or anything else that mirrors Urls contents).

Source: src/window/castlewindowrecentfiles.pas (line 34).

Protected procedure MenuDestroy; override;

Destroy the menu. Internal (do not call this directly, it's only called by parent class). Note that it doesn't read Urls list at all, it only depends on FirstSeparator value.

Source: src/window/castlewindowrecentfiles.pas (line 40).

Properties

Public property NextMenuItem: TMenuEntry read FNextMenuItem write SetNextMenuItem;

This determines the placement of "recent files" list inside your menu.

If this is not Nil then each update to the recent files list (for example by Add method) will result in the menu items right before NextMenuItem to be updated.

Also changing the value of this property will result in one-time update of the menu. Menu at the place of old NextMenuItem will be removed and menu at the place of new NextMenuItem will get created.

Usually NextMenuItem should be the separator that divides the print and properties menu sections and the close menu sections. That's consistent with other GNOME programs, and this is what we usually try to follow.

Source: src/window/castlewindowrecentfiles.pas (line 57).


Generated by PasDoc 0.17.0.snapshot.