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

Method OnTableEditFileSaveAs

editor/TableFileEdit.cpp:149–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void 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
167void CTableFileEdit::OnUpdateTableEditFileSave(CCmdUI *pCmdUI) {
168 // TODO: Add your command update UI handler code here

Callers

nothing calls this directly

Calls 5

SaveSelectedMethod · 0.80
SaveTableMethod · 0.80
GetBufferMethod · 0.80
DoModalMethod · 0.45
SetTitleStringMethod · 0.45

Tested by

no test coverage detected