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/>.
17 #if !defined(AFX_MESH_DLG_H__27F79AAD_DEA7_4A3E_85E9_9DB32B9419C5__INCLUDED_)
18 #define AFX_MESH_DLG_H__27F79AAD_DEA7_4A3E_85E9_9DB32B9419C5__INCLUDED_
24 #include "popup_notify.h"
25 #include "particle_dlg.h"
26 #include "particle_workspace.h"
27 #include "color_static.h"
31 struct CPSShapeParticle
;
34 class CEditMorphMeshDlg
;
36 /////////////////////////////////////////////////////////////////////////////
39 class CMeshDlg
: public CDialog
, IPopupNotify
43 CMeshDlg(CParticleWorkspace::CNode
*ownerNode
, NL3D::CPSShapeParticle
*sp
, CParticleDlg
*particleDlg
); // standard constructor
46 void init(CWnd
*pParent
, sint x
, sint y
);
48 BOOL
EnableWindow( BOOL bEnable
);
51 //{{AFX_DATA(CMeshDlg)
52 enum { IDD
= IDD_CHOOSE_MESH
};
53 CColorStatic m_MeshErrorMsg
;
59 // ClassWizard generated virtual function overrides
60 //{{AFX_VIRTUAL(CMeshDlg)
62 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
66 // utility function : string from shape error code
67 static CString
getShapeErrorString(sint errorCode
);
71 CParticleWorkspace::CNode
*_Node
;
72 CParticleDlg
*_ParticleDlg
;
73 NL3D::CPSShapeParticle
*_ShapeParticle
;
74 CEditMorphMeshDlg
*_EMMD
;
75 void updateForMorph();
76 virtual void childPopupClosed(CWnd
*child
);
77 // Generated message map functions
79 afx_msg
void OnBrowseShape();
80 virtual BOOL
OnInitDialog();
81 afx_msg
void OnEnableMorphing();
82 afx_msg
void OnEditMorph();
85 void updateModifiedFlag() { if (_Node
) _Node
->setModified(true); }
87 void updateMeshErrorString();
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93 #endif // !defined(AFX_MESH_DLG_H__27F79AAD_DEA7_4A3E_85E9_9DB32B9419C5__INCLUDED_)