mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:19:24 +02:00
JCF2: localized Indent Settings tab
git-svn-id: trunk@23981 -
This commit is contained in:
parent
984017068a
commit
6de469cd57
@ -77,6 +77,28 @@ resourcestring
|
|||||||
lisSpacesSpacesForTab = 'Spaces for tab';
|
lisSpacesSpacesForTab = 'Spaces for tab';
|
||||||
lisSpacesMaxSpacesInCode = '&Max spaces in code';
|
lisSpacesMaxSpacesInCode = '&Max spaces in code';
|
||||||
|
|
||||||
|
//Indentation tab
|
||||||
|
lisIndentIndentation = 'Indentation';
|
||||||
|
lisIndentBlockIndentationSpaces = 'Block indentation spaces';
|
||||||
|
lisIndentOptions = 'Options';
|
||||||
|
lisIndentExtraIndentForBeginEnd = 'Extra indent for begin/end inside '
|
||||||
|
+'procedures';
|
||||||
|
lisIndentDifferentIndentForFirstLevel = 'Different indent for first level';
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeInProcs = 'Keep single-line comments '
|
||||||
|
+'with code in procedures';
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeInGlobals = 'Keep single-line '
|
||||||
|
+'comments with code in globals';
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeInClassDefs = 'Keep single-line '
|
||||||
|
+'comments with code in class definitions';
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeElsewhere = 'Keep single-line '
|
||||||
|
+'comments with code elsewhere';
|
||||||
|
lisIndentExtraIndentForIfElseBlocks = 'Extra Indent for If...Else blocks';
|
||||||
|
lisIndentExtraIndentForCaseElseBlocks = 'Extra Indent for Case...Else blocks';
|
||||||
|
lisIndentIndentForProceduresInLibrary = 'Indent for procedures in library';
|
||||||
|
lisIndentIndentForProcedureBody = 'Indent for procedure body';
|
||||||
|
lisIndentIndentNestedTypes = 'Indent nested types';
|
||||||
|
lisIndentIndentVarAndConstInClass = 'Indent var and const in class';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -73,7 +73,7 @@ implementation
|
|||||||
{$R *.lfm}
|
{$R *.lfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
JcfHelp, JcfSettings, SetIndent;
|
JcfHelp, JcfSettings, SetIndent, jcfuiconsts;
|
||||||
|
|
||||||
constructor TfClarifyIndent.Create(AOwner: TComponent);
|
constructor TfClarifyIndent.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
@ -83,12 +83,28 @@ end;
|
|||||||
|
|
||||||
function TfClarifyIndent.GetTitle: String;
|
function TfClarifyIndent.GetTitle: String;
|
||||||
begin
|
begin
|
||||||
Result := 'Indentation';
|
Result := lisIndentIndentation;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfClarifyIndent.Setup(ADialog: TAbstractOptionsEditorDialog);
|
procedure TfClarifyIndent.Setup(ADialog: TAbstractOptionsEditorDialog);
|
||||||
begin
|
begin
|
||||||
//;
|
Label2.Caption := lisIndentBlockIndentationSpaces;
|
||||||
|
gbOptions.Caption := lisIndentOptions;
|
||||||
|
cbIndentBeginEnd.Caption := lisIndentExtraIndentForBeginEnd;
|
||||||
|
cbHasFirstLevelIndent.Caption := lisIndentDifferentIndentForFirstLevel;
|
||||||
|
cbKeepWithInProc.Caption := lisIndentKeepSingleLineCommentsWithCodeInProcs;
|
||||||
|
cbKeepWithInGlobals.Caption :=
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeInGlobals;
|
||||||
|
cbKeepWithInClassDef.Caption :=
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeInClassDefs;
|
||||||
|
cbKeepWithElsewhere.Caption :=
|
||||||
|
lisIndentKeepSingleLineCommentsWithCodeElsewhere;
|
||||||
|
cbIndentIfElse.Caption := lisIndentExtraIndentForIfElseBlocks;
|
||||||
|
cbIndentCaseElse.Caption := lisIndentExtraIndentForCaseElseBlocks;
|
||||||
|
cbIndentLibraryProcs.Caption := lisIndentIndentForProceduresInLibrary;
|
||||||
|
cbIndentProcedureBody.Caption := lisIndentIndentForProcedureBody;
|
||||||
|
cbIndentNestedTypes.Caption := lisIndentIndentNestedTypes;
|
||||||
|
cbIndentVarAndConstInClass.Caption := lisIndentIndentVarAndConstInClass;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{-------------------------------------------------------------------------------
|
{-------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user