/////////////////////////////////////////////////////////////////////////////
// Name: helpext.cpp
-// Purpose: an external help controller for wxWindows
+// Purpose: an external help controller for wxWidgets
// Author: Karsten Ballueder
// Modified by:
// Created: 04/01/98
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
# pragma implementation "wxexthlp.h"
#endif
#include "wx/intl.h"
#include "wx/msgdlg.h"
#include "wx/choicdlg.h"
+ #include "wx/log.h"
#endif
#include "wx/helpbase.h"
wxLogSysError(_("Cannot open URL '%s'"), relativeURL.c_str());
return false;
}
- else
- return true;
+ return true;
#elif defined(__WXPM__)
wxString url;
{
if(m_MapList)
{
- wxNode *node = m_MapList->GetFirst();
+ wxList::compatibility_iterator node = m_MapList->GetFirst();
while (node)
{
delete (wxExtHelpMapEntry *)node->GetData();
- delete node;
+ m_MapList->Erase(node);
node = m_MapList->GetFirst();
}
delete m_MapList;
return FALSE;
wxString contents;
- wxNode *node = m_MapList->GetFirst();
+ wxList::compatibility_iterator node = m_MapList->GetFirst();
wxExtHelpMapEntry *entry;
while(node)
{
return FALSE;
wxBusyCursor b; // display a busy cursor
- wxNode *node = m_MapList->GetFirst();
+ wxList::compatibility_iterator node = m_MapList->GetFirst();
wxExtHelpMapEntry *entry;
while(node)
{
}
bool
-wxExtHelpController::KeywordSearch(const wxString& k)
+wxExtHelpController::KeywordSearch(const wxString& k,
+ wxHelpSearchMode WXUNUSED(mode))
{
if(! m_NumOfEntries)
return FALSE;
int idx = 0, j;
bool rc;
bool showAll = k.IsEmpty();
- wxNode *node = m_MapList->GetFirst();
+ wxList::compatibility_iterator node = m_MapList->GetFirst();
wxExtHelpMapEntry *entry;
{