X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fctsim.cpp;h=e2e3f2766a4cea7fee821e4ab1a98fb3210977d7;hp=7097857d6662a09674662c57b5a2ee1722cccfdb;hb=4b49778f44b9149451ba36e5f1bd7830c74c8fee;hpb=4ff226fc6afb090a5211f3c0c12650207609ba90 diff --git a/src/ctsim.cpp b/src/ctsim.cpp index 7097857..e2e3f27 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -247,14 +247,13 @@ CTSimApp::OnInit() m_docManager->OnFileClose (nullEvent); } } -#ifdef KMR_FIXME - // Move to wx3.0 event processing + if (m_bPrintCmdLineImages) { wxCommandEvent closeEvent; closeEvent.SetInt (MAINMENU_FILE_EXIT); - m_pFrame->AddPendingEvent(closeEvent); + m_pFrame->GetEventHandler()->ProcessEvent(closeEvent); } -#endif + if (getStartupTips()) ShowTips(); @@ -391,10 +390,7 @@ EVT_MENU(MAINMENU_FILE_CREATE_PHANTOM, MainFrame::OnCreatePhantom) EVT_MENU(MAINMENU_FILE_CREATE_FILTER, MainFrame::OnCreateFilter) EVT_MENU(MAINMENU_FILE_EXIT, MainFrame::OnExit) -// Unsure how to fix, OnMRUFile procedure not found in packge -#ifdef KMR_FIXME EVT_MENU_RANGE(wxID_FILE1, wxID_FILE9, MainFrame::OnMRUFile) -#endif EVT_MENU(MAINMENU_WINDOW_BASE, MainFrame::OnWindowMenu0) EVT_MENU(MAINMENU_WINDOW_BASE+1, MainFrame::OnWindowMenu1) @@ -898,7 +894,7 @@ public: }; BitmapDialog::BitmapDialog (wxBitmap* pBitmap, char const* pszTitle) - : wxDialog(theApp->getMainFrame(), -1, wxString(pszTitle,*wxConvCurrent), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE) + : wxDialog(theApp->getMainFrame(), -1, wxString(pszTitle,*wxConvCurrent)) { wxBoxSizer* pTopSizer = new wxBoxSizer (wxVERTICAL);