mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 00:00:49 +01:00
JCF2: localized Blank Lines Settings tab
git-svn-id: trunk@23991 -
This commit is contained in:
parent
62f6cb12cf
commit
d3b00011a6
@ -99,6 +99,20 @@ resourcestring
|
||||
lisIndentIndentNestedTypes = 'Indent nested types';
|
||||
lisIndentIndentVarAndConstInClass = 'Indent var and const in class';
|
||||
|
||||
//Blank lines tab
|
||||
lisBLBlankLines = 'Blank Lines';
|
||||
lisBLRemoveBlankLines = 'Remove blank lines';
|
||||
lisBLInProcedureVarSection = 'In procedure var section';
|
||||
lisBLAfterProcedureHeader = 'After procedure header';
|
||||
lisBLAtStartAndEndOfBeginEndBlock = 'At start and end of Begin...End block';
|
||||
lisBLMaxConsecutiveBlankLinesBeforeRemoval = 'Max consecutive blank lines '
|
||||
+'before removal';
|
||||
lisBLNumberOfReturnsAfterTheUnitsFinalEnd = 'Number of returns after the '
|
||||
+'unit''s final End.';
|
||||
lisBLRemoveConsecutiveBlankLines = 'Remove consecutive blank lines';
|
||||
lisBLMaxConsecutiveBlankLinesAnywhere = 'Max consecutive blank lines anywhere';
|
||||
lisBLLinesBeforeProcedure = 'Lines before procedure';
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
||||
@ -71,7 +71,7 @@ uses
|
||||
{ delphi }
|
||||
Math,
|
||||
{ local }
|
||||
JcfSettings, SetReturns, JcfHelp;
|
||||
JcfSettings, SetReturns, JcfHelp, jcfuiconsts;
|
||||
|
||||
constructor TfBlankLines.Create(AOwner: TComponent);
|
||||
begin
|
||||
@ -81,12 +81,21 @@ end;
|
||||
|
||||
function TfBlankLines.GetTitle: String;
|
||||
begin
|
||||
Result := 'Blank Lines';
|
||||
Result := lisBLBlankLines;
|
||||
end;
|
||||
|
||||
procedure TfBlankLines.Setup(ADialog: TAbstractOptionsEditorDialog);
|
||||
begin
|
||||
//
|
||||
gbRemoveBlankLines.Caption := lisBLRemoveBlankLines;
|
||||
cbRemoveVarBlankLines.Caption := lisBLInProcedureVarSection;
|
||||
cbRemoveBlankLinesAfterProcHeader.Caption := lisBLAfterProcedureHeader;
|
||||
cbRemoveBlockBlankLines.Caption := lisBLAtStartAndEndOfBeginEndBlock;
|
||||
Label4.Caption := lisBLMaxConsecutiveBlankLinesBeforeRemoval;
|
||||
|
||||
Label1.Caption := lisBLNumberOfReturnsAfterTheUnitsFinalEnd;
|
||||
cbRemoveConsecutiveBlankLines.Caption := lisBLRemoveConsecutiveBlankLines;
|
||||
Label2.Caption := lisBLMaxConsecutiveBlankLinesAnywhere;
|
||||
Label3.Caption := lisBLLinesBeforeProcedure;
|
||||
end;
|
||||
|
||||
procedure TfBlankLines.ReadSettings(AOptions: TAbstractIDEOptions);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user