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_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_)
18 #define AFX_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_
24 #include "particle_workspace.h"
28 struct CPSHintParticleRotateTheSame
;
33 /////////////////////////////////////////////////////////////////////////////
34 // CPrecomputedRotationsDlg dialog
36 class CPrecomputedRotationsDlg
: public CDialog
41 * \param prts the particle being edited
42 * \param toDisable a window that is disabled when precomputed rotation are activated (null = none)
44 CPrecomputedRotationsDlg(CParticleWorkspace::CNode
*ownerNode
, NL3D::CPSHintParticleRotateTheSame
*prts
, class CAttribDlg
*toDisable
= NULL
); // standard constructor
45 void init(CWnd
*pParent
, sint x
, sint y
) ;
48 //{{AFX_DATA(CPrecomputedRotationsDlg)
49 enum { IDD
= IDD_HINT_ROTATE_THE_SAME
};
50 CEdit m_RotSpeedMinCtrl
;
52 CEdit m_RotSpeedMaxCtrl
;
53 CString m_RotSpeedMax
;
54 BOOL m_PrecomputedRotations
;
55 CString m_RotSpeedMin
;
61 // ClassWizard generated virtual function overrides
62 //{{AFX_VIRTUAL(CPrecomputedRotationsDlg)
64 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
70 // anable / disable the controls for the tuning of the number of prerotated models
71 void enablePrecompRotationControl(void) ;
72 // update the control value from the particle being edited
73 void updateFromReader(void);
74 void updateModifiedFlag() { if (_Node
) _Node
->setModified(true); }
76 CParticleWorkspace::CNode
*_Node
;
77 // the particle being edited
78 NL3D::CPSHintParticleRotateTheSame
*_RotatedParticle
;
80 CAttribDlg
*_WndToDisable
;
82 // Generated message map functions
83 //{{AFX_MSG(CPrecomputedRotationsDlg)
84 afx_msg
void OnUpdateMinRotSpeed();
85 afx_msg
void OnUpdateMaxRotSpeed();
86 afx_msg
void OnUpdateNbModels();
87 afx_msg
void OnHintPrecomputedRotations();
92 //{{AFX_INSERT_LOCATION}}
93 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
95 #endif // !defined(AFX_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_)