29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/AFEditor_resource.h"
77 , m_limitAngle2(30.0
f)
83 EnableToolTips(
TRUE );
100 CDialog::DoDataExchange(pDX);
136 for (
int i = 0;
i < numJoints;
i++ ) {
277 CDialog::OnToolHitTest( point, pTI );
283 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
284 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)
369 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
370 if ( pNMUpDown->iDelta < 0 ) {
382 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
383 if ( pNMUpDown->iDelta < 0 ) {
395 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
396 if ( pNMUpDown->iDelta < 0 ) {
449 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
450 if ( pNMUpDown->iDelta < 0 ) {
471 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
472 if ( pNMUpDown->iDelta < 0 ) {
511 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
512 if ( pNMUpDown->iDelta < 0 ) {
533 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
534 if ( pNMUpDown->iDelta < 0 ) {
555 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
556 if ( pNMUpDown->iDelta < 0 ) {
BOOL DefaultOnToolTipNotify(const toolTip_t *toolTips, UINT id, NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditHingeLimitAngle2()
virtual void AF_UpdateEntities(const char *fileName)
CComboBox m_comboAxisJoint1
int SetSafeComboBoxSelection(CComboBox *combo, const char *string, int skip)
CONST PIXELFORMATDESCRIPTOR UINT
#define IDC_COMBO_HINGE_AXIS_JOINT1
#define IDC_EDIT_ANCHOR_X
afx_msg void OnBnClickedRadioHingeAxisAngles()
afx_msg void OnEnChangeEditAnchorY()
#define IDC_COMBO_HINGE_AXIS_JOINT2
afx_msg void OnEnChangeEditHingeLimitAngle3()
void InitJointLists(void)
#define IDC_RADIO_HINGE_AXIS_BONE
#define IDC_SPIN_HINGE_LIMIT_ANGLE1
const char * GetName(void) const
afx_msg void OnDeltaposSpinAnchorX(NMHDR *pNMHDR, LRESULT *pResult)
CComboBox m_comboAxisJoint2
#define IDC_EDIT_HINGE_LIMIT_ANGLE2
afx_msg void OnBnClickedRadioAnchorCoordinates()
#define IDC_SPIN_HINGE_AXIS_YAW
afx_msg void OnBnClickedRadioAnchorJoint()
#define IDC_EDIT_ANCHOR_Z
afx_msg void OnEnChangeEditAnchorX()
afx_msg void OnDeltaposSpinHingeLimitAngle2(NMHDR *pNMHDR, LRESULT *pResult)
void LoadFile(idDeclAF *af)
virtual const char * GetJointName(jointHandle_t handle) const =0
#define IDC_EDIT_HINGE_AXIS_YAW
idDeclAF_Constraint * constraint
#define IDC_SPIN_HINGE_AXIS_PITCH
idAngles ToAngles(void) const
const idVec3 & ToVec3(void) const
afx_msg void OnDeltaposSpinHingeLimitAngle1(NMHDR *pNMHDR, LRESULT *pResult)
idVec3 ToForward(void) const
afx_msg void OnDeltaposSpinHingeAxisPitch(NMHDR *pNMHDR, LRESULT *pResult)
void SaveConstraint(void)
void LoadConstraint(idDeclAF_Constraint *c)
#define IDC_SPIN_ANCHOR_Y
virtual void DoDataExchange(CDataExchange *pDX)
int DefaultOnToolHitTest(const toolTip_t *toolTips, const CDialog *dialog, CPoint point, TOOLINFO *pTI)
virtual idRenderModel * ANIM_GetModelFromName(const char *modelName)
int UnsetSafeComboBoxSelection(CComboBox *combo, CString &string)
afx_msg void OnBnClickedRadioHingeLimitAngles()
afx_msg void OnBnClickedRadioHingeLimitNone()
#define IDC_SPIN_ANCHOR_X
bool EditControlEnterHit(CEdit *edit)
#define IDC_EDIT_ANCHOR_Y
CComboBox m_comboAnchorJoint
static toolTip_t toolTips[]
afx_msg void OnDeltaposSpinAnchorY(NMHDR *pNMHDR, LRESULT *pResult)
virtual ~DialogAFConstraintHinge()
#define IDC_EDIT_HINGE_AXIS_PITCH
#define IDC_RADIO_HINGE_LIMIT_NONE
int GetSafeComboBoxSelection(CComboBox *combo, CString &string, int skip)
void AFDialogSetFileModified(void)
afx_msg void OnCbnSelchangeComboHingeAxisJoint2()
#define IDC_EDIT_HINGE_LIMIT_ANGLE3
afx_msg void OnDeltaposSpinAnchorZ(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_RADIO_ANCHOR_JOINT
enum idDeclAF_Constraint::@49 limit
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
afx_msg void OnEnChangeEditHingeAxisYaw()
#define IDC_SPIN_ANCHOR_Z
const char * c_str(void) const
enum idAFVector::@48 type
virtual int NumJoints(void) const =0
afx_msg void OnCbnSelchangeComboAnchorJoint()
#define IDC_RADIO_HINGE_AXIS_ANGLES
afx_msg void OnDeltaposSpinHingeAxisYaw(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_COMBO_ANCHOR_JOINT
afx_msg void OnEnChangeEditHingeLimitAngle1()
afx_msg void OnCbnSelchangeComboHingeAxisJoint1()
#define IDC_SPIN_HINGE_LIMIT_ANGLE2
#define IDC_RADIO_ANCHOR_COORDINATES
#define IDC_SPIN_HINGE_LIMIT_ANGLE3
afx_msg void OnEnChangeEditAnchorZ()
#define IDC_RADIO_HINGE_LIMIT_ANGLES
#define IDD_DIALOG_AF_CONSTRAINT_HINGE
afx_msg void OnBnClickedRadioHingeAxisBone()
#define IDC_EDIT_HINGE_LIMIT_ANGLE1
afx_msg void OnDeltaposSpinHingeLimitAngle3(NMHDR *pNMHDR, LRESULT *pResult)
float EditVerifyFloat(CEdit *edit, bool allowNegative)
afx_msg void OnEnChangeEditHingeAxisPitch()