Class TRecentFiles
Unit
CastleRecentFiles
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 TCastleWindowBase menu version, see TCastleRecentFiles.
Hierarchy
Overview
Fields
Methods
 |
constructor Create(AOwner: TComponent); override; |
 |
destructor Destroy; override; |
 |
procedure Add(const FileName: string; const MaybeStdIn: boolean = true); virtual; |
Properties
Description
Fields
 |
internal const DefaultMaxCount = 5; |
|
Methods
 |
constructor Create(AOwner: TComponent); override; |
|
 |
destructor Destroy; override; |
|
 |
procedure Add(const FileName: string; const MaybeStdIn: boolean = true); virtual; |
Adds as the most recent file FileName.
If MaybeStdIn, then we treat FileName = '-' specially: it's ignored. Use this if your program interprets '-' as "load file from standard input", such files should not be added to recent files menu.
Note that we want to store only absolute filenames, so this method will always call ExpandFileName to make sure stored filename is absolute.
|
Properties
 |
property FileNames: TStringList read FFileNames; |
List of currently stored filenames. This is readonly.
|
 |
property OnOpenRecent: TOnOpenRecent read FOnOpenRecent write FOnOpenRecent; |
|
 |
property MaxCount: Cardinal read FMaxCount write FMaxCount
default DefaultMaxCount; |
|
Generated by PasDoc 0.12.1 on 2013-02-04 20:26:51
|