gseg_frame_menu.cpp
/************************************************************************
* Save useful content of logbook to file 
************************************************************************/
Save useful content of logbook to file
Save useful content of logbook to file
void GsegFrame::OnSaveLogbook(wxCommandEvent& WXUNUSED(event))
{
wxString save_filename;
wxFileDialog
saveFileDialog(this, wxT("Save logbook to file"), wxT(""), wxT(""), 
               wxT("Logbook files (*.log;*.txt)|*.log;*.txt"), 
               wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
 if (saveFileDialog.ShowModal() == wxID_CANCEL) return;
save_filename = saveFileDialog.GetFilename();
SaveLogbook(save_filename);
return;
}
void GsegFrame :: OnSaveLogbook ( wxCommandEvent & WXUNUSED ( event ) ) { wxString save_filename ; wxFileDialog saveFileDialog ( this , wxT ( " " ) , wxT ( " " ) , wxT ( " " ) , wxT ( " " ) , wxFD_SAVE | wxFD_OVERWRITE_PROMPT ) ; if ( saveFileDialog . ShowModal ( ) == wxID_CANCEL ) return ; save_filename = saveFileDialog . GetFilename ( ) ; SaveLogbook ( save_filename ) ; return ; }
Save useful content of logbook to file
Save useful content of logbook to file
// Select name for output logbook file: