Changeset 152
- Timestamp:
- Oct 16, 2017, 3:05:22 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r151 r152 1 1 object FormMain: TFormMain 2 2 Left = 495 3 Height = 4 474 Top = 4245 Width = 7 823 Height = 482 4 Top = 389 5 Width = 798 6 6 Caption = 'Acronym Decoder' 7 ClientHeight = 4 228 ClientWidth = 7 827 ClientHeight = 457 8 ClientWidth = 798 9 9 Menu = MainMenu1 10 10 OnClose = FormClose … … 17 17 object PanelMain: TPanel 18 18 Left = 0 19 Height = 3 6019 Height = 395 20 20 Top = 62 21 Width = 7 8221 Width = 798 22 22 Align = alClient 23 23 BevelOuter = bvNone 24 ClientHeight = 3 6025 ClientWidth = 7 8224 ClientHeight = 395 25 ClientWidth = 798 26 26 TabOrder = 0 27 object ListViewFilter1: TListViewFilter 28 Left = 8 29 Height = 30 30 Top = 5 31 Width = 767 32 OnChange = ListViewFilter1Change 33 Anchors = [akTop, akLeft, akRight] 34 end 35 object ListViewAcronyms: TListView 36 Left = 8 37 Height = 318 38 Top = 35 39 Width = 767 40 Anchors = [akTop, akLeft, akRight, akBottom] 41 Columns = < 27 object StatusBar1: TStatusBar 28 Left = 0 29 Height = 28 30 Top = 367 31 Width = 798 32 Panels = < 42 33 item 43 Caption = 'Name' 44 Width = 100 34 Width = 200 45 35 end 46 36 item 47 Caption = 'Meaning' 48 Width = 300 49 end 50 item 51 Caption = 'Categories' 52 Width = 347 37 Width = 200 53 38 end> 54 OwnerData = True 55 PopupMenu = PopupMenuFilter 56 ReadOnly = True 57 RowSelect = True 58 TabOrder = 1 59 ViewStyle = vsReport 60 OnData = ListViewAcronymsData 61 OnResize = ListViewAcronymsResize 62 OnSelectItem = ListViewAcronymsSelectItem 39 SimplePanel = False 40 end 41 object Panel1: TPanel 42 Left = 0 43 Height = 367 44 Top = 0 45 Width = 798 46 Align = alClient 47 BevelOuter = bvNone 48 TabOrder = 3 49 object ListViewFilter1: TListViewFilter 50 Left = 8 51 Height = 30 52 Top = 5 53 Width = 783 54 OnChange = ListViewFilter1Change 55 Anchors = [akTop, akLeft, akRight] 56 end 57 object ListViewAcronyms: TListView 58 Left = 8 59 Height = 326 60 Top = 35 61 Width = 784 62 Anchors = [akTop, akLeft, akRight, akBottom] 63 Columns = < 64 item 65 Caption = 'Name' 66 Width = 100 67 end 68 item 69 Caption = 'Meaning' 70 Width = 300 71 end 72 item 73 Caption = 'Categories' 74 Width = 347 75 end> 76 OwnerData = True 77 PopupMenu = PopupMenuFilter 78 ReadOnly = True 79 RowSelect = True 80 TabOrder = 1 81 ViewStyle = vsReport 82 OnData = ListViewAcronymsData 83 OnResize = ListViewAcronymsResize 84 OnSelectItem = ListViewAcronymsSelectItem 85 end 63 86 end 64 87 end … … 67 90 Height = 30 68 91 Top = 32 69 Width = 7 8292 Width = 798 70 93 Align = alTop 71 94 BevelOuter = bvNone 72 95 ClientHeight = 30 73 ClientWidth = 7 8296 ClientWidth = 798 74 97 TabOrder = 1 75 98 object CheckBoxExactLength: TCheckBox … … 102 125 Height = 32 103 126 Top = 0 104 Width = 7 82127 Width = 798 105 128 AutoSize = True 106 129 Bands = < … … 819 842 OnClick = MenuItemParamClick 820 843 end 844 object MenuItemStatusBar: TMenuItem 845 Caption = 'Status bar' 846 OnClick = MenuItemStatusBarClick 847 end 821 848 end 822 849 object MenuItem16: TMenuItem -
trunk/Forms/UFormMain.lrt
r149 r152 31 31 TFORMMAIN.MENUITEMTOOLBAR.CAPTION=Toolbar 32 32 TFORMMAIN.MENUITEMPARAM.CAPTION=Filter parameters 33 TFORMMAIN.MENUITEMSTATUSBAR.CAPTION=Status bar 33 34 TFORMMAIN.MENUITEM16.CAPTION=Tools 34 35 TFORMMAIN.MENUITEM5.CAPTION=Help -
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 -
trunk/Languages/AcronymDecoder.cs.po
r151 r152 666 666 msgstr "Parametry filtru" 667 667 668 #: tformmain.menuitemstatusbar.caption 669 msgid "Status bar" 670 msgstr "Stavová lišta" 671 668 672 #: tformmain.menuitemtoolbar.caption 669 673 msgid "Toolbar" -
trunk/Languages/AcronymDecoder.po
r151 r152 656 656 msgstr "" 657 657 658 #: tformmain.menuitemstatusbar.caption 659 msgid "Status bar" 660 msgstr "" 661 658 662 #: tformmain.menuitemtoolbar.caption 659 663 msgid "Toolbar" -
trunk/UAcronym.pas
r148 r152 235 235 procedure SaveToFileCSV(FileName: string); 236 236 procedure FilterList(AName: string; Items: TAcronymMeanings); 237 function GetMeaningsCount: Integer; 237 238 function AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning; 238 239 procedure RemoveMeaning(Meaning: TAcronymMeaning); … … 1650 1651 end; 1651 1652 1653 function TAcronymDb.GetMeaningsCount: Integer; 1654 var 1655 I: Integer; 1656 begin 1657 Result := 0; 1658 for I := 0 to Acronyms.Count - 1 do 1659 Result := Result + TAcronym(Acronyms[I]).Meanings.Count; 1660 end; 1661 1652 1662 function TAcronymDb.AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning; 1653 1663 var
Note:
See TracChangeset
for help on using the changeset viewer.