- Timestamp:
- Jun 6, 2023, 9:46:08 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r152 r153 83 83 procedure FileModified(Sender: TObject); 84 84 function FindFirstNonOption: string; 85 procedure UpdateFile;86 85 procedure LoadConfig; 87 86 procedure SaveConfig; … … 107 106 DefaultInternationalCallPrefix: string; 108 107 CompareTool: string; 108 procedure UpdateFile; 109 109 function GetProfileImage: TImage; 110 110 function GetTempDir: string; … … 130 130 uses 131 131 FormMain, FormSettings, FormFindDuplicity, FormCompare, TestCase, FormNormalize, 132 FormGenerate, FormError, FormFind, FormTest, FormSource, FormCompareSideBySide, 133 TestCases; 132 FormGenerate, FormError, FormFind, FormTest, FormSource, TestCases; 134 133 135 134 resourcestring -
trunk/Forms/FormCompare.pas
r152 r153 44 44 uses 45 45 Core, FormCompareSideBySide, VCardProcessor; 46 47 resourcestring 48 SCompareToolNotFound = 'Compare tool ''%s'' not found. Select valid compare tool in the application settings.'; 46 49 47 50 { TFormCompare } … … 150 153 SaveStringToFile(TextLeft, TempFileLeft); 151 154 SaveStringToFile(TextRight, TempFileRight); 152 ExecuteProgram(Core.Core.CompareTool, [TempFileLeft, TempFileRight]); 155 if FileExists(Core.Core.CompareTool) then 156 ExecuteProgram(Core.Core.CompareTool, [TempFileLeft, TempFileRight]) 157 else ShowMessage(Format(SCompareToolNotFound, [Core.Core.CompareTool])); 153 158 end; 154 159 155 160 procedure TFormCompare.CompareExternal; 156 161 begin 157 CompareText(LeftVCard.VCard.AsString, RightVCard.V card.AsString,162 CompareText(LeftVCard.VCard.AsString, RightVCard.VCard.AsString, 158 163 ExtractFileName(LeftVCard.FileName), ExtractFileName(EditAnotherFile.Text)); 159 164 end; -
trunk/Forms/FormMain.lfm
r152 r153 4 4 Top = 401 5 5 Width = 1178 6 AllowDropFiles = True 6 7 Caption = 'vCard Studio' 7 8 ClientHeight = 762 … … 13 14 OnCreate = FormCreate 14 15 OnDestroy = FormDestroy 16 OnDropFiles = FormDropFiles 15 17 OnResize = FormResize 16 18 OnShow = FormShow -
trunk/Forms/FormMain.pas
r152 r153 59 59 procedure FormCreate(Sender: TObject); 60 60 procedure FormDestroy(Sender: TObject); 61 procedure FormDropFiles(Sender: TObject; const FileNames: array of string); 61 62 procedure FormResize(Sender: TObject); 62 63 procedure FormShow(Sender: TObject); … … 85 86 resourcestring 86 87 SModified = 'Modified'; 88 SOnlyOneFileCanBeDropped = 'Only one file can be dropped at once.'; 87 89 88 90 { TFormMain } … … 111 113 begin 112 114 FreeAndNil(FormContacts); 115 end; 116 117 procedure TFormMain.FormDropFiles(Sender: TObject; 118 const FileNames: array of string); 119 begin 120 if Length(FileNames) <> 1 then ShowMessage(SOnlyOneFileCanBeDropped) 121 else begin 122 Core.Core.FileOpen(FileNames[0]); 123 Core.Core.UpdateFile; 124 end; 113 125 end; 114 126 -
trunk/Languages/vCardStudio.cs.po
r152 r153 57 57 msgstr "Odstraněno %d duplikátů." 58 58 59 #: formcompare.scomparetoolnotfound 60 #, object-pascal-format 61 msgid "Compare tool '%s' not found. Select valid compare tool in the application settings." 62 msgstr "Nástroj porovnání '%s' nebyl nalezen. Vyberte platný nástroj porovnání v nastavení aplikace." 63 59 64 #: formcontact.scontact 60 65 msgctxt "formcontact.scontact" … … 117 122 msgstr "Upraveno" 118 123 124 #: formmain.sonlyonefilecanbedropped 125 msgid "Only one file can be dropped at once." 126 msgstr "Pouze jeden soubor může být položen najednou." 127 119 128 #: formproperties.sendupdatetoolow 120 129 msgctxt "formproperties.sendupdatetoolow" -
trunk/Languages/vCardStudio.pot
r152 r153 47 47 msgstr "" 48 48 49 #: formcompare.scomparetoolnotfound 50 #, object-pascal-format 51 msgid "Compare tool '%s' not found. Select valid compare tool in the application settings." 52 msgstr "" 53 49 54 #: formcontact.scontact 50 55 msgctxt "formcontact.scontact" … … 107 112 msgstr "" 108 113 114 #: formmain.sonlyonefilecanbedropped 115 msgid "Only one file can be dropped at once." 116 msgstr "" 117 109 118 #: formproperties.sendupdatetoolow 110 119 msgctxt "formproperties.sendupdatetoolow" -
trunk/Languages/vCardStudio.sv.po
r152 r153 58 58 msgstr "" 59 59 60 #: formcompare.scomparetoolnotfound 61 #, object-pascal-format 62 msgid "Compare tool '%s' not found. Select valid compare tool in the application settings." 63 msgstr "" 64 60 65 #: formcontact.scontact 61 66 msgctxt "formcontact.scontact" … … 118 123 msgstr "Redigerade" 119 124 125 #: formmain.sonlyonefilecanbedropped 126 msgid "Only one file can be dropped at once." 127 msgstr "" 128 120 129 #: formproperties.sendupdatetoolow 121 130 msgctxt "formproperties.sendupdatetoolow"
Note:
See TracChangeset
for help on using the changeset viewer.