forked from leixiaohua1020/VideoEye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InputList.h
87 lines (75 loc) · 1.81 KB
/
InputList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
*
*
* VideoEye
*
* 雷霄骅 Lei Xiaohua
* leixiaohua1020@126.com
* 中国传媒大学/数字电视技术
* Communication University of China / Digital TV Technology
* http://blog.csdn.net/leixiaohua1020
*
*/
#pragma once
#include "stdafx.h"
#include "resource.h"
#include "afxcmn.h"
#include "VideoEyeDlg.h"
#include <vector>
using std::vector;
// InputList 对话框
//注意:VideoEyeDlg.h中已经include了inputlist.h
//现在需要在inputlist.h中include VideoEyeDlg.h
//因此会陷入无限死循环中
//解决方法?貌似是在该文件中提前声明一下
//不知道是不是合适的方法,总之编译通过了
class CVideoEyeDlg;
//-------
class InputList : public CDialogEx
{
DECLARE_DYNAMIC(InputList)
public:
InputList(CWnd* pParent = NULL); // 标准构造函数
virtual ~InputList();
// 对话框数据
enum { IDD = IDD_INPUTLIST};
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
//自己添加的,初始化InputList
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
CTreeCtrl m_urllist;
afx_msg void OnBnClickedOpen();
afx_msg void OnBnClickedCancel();
afx_msg void OnDblclkUrllist(NMHDR *pNMHDR, LRESULT *pResult);
CToolBar m_wndToolBar;
afx_msg void OnInputlistExport();
afx_msg void OnInputlistImport();
void XSPFImport(CString filepath);
void XSPFExport(CString filepath);
afx_msg void OnM3uImport();
void M3UImport(CString filepath);
void M3UExport(CString filepath);
CString GetURLByIndex(int data_index);
//设置值的时候用到
CVideoEyeDlg *maindlg;
// afx_msg void OnInputlistHelp();
//一条记录
typedef struct Track{
CString location;
CString title;
CString album;
CString creator;
CString trackNum;
CString annotation;
CString duration;
}Track;
//播放列表
vector<Track> tracklist;
void RefreshList();
void SystemClear();
//UTF-8转GB2312
char* U2G(const char* utf8);
afx_msg void OnM3uExport();
};