Skip to content

Commit c92770c

Browse files
author
Joachim Marder
committed
Set SVN project language to English.Added optional parameter for the description to TUIRibbon.AddToRecentItems().
1 parent e139d0f commit c92770c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/UIRibbon.pas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ TUIRibbon = class(TWinControl, IUIApplication)
384384

385385
/// Adds an item to the list of recent path.
386386
/// <param name="pPath">The path that shall be added to the recent list.</param>
387-
procedure AddToRecentItems(const pPath: string);
387+
/// <param name="pDescription">Optional. A description for the path.</param>
388+
procedure AddToRecentItems(const pPath: string; const pDescription: string = '');
388389

389390
/// <summary>
390391
/// Get the currently selected "recent item".
@@ -1331,12 +1332,13 @@ procedure TUIRibbon.SetQuickAccessToolbarPosition(
13311332
end;
13321333
end;
13331334

1334-
procedure TUIRibbon.AddToRecentItems(const pPath: string);
1335+
procedure TUIRibbon.AddToRecentItems(const pPath: string; const pDescription: string = '');
13351336
var
13361337
lItem: TUIRecentItem;
13371338
begin
13381339
lItem := TUIRecentItem.Create;
13391340
lItem.LabelText := pPath;
1341+
lItem.Description := pDescription;
13401342
fRecentItems.Items.Add(lItem);
13411343
end;
13421344

0 commit comments

Comments
 (0)