// Licence:
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "wxconfigtool.h"
#endif
#include "wx/menuitem.h"
#include "wx/tooltip.h"
#include "wx/cshelp.h"
+#include "wx/helphtml.h"
#include "wx/html/htmprint.h"
#include "wx/html/htmlwin.h"
#include "wx/filesys.h"
wxImage::AddHandler( new wxGIFHandler );
#endif
-#ifdef __WXMSW__
+#if wxUSE_MS_HTML_HELP && !defined(__WXUNIVERSAL__)
m_helpController = new wxCHMHelpController;
m_helpControllerReference = new wxCHMHelpController;
#else
wxString helpFilePath(GetFullAppPath(_("configtool")));
m_helpController->Initialize(helpFilePath);
- ctMainFrame* frame = new ctMainFrame(m_docManager, NULL, -1, wxGetApp().GetSettings().GetAppName(),
+ ctMainFrame* frame = new ctMainFrame(m_docManager, NULL, wxID_ANY, wxGetApp().GetSettings().GetAppName(),
GetSettings().m_frameSize.GetPosition(), GetSettings().m_frameSize.GetSize(),
wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN);
SetTopWindow(frame);
{
case ctSHOW_STATUS_MAXIMIZED:
{
- frame->Maximize(TRUE);
+ frame->Maximize(true);
break;
}
case ctSHOW_STATUS_MINIMIZED:
{
- frame->Iconize(TRUE);
+ frame->Iconize(true);
break;
}
default:
// Load the file
wxDocument* doc = m_docManager->CreateDocument(arg, wxDOC_SILENT);
if (doc)
- doc->SetDocumentSaved(TRUE);
+ doc->SetDocumentSaved(true);
}
else
{
// Load the file that was last loaded
wxDocument* doc = m_docManager->CreateDocument(GetSettings().m_lastFilename, wxDOC_SILENT);
if (doc)
- doc->SetDocumentSaved(TRUE);
+ doc->SetDocumentSaved(true);
}
}
- GetTopWindow()->Show(TRUE);
+ GetTopWindow()->Show(true);
- return TRUE;
+ return true;
}
int ctApp::OnExit(void)