- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# PPageRealMediaQuickTime.cpp

    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 // PPageRealMediaQuickTime.cpp : implementation file
    00023 //
    00024
    00025 #include "stdafx.h"
    00026 #include "mplayerc.h"
    00027 #include "PPageRealMediaQuickTime.h"
    00028
    00029 // CPPageRealMediaQuickTime dialog
    00030
    00031 IMPLEMENT_DYNAMIC(CPPageRealMediaQuickTime, CPPageBase)
    00032 CPPageRealMediaQuickTime::CPPageRealMediaQuickTime()
    00033         : CPPageBase(CPPageRealMediaQuickTime::IDD, CPPageRealMediaQuickTime::IDD)
    00034         , m_fIntRealMedia(FALSE)
    00035         , m_fRealMediaRenderless(FALSE)
    00036         , m_iQuickTimeRenderer(0)
    00037 {
    00038 }
    00039
    00040 CPPageRealMediaQuickTime::~CPPageRealMediaQuickTime()
    00041 {
    00042 }
    00043
    00044 void CPPageRealMediaQuickTime::DoDataExchange(CDataExchange* pDX)
    00045 {
    00046         __super::DoDataExchange(pDX);
    00047         DDX_Check(pDX, IDC_CHECK2, m_fIntRealMedia);
    00048         DDX_Check(pDX, IDC_CHECK1, m_fRealMediaRenderless);
    00049         DDX_Radio(pDX, IDC_RADIO1, m_iQuickTimeRenderer);
    00050         DDX_Control(pDX, IDC_EDIT2, m_RealMediaQuickTimeFPS);
    00051 }
    00052
    00053
    00054 BEGIN_MESSAGE_MAP(CPPageRealMediaQuickTime, CPPageBase)
    00055         ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
    00056 END_MESSAGE_MAP()
    00057
    00058
    00059 // CPPageRealMediaQuickTime message handlers
    00060
    00061 BOOL CPPageRealMediaQuickTime::OnInitDialog()
    00062 {
    00063         __super::OnInitDialog();
    00064
    00065         AppSettings& s = AfxGetAppSettings();
    00066
    00067         m_fIntRealMedia = s.fIntRealMedia;
    00068 //      m_fRealMediaRenderless = s.fRealMediaRenderless;
    00069 //      m_iQuickTimeRenderer = s.iQuickTimeRenderer;
    00070         m_RealMediaQuickTimeFPS = s.RealMediaQuickTimeFPS;
    00071
    00072         UpdateData(FALSE);
    00073
    00074         return TRUE;  // return TRUE unless you set the focus to a control
    00075         // EXCEPTION: OCX Property Pages should return FALSE
    00076 }
    00077
    00078 BOOL CPPageRealMediaQuickTime::OnApply()
    00079 {
    00080         UpdateData();
    00081
    00082         AppSettings& s = AfxGetAppSettings();
    00083
    00084         s.fIntRealMedia = !!m_fIntRealMedia;
    00085 //      s.fRealMediaRenderless = !!m_fRealMediaRenderless;
    00086 //      s.iQuickTimeRenderer = m_iQuickTimeRenderer;
    00087         float f;
    00088         if(m_RealMediaQuickTimeFPS.GetFloat(f)) s.RealMediaQuickTimeFPS = f;
    00089         m_RealMediaQuickTimeFPS = s.RealMediaQuickTimeFPS;
    00090
    00091         UpdateData(FALSE);
    00092
    00093         return __super::OnApply();
    00094 }
    00095
    00096 void CPPageRealMediaQuickTime::OnBnClickedButton1()
    00097 {
    00098         UpdateData(FALSE);
    00099 }