49 CDialog::DoDataExchange(pDX);
58 ON_CBN_EDITCHANGE(
IDC_COMBO1, OnEditchangeCombo1)
67 CComboBox *faction = (CComboBox*)GetDlgItem(
IDC_COMBO1);
73 Int sel = faction->GetCurSel();
75 faction->GetLBText(sel, theText);
77 faction->GetWindowText(theText);
88 DEBUG_ASSERTLOG(!modified,(
"had to clean up sides in AddPlayerDialog::OnOK"));
108 CDialog::OnInitDialog();
110 CComboBox *factions = (CComboBox*)GetDlgItem(
IDC_COMBO1);
111 factions->ResetContent();
119 if (m_side.isEmpty() || m_side == pt->
getSide())
123 factions->SetCurSel(0);
#define DEBUG_ASSERTLOG(c, m)
NameKeyType NAMEKEY(const AsciiString &name)
PlayerTemplateStore * ThePlayerTemplateStore
singleton instance of PlayerTemplateStore
SidesList * TheSidesList
singleton instance of SidesList
virtual BOOL OnInitDialog()
AddPlayerDialog(AsciiString side, CWnd *pParent=NULL)
afx_msg void OnEditchangeCombo1()
virtual void DoDataExchange(CDataExchange *pDX)
static AsciiString TheEmptyString
static CWorldBuilderDoc * GetActiveDoc()
void AddAndDoUndoable(Undoable *pUndo)
AsciiString getSide() const
AsciiString getName() const
void addPlayerByTemplate(AsciiString playerTemplateName)
#define REF_PTR_RELEASE(x)