| 84 | } |
| 85 | |
| 86 | void CFiltersDlg::UpdateConfig(FilterConfiguration& config) { |
| 87 | config.Clear(); |
| 88 | FilterDescription desc; |
| 89 | CString text; |
| 90 | for (int i = 0; i < m_List.GetItemCount(); i++) { |
| 91 | m_List.GetItemText(i, 0, text); |
| 92 | desc.Name = text; |
| 93 | desc.Enabled = m_List.GetCheckState(i) ? true : false; |
| 94 | m_List.GetItemText(i, 1, text); |
| 95 | m_CompareTypes.SelectString(-1, text); |
| 96 | desc.Compare = (CompareType)m_CompareTypes.GetItemData(m_CompareTypes.GetCurSel()); |
| 97 | m_List.GetItemText(i, 2, text); |
| 98 | desc.Parameters = text; |
| 99 | m_List.GetItemText(i, 3, text); |
| 100 | m_IncExc.SelectString(-1, text); |
| 101 | desc.Action = (FilterAction)m_IncExc.GetItemData(m_IncExc.GetCurSel()); |
| 102 | config.AddFilter(desc); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | LRESULT CFiltersDlg::OnInitDialog(UINT, WPARAM, LPARAM, BOOL&) { |
| 107 | |