VSRipIndexingDlg.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 "VSRipPage.h"
00024 
00025 // CVSRipIndexingDlg dialog
00026 
00027 class CVSRipIndexingDlg : public CVSRipPage
00028 {
00029         DECLARE_DYNAMIC(CVSRipIndexingDlg)
00030 
00031 private:
00032         BOOL m_bBeep, m_bExit;
00033         bool m_fAuto;
00034 
00035 protected:
00036         // IVSFRipperCallback
00037         STDMETHODIMP OnMessage(LPCTSTR msg);
00038         STDMETHODIMP OnProgress(double progress /*0->1*/);
00039         STDMETHODIMP OnFinished(bool fSucceeded);
00040 
00041 public:
00042         CVSRipIndexingDlg(IVSFRipper* pVSFRipper, CWnd* pParent = NULL);   // standard constructor
00043         virtual ~CVSRipIndexingDlg();
00044 
00045         virtual bool CanGoPrev() {return(S_OK != m_pVSFRipper->IsIndexing() && !m_fAuto);}
00046         virtual bool CanGoNext() {return(false);}
00047         virtual bool CanClose() {return(S_OK != m_pVSFRipper->IsIndexing());}
00048         virtual CString GetCloseText() {return(m_fFinished ? _T("&Close") : _T("&Cancel"));}
00049         virtual CString GetHeaderText() {return(_T("Extracting subtitles"));}
00050         virtual CString GetDescText() {return(_T("This may take a while, please sit back and relax... ")
00051                                                                                 _T("If you wish you can abort the process and go back to ")
00052                                                                                 _T("adjust the settings again."));}
00053 
00054         bool m_fFinished;
00055 
00056 // Dialog Data
00057         enum { IDD = IDD_DIALOG_INDEXING };
00058 
00059         CEdit m_log;
00060         CProgressCtrl m_progress;
00061 
00062 protected:
00063         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00064 
00065         DECLARE_MESSAGE_MAP()
00066 
00067 public:
00068         afx_msg void OnIndex();
00069         afx_msg void OnUpdateIndex(CCmdUI* pCmdUI);
00070         afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
00071         afx_msg void OnBnClickedCheck2();
00072         afx_msg void OnBnClickedCheck1();
00073 };

Generated on Tue Dec 13 14:47:05 2005 for guliverkli by  doxygen 1.4.5