Ignore:
Timestamp:
Jul 12, 2016, 5:56:39 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Load also acronym description.
  • Added: Interface icons.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r29 r30  
    5555    MenuItem22: TMenuItem;
    5656    MenuItem23: TMenuItem;
     57    MenuItem24: TMenuItem;
     58    MenuItemToolbar: TMenuItem;
    5759    MenuItem4: TMenuItem;
    5860    MenuItem5: TMenuItem;
     
    6567    MenuItem9: TMenuItem;
    6668    OpenDialog1: TOpenDialog;
     69    Panel1: TPanel;
    6770    PersistentForm1: TPersistentForm;
    6871    PopupMenuTryIcon: TPopupMenu;
    6972    SaveDialog1: TSaveDialog;
     73    ToolBar1: TToolBar;
     74    ToolButton1: TToolButton;
     75    ToolButton2: TToolButton;
     76    ToolButton3: TToolButton;
     77    ToolButton4: TToolButton;
     78    ToolButton5: TToolButton;
     79    ToolButton6: TToolButton;
     80    ToolButton7: TToolButton;
     81    ToolButton8: TToolButton;
    7082    TrayIcon1: TTrayIcon;
    7183    procedure AExitExecute(Sender: TObject);
     
    98110    function ListViewSort1CompareItem(Item1, Item2: TObject): Integer;
    99111    procedure ListViewSort1Filter(ListViewSort: TListViewSort);
     112    procedure MenuItemToolbarClick(Sender: TObject);
    100113    procedure TrayIcon1Click(Sender: TObject);
    101114  private
     
    387400  AcronymDb.AssignToList(ListViewSort1.List);
    388401  FilterList(ListViewSort1.List);
     402end;
     403
     404procedure TFormMain.MenuItemToolbarClick(Sender: TObject);
     405begin
     406  MenuItemToolbar.Checked := not MenuItemToolbar.Checked;
     407  UpdateInterface;
    389408end;
    390409
     
    484503  AShowAcronyms.Enabled := Assigned(AcronymDb);
    485504  AShowImportSources.Enabled := Assigned(AcronymDb);
     505  ToolBar1.Visible := MenuItemToolbar.Checked;
    486506
    487507  Title := Application.Title;
     
    506526    AlwaysOnTop := ReadBoolWithDefault('AlwaysOnTop', False);
    507527    CheckBoxExactMath.Checked := ReadBoolWithDefault('ExactMatch', False);
     528    MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True);
    508529  finally
    509530    Free;
     
    524545    WriteBool('AlwaysOnTop', AlwaysOnTop);
    525546    WriteBool('ExactMatch', CheckBoxExactMath.Checked);
     547    WriteBool('ToolBarVisible', MenuItemToolbar.Checked);
    526548  finally
    527549    Free;
Note: See TracChangeset for help on using the changeset viewer.