manipulate "standard" engine options, unit restriction list More...
#include <battleoptionstab.h>
Inherits wxScrolledWindow.

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) |
| IBattle * | GetBattle () |
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 | |
| IBattle * | m_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 |
manipulate "standard" engine options, unit restriction list
Definition at line 20 of file battleoptionstab.h.
anonymous enum [protected] |
| 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.
| BattleOptionsTab::BattleOptionsTab | ( | wxWindow * | parent, | |
| IBattle * | battle | |||
| ) |
Definition at line 40 of file battleoptionstab.cpp.
| BattleOptionsTab::~BattleOptionsTab | ( | ) |
Definition at line 116 of file battleoptionstab.cpp.
| 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.
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.
IBattle* BattleOptionsTab::m_battle [protected] |
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.
1.6.3