Ignore:
Timestamp:
Jan 24, 2017, 4:34:36 PM (8 years ago)
Author:
chronos
Message:
  • Added: A context menu from main acronym filter list to show selected acronym in Acronyms window for its further management.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r145 r146  
    1616
    1717  TFormMain = class(TForm)
     18    AManageAcronym: TAction;
    1819    AFilterSameLetterCase: TAction;
    1920    AFilterSameLength: TAction;
     
    4445    ListViewSort1: TListViewSort;
    4546    MainMenu1: TMainMenu;
     47    MenuItem1: TMenuItem;
    4648    MenuItemParam: TMenuItem;
    4749    MenuItem10: TMenuItem;
     
    7173    PanelParam: TPanel;
    7274    PanelMain: TPanel;
     75    PopupMenuFilter: TPopupMenu;
    7376    PopupMenuOpenRecent: TPopupMenu;
    7477    SaveDialog1: TSaveDialog;
     
    100103    procedure AHideExecute(Sender: TObject);
    101104    procedure AImportExecute(Sender: TObject);
     105    procedure AManageAcronymExecute(Sender: TObject);
    102106    procedure AProcessImportsExecute(Sender: TObject);
    103107    procedure ASettingsExecute(Sender: TObject);
     
    320324end;
    321325
     326procedure TFormMain.AManageAcronymExecute(Sender: TObject);
     327begin
     328  FormAcronyms := TFormAcronyms.Create(Self);
     329  try
     330    if Assigned(ListViewAcronyms.Selected) then
     331      FormAcronyms.FocusAcronym := ListViewAcronyms.Selected.Data;
     332    FormAcronyms.ShowModal;
     333    UpdateAcronymsList;
     334    UpdateInterface;
     335  finally
     336    FreeAndNil(FormAcronyms);
     337  end;
     338end;
     339
    322340procedure TFormMain.AProcessImportsExecute(Sender: TObject);
    323341begin
Note: See TracChangeset for help on using the changeset viewer.