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

Method OnFileLoad

editor/TableFileFilter.cpp:210–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void TableFileFilter::OnFileLoad() {
211 // TODO: Add your command handler code here
212 if (m_PageList.ModifiedPrompt() == IDNO)
213 return;
214
215 CString filters = "Page Data List File (*.pdl)|*.pdl|All Files (*.*)|*.*||";
216
217 CFileDialog dlg_open(TRUE, ".pdl", NULL, OFN_FILEMUSTEXIST, (LPCTSTR)filters, this);
218 if (dlg_open.DoModal() == IDCANCEL) {
219 return;
220 }
221
222 CWaitCursor wc;
223 if (!m_PageList.LoadList(dlg_open.GetPathName().GetBuffer(0))) {
224 MessageBox("The load was unsuccessfull", "Load Data List Error!");
225 m_PageList.ClearList();
226 return;
227 }
228
229 m_PageList.SetTitleString();
230}
231
232///////////////////////////////////////////////////////////
233// Button Command Handlers

Callers

nothing calls this directly

Calls 6

LoadListMethod · 0.80
GetBufferMethod · 0.80
ModifiedPromptMethod · 0.45
DoModalMethod · 0.45
ClearListMethod · 0.45
SetTitleStringMethod · 0.45

Tested by

no test coverage detected