#pragma once

#include "ISDb.h"
#include "afxwin.h"

// CSubtitleDlDlg dialog

class CSubtitleDlDlg : public CResizableDialog
{
//	DECLARE_DYNAMIC(CSubtitleDlDlg)

private:
	CList<isdb_movie> m_movies;

	enum {COL_FILENAME, COL_LANGUAGE, COL_FORMAT, COL_DISC, COL_TITLES};

	CImageList m_onoff;
	int GetChecked(int iItem);
	void SetChecked(int iItem, int iChecked);

public:
	CSubtitleDlDlg(CList<isdb_movie>& movies, CWnd* pParent = NULL);   // standard constructor
	virtual ~CSubtitleDlDlg();

	bool m_fReplaceSubs;
	CList<isdb_subtitle> m_selsubs;

// Dialog Data
	enum { IDD = IDD_SUBTITLEDLDLG };
	CListCtrl m_list;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	virtual void OnOK();

	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnUpdateOk(CCmdUI* pCmdUI);
};
