#include "wx/log.h"
#include "wx/frame.h"
#include "wx/menu.h"
+ #include "wx/image.h"
#include "wx/button.h"
#include "wx/checkbox.h"
private:
// implement sink functions
- virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t)
+ virtual void DoLog(wxLogLevel level, const wxString& str, time_t t)
{
// don't put trace messages into listbox or we can get into infinite
// recursion
if ( m_logOld )
{
// cast is needed to call protected method
- ((LboxLogger *)m_logOld)->DoLog(level, szString, t);
+ ((LboxLogger *)m_logOld)->DoLog(level, str, t);
}
}
else
{
- wxLog::DoLog(level, szString, t);
+ wxLog::DoLog(level, str, t);
}
}
- virtual void DoLogString(const wxChar *szString, time_t WXUNUSED(t))
+ virtual void DoLogString(const wxString& str, time_t WXUNUSED(t))
{
wxString msg;
TimeStamp(&msg);
- msg += szString;
+ msg += str;
#ifdef __WXUNIVERSAL__
m_lbox->AppendAndEnsureVisible(msg);
title += _T("wxMAC");
#elif defined(__WXMOTIF__)
title += _T("wxMOTIF");
+#elif __WXPALMOS5__
+ title += _T("wxPALMOS5");
+#elif __WXPALMOS6__
+ title += _T("wxPALMOS6");
#else
title += _T("wxWidgets");
#endif
m_panel->SetSizer(sizerTop);
- sizerTop->Fit(this);
sizerTop->SetSizeHints(this);
#if USE_LOG && !defined(__WXCOCOA__)
WidgetsPage::WidgetsPage(WidgetsBookCtrl *book,
wxImageList *imaglist,
- char* icon[])
+ const char *const icon[])
: wxPanel(book, wxID_ANY,
wxDefaultPosition, wxDefaultSize,
wxNO_FULL_REPAINT_ON_RESIZE |