Changeset 34 for trunk/Forms
- Timestamp:
- Nov 25, 2021, 1:51:20 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.lfm
r32 r34 14 14 object ListView1: TListView 15 15 Left = 0 16 Height = 8 3716 Height = 810 17 17 Top = 0 18 18 Width = 1210 … … 58 58 Left = 0 59 59 Height = 39 60 Top = 8 6960 Top = 842 61 61 Width = 1210 62 62 Align = alBottom … … 83 83 Left = 0 84 84 Height = 32 85 Top = 8 3785 Top = 810 86 86 Width = 1210 87 87 OnChange = ListViewFilter1Change 88 88 Align = alBottom 89 end 90 object StatusBar1: TStatusBar 91 Left = 0 92 Height = 27 93 Top = 881 94 Width = 1210 95 Panels = < 96 item 97 Width = 50 98 end> 99 SimplePanel = False 89 100 end 90 101 object PopupMenuContact: TPopupMenu -
trunk/Forms/UFormContacts.pas
r32 r34 27 27 MenuItem4: TMenuItem; 28 28 PopupMenuContact: TPopupMenu; 29 StatusBar1: TStatusBar; 29 30 ToolBar1: TToolBar; 30 31 ToolButton1: TToolButton; … … 70 71 SRemoveContacts = 'Remove contacts'; 71 72 SRemoveContactsQuery = 'Do you want to remove selected contacts?'; 73 STotal = 'Total'; 74 SFiltered = 'Filtered'; 75 SSelected = 'Selected'; 72 76 73 77 { TFormContacts } … … 83 87 Item.SubItems.Add(Fields[cfTelCell]); 84 88 Item.SubItems.Add(Fields[cfTelHome]); 85 Item.Data := Contacts[Item.Index];89 Item.Data := ListViewSort1.List[Item.Index]; 86 90 end; 87 91 end; … … 101 105 begin 102 106 ReloadList; 107 UpdateInterface; 103 108 end; 104 109 … … 244 249 begin 245 250 ListView1.SelectAll; 251 UpdateInterface; 246 252 end; 247 253 … … 263 269 264 270 procedure TFormContacts.UpdateInterface; 271 var 272 Text: string; 273 SelectedCount: Integer; 265 274 begin 266 275 AAdd.Enabled := Assigned(Contacts); 267 276 AModify.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected); 268 277 ARemove.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected); 278 279 Text := ''; 280 if Assigned(Contacts) then begin 281 Text := STotal + ': ' + IntToStr(Contacts.Count); 282 if ListView1.Items.Count < Contacts.Count then 283 Text := Text + ', ' + SFiltered + ': ' + IntToStr(ListView1.Items.Count); 284 SelectedCount := ListView1.SelCount; 285 if SelectedCount > 0 then 286 Text := Text + ', ' + SSelected + ': ' + IntToStr(SelectedCount); 287 end; 288 StatusBar1.Panels[0].Text := Text; 269 289 end; 270 290 -
trunk/Forms/UFormMain.lfm
r21 r34 14 14 OnDestroy = FormDestroy 15 15 OnShow = FormShow 16 LCLVersion = '2.0. 0.4'16 LCLVersion = '2.0.12.0' 17 17 object CoolBar1: TCoolBar 18 18 Left = 0 … … 107 107 end 108 108 end 109 object StatusBar1: TStatusBar110 Left = 0111 Height = 28112 Top = 734113 Width = 1178114 Panels = <115 item116 Width = 300117 end>118 ParentFont = False119 SimplePanel = False120 end121 109 object MainMenu1: TMainMenu 122 110 Images = Core.ImageList1 123 left = 192124 top = 120111 Left = 192 112 Top = 120 125 113 object MenuItemFile: TMenuItem 126 114 Caption = 'File' … … 187 175 end 188 176 object PopupMenuOpenRecent: TPopupMenu 189 left = 420190 top = 120177 Left = 420 178 Top = 120 191 179 end 192 180 end -
trunk/Forms/UFormMain.pas
r21 r34 37 37 MenuItemFile: TMenuItem; 38 38 PopupMenuOpenRecent: TPopupMenu; 39 StatusBar1: TStatusBar;40 39 ToolBarOther: TToolBar; 41 40 ToolBarFile: TToolBar; … … 71 70 72 71 resourcestring 73 SCount = 'Count:';74 72 SModified = 'Modified'; 75 73 … … 153 151 UpdateFormTitle; 154 152 CoolBar1.Visible := MenuItemToolbar.Checked; 155 if Assigned(Core.DataFile) then156 StatusBar1.Panels[0].Text := SCount + ' ' + IntToStr(TcontactsFile(Core.DataFile).Contacts.Count)157 else StatusBar1.Panels[0].Text := '';158 153 end; 159 154
Note:
See TracChangeset
for help on using the changeset viewer.