From 458f42b286ec0ebb8ef4fef2644fac03877261dd Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 4 Apr 2013 11:05:03 +0000 Subject: [PATCH] IDE: package options: hints for package types git-svn-id: trunk@40714 - --- ide/lazarusidestrconsts.pas | 12 ++++++++++++ packager/frames/package_integration_options.lfm | 8 ++++++++ packager/frames/package_integration_options.pas | 8 ++++++++ packager/packagedefs.pas | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index 27a6cc428d..b6d955661a 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -5646,6 +5646,18 @@ resourcestring rsAttachTo = 'Attach to'; rsEnterPID = 'Enter PID'; lisFreePascalCompilerMessages = 'Free Pascal Compiler messages'; + lisRunAndDesignTimePackagesHaveNoLimitations = '"Run and Design time" ' + +'packages have no limitations.'; + lisDesignTimePackagesAddComponentsAndMenuItemsToTheID = '"Design time" ' + +'packages add components and menu items to the IDE. They can be used by ' + +'projects, but are not compiled into the project. The compiler will not ' + +'find units of this package when compiling the project.'; + lisRunTimePackagesCanBeUsedByProjectsTheyCanNotBeInst = '"Run time" packages' + +' can be used by projects. They can not be installed in the IDE, unless ' + +'some design time package requires them.'; + lisRunTimeOnlyPackagesAreOnlyForProjectsTheyCanNotBeI = '"Run time only" ' + +'packages are only for projects. They can not be installed in the IDE, ' + +'not even indirectly.'; implementation diff --git a/packager/frames/package_integration_options.lfm b/packager/frames/package_integration_options.lfm index 823305bfd4..ff6c85668a 100644 --- a/packager/frames/package_integration_options.lfm +++ b/packager/frames/package_integration_options.lfm @@ -136,6 +136,8 @@ object PackageIntegrationOptionsFrame: TPackageIntegrationOptionsFrame Width = 445 Caption = 'RunAndDesignTimeRadioButton' Checked = True + ParentShowHint = False + ShowHint = True TabOrder = 0 TabStop = True end @@ -145,6 +147,8 @@ object PackageIntegrationOptionsFrame: TPackageIntegrationOptionsFrame Top = 30 Width = 445 Caption = 'DesignTimeRadioButton' + ParentShowHint = False + ShowHint = True TabOrder = 1 end object RunTimeRadioButton: TRadioButton @@ -153,6 +157,8 @@ object PackageIntegrationOptionsFrame: TPackageIntegrationOptionsFrame Top = 54 Width = 445 Caption = 'RunTimeRadioButton' + ParentShowHint = False + ShowHint = True TabOrder = 2 end object RunTimeOnlyRadioButton: TRadioButton @@ -161,6 +167,8 @@ object PackageIntegrationOptionsFrame: TPackageIntegrationOptionsFrame Top = 78 Width = 445 Caption = 'RunTimeOnlyRadioButton' + ParentShowHint = False + ShowHint = True TabOrder = 3 end end diff --git a/packager/frames/package_integration_options.pas b/packager/frames/package_integration_options.pas index 82e25aff44..1dc86b14d7 100644 --- a/packager/frames/package_integration_options.pas +++ b/packager/frames/package_integration_options.pas @@ -176,9 +176,17 @@ procedure TPackageIntegrationOptionsFrame.Setup(ADialog: TAbstractOptionsEditorD begin PkgTypeGroupBox.Caption := lisPckOptsPackageType; RunAndDesignTimeRadioButton.Caption:=PkgTypeToCaption(lptRunAndDesignTime); + RunAndDesignTimeRadioButton.Hint:= + lisRunAndDesignTimePackagesHaveNoLimitations; DesignTimeRadioButton.Caption:=PkgTypeToCaption(lptDesignTime); + DesignTimeRadioButton.Hint:= + lisDesignTimePackagesAddComponentsAndMenuItemsToTheID; RunTimeRadioButton.Caption:=PkgTypeToCaption(lptRunTime); + RunTimeRadioButton.Hint:= + lisRunTimePackagesCanBeUsedByProjectsTheyCanNotBeInst; RunTimeOnlyRadioButton.Caption:=PkgTypeToCaption(lptRunTimeOnly); + RunTimeOnlyRadioButton.Hint:= + lisRunTimeOnlyPackagesAreOnlyForProjectsTheyCanNotBeI; UpdateRadioGroup.Caption := lisPckOptsUpdateRebuild; UpdateRadioGroup.Items[0] := lisPckOptsAutomaticallyRebuildAsNeeded; diff --git a/packager/packagedefs.pas b/packager/packagedefs.pas index 5e2d290641..d30b9c916d 100644 --- a/packager/packagedefs.pas +++ b/packager/packagedefs.pas @@ -502,7 +502,7 @@ type lptRunTime, // RunTime packages can't register anything in the IDE. // They can be used by designtime packages. lptDesignTime, // DesignTime packages can register anything in the IDE - // and should not be compiled into projects. + // and are not compiled into projects. // The IDE calls the 'register' procedures of each unit. lptRunAndDesignTime,// RunAndDesignTime packages can do anything. lptRunTimeOnly // as lptRunTime, but they can not be used in the IDE