mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +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;
|
end;
|
||||||
|
|
||||||
// add success message
|
// add success message
|
||||||
MessagesView.AddMsg(
|
MessagesView.AddMsg(Format(lisProjectSuccessfullyBuilt, ['"',
|
||||||
Format(lisProjectSuccessfullyBuilt, ['"', Project1.Title, '"']),'',-1);
|
Project1.ShortDescription, '"']),'',-1);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
// check sources
|
// check sources
|
||||||
|
@ -498,6 +498,7 @@ type
|
|||||||
function GetFileCount: integer; virtual; abstract;
|
function GetFileCount: integer; virtual; abstract;
|
||||||
procedure AddSrcPath(const SrcPathAddition: string); virtual; abstract;
|
procedure AddSrcPath(const SrcPathAddition: string); virtual; abstract;
|
||||||
procedure AddPackageDependency(const PackageName: string); virtual; abstract;
|
procedure AddPackageDependency(const PackageName: string); virtual; abstract;
|
||||||
|
function ShortDescription: string;
|
||||||
public
|
public
|
||||||
property MainFileID: Integer read GetMainFileID write SetMainFileID;
|
property MainFileID: Integer read GetMainFileID write SetMainFileID;
|
||||||
property Files[Index: integer]: TLazProjectFile read GetFiles write SetFiles;
|
property Files[Index: integer]: TLazProjectFile read GetFiles write SetFiles;
|
||||||
@ -949,6 +950,14 @@ begin
|
|||||||
inherited Create;
|
inherited Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TLazProject.ShortDescription: string;
|
||||||
|
begin
|
||||||
|
if Title<>'' then
|
||||||
|
Result:=Title
|
||||||
|
else
|
||||||
|
Result:=ExtractFileNameOnly(ProjectInfoFile);
|
||||||
|
end;
|
||||||
|
|
||||||
{ TLazProjectFile }
|
{ TLazProjectFile }
|
||||||
|
|
||||||
procedure TLazProjectFile.SetIsPartOfProject(const AValue: boolean);
|
procedure TLazProjectFile.SetIsPartOfProject(const AValue: boolean);
|
||||||
|
Loading…
Reference in New Issue
Block a user