diff options
Diffstat (limited to 'src/apps/mplayerc/ConvertDlg.h')
-rw-r--r-- | src/apps/mplayerc/ConvertDlg.h | 276 |
1 files changed, 138 insertions, 138 deletions
diff --git a/src/apps/mplayerc/ConvertDlg.h b/src/apps/mplayerc/ConvertDlg.h index 2d7f10f92..3047385f6 100644 --- a/src/apps/mplayerc/ConvertDlg.h +++ b/src/apps/mplayerc/ConvertDlg.h @@ -30,15 +30,15 @@ class CFilterTreeCtrl : public CTreeCtrl
{
public:
- CFilterTreeCtrl();
+ CFilterTreeCtrl();
protected:
- virtual INT_PTR OnToolHitTest(CPoint point, TOOLINFO* pTI) const;
- virtual void PreSubclassWindow();
+ virtual INT_PTR OnToolHitTest(CPoint point, TOOLINFO* pTI) const;
+ virtual void PreSubclassWindow();
public:
- DECLARE_MESSAGE_MAP()
- afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
+ DECLARE_MESSAGE_MAP()
+ afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
};
// CConvertDlg dialog
@@ -46,155 +46,155 @@ public: class CConvertDlg : public CResizableDialog
{
public:
- class CTreeItem
- {
- protected:
- CTreeCtrl& m_tree;
- HTREEITEM m_hTI;
-
- public:
- CTreeItem(CTreeCtrl& tree, HTREEITEM hTIParent);
- virtual ~CTreeItem();
- virtual void Update() {}
- virtual bool ToolTip(CString& str)
- {
- return false;
- }
- void SetLabel(LPCTSTR label);
- void SetImage(int nImage, int nSelectedImage);
- operator HTREEITEM() const
- {
- return m_hTI;
- }
- };
-
- class CTreeItemFilter : public CTreeItem
- {
- public:
- CComPtr<IBaseFilter> m_pBF;
- CTreeItemFilter(IBaseFilter* pBF, CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- };
-
- class CTreeItemFile : public CTreeItemFilter
- {
- public:
- CString m_fn;
- CTreeItemFile(CString fn, IBaseFilter* pBF, CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- bool ToolTip(CString& str);
- };
-
- class CTreeItemPin : public CTreeItem
- {
- public:
- CComPtr<IPin> m_pPin;
- CTreeItemPin(IPin* pPin, CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- bool ToolTip(CString& str);
- bool IsConnected();
- };
-
- class CTreeItemResourceFolder : public CTreeItem
- {
- public:
- CTreeItemResourceFolder(CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- bool ToolTip(CString& str);
- };
-
- class CTreeItemResource : public CTreeItem
- {
- public:
- CDSMResource m_res;
- CTreeItemResource(const CDSMResource& res, CTreeCtrl& tree, HTREEITEM hTIParent);
- ~CTreeItemResource();
- void Update();
- bool ToolTip(CString& str);
- };
-
- class CTreeItemChapterFolder : public CTreeItem
- {
- public:
- CTreeItemChapterFolder(CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- };
-
- class CTreeItemChapter : public CTreeItem
- {
- public:
- CDSMChapter m_chap;
- CTreeItemChapter(const CDSMChapter& chap, CTreeCtrl& tree, HTREEITEM hTIParent);
- void Update();
- };
+ class CTreeItem
+ {
+ protected:
+ CTreeCtrl& m_tree;
+ HTREEITEM m_hTI;
+
+ public:
+ CTreeItem(CTreeCtrl& tree, HTREEITEM hTIParent);
+ virtual ~CTreeItem();
+ virtual void Update() {}
+ virtual bool ToolTip(CString& str)
+ {
+ return false;
+ }
+ void SetLabel(LPCTSTR label);
+ void SetImage(int nImage, int nSelectedImage);
+ operator HTREEITEM() const
+ {
+ return m_hTI;
+ }
+ };
+
+ class CTreeItemFilter : public CTreeItem
+ {
+ public:
+ CComPtr<IBaseFilter> m_pBF;
+ CTreeItemFilter(IBaseFilter* pBF, CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ };
+
+ class CTreeItemFile : public CTreeItemFilter
+ {
+ public:
+ CString m_fn;
+ CTreeItemFile(CString fn, IBaseFilter* pBF, CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ bool ToolTip(CString& str);
+ };
+
+ class CTreeItemPin : public CTreeItem
+ {
+ public:
+ CComPtr<IPin> m_pPin;
+ CTreeItemPin(IPin* pPin, CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ bool ToolTip(CString& str);
+ bool IsConnected();
+ };
+
+ class CTreeItemResourceFolder : public CTreeItem
+ {
+ public:
+ CTreeItemResourceFolder(CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ bool ToolTip(CString& str);
+ };
+
+ class CTreeItemResource : public CTreeItem
+ {
+ public:
+ CDSMResource m_res;
+ CTreeItemResource(const CDSMResource& res, CTreeCtrl& tree, HTREEITEM hTIParent);
+ ~CTreeItemResource();
+ void Update();
+ bool ToolTip(CString& str);
+ };
+
+ class CTreeItemChapterFolder : public CTreeItem
+ {
+ public:
+ CTreeItemChapterFolder(CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ };
+
+ class CTreeItemChapter : public CTreeItem
+ {
+ public:
+ CDSMChapter m_chap;
+ CTreeItemChapter(const CDSMChapter& chap, CTreeCtrl& tree, HTREEITEM hTIParent);
+ void Update();
+ };
private:
- CComPtr<IGraphBuilder2> m_pGB;
- CComPtr<IBaseFilter> m_pMux;
- CComQIPtr<IMediaControl> m_pMC;
- CComQIPtr<IMediaEventEx> m_pME;
- CComQIPtr<IMediaSeeking> m_pMS;
+ CComPtr<IGraphBuilder2> m_pGB;
+ CComPtr<IBaseFilter> m_pMux;
+ CComQIPtr<IMediaControl> m_pMC;
+ CComQIPtr<IMediaEventEx> m_pME;
+ CComQIPtr<IMediaSeeking> m_pMS;
- CString m_title;
- UINT m_nIDEventStatus;
+ CString m_title;
+ UINT m_nIDEventStatus;
- CBitmap m_streamtypesbm;
- CImageList m_streamtypes;
+ CBitmap m_streamtypesbm;
+ CImageList m_streamtypes;
- CList<CTreeItem*> m_pTIs;
+ CList<CTreeItem*> m_pTIs;
- void AddFile(CString fn);
- bool ConvertFile(LPCTSTR fn, IPin* pPin = NULL);
- void AddFilter(HTREEITEM hTI, IBaseFilter* pBF);
- void DeleteFilter(IBaseFilter* pBF);
- void DeleteItem(HTREEITEM hTI);
- void DeleteChildren(HTREEITEM hTI);
+ void AddFile(CString fn);
+ bool ConvertFile(LPCTSTR fn, IPin* pPin = NULL);
+ void AddFilter(HTREEITEM hTI, IBaseFilter* pBF);
+ void DeleteFilter(IBaseFilter* pBF);
+ void DeleteItem(HTREEITEM hTI);
+ void DeleteChildren(HTREEITEM hTI);
- HTREEITEM HitTest(CPoint& sp, CPoint& cp);
+ HTREEITEM HitTest(CPoint& sp, CPoint& cp);
- void ShowPopup(CPoint p);
- void ShowFilePopup(HTREEITEM hTI, CPoint p);
- void ShowPinPopup(HTREEITEM hTI, CPoint p);
- void ShowResourceFolderPopup(HTREEITEM hTI, CPoint p);
- void ShowResourcePopup(HTREEITEM hTI, CPoint p);
- void ShowChapterFolderPopup(HTREEITEM hTI, CPoint p);
- void ShowChapterPopup(HTREEITEM hTI, CPoint p);
+ void ShowPopup(CPoint p);
+ void ShowFilePopup(HTREEITEM hTI, CPoint p);
+ void ShowPinPopup(HTREEITEM hTI, CPoint p);
+ void ShowResourceFolderPopup(HTREEITEM hTI, CPoint p);
+ void ShowResourcePopup(HTREEITEM hTI, CPoint p);
+ void ShowChapterFolderPopup(HTREEITEM hTI, CPoint p);
+ void ShowChapterPopup(HTREEITEM hTI, CPoint p);
- bool EditProperties(IDSMPropertyBag* pPB);
- bool EditResource(CTreeItemResource* t);
- bool EditChapter(CTreeItemChapter* t);
+ bool EditProperties(IDSMPropertyBag* pPB);
+ bool EditResource(CTreeItemResource* t);
+ bool EditChapter(CTreeItemChapter* t);
public:
- CConvertDlg(CWnd* pParent = NULL); // standard constructor
- virtual ~CConvertDlg();
+ CConvertDlg(CWnd* pParent = NULL); // standard constructor
+ virtual ~CConvertDlg();
// Dialog Data
- enum { IDD = IDD_CONVERT_DLG };
- CFilterTreeCtrl m_tree;
- CString m_fn;
+ enum { IDD = IDD_CONVERT_DLG };
+ CFilterTreeCtrl m_tree;
+ CString m_fn;
protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL OnInitDialog();
- virtual void OnOK();
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ virtual BOOL PreTranslateMessage(MSG* pMsg);
+ virtual BOOL OnInitDialog();
+ virtual void OnOK();
- DECLARE_MESSAGE_MAP()
+ DECLARE_MESSAGE_MAP()
public:
- afx_msg LRESULT OnGraphNotify(WPARAM wParam, LPARAM lParam);
- afx_msg void OnDropFiles(HDROP hDropInfo);
- afx_msg void OnClose();
- afx_msg void OnNMClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnNMDblclkTree1(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnBnClickedButton1();
- afx_msg void OnUpdateButton1(CCmdUI* pCmdUI);
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- afx_msg void OnBnClickedButton2();
- afx_msg void OnBnClickedButton3();
- afx_msg void OnBnClickedButton4();
- afx_msg void OnUpdateButton2(CCmdUI* pCmdUI);
- afx_msg void OnUpdateButton3(CCmdUI* pCmdUI);
- afx_msg void OnUpdateButton4(CCmdUI* pCmdUI);
+ afx_msg LRESULT OnGraphNotify(WPARAM wParam, LPARAM lParam);
+ afx_msg void OnDropFiles(HDROP hDropInfo);
+ afx_msg void OnClose();
+ afx_msg void OnNMClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
+ afx_msg void OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult);
+ afx_msg void OnNMDblclkTree1(NMHDR *pNMHDR, LRESULT *pResult);
+ afx_msg void OnBnClickedButton1();
+ afx_msg void OnUpdateButton1(CCmdUI* pCmdUI);
+ afx_msg void OnTimer(UINT_PTR nIDEvent);
+ afx_msg void OnBnClickedButton2();
+ afx_msg void OnBnClickedButton3();
+ afx_msg void OnBnClickedButton4();
+ afx_msg void OnUpdateButton2(CCmdUI* pCmdUI);
+ afx_msg void OnUpdateButton3(CCmdUI* pCmdUI);
+ afx_msg void OnUpdateButton4(CCmdUI* pCmdUI);
};
|