JCF2: localized Lines Breaking tab; slightly improved its layout

git-svn-id: trunk@24115 -
This commit is contained in:
maxim 2010-03-20 17:44:53 +00:00
parent 63dec4e6f8
commit 144124288b
3 changed files with 24 additions and 3 deletions

View File

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

View File

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

View File

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