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();
}
Exemplo n.º 3
0
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();
}
Exemplo n.º 4
0
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();
}
Exemplo n.º 5
0
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();
}
Exemplo n.º 7
0
/**
 * Setter for showOnlyPlayer variable
 * Triggers filtering updating
 */
void NickListCtrl::UserFilterShowPlayersOnly(bool showOnlyPlayers)
{
	m_userFilterShowPlayersOnly = showOnlyPlayers;
	DoUsersFilter();
}
Exemplo n.º 8
0
void NickListCtrl::SetUsersFilterString(const wxString& fs)
{
	m_UsersFilterString = fs.Lower();
	DoUsersFilter();
}