forked from hfiggs/WinDV
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecordCfg.cpp
More file actions
72 lines (61 loc) · 2 KB
/
Copy pathRecordCfg.cpp
File metadata and controls
72 lines (61 loc) · 2 KB
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
// RecordCfg.cpp : implementation file
//
#include "stdafx.h"
#include "WinDV.h"
#include "DropFilesEdit.h"
#include "RecordCfg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRecordCfg dialog
/* Constructor -- initialises both CDropFilesEdit controls with the " | "
* multi-file separator so that files dragged onto them are joined by the
* same delimiter that CDV::BuildRecording() expects when splitting the
* combined pipeline string.
*/
CRecordCfg::CRecordCfg()
: CPropertyPage(CRecordCfg::IDD), m_aviPrefixCtl(" | "), m_aviSuffixCtl(" | ")
{
//{{AFX_DATA_INIT(CRecordCfg)
m_recordPreview = FALSE;
m_aviPrefix = _T("");
m_aviSuffix = _T("");
//}}AFX_DATA_INIT
}
void CRecordCfg::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRecordCfg)
DDX_Control(pDX, IDC_AVI_SUFFIX, m_aviSuffixCtl);
DDX_Control(pDX, IDC_AVI_PREFIX, m_aviPrefixCtl);
DDX_Check(pDX, IDC_RECORDPREVIEW, m_recordPreview);
DDX_Text(pDX, IDC_AVI_PREFIX, m_aviPrefix);
DDX_Text(pDX, IDC_AVI_SUFFIX, m_aviSuffix);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CRecordCfg, CPropertyPage)
//{{AFX_MSG_MAP(CRecordCfg)
ON_BN_CLICKED(IDC_PREFIX_SEL, OnPrefixSel)
ON_BN_CLICKED(IDC_SUFFIX_SEL, OnSuffixSel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRecordCfg message handlers
/* OnPrefixSel -- open a multi-file browse dialog for the prefix AVI list.
* Delegates to SelectFile(TRUE, ...) which joins multiple selections with
* " | " and updates the IDC_AVI_PREFIX edit control directly.
*/
void CRecordCfg::OnPrefixSel()
{
SelectFile(TRUE, GetDlgItem(IDC_AVI_PREFIX));
}
/* OnSuffixSel -- open a multi-file browse dialog for the suffix AVI list.
* Same behaviour as OnPrefixSel but targets the IDC_AVI_SUFFIX edit control.
*/
void CRecordCfg::OnSuffixSel()
{
SelectFile(TRUE, GetDlgItem(IDC_AVI_SUFFIX));
}