void BattleListFilter::SaveFilterValues() { BattleListFilterValues filtervalues; filtervalues.description = m_filter_description_edit->GetValue(); filtervalues.host = m_filter_host_edit->GetValue(); filtervalues.map = m_filter_map_edit->GetValue(); filtervalues.map_show = m_filter_map_show->GetValue(); filtervalues.map = m_filter_map_edit->GetValue(); filtervalues.maxplayer = wxString::Format(_("%d"), m_filter_maxplayer_choice->GetSelection()); filtervalues.maxplayer_mode = _GetButtonSign(m_filter_maxplayer_mode); filtervalues.mod = m_filter_mod_edit->GetValue(); filtervalues.mod_show = m_filter_mod_show->GetValue(); filtervalues.player_mode = _GetButtonSign(m_filter_player_mode); filtervalues.player_num = wxString::Format(_("%d"), m_filter_player_choice->GetSelection()); filtervalues.rank = wxString::Format(_("%d"), m_filter_rank_choice->GetSelection()); filtervalues.rank_mode = _GetButtonSign(m_filter_rank_mode); filtervalues.spectator = wxString::Format(_("%d"), m_filter_spectator_choice->GetSelection()); filtervalues.spectator_mode = _GetButtonSign(m_filter_spectator_mode); filtervalues.status_full = m_filter_status_full->IsChecked(); filtervalues.status_locked = m_filter_status_locked->IsChecked(); filtervalues.status_open = m_filter_status_open->IsChecked(); filtervalues.status_passworded = m_filter_status_pass->IsChecked(); filtervalues.status_start = m_filter_status_start->IsChecked(); filtervalues.highlighted_only = m_filter_highlighted->IsChecked(); SetBattleFilterValues(filtervalues); }
void PlaybackListFilter::SaveFilterValues() { PlaybackListFilterValues filtervalues; filtervalues.duration = m_filter_duration_edit->GetValue(); filtervalues.map = m_filter_map_edit->GetValue(); filtervalues.map_show = m_filter_map_show->GetValue(); filtervalues.map = m_filter_map_edit->GetValue(); filtervalues.mod = m_filter_mod_edit->GetValue(); filtervalues.mod_show = m_filter_mod_show->GetValue(); filtervalues.player_mode = _GetButtonSign(m_filter_player_mode); filtervalues.player_num = wxString::Format(_("%d"), m_filter_player_choice->GetSelection()); filtervalues.duration_mode = _GetButtonSign(m_filter_duration_mode); filtervalues.filesize = m_filter_filesize_edit->GetValue(); filtervalues.filesize_mode = _GetButtonSign(m_filter_filesize_mode); sett().SetReplayFilterValues(filtervalues); }
void BattleListFilter::OnSpectatorButton(wxCommandEvent& event) { m_filter_spectator_mode = _GetNextMode(m_filter_spectator_mode); m_filter_spectator_button->SetLabel(_GetButtonSign(m_filter_spectator_mode)); OnChange(event); }
void BattleListFilter::OnRankButton(wxCommandEvent& event) { m_filter_rank_mode = _GetNextMode(m_filter_rank_mode); m_filter_rank_button->SetLabel(_GetButtonSign(m_filter_rank_mode)); OnChange(event); }
void PlaybackListFilter::OnFilesizeButton(wxCommandEvent& event) { m_filter_filesize_mode = _GetNextMode(m_filter_filesize_mode); m_filter_filesize_button->SetLabel(_GetButtonSign(m_filter_filesize_mode)); OnChange(event); }
void PlaybackListFilter::OnDurationButton(wxCommandEvent& event) { m_filter_duration_mode = _GetNextMode(m_filter_duration_mode); m_filter_duration_button->SetLabel(_GetButtonSign(m_filter_duration_mode)); OnChange(event); }
void PlaybackListFilter<PlaybackTabType>::OnPlayerButton ( wxCommandEvent& event ) { m_filter_player_mode = _GetNextMode(m_filter_player_mode); m_filter_player_button->SetLabel( _GetButtonSign( m_filter_player_mode ) ); OnChange(event); }