Better MGL fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,7 +48,7 @@ IMPLEMENT_APP(hvApp)
|
|||||||
|
|
||||||
hvApp::hvApp()
|
hvApp::hvApp()
|
||||||
{
|
{
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
m_server = NULL;
|
m_server = NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ bool hvApp::OnInit()
|
|||||||
bool hasWindowName = false;
|
bool hasWindowName = false;
|
||||||
bool createServer = false;
|
bool createServer = false;
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
m_server = NULL;
|
m_server = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ bool hvApp::OnInit()
|
|||||||
wxOPEN | wxFILE_MUST_EXIST,
|
wxOPEN | wxFILE_MUST_EXIST,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (!s.IsEmpty())
|
if (!s.empty())
|
||||||
{
|
{
|
||||||
book[0] = s;
|
book[0] = s;
|
||||||
bookCount = 1;
|
bookCount = 1;
|
||||||
@@ -167,7 +167,7 @@ bool hvApp::OnInit()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
|
|
||||||
if ( createServer )
|
if ( createServer )
|
||||||
{
|
{
|
||||||
@@ -186,7 +186,7 @@ bool hvApp::OnInit()
|
|||||||
wxUnusedVar(createServer);
|
wxUnusedVar(createServer);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // hvUSE_IPC
|
#endif // wxUSE_IPC
|
||||||
|
|
||||||
//now add help
|
//now add help
|
||||||
wxInitAllImageHandlers();
|
wxInitAllImageHandlers();
|
||||||
@@ -229,7 +229,7 @@ bool hvApp::OnInit()
|
|||||||
|
|
||||||
int hvApp::OnExit()
|
int hvApp::OnExit()
|
||||||
{
|
{
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
wxObjectList::compatibility_iterator node = m_connections.GetFirst();
|
wxObjectList::compatibility_iterator node = m_connections.GetFirst();
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
@@ -401,7 +401,7 @@ wxBitmap AlternateArtProvider::CreateBitmap(const wxArtID& id,
|
|||||||
return wxNullBitmap;
|
return wxNullBitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
|
|
||||||
wxConnectionBase *hvServer::OnAcceptConnection(const wxString& topic)
|
wxConnectionBase *hvServer::OnAcceptConnection(const wxString& topic)
|
||||||
{
|
{
|
||||||
@@ -521,4 +521,4 @@ bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic),
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // #if hvUSE_IPC
|
#endif // #if wxUSE_IPC
|
||||||
|
@@ -16,20 +16,10 @@
|
|||||||
#pragma interface "help.cpp"
|
#pragma interface "help.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define hvVERSION 1.03
|
#define hvVERSION 1.04
|
||||||
|
|
||||||
// If 1, start a server to allow this to be used
|
#if wxUSE_IPC
|
||||||
// as an external help viewer.
|
|
||||||
#if ( defined(__WXMAC__) || defined(__WXMGL__) ) && !defined(__UNIX__)
|
|
||||||
#define hvUSE_IPC 0
|
|
||||||
#else
|
|
||||||
#define hvUSE_IPC 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if hvUSE_IPC
|
|
||||||
#include <wx/ipc.h>
|
#include <wx/ipc.h>
|
||||||
|
|
||||||
class hvConnection;
|
|
||||||
class hvServer;
|
class hvServer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -59,7 +49,7 @@ public:
|
|||||||
/// Returns the help controller.
|
/// Returns the help controller.
|
||||||
wxHtmlHelpController* GetHelpController() { return m_helpController; }
|
wxHtmlHelpController* GetHelpController() { return m_helpController; }
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
/// Returns the list of connections.
|
/// Returns the list of connections.
|
||||||
wxList& GetConnections() { return m_connections; }
|
wxList& GetConnections() { return m_connections; }
|
||||||
#endif
|
#endif
|
||||||
@@ -67,14 +57,14 @@ public:
|
|||||||
private:
|
private:
|
||||||
wxHtmlHelpController* m_helpController;
|
wxHtmlHelpController* m_helpController;
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
wxList m_connections;
|
wxList m_connections;
|
||||||
hvServer* m_server;
|
hvServer* m_server;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if hvUSE_IPC
|
#if wxUSE_IPC
|
||||||
class hvConnection : public wxConnection
|
class hvConnection : public wxConnection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user