29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/AFEditor_resource.h"
92 EnableToolTips(
TRUE );
109 CDialog::DoDataExchange(pDX);
147 for (
int i = 0;
i < numJoints;
i++ ) {
297 CDialog::OnToolHitTest( point, pTI );
303 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
304 ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)
398 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
399 if ( pNMUpDown->iDelta < 0 ) {
411 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
412 if ( pNMUpDown->iDelta < 0 ) {
424 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
425 if ( pNMUpDown->iDelta < 0 ) {
486 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
487 if ( pNMUpDown->iDelta < 0 ) {
499 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
500 if ( pNMUpDown->iDelta < 0 ) {
512 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
513 if ( pNMUpDown->iDelta < 0 ) {
534 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
550 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
566 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
582 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
583 if ( pNMUpDown->iDelta < 0 ) {
617 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
618 if ( pNMUpDown->iDelta < 0 ) {
652 LPNMUPDOWN pNMUpDown =
reinterpret_cast<LPNMUPDOWN
>(pNMHDR);
653 if ( pNMUpDown->iDelta < 0 ) {
BOOL DefaultOnToolTipNotify(const toolTip_t *toolTips, UINT id, NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioAnchor2Coordinates()
afx_msg void OnBnClickedRadioLimitNoMinLength()
virtual void AF_UpdateEntities(const char *fileName)
static toolTip_t toolTips[]
#define IDC_EDIT_ANCHOR2_Y
afx_msg void OnEnChangeEditSpringDamping()
#define IDC_RADIO_SPRING_NO_MIN_LENGTH
afx_msg void OnEnChangeEditAnchorY()
int SetSafeComboBoxSelection(CComboBox *combo, const char *string, int skip)
void SaveConstraint(void)
CONST PIXELFORMATDESCRIPTOR UINT
afx_msg void OnBnClickedRadioAnchorCoordinates()
afx_msg void OnDeltaposSpinAnchorZ(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_SPRING_COMPRESS
#define IDC_EDIT_ANCHOR_X
#define IDC_COMBO_ANCHOR2_JOINT
afx_msg void OnDeltaposSpinSpringDamping(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_RADIO_ANCHOR2_COORDINATES
afx_msg void OnEnChangeEditAnchor2Y()
afx_msg void OnDeltaposSpinAnchor2Z(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditLimitMinLength()
idDeclAF_Constraint * constraint
afx_msg void OnDeltaposSpinAnchor2Y(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBnClickedRadioAnchorJoint()
const char * GetName(void) const
afx_msg void OnDeltaposSpinLimitMaxLength(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnCbnSelchangeComboAnchor2Joint()
afx_msg void OnEnChangeEditSpringRestLength()
afx_msg void OnEnChangeEditAnchor2X()
#define IDC_RADIO_ANCHOR2_JOINT
#define IDC_EDIT_ANCHOR2_X
afx_msg void OnEnChangeEditSpringStretch()
void LoadFile(idDeclAF *af)
#define IDC_EDIT_ANCHOR_Z
afx_msg void OnDeltaposSpinAnchorX(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_SPRING_MIN_LENGTH
CComboBox m_comboAnchor2Joint
afx_msg void OnBnClickedRadioLimitNoMaxLength()
virtual const char * GetJointName(jointHandle_t handle) const =0
#define IDC_SPIN_SPRING_REST_LENGTH
const idVec3 & ToVec3(void) const
afx_msg void OnEnChangeEditSpringCompress()
#define IDC_EDIT_SPRING_STRETCH
#define IDC_EDIT_SPRING_MAX_LENGTH
void LoadConstraint(idDeclAF_Constraint *c)
afx_msg void OnDeltaposSpinSpringCompress(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditAnchor2Z()
void InitJointLists(void)
afx_msg void OnDeltaposSpinLimitMinLength(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_ANCHOR_Y
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
#define IDC_SPIN_ANCHOR2_X
#define IDC_SPIN_SPRING_DAMPING
int DefaultOnToolHitTest(const toolTip_t *toolTips, const CDialog *dialog, CPoint point, TOOLINFO *pTI)
virtual idRenderModel * ANIM_GetModelFromName(const char *modelName)
#define IDC_SPIN_ANCHOR2_Z
#define IDD_DIALOG_AF_CONSTRAINT_SPRING
#define IDC_SPIN_ANCHOR_X
afx_msg void OnCbnSelchangeComboAnchorJoint()
bool EditControlEnterHit(CEdit *edit)
#define IDC_SPIN_SPRING_MAX_LENGTH
#define IDC_EDIT_ANCHOR_Y
#define IDC_EDIT_ANCHOR2_Z
int GetSafeComboBoxSelection(CComboBox *combo, CString &string, int skip)
afx_msg void OnEnChangeEditAnchorZ()
void AFDialogSetFileModified(void)
afx_msg void OnDeltaposSpinAnchor2X(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_EDIT_SPRING_REST_LENGTH
afx_msg void OnBnClickedRadioLimitMinLength()
virtual ~DialogAFConstraintSpring()
afx_msg void OnDeltaposSpinSpringStretch(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_RADIO_ANCHOR_JOINT
#define IDC_RADIO_SPRING_NO_MAX_LENGTH
#define IDC_EDIT_SPRING_MIN_LENGTH
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnDeltaposSpinSpringRestLength(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEnChangeEditLimitMaxLength()
#define IDC_SPIN_ANCHOR_Z
float EditSpinFloat(CEdit *edit, bool up)
const char * c_str(void) const
#define IDC_RADIO_SPRING_MIN_LENGTH
enum idAFVector::@48 type
virtual int NumJoints(void) const =0
#define IDC_EDIT_SPRING_DAMPING
afx_msg void OnBnClickedRadioLimitMaxLength()
#define IDC_COMBO_ANCHOR_JOINT
#define IDC_RADIO_SPRING_MAX_LENGTH
afx_msg void OnBnClickedRadioAnchor2Joint()
#define IDC_RADIO_ANCHOR_COORDINATES
#define IDC_SPIN_ANCHOR2_Y
afx_msg void OnDeltaposSpinAnchorY(NMHDR *pNMHDR, LRESULT *pResult)
#define IDC_SPIN_SPRING_COMPRESS
#define IDC_SPIN_SPRING_STRETCH
afx_msg void OnEnChangeEditAnchorX()
CComboBox m_comboAnchorJoint
float EditVerifyFloat(CEdit *edit, bool allowNegative)