X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dee1a63ff52bfe4da396187f8438aa1a29796737..741cca6b380ccacd162d1c662b6063021c8ee3ee:/utils/helpview/src/helpview.cpp diff --git a/utils/helpview/src/helpview.cpp b/utils/helpview/src/helpview.cpp index 290b2dab09..bbb44a061d 100644 --- a/utils/helpview/src/helpview.cpp +++ b/utils/helpview/src/helpview.cpp @@ -55,11 +55,11 @@ bool hvApp::OnInit() delete wxLog::SetActiveTarget(new wxLogStderr); // So dialog boxes aren't used #endif - wxArtProvider::PushProvider(new AlternateArtProvider); + wxArtProvider::Push(new AlternateArtProvider); -#ifdef __WXMAC__ +#if defined( __WXOSX_MAC__ ) && wxOSX_USE_CARBON wxApp::s_macAboutMenuItemId = wxID_ABOUT; - wxFileName::MacRegisterDefaultTypeAndCreator( "htb" , 'HTBD' , 'HTBA' ) ; + wxFileName::MacRegisterDefaultTypeAndCreator( wxT("htb") , 'HTBD' , 'HTBA' ) ; #endif int istyle = wxHF_DEFAULT_STYLE; @@ -152,7 +152,7 @@ bool hvApp::OnInit() wxEmptyString, wxEmptyString, wxT("Help books (*.htb)|*.htb|Help books (*.zip)|*.zip|HTML Help Project (*.hhp)|*.hhp"), - wxOPEN | wxFILE_MUST_EXIST, + wxFD_OPEN | wxFD_FILE_MUST_EXIST, NULL); if (!s.empty()) @@ -259,7 +259,7 @@ bool hvApp::OpenBook(wxHtmlHelpController* controller) _( "Help books (*.htb)|*.htb|Help books (*.zip)|*.zip|\ HTML Help Project (*.hhp)|*.hhp"), - wxOPEN | wxFILE_MUST_EXIST, + wxFD_OPEN | wxFD_FILE_MUST_EXIST, NULL); if ( !s.empty() ) @@ -407,14 +407,12 @@ hvConnection::~hvConnection() wxGetApp().GetConnections().DeleteObject(this); } -bool hvConnection::OnExecute(const wxString& WXUNUSED(topic), - wxChar *data, - int WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) +bool hvConnection::OnExec(const wxString& WXUNUSED(topic), + const wxString& data) { // wxLogStatus("Execute command: %s", data); - if ( !wxStrncmp( data, wxT("--intstring"), 11 ) ) + if ( data == "--intstring" ) { long i; wxString argStr = data; @@ -438,10 +436,12 @@ bool hvConnection::OnExecute(const wxString& WXUNUSED(topic), bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), const wxString& item, - wxChar *data, - int WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) + const void *buf, + size_t size, + wxIPCFormat format) { + const wxString data = GetTextFromData(buf, size, format); + // wxLogStatus("Poke command: %s = %s", item.c_str(), data); //topic is not tested @@ -488,18 +488,4 @@ bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), return true; } -wxChar *hvConnection::OnRequest(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item), - int * WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) -{ - return NULL; -} - -bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item)) -{ - return true; -} - #endif // #if wxUSE_IPC