Class TRecentFiles
Unit
Declaration
type TRecentFiles = class(TComponent)
Description
Manage a list of recently open files.
This is designed as a base class, usable on it's own, but also as a parent for classes that show this list inside a menu. For Lazarus menu version, see TLazRecentFiles. For TCastleWindow menu version, see TCastleRecentFiles.
Hierarchy
- TObject
- TPersistent
- TComponent
- TRecentFiles
Overview
Fields
nested const DefaultMaxCount = 5; |
Methods
procedure MenuCreate; virtual; |
|
procedure MenuDestroy; virtual; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Add(const Url: String); overload; virtual; |
|
procedure Add(const Url: String; const Ignored: Boolean); overload; deprecated 'use Add(Url)'; |
|
procedure Remove(const Url: String); |
|
procedure LoadFromConfig(const Config: TCastleConfig); |
|
procedure SaveToConfig(const Config: TCastleConfig); |
Properties
property Urls: TStringList read FUrls; |
|
property OnOpenRecent: TOnOpenRecent read FOnOpenRecent write FOnOpenRecent; |
|
property MaxCount: Cardinal read FMaxCount write FMaxCount
default DefaultMaxCount; |
Description
Fields
nested const DefaultMaxCount = 5; |
|
This item has no description. |
Methods
procedure MenuCreate; virtual; |
|
Create and destroy menu (or anything else that mirrors Urls contents). |
procedure MenuDestroy; virtual; |
|
This item has no description. |
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
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. |
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. |
procedure Remove(const Url: String); |
|
Remove URL. |
procedure LoadFromConfig(const Config: TCastleConfig); |
|
Load and save recently opened files list to/from the Config file. |
procedure SaveToConfig(const Config: TCastleConfig); |
|
This item has no description. |
Properties
property Urls: TStringList read FUrls; |
|
List of currently stored URLs. This is readonly. |
property OnOpenRecent: TOnOpenRecent read FOnOpenRecent write FOnOpenRecent; |
|
This item has no description. |
property MaxCount: Cardinal read FMaxCount write FMaxCount
default DefaultMaxCount; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.