X64 transport [Part 5] (Update plugins.cpp)
[xy_vsfilter.git] / src / apps / mplayerc / PPageExternalFilters.h
blob1fa3043dc8d1e1536901d3bb8a5300feb6ee1c44
1 /*
2 * Copyright (C) 2003-2006 Gabest
3 * http://www.gabest.org
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GNU Make; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
22 #pragma once
23 #include "PPageBase.h"
24 #include "floatedit.h"
25 #include "mplayerc.h"
27 // CPPageExternalFilters dialog
29 class CPPageExternalFilters : public CPPageBase
31 DECLARE_DYNAMIC(CPPageExternalFilters)
33 private:
34 void StepUp(CCheckListBox& list);
35 void StepDown(CCheckListBox& list);
37 CAutoPtrList<FilterOverride> m_pFilters;
38 FilterOverride* m_pLastSelFilter;
39 FilterOverride* GetCurFilter();
41 void SetupMajorTypes(CAtlArray<GUID>& guids);
42 void SetupSubTypes(CAtlArray<GUID>& guids);
44 public:
45 CPPageExternalFilters();
46 virtual ~CPPageExternalFilters();
48 // Dialog Data
49 enum { IDD = IDD_PPAGEEXTERNALFILTERS };
51 CCheckListBox m_filters;
52 int m_iLoadType;
53 CHexEdit m_dwMerit;
54 CTreeCtrl m_tree;
56 protected:
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
58 virtual BOOL OnInitDialog();
59 virtual BOOL OnApply();
61 DECLARE_MESSAGE_MAP()
63 public:
64 afx_msg void OnUpdateFilter(CCmdUI* pCmdUI);
65 afx_msg void OnUpdateFilterUp(CCmdUI* pCmdUI);
66 afx_msg void OnUpdateFilterDown(CCmdUI* pCmdUI);
67 afx_msg void OnUpdateFilterMerit(CCmdUI* pCmdUI);
68 afx_msg void OnUpdateSubType(CCmdUI* pCmdUI);
69 afx_msg void OnUpdateDeleteType(CCmdUI* pCmdUI);
70 afx_msg void OnAddRegistered();
71 afx_msg void OnRemoveFilter();
72 afx_msg void OnMoveFilterUp();
73 afx_msg void OnMoveFilterDown();
74 afx_msg void OnLbnDblclkFilter();
75 afx_msg void OnAddMajorType();
76 afx_msg void OnAddSubType();
77 afx_msg void OnDeleteType();
78 afx_msg void OnResetTypes();
79 afx_msg void OnLbnSelchangeList1();
80 afx_msg void OnBnClickedRadio();
81 afx_msg void OnEnChangeEdit1();
82 afx_msg void OnNMDblclkTree2(NMHDR *pNMHDR, LRESULT *pResult);
83 afx_msg void OnDropFiles(HDROP hDropInfo);