DlgLightAnimationEditor.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. #if !defined(AFX_DLGLIGHTANIMATIONEDITOR_H__4C1D90B3_7FA9_11D2_844A_004095812ACC__INCLUDED_)
  13. #define AFX_DLGLIGHTANIMATIONEDITOR_H__4C1D90B3_7FA9_11D2_844A_004095812ACC__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // DlgLightAnimationEditor.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDlgLightAnimationEditor dialog
  21. class CDlgLightAnimationEditor : public CDialog
  22. {
  23. // Construction
  24. public:
  25. CTFileName m_fnSaveName;
  26. CDlgLightAnimationEditor(CWnd* pParent = NULL); // standard constructor
  27. ~CDlgLightAnimationEditor();
  28. BOOL m_bChanged;
  29. BOOL m_bCustomWindowsCreated;
  30. CAnimData *m_padAnimData;
  31. CWndAnimationFrames m_wndAnimationFrames;
  32. CWndTestAnimation m_wndTestAnimation;
  33. void InitLightAnimationCombo(void);
  34. void SpreadFrames(void);
  35. void InitializeData(void);
  36. void StoreData(void);
  37. // obtain index of curently selected light animation
  38. INDEX GetSelectedLightAnimation(void);
  39. // Dialog Data
  40. //{{AFX_DATA(CDlgLightAnimationEditor)
  41. enum { IDD = IDD_LIGHT_ANIMATION_EDITOR };
  42. CComboBox m_LightAnimationCombo;
  43. CString m_strCurrentFrame;
  44. float m_fLightAnimationSpeed;
  45. int m_iAnimationFrames;
  46. CString m_strLightAnimationName;
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(CDlgLightAnimationEditor)
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. virtual void OnOK();
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(CDlgLightAnimationEditor)
  59. afx_msg void OnPaint();
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnDeleteMarker();
  62. afx_msg void OnChangeLightAnimationFrames();
  63. afx_msg void OnSelchangeLightAnimationNameCombo();
  64. afx_msg void OnChangeLightAnimationSpeed();
  65. afx_msg void OnScrollLeft();
  66. afx_msg void OnScrollRight();
  67. afx_msg void OnScrollPgLeft();
  68. afx_msg void OnScrollPgRight();
  69. afx_msg void OnDeleteAnimation();
  70. afx_msg void OnAddAnimation();
  71. afx_msg void OnChangeLightAnimationName();
  72. afx_msg void OnLoadAnimation();
  73. afx_msg void OnSaveAnimation();
  74. afx_msg void OnSaveAsAnimation();
  75. afx_msg void OnButtonClose();
  76. afx_msg void OnClose();
  77. afx_msg void OnCancel();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_DLGLIGHTANIMATIONEDITOR_H__4C1D90B3_7FA9_11D2_844A_004095812ACC__INCLUDED_)