IDE: don't build examples from Build Lazarus dialog. Fixes issue #20261 (TrackBar Demo is started instead of Lazarus)

git-svn-id: trunk@32811 -
This commit is contained in:
juha 2011-10-10 21:51:45 +00:00
parent 6cb5b7f6ec
commit 3add81398b
3 changed files with 17 additions and 22 deletions

View File

@ -9,7 +9,7 @@ object BuildProfileManagerForm: TBuildProfileManagerForm
OnCreate = FormCreate OnCreate = FormCreate
OnDestroy = FormDestroy OnDestroy = FormDestroy
Position = poScreenCenter Position = poScreenCenter
LCLVersion = '0.9.29' LCLVersion = '0.9.31'
object ProfilesPanel: TPanel object ProfilesPanel: TPanel
Left = 0 Left = 0
Height = 459 Height = 459
@ -41,21 +41,21 @@ object BuildProfileManagerForm: TBuildProfileManagerForm
OnClick = MoveDownButtonClick OnClick = MoveDownButtonClick
end end
object MoveUpButton: TToolButton object MoveUpButton: TToolButton
Left = 201 Left = 252
Top = 0 Top = 0
Caption = 'MoveUpButton' Caption = 'MoveUpButton'
ImageIndex = 3 ImageIndex = 3
OnClick = MoveUpButtonClick OnClick = MoveUpButtonClick
end end
object EditButton: TToolButton object EditButton: TToolButton
Left = 139 Left = 173
Top = 0 Top = 0
Caption = 'EditButton' Caption = 'EditButton'
ImageIndex = 2 ImageIndex = 2
OnClick = EditButtonClick OnClick = EditButtonClick
end end
object RemoveButton: TToolButton object RemoveButton: TToolButton
Left = 60 Left = 75
Top = 0 Top = 0
Caption = 'RemoveButton' Caption = 'RemoveButton'
ImageIndex = 1 ImageIndex = 1
@ -69,9 +69,9 @@ object BuildProfileManagerForm: TBuildProfileManagerForm
OnClick = AddButtonClick OnClick = AddButtonClick
end end
object tbSeparator: TToolButton object tbSeparator: TToolButton
Left = 197 Left = 247
Top = 0 Top = 0
Width = 4 Width = 5
Caption = 'tbSeparator' Caption = 'tbSeparator'
Style = tbsDivider Style = tbsDivider
end end
@ -84,7 +84,9 @@ object BuildProfileManagerForm: TBuildProfileManagerForm
Align = alClient Align = alClient
ItemHeight = 0 ItemHeight = 0
OnClick = ProfilesListboxClick OnClick = ProfilesListboxClick
ScrollWidth = 354
TabOrder = 0 TabOrder = 0
TopIndex = -1
end end
object ButtonPanel: TButtonPanel object ButtonPanel: TButtonPanel
Left = 7 Left = 7
@ -92,11 +94,15 @@ object BuildProfileManagerForm: TBuildProfileManagerForm
Top = 426 Top = 426
Width = 346 Width = 346
OKButton.Name = 'OKButton' OKButton.Name = 'OKButton'
OKButton.DefaultCaption = True
HelpButton.Name = 'HelpButton' HelpButton.Name = 'HelpButton'
HelpButton.DefaultCaption = True
HelpButton.OnClick = HelpButtonClick HelpButton.OnClick = HelpButtonClick
CloseButton.Name = 'CloseButton' CloseButton.Name = 'CloseButton'
CloseButton.DefaultCaption = True
CloseButton.Enabled = False CloseButton.Enabled = False
CancelButton.Name = 'CancelButton' CancelButton.Name = 'CancelButton'
CancelButton.DefaultCaption = True
TabOrder = 2 TabOrder = 2
ShowButtons = [pbOK, pbCancel, pbHelp] ShowButtons = [pbOK, pbCancel, pbHelp]
ShowBevel = False ShowBevel = False

View File

@ -80,7 +80,6 @@ type
TMakeModeDefs = class(TObjectList) TMakeModeDefs = class(TObjectList)
private private
fItemIDE: TMakeModeDef; fItemIDE: TMakeModeDef;
fItemExamples: TMakeModeDef;
fItemIDEIndex: integer; fItemIDEIndex: integer;
function GetItems(Index: integer): TMakeModeDef; function GetItems(Index: integer): TMakeModeDef;
public public
@ -92,7 +91,6 @@ type
function FindName(const Name: string): TMakeModeDef; function FindName(const Name: string): TMakeModeDef;
public public
property ItemIDE: TMakeModeDef read fItemIDE; property ItemIDE: TMakeModeDef read fItemIDE;
property ItemExamples: TMakeModeDef read fItemExamples;
property Items[Index: integer]: TMakeModeDef read GetItems; default; property Items[Index: integer]: TMakeModeDef read GetItems; default;
end; end;
@ -226,7 +224,7 @@ implementation
{$R *.lfm} {$R *.lfm}
uses uses
AddProfileDialog; // , BuildLazDialog AddProfileDialog;
const const
DefaultTargetDirectory = ''; // empty will be replaced by '$(ConfDir)/bin'; DefaultTargetDirectory = ''; // empty will be replaced by '$(ConfDir)/bin';
@ -307,15 +305,11 @@ end;
constructor TMakeModeDefs.Create; constructor TMakeModeDefs.Create;
begin begin
inherited Create; inherited Create;
// Hard-coded build values. // Hard-coded build values = IDE
// IDE
FItemIDE:=TMakeModeDef.Create('IDE',lisIDE,'',mmBuild); FItemIDE:=TMakeModeDef.Create('IDE',lisIDE,'',mmBuild);
FItemIDE.Commands[mmBuild]:='ide'; FItemIDE.Commands[mmBuild]:='ide';
FItemIDE.Commands[mmCleanBuild]:='cleanide ide'; FItemIDE.Commands[mmCleanBuild]:='cleanide ide';
fItemIDEIndex:=Add(FItemIDE); fItemIDEIndex:=Add(FItemIDE);
// Examples
FItemExamples:=TMakeModeDef.Create('Examples',lisExamples,'examples',mmBuild);
Add(FItemExamples);
end; end;
destructor TMakeModeDefs.Destroy; destructor TMakeModeDefs.Destroy;
@ -326,7 +320,6 @@ end;
procedure TMakeModeDefs.Clear; procedure TMakeModeDefs.Clear;
begin begin
FItemIDE:=nil; FItemIDE:=nil;
FItemExamples:=nil;
inherited Clear; // Items are freed here, too. inherited Clear; // Items are freed here, too.
end; end;
@ -342,8 +335,7 @@ begin
NewItem.Assign(SrcItem); NewItem.Assign(SrcItem);
Add(NewItem); Add(NewItem);
end; end;
fItemIDE :=FindName('IDE'); fItemIDE:=FindName('IDE');
fItemExamples:=FindName('Examples');
fItemIDEIndex:=Source.fItemIDEIndex; fItemIDEIndex:=Source.fItemIDEIndex;
end; end;

View File

@ -1955,8 +1955,7 @@ resourcestring
dlgCCOTestMissingPPU = 'Test: Checking missing fpc ppu ...'; dlgCCOTestMissingPPU = 'Test: Checking missing fpc ppu ...';
dlgCCOTestCompilerDate = 'Test: Checking compiler date ...'; dlgCCOTestCompilerDate = 'Test: Checking compiler date ...';
lisCCOErrorCaption = 'Error'; lisCCOErrorCaption = 'Error';
lisCompilerDoesNotSupportTarget = 'Compiler "%s" does not support target %' lisCompilerDoesNotSupportTarget = 'Compiler "%s" does not support target %s-%s';
+'s-%s';
lisInvalidMode = 'Invalid mode %s'; lisInvalidMode = 'Invalid mode %s';
lisTheProjectCompilerOptionsAndTheDirectivesInTheMain = 'The project ' lisTheProjectCompilerOptionsAndTheDirectivesInTheMain = 'The project '
+'compiler options and the directives in the main source differ. For the ' +'compiler options and the directives in the main source differ. For the '
@ -2014,8 +2013,7 @@ resourcestring
lisTheOutputDirectoryOfIsListedInTheUnitSearchPathOf = 'The output ' lisTheOutputDirectoryOfIsListedInTheUnitSearchPathOf = 'The output '
+'directory of %s is listed in the unit search path of %s.'; +'directory of %s is listed in the unit search path of %s.';
lisTheOutputDirectoryShouldBeASeparateDirectoryAndNot = ' The output ' lisTheOutputDirectoryShouldBeASeparateDirectoryAndNot = ' The output '
+'directory should be a separate directory and not contain any source ' +'directory should be a separate directory and not contain any source files.';
+'files.';
lisTheOutputDirectoryOfIsListedInTheIncludeSearchPath = 'The output ' lisTheOutputDirectoryOfIsListedInTheIncludeSearchPath = 'The output '
+'directory of %s is listed in the include search path of %s.'; +'directory of %s is listed in the include search path of %s.';
lisTheOutputDirectoryOfIsListedInTheInheritedUnitSear = 'The output ' lisTheOutputDirectoryOfIsListedInTheInheritedUnitSear = 'The output '
@ -2842,7 +2840,6 @@ resourcestring
lisTheProgramMakeWasNotFoundThisToolIsNeededToBuildLa = 'The program %smake%' lisTheProgramMakeWasNotFoundThisToolIsNeededToBuildLa = 'The program %smake%'
+'s was not found.%sThis tool is needed to build lazarus.%s'; +'s was not found.%sThis tool is needed to build lazarus.%s';
lisIDE = 'IDE'; lisIDE = 'IDE';
lisExamples = 'Examples';
lisConfigureBuildLazarus = 'Configure %sBuild Lazarus%s'; lisConfigureBuildLazarus = 'Configure %sBuild Lazarus%s';
lisLazBuildCleanAll = 'Clean all'; lisLazBuildCleanAll = 'Clean all';
lisLazBuildBuildComponentsSynEditCodeTools = 'Build components (SynEdit, CodeTools)'; lisLazBuildBuildComponentsSynEditCodeTools = 'Build components (SynEdit, CodeTools)';