-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMtrTransformPage.cpp
78 lines (69 loc) · 1.83 KB
/
MtrTransformPage.cpp
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
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: MTRTRANSFORMPAGE.CPP
** COMPONENT: The Application
** DESCRIPTION: CMtrTransformPage class definition.
**
*******************************************************************************
*/
#include "Common.hpp"
#include "MtrTransformPage.hpp"
#include "MasterQueryOpts.hpp"
/******************************************************************************
** Method: Default constructor.
**
** Description: .
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
CMtrTransformPage::CMtrTransformPage(CMasterQueryOpts& oConfig)
: CPropertyPage(IDD_MASTER_TRANSLATE)
, m_oConfig(oConfig)
{
DEFINE_CTRL_TABLE
CTRL(IDC_TRIM_WHITESPACE, &m_ckTrimSpace)
CTRL(IDC_CONVERT_SYMBOLS, &m_ckConvSyms)
END_CTRL_TABLE
DEFINE_CTRLMSG_TABLE
END_CTRLMSG_TABLE
}
/******************************************************************************
** Method: OnInitDialog()
**
** Description: Initialise the dialog.
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
void CMtrTransformPage::OnInitDialog()
{
// Initialise controls.
m_ckTrimSpace.Check(m_oConfig.m_bTrimSpace);
m_ckConvSyms.Check(m_oConfig.m_bConvertSyms);
}
/******************************************************************************
** Method: OnValidate()
**
** Description: Validate the settings.
**
** Parameters: None.
**
** Returns: true or false.
**
*******************************************************************************
*/
bool CMtrTransformPage::OnValidate()
{
// Get new settings.
m_oConfig.m_bTrimSpace = m_ckTrimSpace.IsChecked();
m_oConfig.m_bConvertSyms = m_ckConvSyms.IsChecked();
return true;
}