mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 13:49:32 +02:00
implemented project intf ShortDescription
git-svn-id: trunk@7501 -
This commit is contained in:
parent
06d670ec0f
commit
9af33b607e
@ -6705,8 +6705,8 @@ begin
|
||||
end;
|
||||
|
||||
// add success message
|
||||
MessagesView.AddMsg(
|
||||
Format(lisProjectSuccessfullyBuilt, ['"', Project1.Title, '"']),'',-1);
|
||||
MessagesView.AddMsg(Format(lisProjectSuccessfullyBuilt, ['"',
|
||||
Project1.ShortDescription, '"']),'',-1);
|
||||
|
||||
finally
|
||||
// check sources
|
||||
|
@ -498,6 +498,7 @@ type
|
||||
function GetFileCount: integer; virtual; abstract;
|
||||
procedure AddSrcPath(const SrcPathAddition: string); virtual; abstract;
|
||||
procedure AddPackageDependency(const PackageName: string); virtual; abstract;
|
||||
function ShortDescription: string;
|
||||
public
|
||||
property MainFileID: Integer read GetMainFileID write SetMainFileID;
|
||||
property Files[Index: integer]: TLazProjectFile read GetFiles write SetFiles;
|
||||
@ -949,6 +950,14 @@ begin
|
||||
inherited Create;
|
||||
end;
|
||||
|
||||
function TLazProject.ShortDescription: string;
|
||||
begin
|
||||
if Title<>'' then
|
||||
Result:=Title
|
||||
else
|
||||
Result:=ExtractFileNameOnly(ProjectInfoFile);
|
||||
end;
|
||||
|
||||
{ TLazProjectFile }
|
||||
|
||||
procedure TLazProjectFile.SetIsPartOfProject(const AValue: boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user