BattleRoomTab Class Reference

container for BattleroomListCtrl, battle specific ChatPanel. More...

#include <battleroomtab.h>

Inherits wxScrolledWindow, and UnitsyncReloadedSink< BattleRoomTab >.

Collaboration diagram for BattleRoomTab:
Collaboration graph
[legend]

Public Member Functions

 BattleRoomTab (wxWindow *parent, Battle *battle)
 ~BattleRoomTab ()
BattleroomListCtrlGetPlayersListCtrl ()
void UpdateUser (User &user)
BattleGetBattle ()
ChatPanelGetChatPanel ()
void UpdateBattleInfo ()
void UpdateBattleInfo (const wxString &Tag)
void OnStart (wxCommandEvent &event)
void OnHostNew (wxCommandEvent &event)
void OnLeave (wxCommandEvent &event)
void OnBalance (wxCommandEvent &event)
void OnFixTeams (wxCommandEvent &event)
void OnFixColours (wxCommandEvent &event)
void OnAddBot (wxCommandEvent &event)
void OnImReady (wxCommandEvent &event)
void OnLock (wxCommandEvent &event)
void OnAutoHost (wxCommandEvent &event)
void OnImSpec (wxCommandEvent &event)
void OnAutounSpec (wxCommandEvent &event)
void OnTeamSel (wxCommandEvent &event)
void OnAllySel (wxCommandEvent &event)
void OnColourSel (wxCommandEvent &event)
void OnSideSel (wxCommandEvent &event)
void OnPresetSel (wxCommandEvent &event)
void OnAutoLock (wxCommandEvent &event)
void OnLockBalance (wxCommandEvent &event)
void OnShowManagePlayersMenu (wxCommandEvent &event)
void OnLoadPreset (wxCommandEvent &event)
void OnSavePreset (wxCommandEvent &event)
void OnDeletePreset (wxCommandEvent &event)
void OnSetModDefaultPreset (wxCommandEvent &event)
void OnMapBrowse (wxCommandEvent &event)
void OnMapSelect (wxCommandEvent &event)
void OnOptionActivate (wxListEvent &event)
void OnSpectUnsynced (wxCommandEvent &event)
void OnSpectUnready (wxCommandEvent &event)
void OnSpectUnreadyUnsynced (wxCommandEvent &event)
void OnRingUnready (wxCommandEvent &event)
void OnRingUnsynced (wxCommandEvent &event)
void OnRingUnreadyUnsynced (wxCommandEvent &event)
void OnAutoPaste (wxCommandEvent &event)
void OnAutoControl (wxCommandEvent &event)
void OnAutoStart (wxCommandEvent &event)
void OnAutoSpec (wxCommandEvent &event)
void OnBattleActionEvent (UiEvents::UiEventData data)
void OnUserJoined (User &user)
void OnUserLeft (User &user)
void ReloadMaplist ()
void SetMap (int index)
void UpdateHighlights ()
void UpdatePresetList ()
void SortPlayerList ()
void OnUnitsyncReloaded (GlobalEvents::GlobalEventData)
void SetBattle (Battle *battle)
void PrintAllySetup ()
void RegenerateOptionsList ()
void UpdateStatsLabels ()
void UpdateMapInfoSummary ()
void UpdateMyInfo ()

Protected Types

enum  {
  BROOM_LEAVE = wxID_HIGHEST, BROOM_IMREADY, BROOM_LOCK, BROOM_LOCK_BALANCE,
  BROOM_MANAGE_MENU, BROOM_SPEC, BROOM_UNSPEC, BROOM_TEAMSEL,
  BROOM_ALLYSEL, BROOM_COLOURSEL, BROOM_SIDESEL, BROOM_START,
  BROOM_ADDBOT, BROOM_BALANCE, BROOM_FIXID, BROOM_FIXCOLOURS,
  BROOM_PRESETSEL, BROOM_AUTOHOST, BROOM_AUTOLOCK, BROOM_SAVEPRES,
  BROOM_DELETEPRES, BROOM_SETDEFAULTPRES, BROOM_MAP_BROWSE, BROOM_MAP_SEL,
  BROOM_OPTIONLIST, BROOM_RING_UNREADY, BROOM_RING_UNSYNC, BROOM_RING_UNREADY_UNSYNC,
  BROOM_SPECT_UNREADY, BROOM_SPECT_UNSYNC, BROOM_SPECT_UNREADY_UNSYNC, BROOM_AUTOSPECT,
  BROOM_AUTOSTART, BROOM_AUTOCONTROL, BROOM_AUTOPASTE, BROOM_HOST_NEW
}
typedef UnitsyncReloadedSink
< BattleRoomTab,
GlobalEvents::GlobalEventData
BaseType
typedef EventReceiverFunc
< UnitsyncReloadedSink,
GlobalEvents::GlobalEventData,&UnitsyncReloadedSink::OnUnitsyncReloaded > 
EventReceiverFunction

Protected Member Functions

long AddMMOptionsToList (long pos, OptionsWrapper::GameOption optFlag)
void SplitSizerHorizontally (const bool horizontal)
BattleRoomTabasImp ()
const BattleRoomTabasImp () const

Protected Attributes

Battlem_battle
long m_mod_opts_index
long m_map_opts_index
OptionListMap m_opt_list_map
wxBoxSizer * m_players_sizer
wxBoxSizer * m_player_sett_sizer
wxBoxSizer * m_info_sizer
wxBoxSizer * m_top_sizer
wxBoxSizer * m_buttons_sizer
wxBoxSizer * m_info1_sizer
wxBoxSizer * m_main_sizer
wxComboBox * m_team_sel
wxComboBox * m_ally_sel
ColorButtonm_color_sel
wxBitmapComboBox * m_side_sel
wxComboBox * m_options_preset_sel
wxStaticText * m_team_lbl
wxStaticText * m_ally_lbl
wxStaticText * m_side_lbl
wxStaticText * m_color_lbl
wxStaticText * m_ally_setup_lbl
wxStaticText * m_ok_count_lbl
MapCtrlm_minimap
wxScrolledWindowm_player_panel
wxComboBox * m_map_combo
BattleroomListCtrlm_players
ChatPanelm_chat
wxSplitterWindow * m_splitter
wxStaticLine * m_command_line
wxButton * m_leave_btn
wxButton * m_start_btn
wxButton * m_addbot_btn
wxButton * m_manage_players_btn
wxButton * m_save_btn
wxButton * m_delete_btn
wxButton * m_default_btn
wxButton * m_browse_map_btn
wxButton * m_host_new_btn
wxMenu * m_manage_users_mnu
wxMenuItem * m_lock_balance_mnu
wxMenuItem * m_autohost_mnu
wxMenuItem * m_autostart_mnu
wxMenuItem * m_autospec_mnu
wxMenuItem * m_autocontrol_mnu
wxMenuItem * m_autopaste_mnu
wxCheckBox * m_ready_chk
wxCheckBox * m_spec_chk
wxCheckBox * m_auto_unspec_chk
wxCheckBox * m_lock_chk
wxCheckBox * m_autolock_chk
wxListCtrl * m_opts_list
EventReceiverFunc
< BattleRoomTab,
UiEvents::UiEventData,&BattleRoomTab::OnBattleActionEvent > 
m_BattleActionSink
EventReceiverFunction OnUsync_reload

Detailed Description

container for BattleroomListCtrl, battle specific ChatPanel.

Also displaying battle info summary

Todo:
DOCMEMORE

Definition at line 38 of file battleroomtab.h.


Member Typedef Documentation

Definition at line 9 of file isink.h.

Definition at line 17 of file isink.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
BROOM_LEAVE 
BROOM_IMREADY 
BROOM_LOCK 
BROOM_LOCK_BALANCE 
BROOM_MANAGE_MENU 
BROOM_SPEC 
BROOM_UNSPEC 
BROOM_TEAMSEL 
BROOM_ALLYSEL 
BROOM_COLOURSEL 
BROOM_SIDESEL 
BROOM_START 
BROOM_ADDBOT 
BROOM_BALANCE 
BROOM_FIXID 
BROOM_FIXCOLOURS 
BROOM_PRESETSEL 
BROOM_AUTOHOST 
BROOM_AUTOLOCK 
BROOM_SAVEPRES 
BROOM_DELETEPRES 
BROOM_SETDEFAULTPRES 
BROOM_MAP_BROWSE 
BROOM_MAP_SEL 
BROOM_OPTIONLIST 
BROOM_RING_UNREADY 
BROOM_RING_UNSYNC 
BROOM_RING_UNREADY_UNSYNC 
BROOM_SPECT_UNREADY 
BROOM_SPECT_UNSYNC 
BROOM_SPECT_UNREADY_UNSYNC 
BROOM_AUTOSPECT 
BROOM_AUTOSTART 
BROOM_AUTOCONTROL 
BROOM_AUTOPASTE 
BROOM_HOST_NEW 

Definition at line 199 of file battleroomtab.h.


Constructor & Destructor Documentation

BattleRoomTab::BattleRoomTab ( wxWindow *  parent,
Battle battle 
)

Definition at line 121 of file battleroomtab.cpp.

BattleRoomTab::~BattleRoomTab (  ) 

Definition at line 368 of file battleroomtab.cpp.


Member Function Documentation

long BattleRoomTab::AddMMOptionsToList ( long  pos,
OptionsWrapper::GameOption  optFlag 
) [protected]

Definition at line 937 of file battleroomtab.cpp.

const BattleRoomTab & CRTPbase< BattleRoomTab >::asImp (  )  const [inline, protected, inherited]

Definition at line 10 of file crtpbase.h.

BattleRoomTab & CRTPbase< BattleRoomTab >::asImp (  )  [inline, protected, inherited]

Definition at line 9 of file crtpbase.h.

Battle * BattleRoomTab::GetBattle (  ) 

Definition at line 597 of file battleroomtab.cpp.

ChatPanel & BattleRoomTab::GetChatPanel (  ) 

Definition at line 603 of file battleroomtab.cpp.

BattleroomListCtrl & BattleRoomTab::GetPlayersListCtrl (  ) 

Definition at line 511 of file battleroomtab.cpp.

void BattleRoomTab::OnAddBot ( wxCommandEvent &  event  ) 

Definition at line 703 of file battleroomtab.cpp.

void BattleRoomTab::OnAllySel ( wxCommandEvent &  event  ) 

Definition at line 803 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoControl ( wxCommandEvent &  event  ) 

Definition at line 759 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoHost ( wxCommandEvent &  event  ) 

Definition at line 743 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoLock ( wxCommandEvent &  event  ) 

Definition at line 841 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoPaste ( wxCommandEvent &  event  ) 

Definition at line 750 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoSpec ( wxCommandEvent &  event  ) 

Definition at line 771 of file battleroomtab.cpp.

void BattleRoomTab::OnAutoStart ( wxCommandEvent &  event  ) 

Definition at line 765 of file battleroomtab.cpp.

void BattleRoomTab::OnAutounSpec ( wxCommandEvent &  event  ) 

Definition at line 781 of file battleroomtab.cpp.

void BattleRoomTab::OnBalance ( wxCommandEvent &  event  ) 

Definition at line 647 of file battleroomtab.cpp.

void BattleRoomTab::OnBattleActionEvent ( UiEvents::UiEventData  data  ) 

Definition at line 1210 of file battleroomtab.cpp.

void BattleRoomTab::OnColourSel ( wxCommandEvent &  event  ) 

Definition at line 812 of file battleroomtab.cpp.

void BattleRoomTab::OnDeletePreset ( wxCommandEvent &  event  ) 

Definition at line 983 of file battleroomtab.cpp.

void BattleRoomTab::OnFixColours ( wxCommandEvent &  event  ) 

Definition at line 689 of file battleroomtab.cpp.

void BattleRoomTab::OnFixTeams ( wxCommandEvent &  event  ) 

Definition at line 668 of file battleroomtab.cpp.

void BattleRoomTab::OnHostNew ( wxCommandEvent &  event  ) 

Definition at line 1217 of file battleroomtab.cpp.

void BattleRoomTab::OnImReady ( wxCommandEvent &  event  ) 

Definition at line 728 of file battleroomtab.cpp.

void BattleRoomTab::OnImSpec ( wxCommandEvent &  event  ) 

Definition at line 787 of file battleroomtab.cpp.

void BattleRoomTab::OnLeave ( wxCommandEvent &  event  ) 

Definition at line 639 of file battleroomtab.cpp.

void BattleRoomTab::OnLoadPreset ( wxCommandEvent &  event  ) 
void BattleRoomTab::OnLock ( wxCommandEvent &  event  ) 

Definition at line 735 of file battleroomtab.cpp.

void BattleRoomTab::OnLockBalance ( wxCommandEvent &  event  ) 

Definition at line 849 of file battleroomtab.cpp.

void BattleRoomTab::OnMapBrowse ( wxCommandEvent &  event  ) 

Definition at line 1002 of file battleroomtab.cpp.

void BattleRoomTab::OnMapSelect ( wxCommandEvent &  event  ) 

Definition at line 1046 of file battleroomtab.cpp.

void BattleRoomTab::OnOptionActivate ( wxListEvent &  event  ) 

Definition at line 1063 of file battleroomtab.cpp.

void BattleRoomTab::OnPresetSel ( wxCommandEvent &  event  ) 

Definition at line 832 of file battleroomtab.cpp.

void BattleRoomTab::OnRingUnready ( wxCommandEvent &  event  ) 

Definition at line 873 of file battleroomtab.cpp.

void BattleRoomTab::OnRingUnreadyUnsynced ( wxCommandEvent &  event  ) 

Definition at line 885 of file battleroomtab.cpp.

void BattleRoomTab::OnRingUnsynced ( wxCommandEvent &  event  ) 

Definition at line 879 of file battleroomtab.cpp.

void BattleRoomTab::OnSavePreset ( wxCommandEvent &  event  ) 

Definition at line 968 of file battleroomtab.cpp.

void BattleRoomTab::OnSetModDefaultPreset ( wxCommandEvent &  event  ) 

Definition at line 992 of file battleroomtab.cpp.

void BattleRoomTab::OnShowManagePlayersMenu ( wxCommandEvent &  event  ) 

Definition at line 892 of file battleroomtab.cpp.

void BattleRoomTab::OnSideSel ( wxCommandEvent &  event  ) 

Definition at line 824 of file battleroomtab.cpp.

void BattleRoomTab::OnSpectUnready ( wxCommandEvent &  event  ) 

Definition at line 862 of file battleroomtab.cpp.

void BattleRoomTab::OnSpectUnreadyUnsynced ( wxCommandEvent &  event  ) 

Definition at line 867 of file battleroomtab.cpp.

void BattleRoomTab::OnSpectUnsynced ( wxCommandEvent &  event  ) 

Definition at line 856 of file battleroomtab.cpp.

void BattleRoomTab::OnStart ( wxCommandEvent &  event  ) 

Definition at line 611 of file battleroomtab.cpp.

void BattleRoomTab::OnTeamSel ( wxCommandEvent &  event  ) 

Definition at line 794 of file battleroomtab.cpp.

void BattleRoomTab::OnUnitsyncReloaded ( GlobalEvents::GlobalEventData   ) 

Reimplemented from UnitsyncReloadedSink< BattleRoomTab >.

Definition at line 927 of file battleroomtab.cpp.

void BattleRoomTab::OnUserJoined ( User user  ) 

Definition at line 898 of file battleroomtab.cpp.

void BattleRoomTab::OnUserLeft ( User user  ) 

Definition at line 917 of file battleroomtab.cpp.

void BattleRoomTab::PrintAllySetup (  ) 

Definition at line 426 of file battleroomtab.cpp.

void BattleRoomTab::RegenerateOptionsList (  ) 

Definition at line 1182 of file battleroomtab.cpp.

void BattleRoomTab::ReloadMaplist (  ) 

Definition at line 1022 of file battleroomtab.cpp.

void BattleRoomTab::SetBattle ( Battle battle  ) 

Definition at line 1093 of file battleroomtab.cpp.

void BattleRoomTab::SetMap ( int  index  ) 

Definition at line 1035 of file battleroomtab.cpp.

void BattleRoomTab::SortPlayerList (  ) 

Definition at line 1087 of file battleroomtab.cpp.

void BattleRoomTab::SplitSizerHorizontally ( const bool  horizontal  )  [protected]

Definition at line 374 of file battleroomtab.cpp.

void BattleRoomTab::UpdateBattleInfo ( const wxString Tag  ) 

Definition at line 457 of file battleroomtab.cpp.

void BattleRoomTab::UpdateBattleInfo (  ) 

Definition at line 418 of file battleroomtab.cpp.

void BattleRoomTab::UpdateHighlights (  ) 

Definition at line 952 of file battleroomtab.cpp.

void BattleRoomTab::UpdateMapInfoSummary (  ) 

Definition at line 517 of file battleroomtab.cpp.

void BattleRoomTab::UpdateMyInfo (  ) 

Definition at line 542 of file battleroomtab.cpp.

void BattleRoomTab::UpdatePresetList (  ) 

Definition at line 959 of file battleroomtab.cpp.

void BattleRoomTab::UpdateStatsLabels (  ) 

Definition at line 536 of file battleroomtab.cpp.

void BattleRoomTab::UpdateUser ( User user  ) 

Definition at line 548 of file battleroomtab.cpp.


Field Documentation

wxButton* BattleRoomTab::m_addbot_btn [protected]

Definition at line 173 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_ally_lbl [protected]

Definition at line 150 of file battleroomtab.h.

wxComboBox* BattleRoomTab::m_ally_sel [protected]

Definition at line 144 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_ally_setup_lbl [protected]

Definition at line 156 of file battleroomtab.h.

wxCheckBox* BattleRoomTab::m_auto_unspec_chk [protected]

Definition at line 191 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_autocontrol_mnu [protected]

Definition at line 186 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_autohost_mnu [protected]

Definition at line 183 of file battleroomtab.h.

wxCheckBox* BattleRoomTab::m_autolock_chk [protected]

Definition at line 193 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_autopaste_mnu [protected]

Definition at line 187 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_autospec_mnu [protected]

Definition at line 185 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_autostart_mnu [protected]

Definition at line 184 of file battleroomtab.h.

Definition at line 127 of file battleroomtab.h.

EventReceiverFunc<BattleRoomTab, UiEvents::UiEventData, &BattleRoomTab::OnBattleActionEvent> BattleRoomTab::m_BattleActionSink [protected]

Definition at line 197 of file battleroomtab.h.

wxButton* BattleRoomTab::m_browse_map_btn [protected]

Definition at line 178 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_buttons_sizer [protected]

Definition at line 139 of file battleroomtab.h.

Definition at line 166 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_color_lbl [protected]

Definition at line 152 of file battleroomtab.h.

Definition at line 145 of file battleroomtab.h.

wxStaticLine* BattleRoomTab::m_command_line [protected]

Definition at line 169 of file battleroomtab.h.

wxButton* BattleRoomTab::m_default_btn [protected]

Definition at line 177 of file battleroomtab.h.

wxButton* BattleRoomTab::m_delete_btn [protected]

Definition at line 176 of file battleroomtab.h.

wxButton* BattleRoomTab::m_host_new_btn [protected]

Definition at line 179 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_info1_sizer [protected]

Definition at line 140 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_info_sizer [protected]

Definition at line 137 of file battleroomtab.h.

wxButton* BattleRoomTab::m_leave_btn [protected]

Definition at line 171 of file battleroomtab.h.

wxMenuItem* BattleRoomTab::m_lock_balance_mnu [protected]

Definition at line 182 of file battleroomtab.h.

wxCheckBox* BattleRoomTab::m_lock_chk [protected]

Definition at line 192 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_main_sizer [protected]

Definition at line 141 of file battleroomtab.h.

wxButton* BattleRoomTab::m_manage_players_btn [protected]

Definition at line 174 of file battleroomtab.h.

wxMenu* BattleRoomTab::m_manage_users_mnu [protected]

Definition at line 181 of file battleroomtab.h.

wxComboBox* BattleRoomTab::m_map_combo [protected]

Definition at line 163 of file battleroomtab.h.

Definition at line 131 of file battleroomtab.h.

Definition at line 159 of file battleroomtab.h.

Definition at line 130 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_ok_count_lbl [protected]

Definition at line 157 of file battleroomtab.h.

Definition at line 133 of file battleroomtab.h.

wxComboBox* BattleRoomTab::m_options_preset_sel [protected]

Definition at line 147 of file battleroomtab.h.

wxListCtrl* BattleRoomTab::m_opts_list [protected]

Definition at line 195 of file battleroomtab.h.

Definition at line 161 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_player_sett_sizer [protected]

Definition at line 136 of file battleroomtab.h.

Definition at line 165 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_players_sizer [protected]

Definition at line 135 of file battleroomtab.h.

wxCheckBox* BattleRoomTab::m_ready_chk [protected]

Definition at line 189 of file battleroomtab.h.

wxButton* BattleRoomTab::m_save_btn [protected]

Definition at line 175 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_side_lbl [protected]

Definition at line 151 of file battleroomtab.h.

wxBitmapComboBox* BattleRoomTab::m_side_sel [protected]

Definition at line 146 of file battleroomtab.h.

wxCheckBox* BattleRoomTab::m_spec_chk [protected]

Definition at line 190 of file battleroomtab.h.

wxSplitterWindow* BattleRoomTab::m_splitter [protected]

Definition at line 167 of file battleroomtab.h.

wxButton* BattleRoomTab::m_start_btn [protected]

Definition at line 172 of file battleroomtab.h.

wxStaticText* BattleRoomTab::m_team_lbl [protected]

Definition at line 149 of file battleroomtab.h.

wxComboBox* BattleRoomTab::m_team_sel [protected]

Definition at line 143 of file battleroomtab.h.

wxBoxSizer* BattleRoomTab::m_top_sizer [protected]

Definition at line 138 of file battleroomtab.h.

Definition at line 18 of file isink.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 29 00:11:43 2011 for SpringLobby by doxygen 1.6.3