Changeset 22 for trunk/Forms/UFormMain.pas
- Timestamp:
- May 4, 2016, 11:43:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r21 r22 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ComCtrls, StdCtrls, ExtCtrls, ActnList, UAcronym, UPersistentForm, Contnrs,9 ComCtrls, StdCtrls, ExtCtrls, ActnList, UAcronym, UPersistentForm, 10 10 URegistry, ULastOpenedList, UListViewSort, UCoolTranslator, Registry, 11 11 SpecializedList, LazUTF8; … … 16 16 17 17 TFormMain = class(TForm) 18 AProcessImports: TAction; 19 AShowImportFormats: TAction; 18 20 AShowAbout: TAction; 19 21 AShowImportSources: TAction; … … 52 54 MenuItem21: TMenuItem; 53 55 MenuItem22: TMenuItem; 56 MenuItem23: TMenuItem; 54 57 MenuItem4: TMenuItem; 55 58 MenuItem5: TMenuItem; 56 59 MenuItem6: TMenuItem; 60 MenuItem7: TMenuItem; 57 61 MenuItemOpenRecent: TMenuItem; 58 62 MenuItem2: TMenuItem; … … 72 76 procedure AFileSaveExecute(Sender: TObject); 73 77 procedure AImportExecute(Sender: TObject); 78 procedure AProcessImportsExecute(Sender: TObject); 74 79 procedure ASettingsExecute(Sender: TObject); 75 80 procedure AShowAboutExecute(Sender: TObject); … … 77 82 procedure AShowCategoriesExecute(Sender: TObject); 78 83 procedure AShowExecute(Sender: TObject); 84 procedure AShowImportFormatsExecute(Sender: TObject); 79 85 procedure AShowImportSourcesExecute(Sender: TObject); 80 86 procedure CheckBoxExactMathChange(Sender: TObject); … … 118 124 119 125 uses 120 UFormImport, UForm Acronym, UFormSettings, UFormCategories, UFormAcronyms,121 UFormImportSource , UFormImportSources, UFormAbout;126 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, 127 UFormImportSources, UFormAbout, UFormImportFormats; 122 128 123 129 resourcestring … … 243 249 end; 244 250 251 procedure TFormMain.AProcessImportsExecute(Sender: TObject); 252 var 253 I: Integer; 254 begin 255 for I := 0 to AcronymDb.ImportSources.Count - 1 do 256 TImportSource(AcronymDb.ImportSources[I]).Process; 257 UpdateAcronymsList; 258 UpdateInterface; 259 end; 260 245 261 procedure TFormMain.ASettingsExecute(Sender: TObject); 246 262 begin … … 271 287 begin 272 288 Show; 289 end; 290 291 procedure TFormMain.AShowImportFormatsExecute(Sender: TObject); 292 begin 293 FormImportFormats.ImportFormats := AcronymDb.ImportFormats; 294 FormImportFormats.ShowModal; 295 UpdateInterface; 273 296 end; 274 297
Note:
See TracChangeset
for help on using the changeset viewer.