m_Data = data;
m_HtmlHelpWin = NULL;
m_helpController = NULL;
+ m_shouldPreventAppExit = false;
}
void wxHtmlHelpFrame::SetController(wxHtmlHelpController* controller)
fileMenu->Append(wxID_CLOSE, _("&Close"));
wxMenu* helpMenu = new wxMenu;
- helpMenu->Append(wxID_ABOUT, _("&About..."));
+ helpMenu->Append(wxID_ABOUT, _("&About"));
// Ensures we don't get an empty help menu
- helpMenu->Append(wxID_HELP_CONTENTS, _("&About..."));
+ helpMenu->Append(wxID_HELP_CONTENTS, _("&About"));
menuBar->Append(fileMenu,_("&File"));
menuBar->Append(helpMenu,_("&Help"));
}
#endif // wxUSE_CONFIG
+void wxHtmlHelpFrame::SetShouldPreventAppExit(bool enable)
+{
+ m_shouldPreventAppExit = enable;
+}
+
#ifdef __WXMAC__
void wxHtmlHelpFrame::OnClose(wxCommandEvent& WXUNUSED(event))
{