Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / mesh_dlg.h
blob7ce4e2a8b4b91bfc192f8bfa6620a101e9a1e3d2
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/>.
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_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "popup_notify.h"
25 #include "particle_dlg.h"
26 #include "particle_workspace.h"
27 #include "color_static.h"
29 namespace NL3D
31 struct CPSShapeParticle;
34 class CEditMorphMeshDlg;
36 /////////////////////////////////////////////////////////////////////////////
37 // CMeshDlg dialog
39 class CMeshDlg : public CDialog, IPopupNotify
41 // Construction
42 public:
43 CMeshDlg(CParticleWorkspace::CNode *ownerNode, NL3D::CPSShapeParticle *sp, CParticleDlg *particleDlg); // standard constructor
44 ~CMeshDlg();
46 void init(CWnd *pParent, sint x, sint y);
48 BOOL EnableWindow( BOOL bEnable);
50 // Dialog Data
51 //{{AFX_DATA(CMeshDlg)
52 enum { IDD = IDD_CHOOSE_MESH };
53 CColorStatic m_MeshErrorMsg;
54 CString m_ShapeName;
55 //}}AFX_DATA
58 // Overrides
59 // ClassWizard generated virtual function overrides
60 //{{AFX_VIRTUAL(CMeshDlg)
61 protected:
62 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
63 //}}AFX_VIRTUAL
65 public:
66 // utility function : string from shape error code
67 static CString getShapeErrorString(sint errorCode);
69 // Implementation
70 protected:
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
78 //{{AFX_MSG(CMeshDlg)
79 afx_msg void OnBrowseShape();
80 virtual BOOL OnInitDialog();
81 afx_msg void OnEnableMorphing();
82 afx_msg void OnEditMorph();
83 //}}AFX_MSG
84 DECLARE_MESSAGE_MAP()
85 void updateModifiedFlag() { if (_Node) _Node->setModified(true); }
86 void touchPSState();
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_)