Commit Graph

65326 Commits

Author SHA1 Message Date
Artur Wieczorek
fa4b077421 Remove wxDataViewTreeCtrlAccessibilty class
Since wxDataViewCtrlAccessible::GetName() calls to wxDataViewIconTextRenderer::GetAccessibleDescription() to directly retrieve the content of the renderer, there is no need to override wxDataViewCtrlAccessible::GetName() in order to get a proper content of the renderer in wxDataViewTreeCtrl.
2016-10-24 22:22:31 +02:00
Artur Wieczorek
dbb2781199 Fix wxDataViewCtrlAccessible::GetName() and GetDescription()
Call wxDataViewRenderer::GetAccessibleDescription() to retrieve the content of the renderer instead of using a raw item value taken from wxDataViewModel. GetAccessibleDescription() returns a renderer-aware text dedicated for accessibility purposes and hence text presented in GetName() and GetDescription() is accurate in contrary to the text deduced from the item value.
2016-10-24 22:12:53 +02:00
Artur Wieczorek
bc8728b901 Implement MyCustomRenderer::GetAccessibleDescription() in dataview sample
If wxUSE_ACCESSIBILITY is set to 1, this method has to be overridden for all custom renderers.
2016-10-24 21:55:10 +02:00
Artur Wieczorek
d9fbde805b Implement wxDataViewRenderer::GetAccessibleDescription() method
The purpose of this method is to provide a textual description of the renderer's content to the class implementing accessibility framework in wxDVC (wxDataViewCtrlAccessible).
It is exposed if wxUSE_ACCESSIBILITY is set to 1.
2016-10-24 21:52:22 +02:00
Robin Dunn
60aa5d8e41 fix code snippet 2016-10-21 20:17:38 -07:00
Robin Dunn
6b335c8ca4 Add missing wxPropertySheetDialog methods and fix a typo. 2016-10-21 20:16:53 -07:00
Robin Dunn
ec0a91464e Add missing ctors and dtor for wxPropertyGridManager 2016-10-21 20:15:50 -07:00
Robin Dunn
8557172cb5 Add SetFlag and ClearFlag 2016-10-21 20:12:56 -07:00
Robin Dunn
6988758648 Add missing methods in wxGridCellAttr 2016-10-21 20:09:28 -07:00
Robin Dunn
17bb46299e Fix wxPropertyGridPage declaration 2016-10-21 20:09:16 -07:00
Robin Dunn
12f9b8b7e4 SetValueToUnspecified is not pure virtual 2016-10-21 20:08:30 -07:00
Robin Dunn
af9a0f6734 Change ~wxPGChoicesData from private to protected 2016-10-21 20:08:20 -07:00
Robin Dunn
774f37d0a3 Add more missing classes 2016-10-21 19:54:22 -07:00
Robin Dunn
c8c02a1bf2 Add wxPGPaintData and wxPGCellRenderer 2016-10-21 19:54:22 -07:00
Robin Dunn
bf13c0af22 Remove wxDEPRECATED decorator from doc 2016-10-21 19:53:57 -07:00
Robin Dunn
0be4a6d919 some formatting tweaks for propgrid 2016-10-21 16:54:35 -07:00
Robin Dunn
a5fe9de656 Add missing methods 2016-10-21 16:54:35 -07:00
Robin Dunn
cbbf8fe9d8 wxPalette::Create should return true 2016-10-21 16:54:34 -07:00
Robin Dunn
2fab4c4fc1 Add setter methods to wxListEvent 2016-10-21 16:54:34 -07:00
Robin Dunn
5301cbd845 Fix typo 2016-10-21 16:54:33 -07:00
Robin Dunn
cf8aa0b2d7 Change parameter name to reduce confusion in wxPython docs. 2016-10-21 16:54:33 -07:00
Robin Dunn
3243436ff7 Add lots of missing methods in wxAboutDialogInfo 2016-10-21 16:54:32 -07:00
Robin Dunn
b2ae25fc6a WX_CLEAR_LIST in wxHtmlWindow::CleanUpStatics is hard-crashing in wxHtmlWindow::CleanUpStatics, perhaps due to a different cleanup order?? Anyway, switching to .Clear() avoids the crash and does nearly the same. Since it is in code that is called on exit it shouldn't matter either way. 2016-10-21 16:54:31 -07:00
Robin Dunn
824f9551ee Add missing GetParser method 2016-10-21 16:54:31 -07:00
Robin Dunn
db34678e53 Add missing parameter name 2016-10-21 16:54:30 -07:00
Robin Dunn
9c045a4e34 typo 2016-10-21 16:54:30 -07:00
Robin Dunn
bb96082fde Use "clientData" parameter name for consistency. 2016-10-21 16:54:29 -07:00
Robin Dunn
9566c4c6de fix missing ; 2016-10-21 16:54:29 -07:00
Robin Dunn
c58d1445b2 Add more stuff missing from the ribbon interface 2016-10-21 16:54:28 -07:00
Robin Dunn
c40f782fae Fix typo 2016-10-21 16:54:28 -07:00
Robin Dunn
5260de1471 Fix typos and missing items in the ribbon interface definitions 2016-10-21 16:54:27 -07:00
Robin Dunn
1802a57696 Fix parameter names in wxMediaCtrl::Load* methods 2016-10-21 16:54:26 -07:00
Vadim Zeitlin
c9ec981a28 Fix MinGW builds by defining HDS_NOSIZING if it's not defined
Blind fix for compilation failures in MinGW builds after the changes of
92a1f643ba which started using HDS_NOSIZING
apparently not present in this compiler SDK headers.
2016-10-21 22:54:46 +02:00
Václav Slavík
a6be5bdae3 Fix wxGTK wxDataViewRenderers' alignment handling
Don't apply alignment to native controls in SetAlignment() method, where
it may not be known yet due to column-to-renderer inheritance if
wxDVR_DEFAULT_ALIGNMENT is used (the default). Move such code to
GtkUpdateAlignment() (which was made virtual) in all renderers.

This fixes unintended right-aligning of columns with GTK+ 2 when default
alignment was used.
2016-10-21 17:50:34 +02:00
Václav Slavík
552940b547 Change wxOSX ShowWithEffect() delay to 200ms
Change the animation delay from ridiculously long (half a second) to
somewhat more reasonable 200ms to bring it in line with Windows per the
comment in this code. Feels more similar to native macOS animations now
too.
2016-10-21 17:44:24 +02:00
Václav Slavík
7546989c44 Fix wxMarkupParserAttr's unwinding of colors
Fix the logic for restoring previous span's colors to account for the
possibility of spans that don't change the color, such as in "<i><span
color='red'>...</span></i>foo". Previously, "foo" would always be
rendered black, because unwinding the attributes stack would encounter
an invalid color (which has r=g=b=0) and set it, disregarding and
preexisting attributes.

Because there's code in there that checks whether the attributes are
valid, we need to keep track of both the actually specified attributes
and the currently effective ones, and use the latter for restoration.
2016-10-21 17:36:32 +02:00
Václav Slavík
d9df970573 Don't use custom colors in selected wxDVC controls (wxOSX)
Don't use custom color attributes or color markup for rendering of
selected items' text in wxOSX's wxDataViewCtrl and use the selection
text color instead. This is consistent with the other ports and should
be done to improve readability (in absence of selection-specific
attributes).
2016-10-21 17:36:32 +02:00
Václav Slavík
5e5ffad0b8 Respect item font when rendering markup (wxOSX)
Respect per-item attributes and namely the font (which may differ from
the control's font) when rendering markup items in wxDataViewCtrl.
2016-10-21 17:36:32 +02:00
Václav Slavík
58fc33d7c2 Support ellipsizing of markup text in wxDVC
Fix wxDataViewTextRenderer to at least partially respect ellipsize mode
when using markup text. Generic implementation only supports
wxELLIPSIZE_END and wxELLIPSIZE_NONE at the moment, but the wxOSX and
wxGTK ones have full support.
2016-10-21 17:36:32 +02:00
Václav Slavík
92a1f643ba Set HDS_NOSIZING in wxHeaderCtrl when appropriate
Native Windows header control doesn't have the ability to show
per-column resizing cursor and it's only possible to enable or disable
it for the entire control, so we can't fully support the wxHeaderColumn
API. But we can at least hide the resizing cursor if none of the columns
are resizable.
2016-10-21 17:08:54 +02:00
Vadim Zeitlin
0afb95d2f4 Escape double dashes in Doxygen input to preserve them
By default double dashes are converted to en-dashes in the output (and triple
ones -- to em-dashes), but this is undesirable when double dashes are used not
as a punctuation mark but in command line options or as C++ decrement
operator, so escape them to avoid such conversion in this case.
2016-10-20 21:47:37 +02:00
Václav Slavík
73f6bf7b6f Allow wxDataViewCtrl to gain focus in wxOSX
Fix numerous focus-handling bugs in wxOSX in combination with
NSScrollView (which cannot get focus by itself and which was already
treated specially in many, but not all, places), including

- inability to set the focus
- loss of wxEVT_SET_FOCUS events
- loss of wxWindow<->NSView association after clearing wxDVC columns
2016-10-19 17:11:49 +02:00
Václav Slavík
f3b8dac3b7 Fix wxNullVariant handling in wxDataViewBitmapRenderer
In both the generic and GTK+ implementations, setting the value of a
bitmap column to wxNullVariant resulted in the bitmap, if set for some
rows, being repeated on the rows with null value.
2016-10-19 16:46:54 +02:00
TcT2k
065135adcc Remove QTKit support from wxMediaCtrl for OS X
QTKit has been removed from OS X 10.12 SDK.
QTKit has been superseded by AVFoundation since OS X 10.7.
Since wxWidgets >= 3.1 requires 10.7 anyway there is no reason to support the old API.

Additionally the AVFoundation implementation may use AVKit (available since 10.9). It will be used when available and the deployment target is met.

Closes https://github.com/wxWidgets/wxWidgets/pull/337
2016-10-19 13:56:29 +02:00
Václav Slavík
ec45fc5ae0 Return IAccessible from GetIAccessibleStd()
There's no reason to return an untyped void* pointer when we can
forward-declare IAccessible.
2016-10-19 10:36:07 +02:00
Vadim Zeitlin
dda1c7cfd4 Merge branch 'fix_osx_qtkit' of https://github.com/TcT2k/wxWidgets
Compilation fix for OS X 10.12 SDK.

Closes https://github.com/wxWidgets/wxWidgets/pull/336
2016-10-18 00:28:21 +02:00
JulianSmart
682d53fdaa Use correct selection after editing cell properties 2016-10-17 12:42:00 +01:00
JulianSmart
7505ccfd6d Find focus for comboboxes 2016-10-17 12:41:58 +01:00
Tobias Taschner
ce7bf5e539 Add typecast for C++11 compilation of OS X wxMediaCtrl
When compiling in C++11 mode the typecast of AVPlayerStatus in the callback is required to avoid a compiler error.
2016-10-17 11:44:16 +02:00
Tobias Taschner
281610142b Fix building wxMediaCtrl with OS X 10.12 SDK
Since OS X Sierra 10.12 QTKit has been removed. wxMediaCtrl for OS X already had a fallback to AVFoundation implemented. This makes sure this will be used and the correct media Frameworks are used for linking.
2016-10-17 11:29:48 +02:00