Permalink
Browse files

Enable wxUSE_ACCESSIBILITY by default (MSW)

Compile accessibility support on Windows by default now that the generic
wxDataViewCtrl control implements accessible interface. After the
changes from 7dab555, accessibility
support is much more lightweight and doesn't interfere with normal win32
behavior, so this change shouldn't affect accessibility-unaware code in
any way.
1 parent d720155 commit 8b5387bc3da33f437a53edcb11847802b628eb70 @vslavik vslavik committed with vslavik Dec 13, 2016
View
@@ -11329,6 +11329,10 @@ fi
+if test "$wxUSE_MSW" = 1 ; then
+ DEFAULT_wxUSE_ACCESSIBILITY=yes
+fi
+
enablestring=
defaultval=$wxUSE_ALL_FEATURES
View
@@ -970,6 +970,10 @@ dnl ---------------------------------------------------------------------------
dnl misc GUI options
dnl ---------------------------------------------------------------------------
+if test "$wxUSE_MSW" = 1 ; then
+ DEFAULT_wxUSE_ACCESSIBILITY=yes
+fi
+
WX_ARG_FEATURE(menus, [ --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes], wxUSE_MENUS)
WX_ARG_FEATURE(miniframe, [ --enable-miniframe use wxMiniFrame class], wxUSE_MINIFRAME)
WX_ARG_FEATURE(tooltips, [ --enable-tooltips use wxToolTip class], wxUSE_TOOLTIPS)
@@ -1358,12 +1358,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1359,12 +1359,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1359,12 +1359,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1359,12 +1359,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1360,12 +1360,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1355,12 +1355,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
@@ -1358,12 +1358,16 @@
#define wxUSE_DRAG_AND_DROP 1
// Use wxAccessible for enhanced and customisable accessibility.
-// Depends on wxUSE_OLE.
+// Depends on wxUSE_OLE on MSW.
//
-// Default is 0.
+// Default is 1 on MSW, 0 elsewhere.
//
-// Recommended setting (at present): 0
+// Recommended setting (at present): 1 (MSW-only)
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
// ----------------------------------------------------------------------------
// miscellaneous settings
View
@@ -544,7 +544,11 @@
#define wxUSE_DRAG_AND_DROP 0
+#ifdef __WXMSW__
+#define wxUSE_ACCESSIBILITY 1
+#else
#define wxUSE_ACCESSIBILITY 0
+#endif
#define wxUSE_SNGLINST_CHECKER 0

0 comments on commit 8b5387b

Please sign in to comment.