Converter: Change dialog button text from "OK" to "Start Conversion"

git-svn-id: trunk@24308 -
This commit is contained in:
juha 2010-03-31 07:51:17 +00:00
parent 29406db1a2
commit 38b16d52cb
3 changed files with 24 additions and 20 deletions

View File

@ -21,14 +21,14 @@ object ConvertSettingsForm: TConvertSettingsForm
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Top = 3 BorderSpacing.Top = 3
Caption = 'Missing Properties and Types' Caption = 'Missing Properties and Types'
ClientHeight = 113 ClientHeight = 114
ClientWidth = 601 ClientWidth = 607
TabOrder = 0 TabOrder = 0
object MissingTypesCheckBox: TCheckBox object MissingTypesCheckBox: TCheckBox
Left = 11 Left = 11
Height = 23 Height = 21
Top = 22 Top = 22
Width = 286 Width = 283
Caption = 'Automatic conversion of missing types (ToDo...)' Caption = 'Automatic conversion of missing types (ToDo...)'
Enabled = False Enabled = False
TabOrder = 0 TabOrder = 0
@ -36,9 +36,9 @@ object ConvertSettingsForm: TConvertSettingsForm
end end
object MissingPropertiesCheckBox: TCheckBox object MissingPropertiesCheckBox: TCheckBox
Left = 11 Left = 11
Height = 23 Height = 21
Top = 4 Top = 4
Width = 297 Width = 294
Caption = 'Automatic removal of missing properties (ToDo...)' Caption = 'Automatic removal of missing properties (ToDo...)'
Enabled = False Enabled = False
TabOrder = 1 TabOrder = 1
@ -69,8 +69,8 @@ object ConvertSettingsForm: TConvertSettingsForm
Top = 80 Top = 80
Width = 611 Width = 611
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
ClientHeight = 126 ClientHeight = 132
ClientWidth = 601 ClientWidth = 607
TabOrder = 1 TabOrder = 1
object TargetRadioGroup: TRadioGroup object TargetRadioGroup: TRadioGroup
Left = 11 Left = 11
@ -87,8 +87,8 @@ object ConvertSettingsForm: TConvertSettingsForm
ChildSizing.ShrinkVertical = crsScaleChilds ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1 ChildSizing.ControlsPerLine = 1
ClientHeight = 92 ClientHeight = 93
ClientWidth = 262 ClientWidth = 268
ItemIndex = 0 ItemIndex = 0
Items.Strings = ( Items.Strings = (
'Lazarus/LCL' 'Lazarus/LCL'
@ -102,9 +102,9 @@ object ConvertSettingsForm: TConvertSettingsForm
AnchorSideLeft.Control = TargetRadioGroup AnchorSideLeft.Control = TargetRadioGroup
AnchorSideLeft.Side = asrBottom AnchorSideLeft.Side = asrBottom
Left = 303 Left = 303
Height = 23 Height = 21
Top = 75 Top = 75
Width = 265 Width = 262
BorderSpacing.Left = 13 BorderSpacing.Left = 13
BorderSpacing.Around = 7 BorderSpacing.Around = 7
Caption = 'Use the same DFM file for Lazarus (ToDo...)' Caption = 'Use the same DFM file for Lazarus (ToDo...)'
@ -139,17 +139,19 @@ object ConvertSettingsForm: TConvertSettingsForm
end end
object btnOK: TBitBtn object btnOK: TBitBtn
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 443 Left = 391
Height = 36 Height = 36
Top = 6 Top = 6
Width = 75 Width = 127
Align = alRight Align = alRight
AutoSize = True AutoSize = True
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = '&OK' Caption = 'Start Conversion'
Constraints.MinHeight = 25 Constraints.MinHeight = 25
Constraints.MinWidth = 75 Constraints.MinWidth = 75
Default = True
Kind = bkOK Kind = bkOK
ModalResult = 1
NumGlyphs = 0 NumGlyphs = 0
OnClick = btnOKClick OnClick = btnOKClick
TabOrder = 1 TabOrder = 1
@ -176,7 +178,7 @@ object ConvertSettingsForm: TConvertSettingsForm
end end
object MainPathEdit: TLabeledEdit object MainPathEdit: TLabeledEdit
Left = 80 Left = 80
Height = 17 Height = 21
Top = 15 Top = 15
Width = 503 Width = 503
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
@ -189,7 +191,7 @@ object ConvertSettingsForm: TConvertSettingsForm
EditLabel.AnchorSideBottom.Control = MainPathEdit EditLabel.AnchorSideBottom.Control = MainPathEdit
EditLabel.Left = 15 EditLabel.Left = 15
EditLabel.Height = 16 EditLabel.Height = 16
EditLabel.Top = 15 EditLabel.Top = 17
EditLabel.Width = 58 EditLabel.Width = 58
EditLabel.Caption = 'Main Path:' EditLabel.Caption = 'Main Path:'
EditLabel.ParentColor = False EditLabel.ParentColor = False
@ -202,9 +204,9 @@ object ConvertSettingsForm: TConvertSettingsForm
AnchorSideTop.Control = MainPathEdit AnchorSideTop.Control = MainPathEdit
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 16 Left = 16
Height = 23 Height = 21
Top = 44 Top = 48
Width = 189 Width = 186
BorderSpacing.Top = 5 BorderSpacing.Top = 5
BorderSpacing.Around = 7 BorderSpacing.Around = 7
Caption = 'Make backup of changed files' Caption = 'Make backup of changed files'

View File

@ -294,6 +294,7 @@ const // Move later to resourcestrings
lisUseSameDFMFile = 'Use the same DFM file for Lazarus (ToDo...)'; lisUseSameDFMFile = 'Use the same DFM file for Lazarus (ToDo...)';
begin begin
MainPathEdit.Text:=''; MainPathEdit.Text:='';
btnOK.Caption:=lisStartConversion;
BackupCheckBox.Caption:=lisBackupChangedFiles; BackupCheckBox.Caption:=lisBackupChangedFiles;
TargetRadioGroup.Items.Clear; TargetRadioGroup.Items.Clear;
TargetRadioGroup.Items.Append(lisConvertTarget1); TargetRadioGroup.Items.Append(lisConvertTarget1);

View File

@ -453,6 +453,7 @@ resourcestring
lisNotADelphiProject = 'Not a Delphi project'; lisNotADelphiProject = 'Not a Delphi project';
lisTheFileIsNotADelphiProjectDpr = 'The file %s%s%s is not a Delphi ' lisTheFileIsNotADelphiProjectDpr = 'The file %s%s%s is not a Delphi '
+'project (.dpr)'; +'project (.dpr)';
lisStartConversion = 'Start Conversion';
lisBackupChangedFiles = 'Make backup of changed files'; lisBackupChangedFiles = 'Make backup of changed files';
lisConvertTarget1 = 'Lazarus/LCL'; lisConvertTarget1 = 'Lazarus/LCL';
lisConvertTarget2 = 'Lazarus/LCL for Windows only'; lisConvertTarget2 = 'Lazarus/LCL for Windows only';