Changeset 208 for trunk/Forms
- Timestamp:
- Sep 20, 2021, 11:36:06 AM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImport.lfm
r203 r208 1 1 object FormImport: TFormImport 2 2 Left = 575 3 Height = 5073 Height = 608 4 4 Top = 256 5 Width = 6525 Width = 782 6 6 Caption = 'Import' 7 ClientHeight = 5078 ClientWidth = 6529 DesignTimePPI = 1 207 ClientHeight = 608 8 ClientWidth = 782 9 DesignTimePPI = 144 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 13 Position = poScreenCenter 14 LCLVersion = '2.0. 2.0'14 LCLVersion = '2.0.12.0' 15 15 object ButtonProcess: TButton 16 Left = 1 617 Height = 2518 Top = 819 Width = 1 0716 Left = 19 17 Height = 30 18 Top = 10 19 Width = 128 20 20 Caption = 'Process' 21 21 OnClick = ButtonProcessClick 22 ParentFont = False 22 23 TabOrder = 0 23 24 end 24 25 object Memo1: TMemo 25 Left = 826 Height = 45827 Top = 4 028 Width = 63826 Left = 10 27 Height = 549 28 Top = 48 29 Width = 765 29 30 Anchors = [akTop, akLeft, akRight, akBottom] 31 ParentFont = False 30 32 ScrollBars = ssAutoBoth 31 33 TabOrder = 3 32 34 end 33 35 object ComboBoxDataFormat: TComboBox 34 Left = 26435 Height = 2836 Top = 537 Width = 1 4038 ItemHeight = 2036 Left = 317 37 Height = 38 38 Top = 6 39 Width = 168 40 ItemHeight = 0 39 41 ItemIndex = 0 40 42 Items.Strings = ( … … 42 44 'MediaWiki' 43 45 ) 46 ParentFont = False 44 47 Style = csDropDownList 45 48 TabOrder = 1 … … 47 50 end 48 51 object Label1: TLabel 49 Left = 1 5350 Height = 2 051 Top = 952 Width = 8452 Left = 184 53 Height = 24 54 Top = 11 55 Width = 106 53 56 Caption = 'Data format:' 54 57 ParentColor = False 58 ParentFont = False 55 59 end 56 60 object ButtonLoadFromFile: TButton 57 Left = 50458 Height = 2559 Top = 860 Width = 1 3961 Left = 604 62 Height = 30 63 Top = 10 64 Width = 167 61 65 Anchors = [akTop, akRight] 62 66 Caption = 'Load from file' 63 67 OnClick = ButtonLoadFromFileClick 68 ParentFont = False 64 69 TabOrder = 2 65 70 end 66 71 object OpenDialog1: TOpenDialog 67 left = 33168 top = 18772 Left = 397 73 Top = 224 69 74 end 70 75 end -
trunk/Forms/UFormImport.pas
r207 r208 88 88 Meaning: TAcronymMeaning; 89 89 begin 90 AcronymName := ''; 90 91 AddedCount := 0; 91 92 for I := 0 to Memo1.Lines.Count - 1 do begin -
trunk/Forms/UFormMain.lfm
r207 r208 1 1 object FormMain: TFormMain 2 Left = 3953 Height = 7 224 Top = 2615 Width = 1 0162 Left = 417 3 Height = 747 4 Top = 453 5 Width = 1106 6 6 Caption = 'Acronym Decoder' 7 ClientHeight = 6888 ClientWidth = 1 0167 ClientHeight = 713 8 ClientWidth = 1106 9 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 … … 19 19 object PanelMain: TPanel 20 20 Left = 0 21 Height = 58021 Height = 605 22 22 Top = 81 23 Width = 1 01623 Width = 1106 24 24 Align = alClient 25 25 BevelOuter = bvNone 26 ClientHeight = 58027 ClientWidth = 1 01626 ClientHeight = 605 27 ClientWidth = 1106 28 28 ParentFont = False 29 29 TabOrder = 0 … … 32 32 Height = 46 33 33 Top = 5 34 Width = 10 0534 Width = 1095 35 35 OnChange = ListViewFilter1Change 36 36 Anchors = [akTop, akLeft, akRight] … … 38 38 object ListViewAcronyms: TListView 39 39 Left = 5 40 Height = 5 2440 Height = 549 41 41 Top = 50 42 Width = 10 0542 Width = 1095 43 43 Anchors = [akTop, akLeft, akRight, akBottom] 44 44 Columns = < … … 71 71 Height = 38 72 72 Top = 43 73 Width = 1 01673 Width = 1106 74 74 Align = alTop 75 75 BevelOuter = bvNone 76 76 ClientHeight = 38 77 ClientWidth = 1 01677 ClientWidth = 1106 78 78 ParentFont = False 79 79 TabOrder = 1 80 80 object CheckBoxExactLength: TCheckBox 81 Left = 1282 Height = 3 083 Top = 581 Left = 8 82 Height = 38 83 Top = 0 84 84 Width = 132 85 85 Action = AFilterSameLength 86 Align = alLeft 87 BorderSpacing.Left = 8 86 88 ParentFont = False 87 89 TabOrder = 0 88 90 end 89 91 object CheckBoxCaseSensitive: TCheckBox 90 Left = 24091 Height = 3 092 Top = 592 Left = 156 93 Height = 38 94 Top = 0 93 95 Width = 165 94 96 Action = AFilterSameLetterCase 97 Align = alLeft 98 BorderSpacing.Left = 16 95 99 ParentFont = False 96 100 TabOrder = 1 97 101 end 98 102 object CheckBoxEnabledCategories: TCheckBox 99 Left = 540100 Height = 3 0101 Top = 5103 Left = 337 104 Height = 38 105 Top = 0 102 106 Width = 187 103 107 Action = AFilterEnabledCategories 108 Align = alLeft 109 BorderSpacing.Left = 16 104 110 ParentFont = False 105 111 TabOrder = 2 112 end 113 object CheckBoxShowItemsWithoutFilter: TCheckBox 114 Left = 540 115 Height = 38 116 Top = 0 117 Width = 237 118 Action = AFilterShowItemsWithoutFilter 119 Align = alLeft 120 BorderSpacing.Left = 16 121 ParentFont = False 122 TabOrder = 3 106 123 end 107 124 end … … 110 127 Height = 43 111 128 Top = 0 112 Width = 1 016129 Width = 1106 113 130 AutoSize = True 114 131 Bands = < … … 301 318 Left = 0 302 319 Height = 27 303 Top = 6 61304 Width = 1 016320 Top = 686 321 Width = 1106 305 322 Panels = < 306 323 item … … 426 443 OnExecute = AFilterEnabledCategoriesExecute 427 444 end 445 object AFilterShowItemsWithoutFilter: TAction 446 AutoCheck = True 447 Caption = 'Show items without filter' 448 OnExecute = AFilterShowItemsWithoutFilterExecute 449 end 428 450 object AManageAcronym: TAction 429 451 Caption = 'Manage acronym' … … 438 460 object MainMenu1: TMainMenu 439 461 Images = Core.ImageList1 440 Left = 7 08462 Left = 712 441 463 Top = 204 442 464 object MenuItem8: TMenuItem … … 558 580 end 559 581 object PopupMenuFilter: TPopupMenu 560 Left = 41 4582 Left = 416 561 583 Top = 217 562 584 object MenuItem1: TMenuItem 563 585 Action = AManageAcronym 564 586 end 587 object N1: TMenuItem 588 Caption = '-' 589 end 590 object MenuItem26: TMenuItem 591 Action = AFilterSameLength 592 AutoCheck = True 593 end 594 object MenuItem27: TMenuItem 595 Action = AFilterSameLetterCase 596 AutoCheck = True 597 end 598 object MenuItem19: TMenuItem 599 Action = AFilterEnabledCategories 600 AutoCheck = True 601 end 565 602 object MenuItemShowItemsWithoutFilter: TMenuItem 566 Caption = 'Show items without filter'567 OnClick = MenuItemShowItemsWithoutFilterClick603 Action = AFilterShowItemsWithoutFilter 604 AutoCheck = True 568 605 end 569 606 end -
trunk/Forms/UFormMain.lrj
r207 r208 24 24 {"hash":187812613,"name":"tformmain.afiltersamelettercase.caption","sourcebytes":[83,97,109,101,32,108,101,116,116,101,114,32,99,97,115,101],"value":"Same letter case"}, 25 25 {"hash":75787843,"name":"tformmain.afilterenabledcategories.caption","sourcebytes":[69,110,97,98,108,101,100,32,99,97,116,101,103,111,114,105,101,115],"value":"Enabled categories"}, 26 {"hash":87266866,"name":"tformmain.afiltershowitemswithoutfilter.caption","sourcebytes":[83,104,111,119,32,105,116,101,109,115,32,119,105,116,104,111,117,116,32,102,105,108,116,101,114],"value":"Show items without filter"}, 26 27 {"hash":267425709,"name":"tformmain.amanageacronym.caption","sourcebytes":[77,97,110,97,103,101,32,97,99,114,111,110,121,109],"value":"Manage acronym"}, 27 28 {"hash":63286139,"name":"tformmain.adocumentcheck.caption","sourcebytes":[68,111,99,117,109,101,110,116,32,99,104,101,99,107],"value":"Document check"}, … … 33 34 {"hash":197181954,"name":"tformmain.menuitemstatusbar.caption","sourcebytes":[83,116,97,116,117,115,32,98,97,114],"value":"Status bar"}, 34 35 {"hash":5989939,"name":"tformmain.menuitem16.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"}, 35 {"hash":322608,"name":"tformmain.menuitem5.caption","sourcebytes":[72,101,108,112],"value":"Help"}, 36 {"hash":87266866,"name":"tformmain.menuitemshowitemswithoutfilter.caption","sourcebytes":[83,104,111,119,32,105,116,101,109,115,32,119,105,116,104,111,117,116,32,102,105,108,116,101,114],"value":"Show items without filter"} 36 {"hash":322608,"name":"tformmain.menuitem5.caption","sourcebytes":[72,101,108,112],"value":"Help"} 37 37 ]} -
trunk/Forms/UFormMain.pas
r207 r208 17 17 TFormMain = class(TForm) 18 18 AboutDialog1: TAboutDialog; 19 AFilterShowItemsWithoutFilter: TAction; 19 20 ADocumentCheck: TAction; 20 21 AFilterEnabledCategories: TAction; … … 41 42 ActionList1: TActionList; 42 43 CheckBoxEnabledCategories: TCheckBox; 44 CheckBoxShowItemsWithoutFilter: TCheckBox; 43 45 CheckBoxExactLength: TCheckBox; 44 46 CheckBoxCaseSensitive: TCheckBox; … … 50 52 MainMenu1: TMainMenu; 51 53 MenuItem1: TMenuItem; 54 MenuItem19: TMenuItem; 52 55 MenuItem2: TMenuItem; 56 MenuItem26: TMenuItem; 57 MenuItem27: TMenuItem; 58 N1: TMenuItem; 53 59 MenuItem3: TMenuItem; 54 60 MenuItemShowItemsWithoutFilter: TMenuItem; … … 113 119 procedure AFilterSameLetterCaseExecute(Sender: TObject); 114 120 procedure AFilterSameLengthExecute(Sender: TObject); 121 procedure AFilterShowItemsWithoutFilterExecute(Sender: TObject); 115 122 procedure AHideExecute(Sender: TObject); 116 123 procedure AImportExecute(Sender: TObject); … … 142 149 procedure ListViewSort1Filter(ListViewSort: TListViewSort); 143 150 procedure MenuItemParamClick(Sender: TObject); 144 procedure MenuItemShowItemsWithoutFilterClick(Sender: TObject);145 151 procedure MenuItemStatusBarClick(Sender: TObject); 146 152 procedure MenuItemToolbarClick(Sender: TObject); … … 181 187 uses 182 188 UFormImport, UFormSettings, UFormCategories, UFormAcronyms, UFormExport, 183 UFormImportSources, UForm About, UFormImportFormats, UCore, UFormCheck;189 UFormImportSources, UFormImportFormats, UCore, UFormCheck; 184 190 185 191 resourcestring … … 365 371 end; 366 372 373 procedure TFormMain.AFilterShowItemsWithoutFilterExecute(Sender: TObject); 374 begin 375 UpdateAcronymsList; 376 end; 377 367 378 procedure TFormMain.AHideExecute(Sender: TObject); 368 379 begin … … 586 597 end; 587 598 588 procedure TFormMain.MenuItemShowItemsWithoutFilterClick(Sender: TObject);589 begin590 MenuItemShowItemsWithoutFilter.Checked :=591 not MenuItemShowItemsWithoutFilter.Checked;592 UpdateAcronymsList;593 UpdateInterface;594 end;595 596 599 procedure TFormMain.MenuItemStatusBarClick(Sender: TObject); 597 600 begin … … 662 665 with ListViewFilter1 do 663 666 if Visible and ((EnteredCount > 0) or ((EnteredCount = 0) and 664 ( MenuItemShowItemsWithoutFilter.Checked))) then begin667 (AFilterShowItemsWithoutFilter.Checked))) then begin 665 668 FoundCount := 0; 666 669 if TextEnteredColumn(0) and (FilterCell(StringGrid.Cells[0, 0], … … 768 771 MenuItemStatusBar.Checked := ReadBoolWithDefault('StatusBarVisible', True); 769 772 MenuItemParam.Checked := ReadBoolWithDefault('FilterParamVisible', True); 770 MenuItemShowItemsWithoutFilter.Checked :=771 ReadBoolWithDefault('ShowItemsWithoutFilter', False);773 AFilterShowItemsWithoutFilter.Checked := 774 ReadBoolWithDefault('ShowItemsWithoutFilter', True); 772 775 finally 773 776 Free; … … 799 802 WriteBool('StatusBarVisible', MenuItemStatusBar.Checked); 800 803 WriteBool('FilterParamVisible', MenuItemParam.Checked); 801 WriteBool('ShowItemsWithoutFilter', MenuItemShowItemsWithoutFilter.Checked);804 WriteBool('ShowItemsWithoutFilter', AFilterShowItemsWithoutFilter.Checked); 802 805 finally 803 806 Free;
Note:
See TracChangeset
for help on using the changeset viewer.