- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# PPageFormats.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
    00024 #include "PPageBase.h"
    00025 #include "PlayerListCtrl.h"
    00026
    00027 // CPPageFormats dialog
    00028
    00029 class CPPageFormats : public CPPageBase
    00030 {
    00031         DECLARE_DYNAMIC(CPPageFormats)
    00032
    00033 private:
    00034         CImageList m_onoff;
    00035
    00036         int GetChecked(int iItem);
    00037         void SetChecked(int iItem, int fChecked);
    00038
    00039         typedef enum {AP_VIDEO=0,AP_MUSIC,AP_AUDIOCD,AP_DVDMOVIE} autoplay_t;
    00040         void AddAutoPlayToRegistry(autoplay_t ap, bool fRegister);
    00041         bool IsAutoPlayRegistered(autoplay_t ap);
    00042
    00043         void SetListItemState(int nItem);
    00044
    00045 public:
    00046         CPPageFormats();
    00047         virtual ~CPPageFormats();
    00048
    00049         static bool IsRegistered(CString ext);
    00050         static bool RegisterExt(CString ext, bool fRegister);
    00051
    00052         enum {COL_CATEGORY, COL_ENGINE};
    00053         CPlayerListCtrl m_list;
    00054         CString m_exts;
    00055         CStatic m_autoplay;
    00056         CButton m_apvideo;
    00057         CButton m_apmusic;
    00058         CButton m_apaudiocd;
    00059         CButton m_apdvd;
    00060         int m_iRtspHandler;
    00061         BOOL m_fRtspFileExtFirst;
    00062
    00063 // Dialog Data
    00064         enum { IDD = IDD_PPAGEFORMATS };
    00065
    00066 protected:
    00067         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    00068         virtual BOOL OnInitDialog();
    00069         virtual BOOL OnApply();
    00070
    00071         DECLARE_MESSAGE_MAP()
    00072
    00073 public:
    00074         afx_msg void OnNMClickList1(NMHDR* pNMHDR, LRESULT* pResult);
    00075         afx_msg void OnLvnItemchangedList1(NMHDR *pNMHDR, LRESULT *pResult);
    00076         afx_msg void OnBeginlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
    00077         afx_msg void OnDolabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
    00078         afx_msg void OnEndlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
    00079         afx_msg void OnBnClickedButton1();
    00080         afx_msg void OnBnClickedButton14();
    00081         afx_msg void OnBnClickedButton13();
    00082         afx_msg void OnBnClickedButton12();
    00083         afx_msg void OnBnClickedButton11();
    00084         afx_msg void OnUpdateButtonDefault(CCmdUI* pCmdUI);
    00085         afx_msg void OnUpdateButtonSet(CCmdUI* pCmdUI);
    00086 };