Changeset 152 for trunk/Forms/UFormMain.pas
- Timestamp:
- Oct 16, 2017, 3:05:22 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r151 r152 48 48 MainMenu1: TMainMenu; 49 49 MenuItem1: TMenuItem; 50 MenuItemStatusBar: TMenuItem; 50 51 MenuItemParam: TMenuItem; 51 52 MenuItem10: TMenuItem; … … 73 74 MenuItem9: TMenuItem; 74 75 OpenDialog1: TOpenDialog; 76 Panel1: TPanel; 75 77 PanelParam: TPanel; 76 78 PanelMain: TPanel; … … 78 80 PopupMenuOpenRecent: TPopupMenu; 79 81 SaveDialog1: TSaveDialog; 82 StatusBar1: TStatusBar; 80 83 ToolBar1: TToolBar; 81 84 ToolBar2: TToolBar; … … 133 136 procedure ListViewSort1Filter(ListViewSort: TListViewSort); 134 137 procedure MenuItemParamClick(Sender: TObject); 138 procedure MenuItemStatusBarClick(Sender: TObject); 135 139 procedure MenuItemToolbarClick(Sender: TObject); 136 140 private … … 535 539 begin 536 540 MenuItemParam.Checked := not MenuItemParam.Checked; 541 UpdateInterface; 542 end; 543 544 procedure TFormMain.MenuItemStatusBarClick(Sender: TObject); 545 begin 546 MenuItemStatusBar.Checked := not MenuItemStatusBar.Checked; 537 547 UpdateInterface; 538 548 end; … … 660 670 AHide.Enabled := FormMain.Visible; 661 671 AManageAcronym.Enabled := Assigned(ListViewAcronyms.Selected); 672 StatusBar1.Visible := MenuItemStatusBar.Checked; 662 673 663 674 Title := ''; … … 670 681 Application.Title := Title; 671 682 Caption := Title; 683 if Assigned(Core.AcronymDb) then begin 684 StatusBar1.Panels[0].Text := 'Acronyms count: ' + 685 IntToStr(Core.AcronymDb.Acronyms.Count); 686 StatusBar1.Panels[1].Text := 'Meanings count: ' + 687 IntToStr(Core.AcronymDb.GetMeaningsCount); 688 end else begin 689 StatusBar1.Panels[0].Text := ''; 690 StatusBar1.Panels[1].Text := ''; 691 end; 672 692 end; 673 693 … … 693 713 AFilterEnabledCategories.Checked := ReadBoolWithDefault('EnabledCategories', False); 694 714 MenuItemToolbar.Checked := ReadBoolWithDefault('ToolBarVisible', True); 715 MenuItemStatusBar.Checked := ReadBoolWithDefault('StatuslBarVisible', True); 695 716 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); 696 717 finally … … 721 742 WriteBool('EnabledCategories', AFilterEnabledCategories.Checked); 722 743 WriteBool('ToolBarVisible', MenuItemToolbar.Checked); 744 WriteBool('StatusBarVisible', MenuItemStatusBar.Checked); 723 745 WriteBool('FilterParamVisible', MenuItemParam.Checked); 724 746 finally
Note:
See TracChangeset
for help on using the changeset viewer.