MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnBtnCreateNewTableFile

Method OnBtnCreateNewTableFile

editor/TableFileFilter.cpp:295–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void 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
315void TableFileFilter::OnBtnRemoveLevel() {
316 // TODO: Add your control notification handler code here

Callers

nothing calls this directly

Calls 4

CreateNewTableFileMethod · 0.80
GetBufferMethod · 0.80
DoModalMethod · 0.45
SetTitleStringMethod · 0.45

Tested by

no test coverage detected