Changeset 152 for trunk/Core.pas
- Timestamp:
- Jun 6, 2023, 5:05:18 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r151 r152 16 16 AAbout: TAction; 17 17 AboutDialog1: TAboutDialog; 18 ANormalize: TAction; 18 19 ARemoveExactDuplicates: TAction; 19 20 AFileCompare: TAction; … … 60 61 procedure AGenerateExecute(Sender: TObject); 61 62 procedure AHomePageExecute(Sender: TObject); 63 procedure ANormalizeExecute(Sender: TObject); 62 64 procedure ARemoveExactDuplicatesExecute(Sender: TObject); 63 65 procedure ASettingsExecute(Sender: TObject); … … 102 104 ToolbarVisible: Boolean; 103 105 DefaultVcardVersion: string; 104 DefaultPhoneCountryPrefix: string; 106 DefaultPhoneCountryCode: string; 107 DefaultInternationalCallPrefix: string; 105 108 CompareTool: string; 106 109 function GetProfileImage: TImage; … … 126 129 127 130 uses 128 FormMain, FormSettings, FormFindDuplicity, FormCompare, TestCase, 131 FormMain, FormSettings, FormFindDuplicity, FormCompare, TestCase, FormNormalize, 129 132 FormGenerate, FormError, FormFind, FormTest, FormSource, FormCompareSideBySide, 130 133 TestCases; … … 285 288 end; 286 289 290 procedure TCore.ANormalizeExecute(Sender: TObject); 291 var 292 FormNormalize: TFormNormalize; 293 begin 294 FormNormalize := TFormNormalize.Create(nil); 295 try 296 FormNormalize.ShowModal; 297 finally 298 FreeAndNil(FormNormalize); 299 end; 300 end; 301 287 302 procedure TCore.ARemoveExactDuplicatesExecute(Sender: TObject); 288 303 var … … 540 555 LastQrCodeFileName := ReadStringWithDefault('LastQrCodeFileName', ''); 541 556 CompareTool := ReadStringWithDefault('CompareTool', GetDefaultCompareTool); 542 DefaultPhoneCountryPrefix := ReadStringWithDefault('DefaultPhoneCountryPrefix', DefaultPhoneCountryPrefix); 557 DefaultPhoneCountryCode := ReadStringWithDefault('DefaultPhoneCountryPrefix', DefaultPhoneCountryCode); 558 DefaultInternationalCallPrefix := ReadStringWithDefault('DefaultInternationalCallPrefix', DefaultInternationalCallPrefix); 543 559 finally 544 560 Free; … … 568 584 WriteString('LastQrCodeFileName', LastQrCodeFileName); 569 585 WriteString('CompareTool', CompareTool); 570 WriteString('DefaultPhoneCountryPrefix', DefaultPhoneCountryPrefix); 586 WriteString('DefaultPhoneCountryPrefix', DefaultPhoneCountryCode); 587 WriteString('DefaultInternationalCallPrefix', DefaultInternationalCallPrefix); 571 588 finally 572 589 Free;
Note:
See TracChangeset
for help on using the changeset viewer.