| 293 | } |
| 294 | |
| 295 | void TableFileFilter::OnBtnCreateNewTableFile() { |
| 296 | // TODO: Add your control notification handler code here |
| 297 | CString filters = "D3 Table File (*.gam)|*.gam|All Files (*.*)|*.*||"; |
| 298 | char title[] = "Save New Table File As"; |
| 299 | |
| 300 | CFileDialog dlg_open(FALSE, ".gam", NULL, 0, (LPCTSTR)filters, this); |
| 301 | dlg_open.m_ofn.lpstrTitle = title; |
| 302 | if (dlg_open.DoModal() == IDCANCEL) { |
| 303 | return; |
| 304 | } |
| 305 | |
| 306 | CWaitCursor wc; |
| 307 | if (!m_PageList.CreateNewTableFile(dlg_open.GetPathName().GetBuffer(0), SOURCE_TABLE_FILENAME)) { |
| 308 | MessageBox("The save was unsuccessfull", "Save Table File Error!"); |
| 309 | return; |
| 310 | } |
| 311 | |
| 312 | m_PageList.SetTitleString(); |
| 313 | } |
| 314 | |
| 315 | void TableFileFilter::OnBtnRemoveLevel() { |
| 316 | // TODO: Add your control notification handler code here |
nothing calls this directly
no test coverage detected