TimelineDlg.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
- //{{AFX_INCLUDES()
- #include "CGraphView.h"
- #include "cgraphview.h"
- //}}AFX_INCLUDES
- #if !defined(AFX_TIMELINEDLG_H__8AA1CDCF_82D4_4742_8EE8_850C98CFE1FD__INCLUDED_)
- #define AFX_TIMELINEDLG_H__8AA1CDCF_82D4_4742_8EE8_850C98CFE1FD__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TimelineDlg.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTimelineDlg dialog
- #include "CXvid.h"
- class CTimelineDlg : public CDialog
- {
- // Construction
- public:
- CTimelineDlg(CWnd* pParent = NULL); // standard constructor
- void Init(CXvid::QUANTS* quants, int nframes, int maxq, int maxfs);
- // Dialog Data
- //{{AFX_DATA(CTimelineDlg)
- enum { IDD = IDD_TIMELINE };
- CComboBox m_maxquant;
- CComboBox m_scale;
- CScrollBar m_scroll;
- CGraphView m_graph;
- int m_left;
- int m_right;
- int m_maxql;
- int m_maxqr;
- int m_minql;
- int m_minqr;
- int m_maxfsl;
- int m_maxfsr;
- int m_minfsl;
- int m_minfsr;
- CGraphView m_graphfs;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTimelineDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- int nelem;
- CXvid::QUANTS* qarray;
- bool scaleIsSet, maxIsSet;
- //Scrollbar vars
- int min, max, pos; //win scroll
- int lchange, schange;
- double umin, umax, upos; //user scroll
- //Graph vars
- int scale, maxquant, qmax, fsmax;
- void DrawTimeline(int uscrollpos);
- void SetColor(int qvalue);
- void InitGraph(int scale, int maxquant);
- void InitScroll(int minu, int maxu, int posu, int smallc, int largec);
- // Generated message map functions
- //{{AFX_MSG(CTimelineDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnSelchangeComboScale();
- afx_msg void OnSelchangeComboMaxquant();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TIMELINEDLG_H__8AA1CDCF_82D4_4742_8EE8_850C98CFE1FD__INCLUDED_)