mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 08:33:49 +02:00
47 lines
1.4 KiB
ObjectPascal
47 lines
1.4 KiB
ObjectPascal
{ Copyright (C) 2004
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* See the file COPYING.modifiedLGPL, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
Author: Mattias Gaertner
|
|
|
|
Abstract:
|
|
Common IDE dialogs.
|
|
}
|
|
unit IDEDialogs;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, Forms, Dialogs;
|
|
|
|
function LazSelectDirectory(const Title: string; const InitialDir: string = ''
|
|
): string;
|
|
|
|
type
|
|
TIDESelectDirectory = function(const Title, InitialDir: string): string of object;
|
|
var
|
|
LazIDESelectDirectory: TIDESelectDirectory;// set by the IDE
|
|
|
|
|
|
implementation
|
|
|
|
function LazSelectDirectory(const Title: string; const InitialDir: string
|
|
): string;
|
|
begin
|
|
Result:=LazIDESelectDirectory(Title,InitialDir);
|
|
end;
|
|
|
|
end.
|
|
|