Changeset 177 for trunk/Core.pas
- Timestamp:
- Aug 23, 2024, 9:59:54 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r176 r177 7 7 LastOpenedList, ApplicationInfo, PersistentForm, ScaleDPI, Common, 8 8 Translator, DataFile, VCard, Menus, RegistryEx, Theme, FormMain, 9 Registry, VCardFile ;9 Registry, VCardFile, FormKeyShortcuts; 10 10 11 11 type … … 15 15 TCore = class(TDataModule) 16 16 AAbout: TAction; 17 AKeyShortcuts: TAction; 17 18 AFullScreen: TAction; 18 19 AFileImport: TAction; … … 66 67 procedure AGenerateExecute(Sender: TObject); 67 68 procedure AHomePageExecute(Sender: TObject); 69 procedure AKeyShortcutsExecute(Sender: TObject); 68 70 procedure ANormalizeExecute(Sender: TObject); 69 71 procedure ARemoveExactDuplicatesExecute(Sender: TObject); … … 86 88 RecentFileRegistryContext: TRegistryContext; 87 89 FormMain: TFormMain; 90 FormKeyShortcuts: TFormKeyShortcuts; 88 91 procedure FileModified(Sender: TObject); 89 92 function FindFirstNonOption: string; … … 277 280 {$ENDIF} 278 281 {$IFDEF UNIX} 279 ExecuteProgram('/usr/bin/xdg-open', [SelectDirectoryDialog1.FileName] );282 ExecuteProgram('/usr/bin/xdg-open', [SelectDirectoryDialog1.FileName], []); 280 283 {$ENDIF} 281 284 end; … … 329 332 begin 330 333 OpenWebPage(ApplicationInfo1.HomePage); 334 end; 335 336 procedure TCore.AKeyShortcutsExecute(Sender: TObject); 337 begin 338 if not Assigned(FormKeyShortcuts) then 339 FormKeyShortcuts := TFormKeyShortcuts.Create(nil); 340 FormKeyShortcuts.ImageList := ImageList1; 341 FormKeyShortcuts.MainForm := FormMain; 342 FormKeyShortcuts.SourceComponents.Clear; 343 FormKeyShortcuts.SourceComponents.Add(Self); 344 FormKeyShortcuts.Show; 331 345 end; 332 346 … … 496 510 if Assigned(ProfileImage) then 497 511 FreeAndNil(ProfileImage); 512 if Assigned(FormKeyShortcuts) then 513 FreeAndNil(FormKeyShortcuts); 498 514 end; 499 515
Note:
See TracChangeset
for help on using the changeset viewer.