00001 #if !defined(AFX_ANIMATIONPREVIEWDIALOG_H__A9B25935_62B1_4009_850E_B66C40064678__INCLUDED_)
00002 #define AFX_ANIMATIONPREVIEWDIALOG_H__A9B25935_62B1_4009_850E_B66C40064678__INCLUDED_
00003
00004
00005 #include "Shape.h"
00006
00007 #if _MSC_VER >= 1000
00008 #pragma once
00009 #endif // _MSC_VER >= 1000
00010
00011
00012
00014
00015
00016 class CAnimationPreviewDialog : public CDialog
00017 {
00018
00019 public:
00020 void SetDocumentSize(CSize sz);
00021 void SetFPS(int fps);
00022 void SetCanvasColor(VColor c);
00023 void SetStartEndFrames(int nstart, int nend);
00024 void SetViewStatus( ScreenState *pState );
00025 void SetShapeVector(vector<VShape*> *);
00026
00027 CAnimationPreviewDialog(CWnd* pParent = NULL);
00028
00029
00030
00031 enum { IDD = IDD_PREVIEW };
00032
00033
00034
00035
00036
00037
00038
00039 protected:
00040 virtual void DoDataExchange(CDataExchange* pDX);
00041
00042
00043
00044 protected:
00045 vector<VShape*>* m_pvShape;
00046 ScreenState* m_pState;
00047 VColor m_cCanvas;
00048 int m_nCurrentFrame, m_nStartFrame, m_nEndFrame;
00049 bool m_bPlaying;
00050 int m_nFPS;
00051 int m_nMillisecondsOfLastFrame;
00052
00053 CSize szDoc;
00054
00055 CDC m_dcBuf;
00056 CBitmap m_bmpBuf;
00057
00058
00059
00060 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00061 afx_msg void OnDestroy();
00062 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00063 afx_msg void OnPaint();
00064 afx_msg void OnTimer(UINT nIDEvent);
00065 virtual BOOL OnInitDialog();
00066 afx_msg void OnToolsPreviewanimation();
00067
00068 DECLARE_MESSAGE_MAP()
00069 };
00070
00071
00072
00073
00074 #endif // !defined(AFX_ANIMATIONPREVIEWDIALOG_H__A9B25935_62B1_4009_850E_B66C40064678__INCLUDED_)