29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/AFEditor_resource.h"
83 , m_pyramidAngle1(30.0f)
84 , m_pyramidAngle2(30.0f)
94 EnableToolTips(
TRUE );
111 CDialog::DoDataExchange(pDX);
154 for (
int i = 0;
i < numJoints;
i++ ) {
329 CDialog::OnToolHitTest( point, pTI );
335 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
336 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)
432 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
433 if ( pNMUpDown->iDelta < 0 ) {
445 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
446 if ( pNMUpDown->iDelta < 0 ) {
458 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
459 if ( pNMUpDown->iDelta < 0 ) {
507 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
508 if ( pNMUpDown->iDelta < 0 ) {
529 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
530 if ( pNMUpDown->iDelta < 0 ) {
551 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
552 if ( pNMUpDown->iDelta < 0 ) {
573 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
574 if ( pNMUpDown->iDelta < 0 ) {
627 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
628 if ( pNMUpDown->iDelta < 0 ) {
649 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
650 if ( pNMUpDown->iDelta < 0 ) {
703 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
704 if ( pNMUpDown->iDelta < 0 ) {
725 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
726 if ( pNMUpDown->iDelta < 0 ) {
afx_msg void OnDeltaposSpinAnchorX(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditBasLimitRoll()
afx_msg void OnEnChangeEditAnchorY()
BOOL DefaultOnToolTipNotify(const toolTip_t *toolTips, UINT id, NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_BAS_LIMIT_ROLL
afx_msg void OnDeltaposSpinBasLimitPyramidAngle2(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnCbnSelchangeComboBasLimitJoint2()
virtual void AF_UpdateEntities(const char *fileName)
#define IDC_RADIO_BAS_LIMIT_AXIS_ANGLES
#define IDC_SPIN_BAS_LIMIT_CONE_ANGLE
void LoadFile(idDeclAF *af)
#define IDC_EDIT_BAS_LIMIT_AXIS_PITCH
afx_msg void OnBnClickedRadioBasLimitAngles()
int SetSafeComboBoxSelection(CComboBox *combo, const char *string, int skip)
afx_msg void OnEnChangeEditBasLimitConeAngle()
CONST PIXELFORMATDESCRIPTOR UINT
#define IDC_EDIT_ANCHOR_X
#define IDC_SPIN_BAS_LIMIT_ROLL
#define IDC_COMBO_BAS_LIMIT_JOINT1
afx_msg void OnBnClickedRadioBasLimitBone()
afx_msg void OnEnChangeEditAnchorX()
#define IDC_COMBO_BAS_LIMIT_AXIS_JOINT1
#define IDD_DIALOG_AF_CONSTRAINT_BALLANDSOCKET
const char * GetName(void) const
afx_msg void OnCbnSelchangeComboAnchorJoint()
afx_msg void OnCbnSelchangeComboBasLimitAxisJoint1()
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
afx_msg void OnDeltaposSpinBasLimitAxisPitch(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditBasLimitPitch()
#define IDC_RADIO_BAS_LIMIT_BONE
#define IDC_EDIT_ANCHOR_Z
afx_msg void OnDeltaposSpinAnchorY(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_BAS_LIMIT_PITCH
afx_msg void OnEnChangeEditBasLimitAxisPitch()
#define IDC_RADIO_BAS_LIMIT_AXIS_BONE
#define IDC_RADIO_BAS_LIMIT_CONE
CComboBox m_comboLimitAxisJoint2
virtual const char * GetJointName(jointHandle_t handle) const =0
afx_msg void OnDeltaposSpinBasLimitPyramidAngle1(NMHDR *pNMHDR, LRESULT *pResult)
CComboBox m_comboAnchorJoint
afx_msg void OnEnChangeEditAnchorZ()
idAngles ToAngles(void) const
const idVec3 & ToVec3(void) const
void LoadConstraint(idDeclAF_Constraint *c)
idVec3 ToForward(void) const
#define IDC_EDIT_BAS_LIMIT_CONE_ANGLE
#define IDC_EDIT_BAS_LIMIT_PYRAMID_ANGLE1
afx_msg void OnBnClickedRadioAnchorJoint()
CComboBox m_comboLimitAxisJoint1
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnDeltaposSpinBasLimitRoll(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_BAS_LIMIT_YAW
#define IDC_SPIN_BAS_LIMIT_PYRAMID_ANGLE2
#define IDC_SPIN_ANCHOR_Y
CComboBox m_comboLimitJoint1
#define IDC_SPIN_BAS_LIMIT_PITCH
int DefaultOnToolHitTest(const toolTip_t *toolTips, const CDialog *dialog, CPoint point, TOOLINFO *pTI)
#define IDC_RADIO_BAS_LIMIT_NONE
#define IDC_EDIT_BAS_LIMIT_PYRAMID_ANGLE2
afx_msg void OnCbnSelchangeComboBasLimitAxisJoint2()
virtual idRenderModel * ANIM_GetModelFromName(const char *modelName)
int UnsetSafeComboBoxSelection(CComboBox *combo, CString &string)
#define IDC_COMBO_BAS_LIMIT_AXIS_JOINT2
#define IDC_SPIN_ANCHOR_X
bool EditControlEnterHit(CEdit *edit)
afx_msg void OnEnChangeEditBasLimitPyramidAngle1()
#define IDC_EDIT_ANCHOR_Y
static toolTip_t toolTips[]
afx_msg void OnBnClickedRadioBasLimitAxisAngles()
#define IDC_RADIO_BAS_LIMIT_PYRAMID
#define IDC_SPIN_BAS_LIMIT_PYRAMID_ANGLE1
int GetSafeComboBoxSelection(CComboBox *combo, CString &string, int skip)
#define IDC_COMBO_BAS_LIMIT_JOINT2
afx_msg void OnDeltaposSpinAnchorZ(NMHDR *pNMHDR, LRESULT *pResult)
void AFDialogSetFileModified(void)
virtual ~DialogAFConstraintBallAndSocket()
void SaveConstraint(void)
afx_msg void OnDeltaposSpinBasLimitYaw(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioBasLimitAxisBone()
#define IDC_RADIO_ANCHOR_JOINT
enum idDeclAF_Constraint::@49 limit
#define IDC_RADIO_BAS_LIMIT_ANGLES
afx_msg void OnBnClickedRadioBasLimitCone()
#define IDC_SPIN_ANCHOR_Z
#define IDC_SPIN_BAS_LIMIT_AXIS_YAW
const char * c_str(void) const
afx_msg void OnCbnSelchangeComboBasLimitJoint1()
enum idAFVector::@48 type
virtual int NumJoints(void) const =0
afx_msg void OnDeltaposSpinBasLimitAxisYaw(NMHDR *pNMHDR, LRESULT *pResult)
idDeclAF_Constraint * constraint
afx_msg void OnBnClickedRadioBasLimitNone()
#define IDC_COMBO_ANCHOR_JOINT
#define IDC_SPIN_BAS_LIMIT_AXIS_PITCH
void InitJointLists(void)
afx_msg void OnBnClickedRadioAnchorCoordinates()
afx_msg void OnBnClickedRadioBasLimitPyramid()
afx_msg void OnEnChangeEditBasLimitYaw()
#define IDC_RADIO_ANCHOR_COORDINATES
afx_msg void OnEnChangeEditBasLimitPyramidAngle2()
#define IDC_EDIT_BAS_LIMIT_AXIS_YAW
CComboBox m_comboLimitJoint2
afx_msg void OnEnChangeEditBasLimitAxisYaw()
afx_msg void OnDeltaposSpinBasLimitPitch(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnDeltaposSpinBasLimitConeAngle(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_BAS_LIMIT_YAW
float EditVerifyFloat(CEdit *edit, bool allowNegative)