AutoBalanceDialog Class Reference

lets host automatically assign players to teams, optionally taking clan/rank into account dialog sets balancing options in Settings handler for the calling class to use after modal display ends More...

#include <autobalancedialog.h>

Data Structures

struct  BalanceOptions

Public Member Functions

 AutoBalanceDialog (wxWindow *parent, const BalanceOptions &defaultval, unsigned int maxnum=16)
virtual ~AutoBalanceDialog ()
BalanceOptions GetResult ()

Data Fields

wxButton * m_ok_button
wxChoice * m_method_choice
wxStaticLine * m_separator1
wxStaticText * StaticText1
wxChoice * m_clans_choice
wxStaticText * m_method_label
wxButton * m_cancel_button
wxStaticText * StaticText2
wxChoice * m_group_choice

Static Protected Attributes

static const long ID_STATICTEXT1 = wxNewId()
static const long ID_METHOD = wxNewId()
static const long ID_STATICTEXT2 = wxNewId()
static const long ID_STATICTEXT3 = wxNewId()
static const long ID_CHOICE1 = wxNewId()
static const long ID_CHOICE2 = wxNewId()
static const long ID_STATICLINE1 = wxNewId()
static const long ID_CANCEL = wxNewId()
static const long ID_OK = wxNewId()

Private Member Functions

void OnCancel (wxCommandEvent &event)
void OnOk (wxCommandEvent &event)

Detailed Description

lets host automatically assign players to teams, optionally taking clan/rank into account dialog sets balancing options in Settings handler for the calling class to use after modal display ends

Todo:
use this in a non-modal way?

Definition at line 18 of file autobalancedialog.h.


Constructor & Destructor Documentation

AutoBalanceDialog::AutoBalanceDialog ( wxWindow *  parent,
const BalanceOptions defaultval,
unsigned int  maxnum = 16 
)

Definition at line 30 of file autobalancedialog.cpp.

AutoBalanceDialog::~AutoBalanceDialog (  )  [virtual]

Definition at line 83 of file autobalancedialog.cpp.


Member Function Documentation

AutoBalanceDialog::BalanceOptions AutoBalanceDialog::GetResult (  ) 

Definition at line 98 of file autobalancedialog.cpp.

void AutoBalanceDialog::OnCancel ( wxCommandEvent &  event  )  [private]

Definition at line 88 of file autobalancedialog.cpp.

void AutoBalanceDialog::OnOk ( wxCommandEvent &  event  )  [private]

Definition at line 93 of file autobalancedialog.cpp.


Field Documentation

const long AutoBalanceDialog::ID_CANCEL = wxNewId() [static, protected]

Definition at line 57 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_CHOICE1 = wxNewId() [static, protected]

Definition at line 54 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_CHOICE2 = wxNewId() [static, protected]

Definition at line 55 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_METHOD = wxNewId() [static, protected]

Definition at line 51 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_OK = wxNewId() [static, protected]

Definition at line 58 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_STATICLINE1 = wxNewId() [static, protected]

Definition at line 56 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_STATICTEXT1 = wxNewId() [static, protected]

Definition at line 50 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_STATICTEXT2 = wxNewId() [static, protected]

Definition at line 52 of file autobalancedialog.h.

const long AutoBalanceDialog::ID_STATICTEXT3 = wxNewId() [static, protected]

Definition at line 53 of file autobalancedialog.h.

Definition at line 42 of file autobalancedialog.h.

Definition at line 40 of file autobalancedialog.h.

Definition at line 44 of file autobalancedialog.h.

Definition at line 37 of file autobalancedialog.h.

Definition at line 41 of file autobalancedialog.h.

Definition at line 36 of file autobalancedialog.h.

Definition at line 38 of file autobalancedialog.h.

Definition at line 39 of file autobalancedialog.h.

Definition at line 43 of file autobalancedialog.h.


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

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