BattleOptionsTab Class Reference

manipulate "standard" engine options, unit restriction list More...

#include <battleoptionstab.h>

Inherits wxScrolledWindow.

Collaboration diagram for BattleOptionsTab:
Collaboration graph
[legend]

Public Member Functions

 BattleOptionsTab (wxWindow *parent, IBattle *battle)
 ~BattleOptionsTab ()
void UpdateBattle (const wxString &Tag)
void ReloadRestrictions ()
int GetAllowedUnitIndex (const wxString &name)
int GetRestrictedUnitIndex (const wxString &name)
bool IsRestricted (const wxString &name)
void Restrict (const wxString &name, int count)
void Allow (const wxString &name)
void Restrict (int index, int count)
void Allow (int index)
void OnRestrict (wxCommandEvent &event)
void OnAllow (wxCommandEvent &event)
void OnClearRestrictions (wxCommandEvent &event)
void SetBattle (IBattle *battle)
IBattleGetBattle ()

Protected Types

enum  {
  BOPTS_END = wxID_HIGHEST, BOPTS_OPTS, BOPTS_SLIDE, BOPTS_RESTRICT,
  BOPTS_ALLOW, BOPTS_CLEARRES, BOPTS_LOADPRES, BOPTS_SAVEPRES,
  BOPTS_DELETEPRES, BOPTS_SETDEFAULTPRES, BOPTS_CHOSEPRES
}

Protected Member Functions

void UpdateBattle ()

Protected Attributes

IBattlem_battle
wxStaticText * m_aloowed_lbl
wxListBox * m_allowed_list
wxButton * m_restrict_btn
wxButton * m_allow_btn
wxStaticText * m_restricted_lbl
wxListBox * m_restrict_list
wxButton * m_clear_btn

Detailed Description

manipulate "standard" engine options, unit restriction list

Todo:
DOCMEMORE

Definition at line 20 of file battleoptionstab.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
BOPTS_END 
BOPTS_OPTS 
BOPTS_SLIDE 
BOPTS_RESTRICT 
BOPTS_ALLOW 
BOPTS_CLEARRES 
BOPTS_LOADPRES 
BOPTS_SAVEPRES 
BOPTS_DELETEPRES 
BOPTS_SETDEFAULTPRES 
BOPTS_CHOSEPRES 

Definition at line 59 of file battleoptionstab.h.


Constructor & Destructor Documentation

BattleOptionsTab::BattleOptionsTab ( wxWindow *  parent,
IBattle battle 
)

Definition at line 40 of file battleoptionstab.cpp.

BattleOptionsTab::~BattleOptionsTab (  ) 

Definition at line 116 of file battleoptionstab.cpp.


Member Function Documentation

void BattleOptionsTab::Allow ( int  index  ) 

Definition at line 211 of file battleoptionstab.cpp.

void BattleOptionsTab::Allow ( const wxString name  ) 

Definition at line 192 of file battleoptionstab.cpp.

int BattleOptionsTab::GetAllowedUnitIndex ( const wxString name  ) 

Definition at line 152 of file battleoptionstab.cpp.

IBattle * BattleOptionsTab::GetBattle (  ) 

Definition at line 302 of file battleoptionstab.cpp.

int BattleOptionsTab::GetRestrictedUnitIndex ( const wxString name  ) 

Definition at line 165 of file battleoptionstab.cpp.

bool BattleOptionsTab::IsRestricted ( const wxString name  ) 

Definition at line 178 of file battleoptionstab.cpp.

void BattleOptionsTab::OnAllow ( wxCommandEvent &  event  ) 

Definition at line 249 of file battleoptionstab.cpp.

void BattleOptionsTab::OnClearRestrictions ( wxCommandEvent &  event  ) 

Definition at line 271 of file battleoptionstab.cpp.

void BattleOptionsTab::OnRestrict ( wxCommandEvent &  event  ) 

Definition at line 227 of file battleoptionstab.cpp.

void BattleOptionsTab::ReloadRestrictions (  ) 

Definition at line 134 of file battleoptionstab.cpp.

void BattleOptionsTab::Restrict ( int  index,
int  count 
)

Definition at line 200 of file battleoptionstab.cpp.

void BattleOptionsTab::Restrict ( const wxString name,
int  count 
)

Definition at line 184 of file battleoptionstab.cpp.

void BattleOptionsTab::SetBattle ( IBattle battle  ) 

Definition at line 278 of file battleoptionstab.cpp.

void BattleOptionsTab::UpdateBattle (  )  [protected]
void BattleOptionsTab::UpdateBattle ( const wxString Tag  ) 

Definition at line 123 of file battleoptionstab.cpp.


Field Documentation

wxButton* BattleOptionsTab::m_allow_btn [protected]

Definition at line 54 of file battleoptionstab.h.

wxListBox* BattleOptionsTab::m_allowed_list [protected]

Definition at line 52 of file battleoptionstab.h.

wxStaticText* BattleOptionsTab::m_aloowed_lbl [protected]

Definition at line 51 of file battleoptionstab.h.

Definition at line 49 of file battleoptionstab.h.

wxButton* BattleOptionsTab::m_clear_btn [protected]

Definition at line 57 of file battleoptionstab.h.

wxButton* BattleOptionsTab::m_restrict_btn [protected]

Definition at line 53 of file battleoptionstab.h.

wxListBox* BattleOptionsTab::m_restrict_list [protected]

Definition at line 56 of file battleoptionstab.h.

wxStaticText* BattleOptionsTab::m_restricted_lbl [protected]

Definition at line 55 of file battleoptionstab.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