IDE: package options: hints for package types

git-svn-id: trunk@40714 -
This commit is contained in:
mattias 2013-04-04 11:05:03 +00:00
parent 8831d137eb
commit 458f42b286
4 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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