doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DialogAFConstraint.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 #pragma once
29 
36 
37 // DialogAFConstraint dialog
38 
39 class DialogAFConstraint : public CDialog {
40 
41  DECLARE_DYNAMIC(DialogAFConstraint)
42 
43 public:
44  DialogAFConstraint( CWnd* pParent = NULL ); // standard constructor
45  virtual ~DialogAFConstraint();
46  void LoadFile( idDeclAF *af );
47  void SaveFile( void );
48  void LoadConstraint( const char *name );
49  void SaveConstraint( void );
50  void UpdateFile( void );
51 
53 
54 protected:
55  virtual BOOL OnInitDialog();
56  virtual void DoDataExchange( CDataExchange* pDX ); // DDX/DDV support
57  virtual int OnToolHitTest( CPoint point, TOOLINFO* pTI ) const;
58  afx_msg BOOL OnToolTipNotify( UINT id, NMHDR *pNMHDR, LRESULT *pResult );
59  afx_msg void OnShowWindow( BOOL bShow, UINT nStatus );
60  afx_msg void OnCbnSelchangeComboConstraints();
61  afx_msg void OnBnClickedButtonNewconstraint();
62  afx_msg void OnBnClickedButtonRenameconstraint();
63  afx_msg void OnBnClickedButtonDeleteconstraint();
64  afx_msg void OnCbnSelchangeComboConstraintType();
67  afx_msg void OnEnChangeEditConstraintFriction();
68  afx_msg void OnDeltaposSpinConstraintFriction(NMHDR *pNMHDR, LRESULT *pResult);
69 
70  DECLARE_MESSAGE_MAP()
71 
72 private:
75  CDialog * constraintDlg;
82 
83  //{{AFX_DATA(DialogAFConstraint)
84  CComboBox m_comboConstraintList; // list with constraints
86  CComboBox m_comboBody1List;
87  CComboBox m_comboBody2List;
88  float m_friction;
89  //}}AFX_DATA
90 
91  static toolTip_t toolTips[];
92 
93 private:
94  void InitConstraintList( void );
95  void InitConstraintTypeDlg( void );
96  void InitBodyLists( void );
97  void InitNewRenameDeleteButtons( void );
98 };
CComboBox m_comboConstraintList
DialogAFConstraintSpring * springDlg
void InitNewRenameDeleteButtons(void)
DialogAFConstraint(CWnd *pParent=NULL)
#define IDD_DIALOG_AF_CONSTRAINT
CONST PIXELFORMATDESCRIPTOR UINT
Definition: win_qgl.cpp:47
#define private
Definition: TypeInfo.cpp:30
afx_msg void OnBnClickedButtonNewconstraint()
afx_msg void OnCbnSelchangeComboConstraints()
virtual BOOL OnInitDialog()
#define BOOL
Definition: mprintf.c:71
afx_msg void OnEnChangeEditConstraintFriction()
DialogAFConstraintFixed * fixedDlg
afx_msg void OnBnClickedButtonRenameconstraint()
afx_msg void OnDeltaposSpinConstraintFriction(NMHDR *pNMHDR, LRESULT *pResult)
static toolTip_t toolTips[]
afx_msg void OnCbnSelchangeComboConstraintBody2()
#define NULL
Definition: Lib.h:88
afx_msg void OnBnClickedButtonDeleteconstraint()
void LoadFile(idDeclAF *af)
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus)
virtual int OnToolHitTest(CPoint point, TOOLINFO *pTI) const
DialogAFConstraintBallAndSocket * ballAndSocketDlg
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnCbnSelchangeComboConstraintType()
const GLcharARB * name
Definition: glext.h:3629
void LoadConstraint(const char *name)
CComboBox m_comboConstraintType
DialogAFConstraintHinge * hingeDlg
DialogAFConstraintSlider * sliderDlg
idDeclAF_Constraint * constraint
DialogAFConstraintUniversal * universalDlg
afx_msg void OnCbnSelchangeComboConstraintBody1()