Define wxHAS_NATIVE_ANIMATIONCTRL
This allows to easily test for the native control existence and also whether wxGenericAnimationCtrl is really different from wxAnimationCtrl. It also allows to avoid explicit check for wxGTK in common code.
This commit is contained in:
parent
6f2a5937f5
commit
d0371d75f7
3 changed files with 4 additions and 1 deletions
|
|
@ -185,6 +185,7 @@ Currently the following symbols exist:
|
|||
decide whether some function should be overloaded for both
|
||||
<code>long</code> and <code>long long</code> types.}
|
||||
@itemdef{wxHAS_MULTIPLE_FILEDLG_FILTERS, Defined if wxFileDialog supports multiple ('|'-separated) filters.}
|
||||
@itemdef{wxHAS_NATIVE_ANIMATIONCTRL, Defined if native wxAnimationCtrl class is being used (this symbol only exists in wxWidgets 3.1.4 and later).}
|
||||
@itemdef{wxHAS_NATIVE_DATAVIEWCTRL, Defined if native wxDataViewCtrl class is being used (this symbol only exists in wxWidgets 3.1.4 and later).}
|
||||
@itemdef{wxHAS_NATIVE_WINDOW, Defined if wxNativeWindow class is available.}
|
||||
@itemdef{wxHAS_NULLPTR_T, Defined if the currently used compiler supports C++11 @c nullptr.}
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ private:
|
|||
|
||||
#if defined(__WXGTK20__)
|
||||
#include "wx/gtk/animate.h"
|
||||
|
||||
#define wxHAS_NATIVE_ANIMATIONCTRL
|
||||
#else
|
||||
class WXDLLIMPEXP_ADV wxAnimationCtrl : public wxGenericAnimationCtrl
|
||||
{
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ wxAnimation wxNullAnimation;
|
|||
wxIMPLEMENT_DYNAMIC_CLASS(wxAnimation, wxObject);
|
||||
wxIMPLEMENT_ABSTRACT_CLASS(wxAnimationCtrlBase, wxControl);
|
||||
|
||||
#if !defined(__WXGTK20__)
|
||||
#if !defined(wxHAS_NATIVE_ANIMATIONCTRL)
|
||||
// In this case the "native" ctrl is the generic ctrl. See wx/animate.h
|
||||
wxIMPLEMENT_CLASS(wxAnimationCtrl, wxGenericAnimationCtrl);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue