MSW compilation fixes - widgets sample runs!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -181,6 +181,14 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_LISTCTRL) */
|
||||
|
||||
#ifndef wxUSE_MSGDLG
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_MSGDLG must be defined."
|
||||
# else
|
||||
# define wxUSE_MSGDLG 0
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_MSGDLG) */
|
||||
|
||||
#ifndef wxUSE_MDI_ARCHITECTURE
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_MDI_ARCHITECTURE must be defined."
|
||||
@@ -457,7 +465,7 @@
|
||||
# define wxUSE_FILEDLG 1
|
||||
# endif
|
||||
# endif
|
||||
#endif /* !wxUSE_FILEDLG */
|
||||
#endif /* wxUSE_FILEDLG */
|
||||
|
||||
#if !wxUSE_FONTDLG
|
||||
# if defined(wxUSE_FONTMAP)
|
||||
@@ -481,6 +489,16 @@
|
||||
# endif
|
||||
#endif /* !wxUSE_IMAGLIST */
|
||||
|
||||
#if !wxUSE_MSGDLG
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
/* FIXME: should compile without it, of course, but doesn't */
|
||||
# error "wxMessageBox is always needed"
|
||||
# else
|
||||
# undef wxUSE_MSGDLG
|
||||
# define wxUSE_MSGDLG 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if wxUSE_RADIOBTN
|
||||
# if defined(__WXUNIVERSAL__) && !wxUSE_CHECKBOX
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
|
@@ -17,6 +17,8 @@
|
||||
#pragma interface "datetime.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
|
||||
#include <time.h>
|
||||
#include <limits.h> // for INT_MIN
|
||||
|
||||
@@ -1570,4 +1572,6 @@ inline WXDLLEXPORT void wxPrevWDay(wxDateTime::WeekDay& wd)
|
||||
: (wxDateTime::WeekDay)(wd - 1);
|
||||
}
|
||||
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
#endif // _WX_DATETIME_H
|
||||
|
@@ -45,15 +45,6 @@ private:
|
||||
|
||||
#if !defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)
|
||||
#define wxMessageDialog wxGenericMessageDialog
|
||||
|
||||
int wxMessageBox( const wxString& message
|
||||
,const wxString& caption = wxMessageBoxCaptionStr
|
||||
,long style = wxOK|wxCENTRE
|
||||
,wxWindow *parent = (wxWindow *) NULL
|
||||
,int x = -1
|
||||
,int y = -1
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -1,6 +1,8 @@
|
||||
#ifndef _WX_MSGDLG_H_BASE_
|
||||
#define _WX_MSGDLG_H_BASE_
|
||||
|
||||
#if wxUSE_MSGDLG
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/msgdlg.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
@@ -17,5 +19,17 @@
|
||||
#include "wx/generic/msgdlgg.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMessageBox: the simplest way to use wxMessageDialog
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
int WXDLLEXPORT wxMessageBox(const wxString& message,
|
||||
const wxString& caption = wxMessageBoxCaptionStr,
|
||||
long style = wxOK | wxCENTRE,
|
||||
wxWindow *parent = NULL,
|
||||
int x = -1, int y = -1);
|
||||
|
||||
#endif // wxUSE_MSGDLG
|
||||
|
||||
#endif
|
||||
// _WX_MSGDLG_H_BASE_
|
||||
|
@@ -41,9 +41,5 @@ public:
|
||||
};
|
||||
|
||||
|
||||
int WXDLLEXPORT wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
|
||||
long style = wxOK|wxCENTRE,
|
||||
wxWindow *parent = NULL, int x = -1, int y = -1);
|
||||
|
||||
#endif
|
||||
// _WX_MSGBOXDLG_H_
|
||||
|
@@ -232,7 +232,7 @@
|
||||
// i18n support: _() macro, wxLocale class. Requires wxTextFile.
|
||||
#define wxUSE_INTL 1
|
||||
|
||||
// Set wxUSE_TIMEDATE to 1 to compile the wxDateTime and related classes which
|
||||
// Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which
|
||||
// allow to manipulate dates, times and time intervals. wxDateTime replaces the
|
||||
// old wxTime and wxDate classes which are still provided for backwards
|
||||
// compatibility (and implemented in terms of wxDateTime).
|
||||
@@ -244,8 +244,19 @@
|
||||
//
|
||||
// Requires: wxUSE_LONGLONG
|
||||
//
|
||||
// Default is 1
|
||||
//
|
||||
// Recommended setting: 1
|
||||
#define wxUSE_TIMEDATE 1
|
||||
#define wxUSE_DATETIME 1
|
||||
|
||||
// wxUSE_TIMEDATE enables compilation of the old wxDate and wxTime classes (not
|
||||
// the same as wxDateTime!). These classes are obsolete and shouldn't be used
|
||||
// in new code
|
||||
//
|
||||
// Default is 0
|
||||
//
|
||||
// Recommended setting: 0 unless you have legacy code which uses these classes
|
||||
#define wxUSE_TIMEDATE 0
|
||||
|
||||
// Set wxUSE_TIMER to 1 to compile wxTimer class
|
||||
//
|
||||
@@ -539,6 +550,22 @@
|
||||
// Recommended setting: 1 (unless it really doesn't work)
|
||||
#define wxUSE_COMMON_DIALOGS 1
|
||||
|
||||
// wxBusyInfo displays window with message when app is busy. Works in same way
|
||||
// as wxBusyCursor
|
||||
#define wxUSE_BUSYINFO 1
|
||||
|
||||
// Use single/multiple choice dialogs.
|
||||
//
|
||||
// Default is 1
|
||||
//
|
||||
// Recommended setting: 1 (used in the library itself)
|
||||
#define wxUSE_CHOICEDLG 1
|
||||
|
||||
// wxDirDlg class for getting a directory name from user
|
||||
#define wxUSE_DIRDLG 1
|
||||
|
||||
// TODO: setting to choose the generic or native one
|
||||
|
||||
// Use file open/save dialogs.
|
||||
//
|
||||
// Default is 1
|
||||
@@ -553,29 +580,22 @@
|
||||
// Recommended setting: 1 (used in the library itself)
|
||||
#define wxUSE_FONTDLG 1
|
||||
|
||||
// Use single/multiple choice dialogs.
|
||||
// Use wxMessageDialog and wxMessageBox.
|
||||
//
|
||||
// Default is 1
|
||||
//
|
||||
// Recommended setting: 1 (used in the library itself)
|
||||
#define wxUSE_CHOICEDLG 1
|
||||
|
||||
// text entry dialog and wxGetTextFromUser function
|
||||
#define wxUSE_TEXTDLG 1
|
||||
#define wxUSE_MSGDLG 1
|
||||
|
||||
// progress dialog class for lengthy operations
|
||||
#define wxUSE_PROGRESSDLG 1
|
||||
|
||||
// wxBusyInfo displays window with message when app is busy. Works in same way
|
||||
// as wxBusyCursor
|
||||
#define wxUSE_BUSYINFO 1
|
||||
|
||||
// wxDirDlg class for getting a directory name from user
|
||||
#define wxUSE_DIRDLG 1
|
||||
|
||||
// support for startup tips (wxShowTip &c)
|
||||
#define wxUSE_STARTUP_TIPS 1
|
||||
|
||||
// text entry dialog and wxGetTextFromUser function
|
||||
#define wxUSE_TEXTDLG 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Metafiles support
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -1073,7 +1093,7 @@
|
||||
// you need to modify setup.h and rebuild everything
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_TIMEDATE && !wxUSE_LONGLONG
|
||||
#if wxUSE_DATETIME && !wxUSE_LONGLONG
|
||||
#error wxDateTime requires wxLongLong
|
||||
#endif
|
||||
|
||||
|
@@ -112,7 +112,9 @@ public:
|
||||
void HandleOnChar(wxKeyEvent& event);
|
||||
void HandleOnMouseEnter(wxMouseEvent& event);
|
||||
void HandleOnMouseLeave(wxMouseEvent& event);
|
||||
#if wxUSE_MOUSEWHEEL
|
||||
void HandleOnMouseWheel(wxMouseEvent& event);
|
||||
#endif // wxUSE_MOUSEWHEEL
|
||||
|
||||
protected:
|
||||
// get pointer to our scroll rect if we use it or NULL
|
||||
@@ -158,6 +160,10 @@ protected:
|
||||
|
||||
double m_scaleX;
|
||||
double m_scaleY;
|
||||
|
||||
#if wxUSE_MOUSEWHEEL
|
||||
int m_wheelRotation;
|
||||
#endif // wxUSE_MOUSEWHEEL
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user