- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# PPageOverrides.h

    00001 /*
    00002  *      Copyright (C) 2003-2005 Gabest
    00003  *      http://www.gabest.org
    00004  *
    00005  *  This Program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2, or (at your option)
    00008  *  any later version.
    00009  *
    00010  *  This Program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    00013  *  GNU General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU General Public License
    00016  *  along with GNU Make; see the file COPYING.  If not, write to
    00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    00018  *  http://www.gnu.org/copyleft/gpl.html
    00019  *
    00020  */
    00021
    00022 #pragma once
    00023 #include "PPageBase.h"
    00024 #include "floatedit.h"
    00025 #include "mplayerc.h"
    00026
    00027 // CPPageOverrides dialog
    00028
    00029 class CPPageOverrides : public CPPageBase
    00030 {
    00031         DECLARE_DYNAMIC(CPPageOverrides)
    00032
    00033 private:
    00034         void StepUp(CCheckListBox& list);
    00035         void StepDown(CCheckListBox& list);
    00036
    00037         CAutoPtrList<Filter> m_pFilters;
    00038         Filter* m_pLastSelFilter;
    00039         Filter* GetCurFilter();
    00040
    00041         void SetupMajorTypes(CArray<GUID>& guids);
    00042         void SetupSubTypes(CArray<GUID>& guids);
    00043
    00044 public:
    00045         CPPageOverrides();
    00046         virtual ~CPPageOverrides();
    00047
    00048 // Dialog Data
    00049         enum { IDD = IDD_PPAGEOVERRIDES };
    00050
    00051         CCheckListBox m_filters;
    00052         int m_iLoadType;
    00053         CHexEdit m_dwMerit;
    00054         CTreeCtrl m_tree;
    00055
    00056 protected:
    00057         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    00058         virtual BOOL OnInitDialog();
    00059         virtual BOOL OnApply();
    00060
    00061         DECLARE_MESSAGE_MAP()
    00062
    00063 public:
    00064         afx_msg void OnUpdateFilter(CCmdUI* pCmdUI);
    00065         afx_msg void OnUpdateFilterUp(CCmdUI* pCmdUI);
    00066         afx_msg void OnUpdateFilterDown(CCmdUI* pCmdUI);
    00067         afx_msg void OnUpdateFilterMerit(CCmdUI* pCmdUI);
    00068         afx_msg void OnUpdateSubType(CCmdUI* pCmdUI);
    00069         afx_msg void OnUpdateDeleteType(CCmdUI* pCmdUI);
    00070         afx_msg void OnAddRegistered();
    00071         afx_msg void OnRemoveFilter();
    00072         afx_msg void OnMoveFilterUp();
    00073         afx_msg void OnMoveFilterDown();
    00074         afx_msg void OnLbnDblclkFilter();
    00075         afx_msg void OnAddMajorType();
    00076         afx_msg void OnAddSubType();
    00077         afx_msg void OnDeleteType();
    00078         afx_msg void OnResetTypes();
    00079         afx_msg void OnLbnSelchangeList1();
    00080         afx_msg void OnBnClickedRadio();
    00081         afx_msg void OnEnChangeEdit1();
    00082         afx_msg void OnNMDblclkTree2(NMHDR *pNMHDR, LRESULT *pResult);
    00083         afx_msg void OnDropFiles(HDROP hDropInfo);
    00084 };