]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/helpview/src/helpview.cpp
Make sure Enable_Events is called when a connection is immediately established (such...
[wxWidgets.git] / utils / helpview / src / helpview.cpp
index 14e98cf8dc586f338fbf277aa6e113857c55205d..1e73ccb6dc54ea78ab58b1e37bcc011c08581ec7 100644 (file)
@@ -22,7 +22,7 @@
 #endif
 
 // for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all "standard" wxWindows headers
+// need because it includes almost all "standard" wxWidgets headers
 #ifndef WX_PRECOMP
 #include "wx/wx.h"
 #endif
@@ -48,7 +48,7 @@ IMPLEMENT_APP(hvApp)
 
 hvApp::hvApp()
 {
-#if hvUSE_IPC
+#if wxUSE_IPC
     m_server = NULL;
 #endif
 }
@@ -68,14 +68,15 @@ bool hvApp::OnInit()
 
     int istyle = wxHF_DEFAULT_STYLE;
 
-    wxString service, windowName, book[10], titleFormat, argStr;
+    wxString service, windowName, titleFormat, argStr;
+    wxString book[10];
     int bookCount = 0;
     int i;
     bool hasService = false;
     bool hasWindowName = false;
     bool createServer = false;
 
-#if hvUSE_IPC
+#if wxUSE_IPC
     m_server = NULL;
 #endif
 
@@ -158,7 +159,7 @@ bool hvApp::OnInit()
             wxOPEN | wxFILE_MUST_EXIST,
             NULL);
 
-        if (!s.IsEmpty())
+        if (!s.empty())
         {
             book[0] = s;
             bookCount = 1;
@@ -166,7 +167,7 @@ bool hvApp::OnInit()
     }
 #endif
 
-#if hvUSE_IPC
+#if wxUSE_IPC
 
     if ( createServer )
     {
@@ -185,13 +186,13 @@ bool hvApp::OnInit()
         wxUnusedVar(createServer);
     }
 
-#endif  // hvUSE_IPC
+#endif  // wxUSE_IPC
 
     //now add help
     wxInitAllImageHandlers();
     wxFileSystem::AddHandler(new wxZipFSHandler);
 
-    SetVendorName(wxT("wxWindows") );
+    SetVendorName(wxT("wxWidgets") );
     SetAppName(wxT("wxHTMLHelpServer") );
     wxConfig::Get(); // create an instance
 
@@ -228,11 +229,11 @@ bool hvApp::OnInit()
 
 int hvApp::OnExit()
 {
-#if hvUSE_IPC
-    wxNode* node = m_connections.GetFirst();
+#if wxUSE_IPC
+    wxObjectList::compatibility_iterator node = m_connections.GetFirst();
     while (node)
     {
-        wxNode* next = node->GetNext();
+        wxObjectList::compatibility_iterator next = node->GetNext();
         hvConnection* connection = (hvConnection*) node->GetData();
         connection->Disconnect();
         delete connection;
@@ -395,12 +396,12 @@ wxBitmap AlternateArtProvider::CreateBitmap(const wxArtID& id,
 
         //ART(wxART_GO_HOME,                             home)
 
-        // Any wxWindows icons not implemented here
+        // Any wxWidgets icons not implemented here
         // will be provided by the default art provider.
         return wxNullBitmap;
 }
 
-#if hvUSE_IPC
+#if wxUSE_IPC
 
 wxConnectionBase *hvServer::OnAcceptConnection(const wxString& topic)
 {
@@ -520,4 +521,4 @@ bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic),
     return true;
 }
 
-#endif // #if hvUSE_IPC
+#endif // #if wxUSE_IPC