# endif
#endif /* !defined(wxUSE_LOGWINDOW) */
+#ifndef wxUSE_LOG_DIALOG
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_LOG_DIALOG must be defined."
+# else
+# define wxUSE_LOG_DIALOG 0
+# endif
+#endif /* !defined(wxUSE_LOGWINDOW) */
+
#ifndef wxUSE_MDI_ARCHITECTURE
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_MDI_ARCHITECTURE must be defined."
# endif
#endif /* wxUSE_LOGWINDOW */
+#if wxUSE_LOG_DIALOG
+# if !wxUSE_LISTCTRL
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL"
+# else
+# undef wxUSE_LISTCTRL
+# define wxUSE_LISTCTRL 1
+# endif
+# endif
+#endif /* wxUSE_LOG_DIALOG */
+
/* I wonder if we shouldn't just remove all occurrences of
wxUSE_DYNAMIC_CLASSES from the sources? */
#if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
};
-#if !defined(__WXMSW__) || defined(__WIN16__)
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
/*
* wxTreeCtrl has to be a real class or we have problems with
* the run-time information.
#ifndef _WX_IMAGLIST_H_BASE_
#define _WX_IMAGLIST_H_BASE_
-#if defined(__WXMSW__)
-#if defined(__WIN16__) || defined(__WXMICROWIN__)
+#if defined(__WXUNIVERSAL__)
+#include "wx/generic/imaglist.h"
+#elif defined(__WXMSW__)
+#if defined(__WIN16__)
#include "wx/generic/imaglist.h"
#else
#include "wx/msw/imaglist.h"
// include the wxListCtrl class declaration
// ----------------------------------------------------------------------------
-#if defined(__WXMSW__)
+#if defined(__WXUNIVERSAL__)
+ #include "wx/generic/listctrl.h"
+#elif defined(__WXMSW__)
#ifdef __WIN16__
#include "wx/generic/listctrl.h"
#else
// Recommended setting: 1 (always)
#define wxUSE_LOGGUI 1
+// Recommended setting: 1 (always)
+#define wxUSE_LOG_DIALOG 1
+
// Support for multithreaded applications: if 1, compile in thread classes
// (thread.h) and make the library a bit more thread safe. Although thread
// support is quite stable by now, you may still consider recompiling the
// include the platform-dependent wxTreeCtrl class
// ----------------------------------------------------------------------------
-#if defined(__WXMSW__)
+#if defined(__WXUNIVERSAL__)
+ #include "wx/generic/treectlg.h"
+#elif defined(__WXMSW__)
#ifdef __WIN16__
#include "wx/generic/treectlg.h"
#else
#define wxUSE_UNICODE 0
#define wxUSE_WCHAR_T 0
#define wxUSE_LOG 1
+#define wxUSE_LOGGUI 1
+#define wxUSE_LOGWINDOW 1
+#define wxUSE_LOG_DIALOG 0
#define wxUSE_THREADS 0
#define wxUSE_STREAMS 0
#define wxUSE_STD_IOSTREAM 0
#define wxUSE_FS_INET 0
#define wxUSE_ZIPSTREAM 0
#define wxUSE_ZLIB 0
-#define wxUSE_FILESYSTEM 0
-#define wxUSE_FS_ZIP 0
-#define wxUSE_FS_INET 0
-#define wxUSE_ZIPSTREAM 0
-#define wxUSE_ZLIB 0
#define wxUSE_APPLE_IEEE 0
#define wxUSE_FILE 1
#define wxUSE_FFILE 1
#define wxUSE_IPC 0
#define wxUSE_HELP 0
#define wxUSE_MS_HTML_HELP 0
+#define wxUSE_WXHTML_HELP 0
#define wxUSE_RESOURCES 0
#define wxUSE_CONSTRAINTS 1
#define wxUSE_CLIPBOARD 0
// private functions
// ----------------------------------------------------------------------------
-#if wxUSE_FILE
+#if wxUSE_FILE && wxUSE_FILEDLG
// pass an uninitialized file object, the function will ask the user for the
// filename and try to open it, returns TRUE on success (file was opened),
// ----------------------------------------------------------------------------
// we use a global variable to store the frame pointer for wxLogStatus - bad,
-// but it's he easiest way
+// but it's the easiest way
static wxFrame *gs_pFrame; // FIXME MT-unsafe
// ============================================================================
else // more than one message
{
#if wxUSE_LOG_DIALOG
+
wxLogDialog dlg(parent,
m_aMessages, m_aSeverity, m_aTimes,
title, style);
#if wxUSE_FILE
void wxLogFrame::OnSave(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_FILEDLG
wxString filename;
wxFile file;
int rc = OpenLogFile(file, &filename);
else {
wxLogStatus(this, _("Log saved to the file '%s'."), filename.c_str());
}
+#endif
}
#endif // wxUSE_FILE
void wxLogDialog::OnSave(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_FILEDLG
wxFile file;
int rc = OpenLogFile(file);
if ( rc == -1 )
if ( !ok )
wxLogError(_("Can't save log contents to file."));
+#endif
}
#endif // wxUSE_FILE
#endif // wxUSE_LOG_DIALOG
-#if wxUSE_FILE
+#if wxUSE_FILE && wxUSE_FILEDLG
// pass an uninitialized file object, the function will ask the user for the
// filename and try to open it, returns TRUE on success (file was opened),
# End Source File
# Begin Source File
-SOURCE=.\generic\scrolwin.cpp
+SOURCE=.\generic\scrlwing.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
-SOURCE=.\generic\scrolwin.cpp
+SOURCE=.\generic\scrlwing.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
-SOURCE=.\generic\scrolwin.cpp
+SOURCE=.\generic\scrlwing.cpp
# End Source File
# Begin Source File