Changeset 90 for trunk/Forms/UFormMain.pas
- Timestamp:
- Aug 10, 2016, 11:24:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r87 r90 16 16 17 17 TFormMain = class(TForm) 18 AExport: TAction; 18 19 AProcessImports: TAction; 19 20 AShowImportFormats: TAction; … … 28 29 AFileNew: TAction; 29 30 AFileOpen: TAction; 30 A ManualImport: TAction;31 AImport: TAction; 31 32 AShow: TAction; 32 33 AExit: TAction; … … 57 58 MenuItem23: TMenuItem; 58 59 MenuItem24: TMenuItem; 60 MenuItem25: TMenuItem; 59 61 MenuItemToolbar: TMenuItem; 60 62 MenuItem4: TMenuItem; … … 88 90 TrayIcon1: TTrayIcon; 89 91 procedure AExitExecute(Sender: TObject); 92 procedure AExportExecute(Sender: TObject); 90 93 procedure AFileCloseExecute(Sender: TObject); 91 94 procedure AFileNewExecute(Sender: TObject); … … 93 96 procedure AFileSaveAsExecute(Sender: TObject); 94 97 procedure AFileSaveExecute(Sender: TObject); 95 procedure A ManualImportExecute(Sender: TObject);98 procedure AImportExecute(Sender: TObject); 96 99 procedure AProcessImportsExecute(Sender: TObject); 97 100 procedure ASettingsExecute(Sender: TObject); … … 150 153 151 154 uses 152 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, 155 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport, 153 156 UFormImportSources, UFormAbout, UFormImportFormats, UCore; 154 157 … … 199 202 begin 200 203 Close; 204 end; 205 206 procedure TFormMain.AExportExecute(Sender: TObject); 207 begin 208 FormExport.ShowModal; 201 209 end; 202 210 … … 270 278 end; 271 279 272 procedure TFormMain.A ManualImportExecute(Sender: TObject);280 procedure TFormMain.AImportExecute(Sender: TObject); 273 281 begin 274 282 FormImport.ShowModal; … … 421 429 case Column of 422 430 0: Result := CompareString(TAcronymMeaning(Item1).Acronym.Name, TAcronymMeaning(Item2).Acronym.Name); 423 1: Result := CompareString(TAcronymMeaning(Item1). Description, TAcronymMeaning(Item2).Description);431 1: Result := CompareString(TAcronymMeaning(Item1).Name, TAcronymMeaning(Item2).Name); 424 432 2: Result := CompareString(TAcronymMeaning(Item1).Categories.GetString, TAcronymMeaning(Item2).Categories.GetString); 425 433 end; … … 543 551 AFileSave.Enabled := Assigned(Core.AcronymDb) and Core.AcronymDb.Modified; 544 552 AFileSaveAs.Enabled := Assigned(Core.AcronymDb); 545 AManualImport.Enabled := Assigned(Core.AcronymDb); 553 AImport.Enabled := Assigned(Core.AcronymDb); 554 AExport.Enabled := Assigned(Core.AcronymDb); 546 555 AProcessImports.Enabled := Assigned(Core.AcronymDb); 547 556 AShowCategories.Enabled := Assigned(Core.AcronymDb);
Note:
See TracChangeset
for help on using the changeset viewer.