Ignore:
Timestamp:
Jul 4, 2018, 2:05:48 PM (6 years ago)
Author:
chronos
Message:
  • Added: New menu action Tools - Document check which shows a form for checking acronyms in text documents.
  • Added: Remember dimensions of Import, Export and Settings forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r180 r184  
    1616
    1717  TFormMain = class(TForm)
     18    ADocumentCheck: TAction;
    1819    AFilterEnabledCategories: TAction;
    1920    AManageAcronym: TAction;
     
    4849    MainMenu1: TMainMenu;
    4950    MenuItem1: TMenuItem;
     51    MenuItem2: TMenuItem;
     52    MenuItem3: TMenuItem;
    5053    MenuItemShowItemsWithoutFilter: TMenuItem;
    5154    MenuItemStatusBar: TMenuItem;
     
    98101    ToolButton8: TToolButton;
    99102    ToolButton9: TToolButton;
     103    procedure ADocumentCheckExecute(Sender: TObject);
    100104    procedure AExitExecute(Sender: TObject);
    101105    procedure AExportExecute(Sender: TObject);
     
    175179uses
    176180  UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport,
    177   UFormImportSources, UFormAbout, UFormImportFormats, UCore;
     181  UFormImportSources, UFormAbout, UFormImportFormats, UCore, UFormCheck;
    178182
    179183resourcestring
     
    240244begin
    241245  Close;
     246end;
     247
     248procedure TFormMain.ADocumentCheckExecute(Sender: TObject);
     249begin
     250  FormCheck := TFormCheck.Create(Self);
     251  try
     252    FormCheck.LoadConfig;
     253    FormCheck.ShowModal;
     254    FormCheck.SaveConfig;
     255  finally
     256    FreeAndNil(FormCheck);
     257  end;
    242258end;
    243259
     
    365381    if Assigned(ListViewAcronyms.Selected) then
    366382      FormAcronyms.FocusAcronym := ListViewAcronyms.Selected.Data;
     383    FormAcronyms.Acronyms := Core.AcronymDb.Acronyms;
    367384    FormAcronyms.ShowModal;
    368385    UpdateAcronymsList;
     
    429446  FormAcronyms := TFormAcronyms.Create(Self);
    430447  try
     448    FormAcronyms.Acronyms := Core.AcronymDb.Acronyms;
    431449    FormAcronyms.ShowModal;
    432450    UpdateAcronymsList;
Note: See TracChangeset for help on using the changeset viewer.