Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

AnimationPreviewDialog.h

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 // AnimationPreviewDialog.h : header file
00011 //
00012 
00014 // CAnimationPreviewDialog dialog
00015 
00016 class CAnimationPreviewDialog : public CDialog
00017 {
00018 // Construction
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);   // standard constructor
00028 
00029 // Dialog Data
00030         //{{AFX_DATA(CAnimationPreviewDialog)
00031         enum { IDD = IDD_PREVIEW };
00032                 // NOTE: the ClassWizard will add data members here
00033         //}}AFX_DATA
00034 
00035 
00036 // Overrides
00037         // ClassWizard generated virtual function overrides
00038         //{{AFX_VIRTUAL(CAnimationPreviewDialog)
00039         protected:
00040         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00041         //}}AFX_VIRTUAL
00042 
00043 // Implementation
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         // Generated message map functions
00059         //{{AFX_MSG(CAnimationPreviewDialog)
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         //}}AFX_MSG
00068         DECLARE_MESSAGE_MAP()
00069 };
00070 
00071 //{{AFX_INSERT_LOCATION}}
00072 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00073 
00074 #endif // !defined(AFX_ANIMATIONPREVIEWDIALOG_H__A9B25935_62B1_4009_850E_B66C40064678__INCLUDED_)

Generated at Wed Aug 29 19:58:55 2001 for Pocket Animator by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001