mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 20:28:19 +02:00
IDE: help options group extendable
git-svn-id: trunk@24465 -
This commit is contained in:
parent
f5ff000c40
commit
9b01c35ba3
@ -657,24 +657,28 @@ begin
|
||||
if (TVNode<>nil) and (TObject(TVNode.Data) is TExternHelpItem) then
|
||||
Item:=TExternHelpItem(TVNode.Data);
|
||||
DisableAlign;
|
||||
if Item<>nil then begin
|
||||
NameEdit.Enabled:=true;
|
||||
NameEdit.Text:=Item.Name;
|
||||
FilenameEdit.Enabled:=true;
|
||||
FilenameEdit.Text:=Item.Filename;
|
||||
URLEdit.Enabled:=true;
|
||||
URLEdit.Text:=Item.URL;
|
||||
StoreComboBox.Enabled:=Item.Parent=Options.RootItem;
|
||||
StoreComboBox.Text:=Item.StoreIn;
|
||||
end else begin
|
||||
NameEdit.Enabled:=false;
|
||||
NameEdit.Text:='';
|
||||
FilenameEdit.Enabled:=false;
|
||||
FilenameEdit.Text:='';
|
||||
URLEdit.Enabled:=false;
|
||||
URLEdit.Text:='';
|
||||
StoreComboBox.Enabled:=false;
|
||||
StoreComboBox.Text:='';
|
||||
try
|
||||
if Item<>nil then begin
|
||||
NameEdit.Enabled:=true;
|
||||
NameEdit.Text:=Item.Name;
|
||||
FilenameEdit.Enabled:=true;
|
||||
FilenameEdit.Text:=Item.Filename;
|
||||
URLEdit.Enabled:=true;
|
||||
URLEdit.Text:=Item.URL;
|
||||
StoreComboBox.Enabled:=Item.Parent=Options.RootItem;
|
||||
StoreComboBox.Text:=Item.StoreIn;
|
||||
end else begin
|
||||
NameEdit.Enabled:=false;
|
||||
NameEdit.Text:='';
|
||||
FilenameEdit.Enabled:=false;
|
||||
FilenameEdit.Text:='';
|
||||
URLEdit.Enabled:=false;
|
||||
URLEdit.Text:='';
|
||||
StoreComboBox.Enabled:=false;
|
||||
StoreComboBox.Text:='';
|
||||
end;
|
||||
finally
|
||||
EnableAlign;
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -784,7 +788,7 @@ end;
|
||||
|
||||
class function TExternHelpGeneralOptsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
||||
begin
|
||||
Result:=TExternHelpOptions;
|
||||
Result:=TAbstractIDEHelpOptions;
|
||||
end;
|
||||
|
||||
procedure TExternHelpGeneralOptsFrame.WriteSettings(AOptions: TAbstractIDEOptions);
|
||||
|
@ -45,7 +45,7 @@ uses
|
||||
type
|
||||
{ THelpOptions }
|
||||
|
||||
THelpOptions = class(TAbstractIDEEnvironmentOptions)
|
||||
THelpOptions = class(TAbstractIDEHelpOptions)
|
||||
private
|
||||
FFilename: string;
|
||||
FFPCDocsHTMLDirectory: string;
|
||||
|
@ -62,6 +62,7 @@ type
|
||||
|
||||
TAbstractIDEEnvironmentOptions = class(TAbstractIDEOptions);
|
||||
TAbstractIDEProjectOptions = class(TAbstractIDEOptions);
|
||||
TAbstractIDEHelpOptions = class(TAbstractIDEEnvironmentOptions);
|
||||
|
||||
TOnLoadIDEOptions = procedure(Sender: TObject; AOptions: TAbstractIDEOptions) of object;
|
||||
TOnSaveIDEOptions = procedure(Sender: TObject; AOptions: TAbstractIDEOptions) of object;
|
||||
|
Loading…
Reference in New Issue
Block a user