void NickDataViewCtrl::UserUpdated(const User& user) { if (ContainsItem(user)) { RefreshItem(user); } DoUsersFilter(); }
void NickDataViewCtrl::AddUser(const User& user) { if (!AddRealUser(user)) { //User already added to widget return; } DoUsersFilter(); }
void NickListCtrl::SetUsers(const UserList::user_map_t& userlist) { ClearUsers(); for (const auto item : userlist) { m_real_users_list[item.second->GetNick()] = item.second; } DoUsersFilter(); Sort(); Update(); }
void NickListCtrl::AddUser(const User& user) { const auto it = m_real_users_list.find(user.GetNick()); if (it != m_real_users_list.end()) { wxLogWarning(_T( "User already in list." )); return; } m_real_users_list[user.GetNick()] = &user; DoUsersFilter(); }
void NickListCtrl::UserUpdated(const User& user) { const auto it = m_real_users_list.find(user.GetNick()); if (it == m_real_users_list.end()) { wxLogWarning(_T( "NickListCtrl::UserUpdated error, index == -1 ." )); return; } it->second = &user; DoUsersFilter(); }
void NickDataViewCtrl::SetUsers(const UserList::user_map_t& userlist) { ClearUsers(); for (const auto item : userlist) { AddRealUser(*item.second); } DoUsersFilter(); }
/** * Setter for showOnlyPlayer variable * Triggers filtering updating */ void NickListCtrl::UserFilterShowPlayersOnly(bool showOnlyPlayers) { m_userFilterShowPlayersOnly = showOnlyPlayers; DoUsersFilter(); }
void NickListCtrl::SetUsersFilterString(const wxString& fs) { m_UsersFilterString = fs.Lower(); DoUsersFilter(); }