Finally whole configtool works regardless of wxUSE_STL value (at least with Borland). Changes followed adjustements of other things like better styles, storing pointers, unified headers of files, etc. etc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-27 19:14:36 +00:00
parent 413fac165f
commit d9ab621ea2
23 changed files with 374 additions and 295 deletions

View File

@@ -13,27 +13,32 @@
#pragma implementation "wxconfigtool.h"
#endif
#include "wx/wx.h"
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/config.h"
#ifndef WX_PRECOMP
#include "wx/laywin.h"
#include "wx/image.h"
#include "wx/menuitem.h"
#include "wx/tooltip.h"
#include "wx/variant.h"
#endif
#include "wx/cshelp.h"
#include "wx/helphtml.h"
#include "wx/html/htmprint.h"
#include "wx/html/htmlwin.h"
#include "wx/image.h"
#include "wx/filesys.h"
#include "wx/fs_mem.h"
#include "wx/fs_zip.h"
#include "wx/wfstream.h"
#include "wx/variant.h"
#include "wx/config.h"
#include "wxconfigtool.h"
#include "configtooldoc.h"
#include "configtoolview.h"
@@ -58,6 +63,7 @@ ctApp::~ctApp()
bool ctApp::OnInit(void)
{
#if wxUSE_LOG
wxLog::SetTimestamp(NULL);
#endif // wxUSE_LOG
@@ -92,7 +98,9 @@ bool ctApp::OnInit(void)
wxString currentDir = wxGetCwd();
// Use argv to get current app directory
m_appDir = apFindAppPath(argv[0], currentDir, wxT("WXCONFIGTOOLDIR"));
wxString argv0(argv[0]);
wxString appVariableName(wxT("WXCONFIGTOOLDIR"));
m_appDir = apFindAppPath(argv0, currentDir, appVariableName);
#ifdef __WXMSW__
// If the development version, go up a directory.