1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "object_viewer.h"
21 #include "bin_op_dlg.h"
22 #include "popup_notify.h"
24 /////////////////////////////////////////////////////////////////////////////
28 CBinOpDlg::CBinOpDlg(IPopupNotify
*pn
, CWnd
* pParent
/*=NULL*/)
29 : _PN(pn
), CDialog(CBinOpDlg::IDD
, pParent
)
31 //{{AFX_DATA_INIT(CBinOpDlg)
32 // NOTE: the ClassWizard will add member initialization here
37 void CBinOpDlg::create(CWnd
*pParent
)
39 CDialog::Create(IDD_BIN_OP
, pParent
);
44 void CBinOpDlg::DoDataExchange(CDataExchange
* pDX
)
46 CDialog::DoDataExchange(pDX
);
47 //{{AFX_DATA_MAP(CBinOpDlg)
48 DDX_Control(pDX
, IDC_BIN_OP
, m_BinOp
);
53 BEGIN_MESSAGE_MAP(CBinOpDlg
, CDialog
)
54 //{{AFX_MSG_MAP(CBinOpDlg)
55 ON_CBN_SELCHANGE(IDC_BIN_OP
, OnSelchangeBinOp
)
60 /////////////////////////////////////////////////////////////////////////////
61 // CBinOpDlg message handlers
63 BOOL
CBinOpDlg::OnInitDialog()
65 CDialog::OnInitDialog();
67 return TRUE
; // return TRUE unless you set the focus to a control
68 // EXCEPTION: OCX Property Pages should return FALSE
71 void CBinOpDlg::OnSelchangeBinOp()
74 newOp((uint32
)m_BinOp
.GetItemData(m_BinOp
.GetCurSel())) ;
77 void CBinOpDlg::OnClose()
80 if (_PN
) _PN
->childPopupClosed(this);