Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / edit_user_param.cpp
blobc48e86223000dc6e97f63da04b9e4e6c227e1123
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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 "std_afx.h"
21 #include "object_viewer.h"
22 #include "edit_user_param.h"
25 /////////////////////////////////////////////////////////////////////////////
26 // CEditUserParam dialog
29 CEditUserParam::CEditUserParam(uint32 userParamIndex, CWnd* pParent /*=NULL*/)
30 : _UserParamIndex(userParamIndex), CDialog(CEditUserParam::IDD, pParent)
32 //{{AFX_DATA_INIT(CEditUserParam)
33 //}}AFX_DATA_INIT
37 void CEditUserParam::DoDataExchange(CDataExchange* pDX)
39 CDialog::DoDataExchange(pDX);
40 //{{AFX_DATA_MAP(CEditUserParam)
41 DDX_Control(pDX, IDC_USER_PARAM_INDEX, m_UserParamIndex);
42 //}}AFX_DATA_MAP
46 BEGIN_MESSAGE_MAP(CEditUserParam, CDialog)
47 //{{AFX_MSG_MAP(CEditUserParam)
48 ON_CBN_SELCHANGE(IDC_USER_PARAM_INDEX, OnSelchangeUserParamIndex)
49 //}}AFX_MSG_MAP
50 END_MESSAGE_MAP()
52 /////////////////////////////////////////////////////////////////////////////
53 // CEditUserParam message handlers
55 BOOL CEditUserParam::OnInitDialog()
57 CDialog::OnInitDialog();
59 m_UserParamIndex.SetCurSel(_UserParamIndex) ;
60 UpdateData(FALSE) ;
61 return TRUE; // return TRUE unless you set the focus to a control
62 // EXCEPTION: OCX Property Pages should return FALSE
65 void CEditUserParam::OnSelchangeUserParamIndex()
67 UpdateData() ;
68 _UserParamIndex = m_UserParamIndex.GetCurSel() ;