mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 09:32:41 +02:00
JCF2: localized Lines Breaking tab; slightly improved its layout
git-svn-id: trunk@24115 -
This commit is contained in:
parent
63dec4e6f8
commit
144124288b
@ -129,6 +129,17 @@ resourcestring
|
||||
lisAlignMaxVarianceInterface = 'Max Variance Interface';
|
||||
lisAlignMaxUnaligned = 'Max unaligned';
|
||||
|
||||
//Line Breaking tab
|
||||
lisLBLineBreaking = 'Line Breaking';
|
||||
lisLBMaxLineLength = 'Max line length';
|
||||
lisLBBreakLinesThatAreLongerThanMaxLineLength = '&Break lines that are '
|
||||
+'longer than max line length';
|
||||
lisLBNever = '&Never';
|
||||
lisLBSometimesIfAGoodPlaceToBreakIsFound = '&Sometimes, if a good place to '
|
||||
+'break is found';
|
||||
lisLBUsuallyUnlessThereIsNoAcceptablePlaceToBreak = '&Usually, unless there '
|
||||
+'is no acceptable place to break';
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
@ -12,10 +12,15 @@ inherited fClarifyLongLineBreaker: TfClarifyLongLineBreaker
|
||||
ParentColor = False
|
||||
end
|
||||
object edtMaxLineLength: TSpinEdit[1]
|
||||
AnchorSideLeft.Control = Label3
|
||||
AnchorSideLeft.Side = asrBottom
|
||||
AnchorSideTop.Control = Label3
|
||||
AnchorSideTop.Side = asrCenter
|
||||
Left = 116
|
||||
Height = 21
|
||||
Top = 3
|
||||
Width = 49
|
||||
BorderSpacing.Left = 6
|
||||
MaxValue = 999
|
||||
TabOrder = 0
|
||||
end
|
||||
|
@ -58,7 +58,7 @@ implementation
|
||||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
JcfSettings, SetReturns, JcfHelp;
|
||||
JcfSettings, SetReturns, JcfHelp, jcfuiconsts;
|
||||
|
||||
|
||||
constructor TfClarifyLongLineBreaker.Create(AOwner: TComponent);
|
||||
@ -69,12 +69,17 @@ end;
|
||||
|
||||
function TfClarifyLongLineBreaker.GetTitle: String;
|
||||
begin
|
||||
Result := 'Line Breaking';
|
||||
Result := lisLBLineBreaking;
|
||||
end;
|
||||
|
||||
procedure TfClarifyLongLineBreaker.Setup(ADialog: TAbstractOptionsEditorDialog);
|
||||
begin
|
||||
//
|
||||
Label3.Caption := lisLBMaxLineLength;
|
||||
rgRebreakLongLines.Caption := lisLBBreakLinesThatAreLongerThanMaxLineLength;
|
||||
rgRebreakLongLines.Items[0] := lisLBNever;
|
||||
rgRebreakLongLines.Items[1] := lisLBSometimesIfAGoodPlaceToBreakIsFound;
|
||||
rgRebreakLongLines.Items[2] :=
|
||||
lisLBUsuallyUnlessThereIsNoAcceptablePlaceToBreak;
|
||||
end;
|
||||
|
||||
{-------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user