MCPcopy Create free account
hub / github.com/amule-project/amule / ShowFilesCount

Method ShowFilesCount

src/SharedFilesCtrl.cpp:489–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487
488
489void CSharedFilesCtrl::ShowFilesCount()
490{
491 wxStaticText* label = CastByName( "sharedFilesLabel", GetParent(), wxStaticText );
492
493 label->SetLabel(CFormat(_("Shared Files (%i)")) % GetItemCount());
494 label->GetParent()->Layout();
495 // If file list was updated, the "selection" is involved too, if we chose to show clients for all files.
496 // So update client list here too.
497 theApp->amuledlg->m_sharedfileswnd->SelectionUpdated();
498}
499
500
501void CSharedFilesCtrl::OnDrawItem( int item, wxDC* dc, const wxRect& rect, const wxRect& rectHL, bool highlighted )

Callers 1

RemoveAllSharedFilesMethod · 0.45

Calls 3

CFormatClass · 0.85
GetParentMethod · 0.80
SelectionUpdatedMethod · 0.80

Tested by

no test coverage detected