WndAnimationFrames.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. // WndAnimationFrames.h : header file
  13. //
  14. #ifndef WNDANIMATIONFRAMES_H
  15. #define WNDANIMATIONFRAMES_H 1
  16. class CDlgLightAnimationEditor;
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CWndAnimationFrames window
  19. class CWndAnimationFrames : public CWnd
  20. {
  21. // Construction
  22. public:
  23. CWndAnimationFrames();
  24. inline void SetParentDlg( CDlgLightAnimationEditor *pParentDlg) {m_pParentDlg=pParentDlg;};
  25. void DeleteSelectedFrame( void);
  26. INDEX GetFrame( INDEX iFramePosition);
  27. BOOL IsFrameVisible(INDEX iFrame);
  28. BOOL IsSelectedFrameKeyFrame(void);
  29. void ScrollLeft(void);
  30. void ScrollRight(void);
  31. void ScrollPgLeft(void);
  32. void ScrollPgRight(void);
  33. // Attributes
  34. public:
  35. INDEX m_iFramesInLine;
  36. INDEX m_iStartingFrame;
  37. INDEX m_iSelectedFrame;
  38. CDlgLightAnimationEditor *m_pParentDlg;
  39. CDrawPort *m_pDrawPort;
  40. CViewPort *m_pViewPort;
  41. // Operations
  42. public:
  43. // Overrides
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(CWndAnimationFrames)
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. public:
  49. virtual ~CWndAnimationFrames();
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CWndAnimationFrames)
  53. afx_msg void OnPaint();
  54. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  55. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  56. afx_msg void OnDestroy();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. /////////////////////////////////////////////////////////////////////////////
  61. #endif // WNDANIMATIONFRAMES_H