| 147 | } |
| 148 | |
| 149 | void CTableFileEdit::OnTableEditFileSaveAs() { |
| 150 | // TODO: Add your command handler code here |
| 151 | m_PageList.SaveSelected(&m_DescriptionBox); |
| 152 | |
| 153 | CString filters = "Outrage Table File (*.loc)|*.loc|All Files (*.*)|*.*||"; |
| 154 | |
| 155 | CFileDialog dlg_open(FALSE, NULL, NULL, 0, (LPCTSTR)filters, this); |
| 156 | if (dlg_open.DoModal() == IDCANCEL) { |
| 157 | return; |
| 158 | } |
| 159 | |
| 160 | if (!m_PageList.SaveTable(dlg_open.GetPathName().GetBuffer(0))) { |
| 161 | MessageBox("The save was unsuccessfull", "Save Table Error!"); |
| 162 | return; |
| 163 | } |
| 164 | m_PageList.SetTitleString(this); |
| 165 | } |
| 166 | |
| 167 | void CTableFileEdit::OnUpdateTableEditFileSave(CCmdUI *pCmdUI) { |
| 168 | // TODO: Add your command update UI handler code here |
nothing calls this directly
no test coverage detected