29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/AFEditor_resource.h"
93 , m_pyramidAngle1(30.0f)
94 , m_pyramidAngle2(30.0f)
102 EnableToolTips(
TRUE );
119 CDialog::DoDataExchange(pDX);
168 for (
int i = 0;
i < numJoints;
i++ ) {
373 CDialog::OnToolHitTest( point, pTI );
379 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
380 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)
484 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
485 if ( pNMUpDown->iDelta < 0 ) {
497 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
498 if ( pNMUpDown->iDelta < 0 ) {
510 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
511 if ( pNMUpDown->iDelta < 0 ) {
564 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
565 if ( pNMUpDown->iDelta < 0 ) {
586 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
587 if ( pNMUpDown->iDelta < 0 ) {
640 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
641 if ( pNMUpDown->iDelta < 0 ) {
662 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
663 if ( pNMUpDown->iDelta < 0 ) {
711 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
712 if ( pNMUpDown->iDelta < 0 ) {
733 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
734 if ( pNMUpDown->iDelta < 0 ) {
755 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
756 if ( pNMUpDown->iDelta < 0 ) {
777 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
778 if ( pNMUpDown->iDelta < 0 ) {
831 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
832 if ( pNMUpDown->iDelta < 0 ) {
853 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
854 if ( pNMUpDown->iDelta < 0 ) {
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnDeltaposSpinUniversalYawShaft1(NMHDR *pNMHDR, LRESULT *pResult)
BOOL DefaultOnToolTipNotify(const toolTip_t *toolTips, UINT id, NMHDR *pNMHDR, LRESULT *pResult)
#define IDD_DIALOG_AF_CONSTRAINT_UNIVERSAL
afx_msg void OnCbnSelchangeComboUniversalJoint1Shaft1()
#define IDC_COMBO_UNIVERSAL_JOINT1_SHAFT2
afx_msg void OnDeltaposSpinUniversalLimitPyramidAngle1(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeltaposSpinUniversalLimitRoll(NMHDR *pNMHDR, LRESULT *pResult)
virtual void AF_UpdateEntities(const char *fileName)
void LoadConstraint(idDeclAF_Constraint *c)
#define IDC_EDIT_UNIVERSAL_LIMIT_PYRAMID_ANGLE1
afx_msg void OnDeltaposSpinUniversalPitchShaft1(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioUniversalAnglesShaft1()
afx_msg void OnCbnSelchangeComboUniversalLimitJoint1()
afx_msg void OnDeltaposSpinAnchorY(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioUniversalBoneShaft2()
#define IDC_RADIO_UNIVERSAL_BONE_SHAFT2
int SetSafeComboBoxSelection(CComboBox *combo, const char *string, int skip)
#define IDC_RADIO_UNIVERSAL_BONE_SHAFT1
CONST PIXELFORMATDESCRIPTOR UINT
void SaveConstraint(void)
#define IDC_EDIT_ANCHOR_X
#define IDC_RADIO_UNIVERSAL_LIMIT_BONE
afx_msg void OnEnChangeEditUniversalLimitPitch()
afx_msg void OnBnClickedRadioAnchorJoint()
afx_msg void OnCbnSelchangeComboUniversalLimitJoint2()
afx_msg void OnBnClickedRadioUniversalLimitPyramid()
#define IDC_SPIN_UNIVERSAL_LIMIT_PYRAMID_ANGLE2
afx_msg void OnEnChangeEditAnchorY()
static toolTip_t toolTips[]
const char * GetName(void) const
afx_msg void OnEnChangeEditAnchorX()
#define IDC_EDIT_UNIVERSAL_PITCH_SHAFT1
#define IDC_COMBO_UNIVERSAL_JOINT2_SHAFT1
#define IDC_EDIT_UNIVERSAL_YAW_SHAFT2
#define IDC_COMBO_UNIVERSAL_JOINT1_SHAFT1
afx_msg void OnCbnSelchangeComboAnchorJoint()
afx_msg void OnDeltaposSpinAnchorX(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioUniversalLimitCone()
afx_msg void OnEnChangeEditUniversalLimitConeAngle()
afx_msg void OnEnChangeEditUniversalLimitYaw()
#define IDC_EDIT_ANCHOR_Z
#define IDC_EDIT_UNIVERSAL_LIMIT_PITCH
#define IDC_SPIN_UNIVERSAL_YAW_SHAFT1
virtual ~DialogAFConstraintUniversal()
#define IDC_EDIT_UNIVERSAL_YAW_SHAFT1
#define IDC_COMBO_UNIVERSAL_JOINT2_SHAFT2
#define IDC_SPIN_UNIVERSAL_LIMIT_ROLL
virtual const char * GetJointName(jointHandle_t handle) const =0
afx_msg void OnEnChangeEditUniversalLimitPyramidAngle1()
afx_msg void OnBnClickedRadioUniversalLimitBone()
idAngles ToAngles(void) const
const idVec3 & ToVec3(void) const
idVec3 ToForward(void) const
afx_msg void OnCbnSelchangeComboUniversalJoint1Shaft2()
afx_msg void OnBnClickedRadioUniversalLimitNone()
afx_msg void OnBnClickedRadioUniversalBoneShaft1()
CComboBox m_comboJoint2Shaft1
#define IDC_SPIN_UNIVERSAL_LIMIT_PYRAMID_ANGLE1
afx_msg void OnCbnSelchangeComboUniversalJoint2Shaft1()
#define IDC_SPIN_UNIVERSAL_LIMIT_YAW
#define IDC_SPIN_ANCHOR_Y
CComboBox m_comboLimitJoint2
void LoadFile(idDeclAF *af)
CComboBox m_comboJoint1Shaft1
int DefaultOnToolHitTest(const toolTip_t *toolTips, const CDialog *dialog, CPoint point, TOOLINFO *pTI)
afx_msg void OnBnClickedRadioUniversalLimitAngles()
CComboBox m_comboLimitJoint1
#define IDC_RADIO_UNIVERSAL_LIMIT_PYRAMID
virtual idRenderModel * ANIM_GetModelFromName(const char *modelName)
afx_msg void OnDeltaposSpinAnchorZ(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_UNIVERSAL_PITCH_SHAFT2
#define IDC_COMBO_UNIVERSAL_LIMIT_JOINT1
afx_msg void OnEnChangeEditUniversalPitchShaft1()
int UnsetSafeComboBoxSelection(CComboBox *combo, CString &string)
#define IDC_EDIT_UNIVERSAL_LIMIT_CONE_ANGLE
#define IDC_RADIO_UNIVERSAL_ANGLES_SHAFT1
#define IDC_SPIN_ANCHOR_X
bool EditControlEnterHit(CEdit *edit)
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
#define IDC_EDIT_ANCHOR_Y
#define IDC_SPIN_UNIVERSAL_LIMIT_PITCH
afx_msg void OnDeltaposSpinUniversalYawShaft2(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_RADIO_UNIVERSAL_LIMIT_NONE
afx_msg void OnEnChangeEditUniversalYawShaft2()
#define IDC_EDIT_UNIVERSAL_LIMIT_ROLL
int GetSafeComboBoxSelection(CComboBox *combo, CString &string, int skip)
afx_msg void OnEnChangeEditUniversalLimitRoll()
void AFDialogSetFileModified(void)
void InitJointLists(void)
afx_msg void OnCbnSelchangeComboUniversalJoint2Shaft2()
CComboBox m_comboJoint1Shaft2
#define IDC_RADIO_ANCHOR_JOINT
enum idDeclAF_Constraint::@49 limit
afx_msg void OnDeltaposSpinUniversalPitchShaft2(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditAnchorZ()
afx_msg void OnDeltaposSpinUniversalLimitPyramidAngle2(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeltaposSpinUniversalLimitYaw(NMHDR *pNMHDR, LRESULT *pResult)
CComboBox m_comboAnchorJoint
#define IDC_SPIN_ANCHOR_Z
const char * c_str(void) const
enum idAFVector::@48 type
#define IDC_COMBO_UNIVERSAL_LIMIT_JOINT2
virtual int NumJoints(void) const =0
afx_msg void OnDeltaposSpinUniversalLimitConeAngle(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditUniversalYawShaft1()
#define IDC_EDIT_UNIVERSAL_LIMIT_PYRAMID_ANGLE2
afx_msg void OnEnChangeEditUniversalPitchShaft2()
afx_msg void OnDeltaposSpinUniversalLimitPitch(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_UNIVERSAL_LIMIT_CONE_ANGLE
#define IDC_SPIN_UNIVERSAL_YAW_SHAFT2
#define IDC_COMBO_ANCHOR_JOINT
#define IDC_RADIO_UNIVERSAL_LIMIT_CONE
idDeclAF_Constraint * constraint
#define IDC_RADIO_ANCHOR_COORDINATES
#define IDC_SPIN_UNIVERSAL_PITCH_SHAFT1
afx_msg void OnBnClickedRadioAnchorCoordinates()
#define IDC_RADIO_UNIVERSAL_ANGLES_SHAFT2
afx_msg void OnEnChangeEditUniversalLimitPyramidAngle2()
#define IDC_EDIT_UNIVERSAL_PITCH_SHAFT2
CComboBox m_comboJoint2Shaft2
#define IDC_EDIT_UNIVERSAL_LIMIT_YAW
afx_msg void OnBnClickedRadioUniversalAnglesShaft2()
#define IDC_RADIO_UNIVERSAL_LIMIT_ANGLES
float EditVerifyFloat(CEdit *edit, bool allowNegative)