removed wxABI_VERSION checks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-25 20:23:30 +00:00
parent c6ece59558
commit 84006e65e8
23 changed files with 24 additions and 121 deletions

View File

@@ -16,8 +16,6 @@
#include "wx/string.h" #include "wx/string.h"
#include "wx/hashmap.h" #include "wx/hashmap.h"
#if wxABI_VERSION >= 20602
typedef int (*wxShadowObjectMethod)(void*, void*); typedef int (*wxShadowObjectMethod)(void*, void*);
WX_DECLARE_STRING_HASH_MAP_WITH_DECL( WX_DECLARE_STRING_HASH_MAP_WITH_DECL(
wxShadowObjectMethod, wxShadowObjectMethod,
@@ -86,7 +84,6 @@ private:
wxShadowObjectFields m_fields; wxShadowObjectFields m_fields;
}; };
#endif // wxABI_VERSION
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -162,10 +159,6 @@ protected:
}; };
// not Motif-specific, but currently used only under Motif,
// compiled to make wxMotif and wxGTK base libraries compatible
#if defined(__WXMOTIF__) || wxABI_VERSION >= 20602
#include "wx/vector.h" #include "wx/vector.h"
struct WXDLLIMPEXP_BASE wxClientDataDictionaryPair struct WXDLLIMPEXP_BASE wxClientDataDictionaryPair
@@ -276,8 +269,5 @@ private:
wxClientDataDictionaryPairVector m_vec; wxClientDataDictionaryPairVector m_vec;
}; };
#endif // __WXMOTIF__ #endif // _WX_CLNTDATAH__
// ----------------------------------------------------------------------------
#endif

View File

@@ -769,12 +769,10 @@ public:
inline wxDateTime ToTimezone(const TimeZone& tz, bool noDST = false) const; inline wxDateTime ToTimezone(const TimeZone& tz, bool noDST = false) const;
wxDateTime& MakeTimezone(const TimeZone& tz, bool noDST = false); wxDateTime& MakeTimezone(const TimeZone& tz, bool noDST = false);
#if wxABI_VERSION >= 20602
// interpret current value as being in another timezone and transform // interpret current value as being in another timezone and transform
// it to local one // it to local one
inline wxDateTime FromTimezone(const TimeZone& tz, bool noDST = false) const; inline wxDateTime FromTimezone(const TimeZone& tz, bool noDST = false) const;
wxDateTime& MakeFromTimezone(const TimeZone& tz, bool noDST = false); wxDateTime& MakeFromTimezone(const TimeZone& tz, bool noDST = false);
#endif // ABI >= 2.6.2
// transform to/from GMT/UTC // transform to/from GMT/UTC
wxDateTime ToUTC(bool noDST = false) const { return ToTimezone(UTC, noDST); } wxDateTime ToUTC(bool noDST = false) const { return ToTimezone(UTC, noDST); }
@@ -783,12 +781,10 @@ public:
wxDateTime ToGMT(bool noDST = false) const { return ToUTC(noDST); } wxDateTime ToGMT(bool noDST = false) const { return ToUTC(noDST); }
wxDateTime& MakeGMT(bool noDST = false) { return MakeUTC(noDST); } wxDateTime& MakeGMT(bool noDST = false) { return MakeUTC(noDST); }
#if wxABI_VERSION >= 20602
wxDateTime FromUTC(bool noDST = false) const wxDateTime FromUTC(bool noDST = false) const
{ return FromTimezone(UTC, noDST); } { return FromTimezone(UTC, noDST); }
wxDateTime& MakeFromUTC(bool noDST = false) wxDateTime& MakeFromUTC(bool noDST = false)
{ return MakeFromTimezone(UTC, noDST); } { return MakeFromTimezone(UTC, noDST); }
#endif // ABI >= 2.6.2
// is daylight savings time in effect at this moment according to the // is daylight savings time in effect at this moment according to the
// rules of the specified country? // rules of the specified country?
@@ -1858,16 +1854,12 @@ wxDateTime::ToTimezone(const wxDateTime::TimeZone& tz, bool noDST) const
MODIFY_AND_RETURN( MakeTimezone(tz, noDST) ); MODIFY_AND_RETURN( MakeTimezone(tz, noDST) );
} }
#if wxABI_VERSION >= 20602
inline wxDateTime inline wxDateTime
wxDateTime::FromTimezone(const wxDateTime::TimeZone& tz, bool noDST) const wxDateTime::FromTimezone(const wxDateTime::TimeZone& tz, bool noDST) const
{ {
MODIFY_AND_RETURN( MakeFromTimezone(tz, noDST) ); MODIFY_AND_RETURN( MakeFromTimezone(tz, noDST) );
} }
#endif // ABI >= 2.6.2
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxTimeSpan construction // wxTimeSpan construction
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -1836,11 +1836,8 @@ enum wxHitTest
#define wxSIZE_ALLOW_MINUS_ONE 0x0004 #define wxSIZE_ALLOW_MINUS_ONE 0x0004
/* Don't do parent client adjustments (for implementation only) */ /* Don't do parent client adjustments (for implementation only) */
#define wxSIZE_NO_ADJUSTMENTS 0x0008 #define wxSIZE_NO_ADJUSTMENTS 0x0008
#if wxABI_VERSION >= 20602
/* Change the window position even if it seems to be already correct */ /* Change the window position even if it seems to be already correct */
#define wxSIZE_FORCE 0x0010 #define wxSIZE_FORCE 0x0010
#endif // 2.6.2+
/* ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------- */
/* GDI descriptions */ /* GDI descriptions */

View File

@@ -211,9 +211,7 @@ BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(wxEVT_SCROLL_PAGEDOWN, 305) DECLARE_EVENT_TYPE(wxEVT_SCROLL_PAGEDOWN, 305)
DECLARE_EVENT_TYPE(wxEVT_SCROLL_THUMBTRACK, 306) DECLARE_EVENT_TYPE(wxEVT_SCROLL_THUMBTRACK, 306)
DECLARE_EVENT_TYPE(wxEVT_SCROLL_THUMBRELEASE, 307) DECLARE_EVENT_TYPE(wxEVT_SCROLL_THUMBRELEASE, 307)
#if wxABI_VERSION >= 20601
DECLARE_EVENT_TYPE(wxEVT_SCROLL_CHANGED, 308) DECLARE_EVENT_TYPE(wxEVT_SCROLL_CHANGED, 308)
#endif
// Scroll events from wxWindow // Scroll events from wxWindow
DECLARE_EVENT_TYPE(wxEVT_SCROLLWIN_TOP, 320) DECLARE_EVENT_TYPE(wxEVT_SCROLLWIN_TOP, 320)
@@ -2772,12 +2770,7 @@ typedef void (wxEvtHandler::*wxMouseCaptureChangedEventFunction)(wxMouseCaptureC
#define EVT_SCROLL_PAGEDOWN(func) wx__DECLARE_EVT0(wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler(func)) #define EVT_SCROLL_PAGEDOWN(func) wx__DECLARE_EVT0(wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler(func))
#define EVT_SCROLL_THUMBTRACK(func) wx__DECLARE_EVT0(wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler(func)) #define EVT_SCROLL_THUMBTRACK(func) wx__DECLARE_EVT0(wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler(func))
#define EVT_SCROLL_THUMBRELEASE(func) wx__DECLARE_EVT0(wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler(func)) #define EVT_SCROLL_THUMBRELEASE(func) wx__DECLARE_EVT0(wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler(func))
#if wxABI_VERSION >= 20601
#define EVT_SCROLL_CHANGED(func) wx__DECLARE_EVT0(wxEVT_SCROLL_CHANGED, wxScrollEventHandler(func)) #define EVT_SCROLL_CHANGED(func) wx__DECLARE_EVT0(wxEVT_SCROLL_CHANGED, wxScrollEventHandler(func))
#define wx__EVT_SCROLL_CHANGED(func) EVT_SCROLL_CHANGED(func)
#else
#define wx__EVT_SCROLL_CHANGED(func)
#endif
#define EVT_SCROLL(func) \ #define EVT_SCROLL(func) \
EVT_SCROLL_TOP(func) \ EVT_SCROLL_TOP(func) \
@@ -2788,7 +2781,7 @@ typedef void (wxEvtHandler::*wxMouseCaptureChangedEventFunction)(wxMouseCaptureC
EVT_SCROLL_PAGEDOWN(func) \ EVT_SCROLL_PAGEDOWN(func) \
EVT_SCROLL_THUMBTRACK(func) \ EVT_SCROLL_THUMBTRACK(func) \
EVT_SCROLL_THUMBRELEASE(func) \ EVT_SCROLL_THUMBRELEASE(func) \
wx__EVT_SCROLL_CHANGED(func) EVT_SCROLL_CHANGED(func)
// Scrolling from wxSlider and wxScrollBar, with an id // Scrolling from wxSlider and wxScrollBar, with an id
#define EVT_COMMAND_SCROLL_TOP(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_TOP, winid, wxScrollEventHandler(func)) #define EVT_COMMAND_SCROLL_TOP(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_TOP, winid, wxScrollEventHandler(func))
@@ -2799,12 +2792,7 @@ typedef void (wxEvtHandler::*wxMouseCaptureChangedEventFunction)(wxMouseCaptureC
#define EVT_COMMAND_SCROLL_PAGEDOWN(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_PAGEDOWN, winid, wxScrollEventHandler(func)) #define EVT_COMMAND_SCROLL_PAGEDOWN(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_PAGEDOWN, winid, wxScrollEventHandler(func))
#define EVT_COMMAND_SCROLL_THUMBTRACK(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_THUMBTRACK, winid, wxScrollEventHandler(func)) #define EVT_COMMAND_SCROLL_THUMBTRACK(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_THUMBTRACK, winid, wxScrollEventHandler(func))
#define EVT_COMMAND_SCROLL_THUMBRELEASE(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_THUMBRELEASE, winid, wxScrollEventHandler(func)) #define EVT_COMMAND_SCROLL_THUMBRELEASE(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_THUMBRELEASE, winid, wxScrollEventHandler(func))
#if wxABI_VERSION >= 20601
#define EVT_COMMAND_SCROLL_CHANGED(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_CHANGED, winid, wxScrollEventHandler(func)) #define EVT_COMMAND_SCROLL_CHANGED(winid, func) wx__DECLARE_EVT1(wxEVT_SCROLL_CHANGED, winid, wxScrollEventHandler(func))
#define wx__EVT_COMMAND_SCROLL_CHANGED(winid, func) EVT_COMMAND_SCROLL_CHANGED(winid, func)
#else
#define wx__EVT_COMMAND_SCROLL_CHANGED(winid, func)
#endif
#define EVT_COMMAND_SCROLL(winid, func) \ #define EVT_COMMAND_SCROLL(winid, func) \
EVT_COMMAND_SCROLL_TOP(winid, func) \ EVT_COMMAND_SCROLL_TOP(winid, func) \
@@ -2815,20 +2803,12 @@ typedef void (wxEvtHandler::*wxMouseCaptureChangedEventFunction)(wxMouseCaptureC
EVT_COMMAND_SCROLL_PAGEDOWN(winid, func) \ EVT_COMMAND_SCROLL_PAGEDOWN(winid, func) \
EVT_COMMAND_SCROLL_THUMBTRACK(winid, func) \ EVT_COMMAND_SCROLL_THUMBTRACK(winid, func) \
EVT_COMMAND_SCROLL_THUMBRELEASE(winid, func) \ EVT_COMMAND_SCROLL_THUMBRELEASE(winid, func) \
wx__EVT_COMMAND_SCROLL_CHANGED(winid, func) EVT_COMMAND_SCROLL_CHANGED(winid, func)
// compatibility macros for the old name, to be deprecated in 2.8 // compatibility macros for the old name, to be deprecated in 2.8
//
// note that simply #defines suffice for the macro names as they're only
// present in the source code and macros are enough to maintain source
// backwards compatibility, but that we have to ensure that we also have
// wxEVT_SCROLL_ENDSCROLL inside the library for binary backwards compatibility
// and this is done in event.cpp
#if wxABI_VERSION >= 20601
#define wxEVT_SCROLL_ENDSCROLL wxEVT_SCROLL_CHANGED #define wxEVT_SCROLL_ENDSCROLL wxEVT_SCROLL_CHANGED
#define EVT_COMMAND_SCROLL_ENDSCROLL EVT_COMMAND_SCROLL_CHANGED #define EVT_COMMAND_SCROLL_ENDSCROLL EVT_COMMAND_SCROLL_CHANGED
#define EVT_SCROLL_ENDSCROLL EVT_SCROLL_CHANGED #define EVT_SCROLL_ENDSCROLL EVT_SCROLL_CHANGED
#endif
// Convenience macros for commonly-used commands // Convenience macros for commonly-used commands
#define EVT_CHECKBOX(winid, func) wx__DECLARE_EVT1(wxEVT_COMMAND_CHECKBOX_CLICKED, winid, wxCommandEventHandler(func)) #define EVT_CHECKBOX(winid, func) wx__DECLARE_EVT1(wxEVT_COMMAND_CHECKBOX_CLICKED, winid, wxCommandEventHandler(func))

View File

@@ -33,9 +33,7 @@ class WXDLLIMPEXP_BASE wxZipFSHandler : public wxFileSystemHandler
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location); virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
virtual wxString FindFirst(const wxString& spec, int flags = 0); virtual wxString FindFirst(const wxString& spec, int flags = 0);
virtual wxString FindNext(); virtual wxString FindNext();
#if wxABI_VERSION >= 20602 /* 2.6.2+ only */
void Cleanup(); void Cleanup();
#endif
~wxZipFSHandler(); ~wxZipFSHandler();
private: private:

View File

@@ -114,10 +114,8 @@ public:
wxColour GetItemTextColour( long item ) const; wxColour GetItemTextColour( long item ) const;
void SetItemBackgroundColour( long item, const wxColour &col); void SetItemBackgroundColour( long item, const wxColour &col);
wxColour GetItemBackgroundColour( long item ) const; wxColour GetItemBackgroundColour( long item ) const;
#if wxABI_VERSION >= 20602
void SetItemFont( long item, const wxFont &f); void SetItemFont( long item, const wxFont &f);
wxFont GetItemFont( long item ) const; wxFont GetItemFont( long item ) const;
#endif
int GetSelectedItemCount() const; int GetSelectedItemCount() const;
wxColour GetTextColour() const; wxColour GetTextColour() const;
void SetTextColour(const wxColour& col); void SetTextColour(const wxColour& col);

View File

@@ -66,6 +66,9 @@ public:
// this is app-overridable to, for example, set help and tooltip text // this is app-overridable to, for example, set help and tooltip text
virtual void DoCreateControls(); virtual void DoCreateControls();
protected:
void FinishLayout();
private: private:
// was the dialog really created? // was the dialog really created?
bool WasCreated() const { return m_btnPrev != NULL; } bool WasCreated() const { return m_btnPrev != NULL; }
@@ -82,12 +85,6 @@ private:
void AddBackNextPair(wxBoxSizer *buttonRow); void AddBackNextPair(wxBoxSizer *buttonRow);
void AddButtonRow(wxBoxSizer *mainColumn); void AddButtonRow(wxBoxSizer *mainColumn);
#if wxABI_VERSION >= 20602
protected:
#endif
void FinishLayout();
private:
wxSize GetManualPageSize() const; wxSize GetManualPageSize() const;
// the page size requested by user // the page size requested by user

View File

@@ -66,9 +66,7 @@ public:
void Clear(); void Clear();
int GetSelection() const; int GetSelection() const;
#if wxABI_VERSION >= 20602
int GetCurrentSelection() const { return GetSelection(); } int GetCurrentSelection() const { return GetSelection(); }
#endif
void SetSelection( int n ); void SetSelection( int n );
virtual int GetCount() const; virtual int GetCount() const;

View File

@@ -85,9 +85,7 @@ public:
virtual int FindString( const wxString &item ) const; virtual int FindString( const wxString &item ) const;
int GetSelection() const; int GetSelection() const;
#if wxABI_VERSION >= 20602
int GetCurrentSelection() const; int GetCurrentSelection() const;
#endif
wxString GetString( int n ) const; wxString GetString( int n ) const;
wxString GetStringSelection() const; wxString GetStringSelection() const;
int GetCount() const; int GetCount() const;

View File

@@ -66,9 +66,7 @@ public:
void Clear(); void Clear();
int GetSelection() const; int GetSelection() const;
#if wxABI_VERSION >= 20602
int GetCurrentSelection() const { return GetSelection(); } int GetCurrentSelection() const { return GetSelection(); }
#endif
void SetSelection( int n ); void SetSelection( int n );
virtual int GetCount() const; virtual int GetCount() const;

View File

@@ -85,9 +85,7 @@ public:
virtual int FindString( const wxString &item ) const; virtual int FindString( const wxString &item ) const;
int GetSelection() const; int GetSelection() const;
#if wxABI_VERSION >= 20602
int GetCurrentSelection() const; int GetCurrentSelection() const;
#endif
wxString GetString( int n ) const; wxString GetString( int n ) const;
wxString GetStringSelection() const; wxString GetStringSelection() const;
int GetCount() const; int GetCount() const;

View File

@@ -153,7 +153,6 @@ public:
class WXDLLEXPORT wxImage: public wxObject class WXDLLEXPORT wxImage: public wxObject
{ {
public: public:
#if wxABI_VERSION >= 20602
// red, green and blue are 8 bit unsigned integers in the range of 0..255 // red, green and blue are 8 bit unsigned integers in the range of 0..255
// We use the identifier RGBValue instead of RGB, since RGB is #defined // We use the identifier RGBValue instead of RGB, since RGB is #defined
class RGBValue class RGBValue
@@ -176,7 +175,6 @@ public:
double saturation; double saturation;
double value; double value;
}; };
#endif // wxABI_VERSION >= 2.6.2
wxImage(){} wxImage(){}
wxImage( int width, int height, bool clear = true ); wxImage( int width, int height, bool clear = true );
@@ -358,11 +356,9 @@ public:
// Returned value: # of entries in the histogram // Returned value: # of entries in the histogram
unsigned long ComputeHistogram( wxImageHistogram &h ) const; unsigned long ComputeHistogram( wxImageHistogram &h ) const;
#if wxABI_VERSION >= 20602
// Rotates the hue of each pixel of the image. angle is a double in the range // Rotates the hue of each pixel of the image. angle is a double in the range
// -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees // -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees
void RotateHue(double angle); void RotateHue(double angle);
#endif // wxABI_VERSION >= 2.6.2
wxImage& operator = (const wxImage& image) wxImage& operator = (const wxImage& image)
{ {
@@ -390,10 +386,8 @@ public:
static void CleanUpHandlers(); static void CleanUpHandlers();
static void InitStandardHandlers(); static void InitStandardHandlers();
#if wxABI_VERSION >= 20602
static HSVValue RGBtoHSV(const RGBValue& rgb); static HSVValue RGBtoHSV(const RGBValue& rgb);
static RGBValue HSVtoRGB(const HSVValue& hsv); static RGBValue HSVtoRGB(const HSVValue& hsv);
#endif // wxABI_VERSION >= 2.6.2
protected: protected:

View File

@@ -284,8 +284,6 @@ private:
// "trivial" derivations of wxLog // "trivial" derivations of wxLog
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if wxABI_VERSION > 20601
// log everything to a buffer // log everything to a buffer
class WXDLLIMPEXP_BASE wxLogBuffer : public wxLog class WXDLLIMPEXP_BASE wxLogBuffer : public wxLog
{ {
@@ -309,7 +307,6 @@ private:
DECLARE_NO_COPY_CLASS(wxLogBuffer) DECLARE_NO_COPY_CLASS(wxLogBuffer)
}; };
#endif // wxABI_VERSION
// log everything to a "FILE *", stderr by default // log everything to a "FILE *", stderr by default
class WXDLLIMPEXP_BASE wxLogStderr : public wxLog class WXDLLIMPEXP_BASE wxLogStderr : public wxLog

View File

@@ -160,10 +160,8 @@ public:
return wx_truncate_cast(long, m_ll); return wx_truncate_cast(long, m_ll);
} }
#if wxABI_VERSION >= 20602
// convert to double // convert to double
double ToDouble() const { return wx_truncate_cast(double, m_ll); } double ToDouble() const { return wx_truncate_cast(double, m_ll); }
#endif // ABI >= 2.6.2
// don't provide implicit conversion to wxLongLong_t or we will have an // don't provide implicit conversion to wxLongLong_t or we will have an
// ambiguity for all arithmetic operations // ambiguity for all arithmetic operations
@@ -591,10 +589,8 @@ public:
return (long)m_lo; return (long)m_lo;
} }
#if wxABI_VERSION >= 20602
// convert to double // convert to double
double ToDouble() const; double ToDouble() const;
#endif // ABI >= 2.6.2
// operations // operations
// addition // addition

View File

@@ -190,12 +190,9 @@ public:
wxFileOffset Tell(); //FIXME: This should be const wxFileOffset Tell(); //FIXME: This should be const
wxFileOffset Length(); //FIXME: This should be const wxFileOffset Length(); //FIXME: This should be const
#if wxABI_VERSION >= 20601 /* 2.6.1+ only */
double GetPlaybackRate(); //All but MCI & GStreamer double GetPlaybackRate(); //All but MCI & GStreamer
bool SetPlaybackRate(double dRate); //All but MCI & GStreamer bool SetPlaybackRate(double dRate); //All but MCI & GStreamer
#endif
#if wxABI_VERSION >= 20602 /* 2.6.2+ only */
bool Load(const wxURI& location); bool Load(const wxURI& location);
bool Load(const wxURI& location, const wxURI& proxy); bool Load(const wxURI& location, const wxURI& proxy);
@@ -213,7 +210,7 @@ public:
{ return Load(wxURI(fileName)); } { return Load(wxURI(fileName)); }
bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy) bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy)
{ return Load(wxURI(fileName), wxURI(proxy)); } { return Load(wxURI(fileName), wxURI(proxy)); }
#endif
protected: protected:
static wxClassInfo* NextBackend(); static wxClassInfo* NextBackend();
@@ -327,10 +324,12 @@ public:
//Event ID to give to our events //Event ID to give to our events
#define wxMEDIA_FINISHED_ID 13000 #define wxMEDIA_FINISHED_ID 13000
#define wxMEDIA_STOP_ID 13001 #define wxMEDIA_STOP_ID 13001
#define wxMEDIA_LOADED_ID 13002
//Define our event types - we need to call DEFINE_EVENT_TYPE(EVT) later //Define our event types - we need to call DEFINE_EVENT_TYPE(EVT) later
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_FINISHED, wxMEDIA_FINISHED_ID) DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_FINISHED, wxMEDIA_FINISHED_ID)
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STOP, wxMEDIA_STOP_ID) DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STOP, wxMEDIA_STOP_ID)
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMEDIA_LOADED_ID)
//Function type(s) our events need //Function type(s) our events need
typedef void (wxEvtHandler::*wxMediaEventFunction)(wxMediaEvent&); typedef void (wxEvtHandler::*wxMediaEventFunction)(wxMediaEvent&);
@@ -341,12 +340,7 @@ typedef void (wxEvtHandler::*wxMediaEventFunction)(wxMediaEvent&);
//Macro for usage with message maps //Macro for usage with message maps
#define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
#define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
#define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
#if wxABI_VERSION >= 20602 /* 2.6.2+ only */
# define wxMEDIA_LOADED_ID 13002
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMEDIA_LOADED_ID)
# define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// common backend base class used by many other backends // common backend base class used by many other backends

View File

@@ -49,8 +49,6 @@ private:
// otherwise; unlike wxMessageOutputMessageBox this class is always safe to use // otherwise; unlike wxMessageOutputMessageBox this class is always safe to use
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if wxABI_VERSION > 20601
class WXDLLIMPEXP_BASE wxMessageOutputBest : public wxMessageOutput class WXDLLIMPEXP_BASE wxMessageOutputBest : public wxMessageOutput
{ {
public: public:
@@ -59,8 +57,6 @@ public:
virtual void Printf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2; virtual void Printf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2;
}; };
#endif // wxABI_VERSION
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// implementation which sends output to stderr // implementation which sends output to stderr
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -74,9 +74,7 @@ public:
virtual int GetCount() const; virtual int GetCount() const;
virtual int GetSelection() const; virtual int GetSelection() const;
#if wxABI_VERSION >= 20602
virtual int GetCurrentSelection() const; virtual int GetCurrentSelection() const;
#endif
virtual void SetSelection(int n); virtual void SetSelection(int n);
virtual int FindString(const wxString& s) const; virtual int FindString(const wxString& s) const;

View File

@@ -196,11 +196,9 @@ public:
void SetItemBackgroundColour( long item, const wxColour &col); void SetItemBackgroundColour( long item, const wxColour &col);
wxColour GetItemBackgroundColour( long item ) const; wxColour GetItemBackgroundColour( long item ) const;
#if wxABI_VERSION >= 20602
// Font of an item. // Font of an item.
void SetItemFont( long item, const wxFont &f); void SetItemFont( long item, const wxFont &f);
wxFont GetItemFont( long item ) const; wxFont GetItemFont( long item ) const;
#endif
// Gets the number of selected items in the list control // Gets the number of selected items in the list control
int GetSelectedItemCount() const; int GetSelectedItemCount() const;

View File

@@ -250,13 +250,9 @@ protected:
bool m_isCurrent:1; bool m_isCurrent:1;
#ifdef __WXMSW__ #ifdef __WXMSW__
protected:
#if wxABI_VERSION >= 20602
public:
#endif
// override MSWWindowProc() to process WM_NCHITTEST // override MSWWindowProc() to process WM_NCHITTEST
WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
#endif // __WXMSW__ #endif // __WXMSW__
private: private:

View File

@@ -325,8 +325,6 @@ WXDLLIMPEXP_BASE bool wxHandleFatalExceptions(bool doit = true);
#endif // wxUSE_ON_FATAL_EXCEPTION #endif // wxUSE_ON_FATAL_EXCEPTION
#if wxABI_VERSION >= 20601
// flags for wxLaunchDefaultBrowser // flags for wxLaunchDefaultBrowser
enum enum
{ {
@@ -335,7 +333,6 @@ enum
// Launch url in the user's default internet browser // Launch url in the user's default internet browser
WXDLLIMPEXP_BASE bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0); WXDLLIMPEXP_BASE bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0);
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Environment variables // Environment variables

View File

@@ -20,10 +20,10 @@
/* NB: this file is parsed by Perl code in tmake templates in distrib/msw/tmake */ /* NB: this file is parsed by Perl code in tmake templates in distrib/msw/tmake */
/* so don't change its format too much or they could break */ /* so don't change its format too much or they could break */
#define wxMAJOR_VERSION 2 #define wxMAJOR_VERSION 2
#define wxMINOR_VERSION 6 #define wxMINOR_VERSION 7
#define wxRELEASE_NUMBER 2 #define wxRELEASE_NUMBER 0
#define wxSUBRELEASE_NUMBER 1 #define wxSUBRELEASE_NUMBER 0
#define wxVERSION_STRING _T("wxWidgets 2.6.2") #define wxVERSION_STRING _T("wxWidgets 2.7.0")
/* nothing to update below this line when updating the version */ /* nothing to update below this line when updating the version */
/* ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------- */

View File

@@ -76,9 +76,7 @@ public:
// wxNullBitmap from here - the default one will be used then. // wxNullBitmap from here - the default one will be used then.
virtual wxBitmap GetBitmap() const { return m_bitmap; } virtual wxBitmap GetBitmap() const { return m_bitmap; }
// due to a typo in #if condition, the validation functions were disabled #if wxUSE_VALIDATORS
// in 2.6.[01] releases so check for wxABI_VERSION here
#if wxUSE_VALIDATORS && (wxABI_VERSION >= 20602)
// Override the base functions to allow a validator to be assigned to this page. // Override the base functions to allow a validator to be assigned to this page.
virtual bool TransferDataToWindow() virtual bool TransferDataToWindow()
{ {

View File

@@ -120,10 +120,8 @@ public:
// This method understands VFS (see filesys.h). // This method understands VFS (see filesys.h).
bool Load(const wxString& filemask); bool Load(const wxString& filemask);
#if wxABI_VERSION > 20601
// Unload resource from the given XML file (wildcards not allowed) // Unload resource from the given XML file (wildcards not allowed)
bool Unload(const wxString& filename); bool Unload(const wxString& filename);
#endif // wxABI_VERSION
// Initialize handlers for all supported controls/windows. This will // Initialize handlers for all supported controls/windows. This will
// make the executable quite big because it forces linking against // make the executable quite big because it forces linking against
@@ -251,7 +249,6 @@ protected:
wxObject *instance = NULL, wxObject *instance = NULL,
wxXmlResourceHandler *handlerToUse = NULL); wxXmlResourceHandler *handlerToUse = NULL);
#if wxABI_VERSION > 20601
// Helper of Load() and Unload(): returns the URL corresponding to the // Helper of Load() and Unload(): returns the URL corresponding to the
// given file if it's indeed a file, otherwise returns the original string // given file if it's indeed a file, otherwise returns the original string
// unmodified // unmodified
@@ -263,8 +260,6 @@ protected:
static bool IsArchive(const wxString& filename); static bool IsArchive(const wxString& filename);
#endif // wxUSE_FILESYSTEM #endif // wxUSE_FILESYSTEM
#endif // wxABI_VERSION
private: private:
long m_version; long m_version;