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

Method OnBtnAddPage

editor/TableFileFilter.cpp:274–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void TableFileFilter::OnBtnAddPage() {
275 // TODO: Add your control notification handler code here
276 CTableFileFilterAddDlg dlg;
277
278 int nResponse = dlg.DoModal();
279 if (nResponse == IDCANCEL) {
280 // TODO: Place code here to handle when the dialog is
281 // dismissed with Cancel
282 return;
283 }
284
285 // Add the new page to the list
286 if (dlg.page_name.IsEmpty())
287 return;
288
289 if (!m_PageList.AddPageFromUser(dlg.page_name.GetBuffer(0), dlg.page_type))
290 MessageBox("This page was not added!", "Page Add Error!");
291
292 m_PageList.SetTitleString();
293}
294
295void TableFileFilter::OnBtnCreateNewTableFile() {
296 // TODO: Add your control notification handler code here

Callers

nothing calls this directly

Calls 4

AddPageFromUserMethod · 0.80
GetBufferMethod · 0.80
DoModalMethod · 0.45
SetTitleStringMethod · 0.45

Tested by

no test coverage detected