Changeset 146
- Timestamp:
- Jan 24, 2017, 4:34:36 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAcronyms.lfm
r123 r146 11 11 OnShow = FormShow 12 12 Position = poScreenCenter 13 LCLVersion = '1.6. 0.4'13 LCLVersion = '1.6.2.0' 14 14 object ListViewAcronyms: TListView 15 15 Left = 4 -
trunk/Forms/UFormAcronyms.pas
r123 r146 54 54 procedure UpdateAcronymsList; 55 55 public 56 FocusAcronym: TAcronymMeaning; 56 57 procedure UpdateInterface; 57 58 end; … … 110 111 111 112 procedure TFormAcronyms.FormShow(Sender: TObject); 113 var 114 I: Integer; 112 115 begin 113 116 Core.PersistentForm1.Load(Self); … … 115 118 UpdateAcronymsList; 116 119 Core.ScaleDPI1.ScaleControl(ToolBar1, Core.ScaleDPI1.DesignDPI); 120 121 // Focus line with acronym 122 if Assigned(FocusAcronym) then begin 123 I := 0; 124 while (I < ListViewAcronyms.Items.Count) and (ListViewAcronyms.Items[I].Data <> FocusAcronym) do Inc(I); 125 if I < ListViewAcronyms.Items.Count then begin 126 ListViewAcronyms.ItemIndex := I; 127 ListViewAcronyms.Selected.Focused := True; 128 end; 129 if ListViewAcronyms.Selected <> nil then 130 ListViewAcronyms.Selected.MakeVisible(False); 131 end; 117 132 end; 118 133 … … 235 250 I: Integer; 236 251 begin 252 FocusAcronym := nil; 253 MeaningCount := 0; 237 254 Core.CoolTranslator1.TranslateComponentRecursive(Self); 238 255 for I := 0 to ToolBar1.ButtonCount - 1 do -
trunk/Forms/UFormMain.lfm
r144 r146 53 53 end> 54 54 OwnerData = True 55 PopupMenu = PopupMenuFilter 55 56 ReadOnly = True 56 57 RowSelect = True … … 377 378 OnExecute = AFilterSameLetterCaseExecute 378 379 end 380 object AManageAcronym: TAction 381 Caption = 'Manage acronym' 382 OnExecute = AManageAcronymExecute 383 end 379 384 end 380 385 object MainMenu1: TMainMenu … … 954 959 top = 280 955 960 end 961 object PopupMenuFilter: TPopupMenu 962 left = 276 963 top = 145 964 object MenuItem1: TMenuItem 965 Action = AManageAcronym 966 end 967 end 956 968 end -
trunk/Forms/UFormMain.lrt
r144 r146 22 22 TFORMMAIN.AFILTERSAMELENGTH.CAPTION=Same length 23 23 TFORMMAIN.AFILTERSAMELETTERCASE.CAPTION=Same letter case 24 TFORMMAIN.AMANAGEACRONYM.CAPTION=Manage acronym 24 25 TFORMMAIN.MENUITEM8.CAPTION=File 25 26 TFORMMAIN.MENUITEMOPENRECENT.CAPTION=Open recent -
trunk/Forms/UFormMain.pas
r145 r146 16 16 17 17 TFormMain = class(TForm) 18 AManageAcronym: TAction; 18 19 AFilterSameLetterCase: TAction; 19 20 AFilterSameLength: TAction; … … 44 45 ListViewSort1: TListViewSort; 45 46 MainMenu1: TMainMenu; 47 MenuItem1: TMenuItem; 46 48 MenuItemParam: TMenuItem; 47 49 MenuItem10: TMenuItem; … … 71 73 PanelParam: TPanel; 72 74 PanelMain: TPanel; 75 PopupMenuFilter: TPopupMenu; 73 76 PopupMenuOpenRecent: TPopupMenu; 74 77 SaveDialog1: TSaveDialog; … … 100 103 procedure AHideExecute(Sender: TObject); 101 104 procedure AImportExecute(Sender: TObject); 105 procedure AManageAcronymExecute(Sender: TObject); 102 106 procedure AProcessImportsExecute(Sender: TObject); 103 107 procedure ASettingsExecute(Sender: TObject); … … 320 324 end; 321 325 326 procedure TFormMain.AManageAcronymExecute(Sender: TObject); 327 begin 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; 338 end; 339 322 340 procedure TFormMain.AProcessImportsExecute(Sender: TObject); 323 341 begin -
trunk/Languages/AcronymDecoder.cs.po
r145 r146 566 566 msgstr "Import" 567 567 568 #: tformmain.amanageacronym.caption 569 msgid "Manage acronym" 570 msgstr "Spravovat zkratku" 571 568 572 #: tformmain.aprocessimports.caption 569 573 msgid "Process imports" -
trunk/Languages/AcronymDecoder.po
r145 r146 556 556 msgstr "" 557 557 558 #: tformmain.amanageacronym.caption 559 msgid "Manage acronym" 560 msgstr "" 561 558 562 #: tformmain.aprocessimports.caption 559 563 msgid "Process imports"
Note:
See TracChangeset
for help on using the changeset viewer.