DlgPlayerControls.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // DlgPlayerControls.h : header file
  13. //
  14. #ifndef DLGPLAYERCONTROLS_H
  15. #define DLGPLAYERCONTROLS_H 1
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CDlgPlayerControls dialog
  18. class CDlgPlayerControls : public CDialog
  19. {
  20. // Construction
  21. public:
  22. INDEX m_iSelectedAction;
  23. CControls &m_ctrlControls;
  24. CDlgPlayerControls( CControls &ctrlControls, CWnd* pParent = NULL); // standard constructor
  25. void ActivatePressKey( char *pFirstOrSecond);
  26. void FillActionsList(void);
  27. void FillAxisList(void);
  28. void SetFirstAndSecondButtonNames(void);
  29. CButtonAction *GetSelectedButtonAction();
  30. // Dialog Data
  31. //{{AFX_DATA(CDlgPlayerControls)
  32. enum { IDD = IDD_PLAYER_CONTROLS };
  33. CAxisListCtrl m_listAxisActions;
  34. CActionsListControl m_listButtonActions;
  35. CPressKeyEditControl m_editSecondControl;
  36. CPressKeyEditControl m_editFirstControl;
  37. CSliderCtrl m_sliderControlerSensitivity;
  38. CComboBox m_comboControlerAxis;
  39. BOOL m_bInvertControler;
  40. int m_iRelativeAbsoluteType;
  41. CString m_strPressNewButton;
  42. //}}AFX_DATA
  43. // Overrides
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(CDlgPlayerControls)
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. //protected:
  51. public:
  52. // Generated message map functions
  53. //{{AFX_MSG(CDlgPlayerControls)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnSetfocusEditFirstControl();
  56. afx_msg void OnSetfocusEditSecondControl();
  57. afx_msg void OnFirstControlNone();
  58. afx_msg void OnSecondControlNone();
  59. afx_msg void OnDefault();
  60. afx_msg void OnSelchangeControlerAxis();
  61. afx_msg void OnMoveControlUp();
  62. afx_msg void OnMoveControlDown();
  63. afx_msg void OnButtonActionAdd();
  64. afx_msg void OnButtonActionEdit();
  65. afx_msg void OnButtonActionRemove();
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. #endif // DLGPLAYERCONTROLS_H