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

Method OnFileSaveAs

editor/TableFileFilter.cpp:192–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void TableFileFilter::OnFileSaveAs() {
193 // TODO: Add your command handler code here
194 CString filters = "Page Data List File (*.pdl)|*.pdl|All Files (*.*)|*.*||";
195
196 CFileDialog dlg_open(FALSE, ".pdl", NULL, 0, (LPCTSTR)filters, this);
197 if (dlg_open.DoModal() == IDCANCEL) {
198 return;
199 }
200
201 CWaitCursor wc;
202 if (!m_PageList.SaveList(dlg_open.GetPathName().GetBuffer(0))) {
203 MessageBox("The save was unsuccessfull", "Save Data List Error!");
204 return;
205 }
206
207 m_PageList.SetTitleString();
208}
209
210void TableFileFilter::OnFileLoad() {
211 // TODO: Add your command handler code here

Callers

nothing calls this directly

Calls 4

SaveListMethod · 0.80
GetBufferMethod · 0.80
DoModalMethod · 0.45
SetTitleStringMethod · 0.45

Tested by

no test coverage detected