Class TWindowRecentFiles
Unit
Declaration
type TWindowRecentFiles = class(TRecentFiles)
Description
Manage a list of recently opened files, and show a menu in TCastleWindow.
Source: window/castlewindowrecentfiles.pas (line 28).
Hierarchy
- TObject
- TPersistent
- TComponent
- TRecentFiles
- TWindowRecentFiles
Overview
Constants
| Public | DefaultMaxCount = 5; |
Methods
| Protected | procedure MenuCreate; virtual; |
| Protected | procedure MenuDestroy; virtual; |
| Public | constructor Create(AOwner: TComponent); override; |
| Public | destructor Destroy; override; |
| Public | procedure Add(const Url: String); overload; virtual; |
| Public | procedure Add(const Url: String; const Ignored: Boolean); overload; deprecated 'use Add(Url)'; |
| Public | procedure Remove(const Url: String); |
| Public | procedure LoadFromConfig(const Config: TCastleConfig); |
| Public | procedure SaveToConfig(const Config: TCastleConfig); |
| Protected | procedure MenuCreate; override; |
| Protected | procedure MenuDestroy; override; |
Properties
| Public | property Urls: TStringList read FUrls; |
| Published | property OnOpenRecent: TOnOpenRecent read FOnOpenRecent write FOnOpenRecent; |
| Published | property MaxCount: Cardinal read FMaxCount write FMaxCount
default DefaultMaxCount; |
| Public | property NextMenuItem: TMenuEntry read FNextMenuItem write SetNextMenuItem; |
Description
Constants
| Public | DefaultMaxCount = 5; |
|
This item has no description. | |
Methods
| Protected | procedure MenuCreate; virtual; |
|
Create and destroy menu (or anything else that mirrors Urls contents). | |
| Protected | procedure MenuDestroy; virtual; |
|
This item has no description. | |
| Public | constructor Create(AOwner: TComponent); override; |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | procedure Add(const Url: String); overload; virtual; |
|
Adds as the most recent file Url. Note that we want to store only absolute URLs. So this method will always call AbsoluteURI (which will eventually call ExpandFileName on filename inside, and make sure it has appropriate protocol) on the given URL. | |
| Public | procedure Add(const Url: String; const Ignored: Boolean); overload; deprecated 'use Add(Url)'; |
|
Warning: this symbol is deprecated: use Add(Url) This item has no description. | |
| Public | procedure Remove(const Url: String); |
|
Remove URL. | |
| Public | procedure LoadFromConfig(const Config: TCastleConfig); |
|
Load and save recently opened files list to/from the Config file. | |
| Public | procedure SaveToConfig(const Config: TCastleConfig); |
|
This item has no description. | |
| 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). | |
| 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. | |
Properties
| Public | property Urls: TStringList read FUrls; |
|
List of currently stored URLs. This is readonly. | |
| Published | property OnOpenRecent: TOnOpenRecent read FOnOpenRecent write FOnOpenRecent; |
|
This item has no description. | |
| Published | property MaxCount: Cardinal read FMaxCount write FMaxCount
default DefaultMaxCount; |
|
This item has no description. | |
| Public | property NextMenuItem: TMenuEntry read FNextMenuItem write SetNextMenuItem; |
|
This determines the placement of "recent files" list inside your menu. If this is not Also changing the value of this property will result in one-time update of the menu. Menu at the place of old Usually | |
Generated by PasDoc 0.17.0.snapshot.