Stefan Csomor
80fd70e8f1
make NSString conversions available for all osx platforms
2020-04-07 12:04:01 +02:00
Paul Cornett
902a2f0885
Remove wxAnimation copy ctor and copy-assignment operator implementations
...
The compiler-generated defaults will do the same thing
2020-04-06 20:26:49 -07:00
Vadim Zeitlin
706c8e8ad6
Merge branch 'disable-native-animation'
...
Allow the generic animation classes to be used on all platforms.
See https://github.com/wxWidgets/wxWidgets/pull/1768
2020-04-07 00:40:45 +02:00
Vadim Zeitlin
f2ed3a5376
Add static wxAnimationCtrl::CreateCompatibleAnimation()
...
This may be more convenient to use than CreateAnimation() if there is no
wxAnimationCtrl object at hand.
2020-04-06 23:33:07 +02:00
Stefan Csomor
eaec76ee97
moving wxOSXCreateURLFromFileSystemPath to common OSX
2020-04-06 16:08:47 +02:00
Vadim Zeitlin
a5b5573ee1
Restore lost check for __WXUNIVERSAL__ in wx/animate.h
...
Don't use native version when building wxUniv.
2020-04-06 01:28:01 +02:00
Vadim Zeitlin
d9b1ca54ca
Stop deriving native wxGTK wxAnimationCtrl from generic one
...
This is unnecessary and confusing.
2020-04-06 01:09:36 +02:00
Vadim Zeitlin
3678d67f92
Move wxGenericAnimationCtrl::m_animation to the base class
...
API of wxAnimationCtrlBase practically forces the derived classes to
have such method, so just add it and make GetAnimation() a simple
non-virtual accessor.
2020-04-06 01:03:39 +02:00
Vadim Zeitlin
b08db49bf6
Make wxAnimationImpl private and get rid of wxAnimationImplType
...
Simplify and streamline animation classes relationship: wxAnimation is
the only public class representing an animation and it can be created by
both the native wxAnimationCtrl and wxGenericAnimationCtrl using the new
public CreateAnimation() method.
Replace wxAnimationImplType enum with more flexible type info based
check.
2020-04-06 01:00:15 +02:00
Vadim Zeitlin
86d6cb8d1f
Don't derive wxAnimationImpl from wxObject
...
This is just unnecessary and having wxAnimation::m_refData->m_refData is
confusing, both in wxGTK version where it's not used and in the generic
one where it is, but can be replaced by more type-safe m_decoder.
2020-04-06 00:00:10 +02:00
Vadim Zeitlin
1bf48dfe29
Remove wxAnimationCtrlBase from wxRTTI
...
This is consistent with the other wxFooBase classes which are not part
of it, as they're considered implementation details and not parts of the
API.
2020-04-05 17:01:37 +02:00
Vadim Zeitlin
d0371d75f7
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.
2020-04-05 16:56:58 +02:00
Vadim Zeitlin
6f2a5937f5
Remove some recently added trailing spaces
...
No changes.
2020-04-05 16:05:48 +02:00
Vadim Zeitlin
cdff0bc1db
Use WXDLLIMPEXP_CORE instead of WXDLLIMPEXP_ADV in new code
...
They're the same thing, and we still keep WXDLLIMPEXP_ADV in the
existing code, but as this line was just moved to a new place, update it
to use the more appropriate DLL export declaration too.
No real changes.
2020-04-05 16:04:50 +02:00
Vadim Zeitlin
43b3a3fc5b
Merge branch 'grid-hidpi'
...
wxGrid improvements for high DPI and DPI changes
See https://github.com/wxWidgets/wxWidgets/pull/1776
2020-04-04 18:46:54 +02:00
Robin Dunn
e258a9d982
Move the animation Impl classes to private headers
2020-04-03 13:22:35 -07:00
Robin Dunn
4545d93924
Move wxAnimationDecoderList-related methods to wxAnimation
2020-04-03 12:49:15 -07:00
Robin Dunn
784f330838
Add assignment operator to wxAnimation
2020-04-02 14:35:30 -07:00
Robin Dunn
8153605cf0
No need for wxRTTI in wxAnimationImpl
2020-04-02 13:48:53 -07:00
Robin Dunn
6f79567f3b
Use better names for the Impl accessor methods
2020-04-02 13:21:49 -07:00
Robin Dunn
a7fd4db107
Use wxDECLARE_NO_COPY_CLASS in the Impl classes
2020-04-02 13:14:38 -07:00
Robin Dunn
06bda3e5de
Revert change that ended up just moving some lines
2020-04-02 12:59:26 -07:00
Robin Dunn
c532edfe67
Fix class names in the header
2020-04-02 12:51:16 -07:00
Robin Dunn
52d4bad3df
Apply suggestions from code review
...
Co-Authored-By: VZ <vadim@wxwidgets.org>
2020-04-02 12:35:58 -07:00
Paul Cornett
6240ecf153
Fix virtual call of Destroy() in wxDocChildFrameAny
...
Allow derived class override to be called.
See #18694
2020-04-02 09:03:35 -07:00
Robin Dunn
fb69a2975f
Add missing wxOVERRIDE, and some other cleanup
2020-04-01 14:55:08 -07:00
Robin Dunn
6b6a930e9c
Update GTK animation classes for the new pattern
2020-04-01 14:16:15 -07:00
Robin Dunn
f641601ea9
Remove the wxOVERRIDEs too
2020-04-01 13:37:38 -07:00
Vadim Zeitlin
d41d159576
Replace wxGridCellBoolRenderer::ms_sizeCheckMark with a local var
...
This variable is (now) only used in a single function, so there is no
reason to declare it as a class member.
No real changes.
2020-04-01 22:33:02 +02:00
Robin Dunn
085f08aefe
Remove the generic-specific methods from the wxAnimation API
2020-04-01 13:30:49 -07:00
Robin Dunn
606f365ea3
Verify the animation impl type matches the animation ctrl type
2020-04-01 12:39:48 -07:00
Robin Dunn
e464453073
* Switch wxAnimation to be a facade over a wxAnimationImpl class.
...
* Implement wxAnimationGenericImpl
* Update wxGenericAnimationCtrl as needed
2020-04-01 11:53:19 -07:00
Vadim Zeitlin
5e761ad99f
Add minimal DPI change handler to wxGrid
...
This handler redoes wxGrid layout and refreshes it to at least avoid
ugly display artifacts when moving wxGrid window between displays with
different DPI.
2020-04-01 00:46:39 +02:00
Robin Dunn
85bd16fb06
Trim trailing whitespace
2020-03-31 14:02:39 -07:00
Vadim Zeitlin
59ad458d39
Scale default wxGrid constants by DPI
...
In particular, this makes default column width better suited for high
DPI displays, as it was too narrow before.
Also mark a couple of obsolete constants as such with a comment.
2020-03-31 14:48:54 +02:00
Vadim Zeitlin
06af121e9c
Add wxObjectDataPtr::release()
...
This makes it possible to use wxObjectDataPtr inside functions returning
raw pointers owned by the caller, such as custom GetAttr() in the grid
sample.
2020-03-31 02:57:01 +02:00
Vadim Zeitlin
15b5a1865c
Add a simple wxGrid::AssignTable() wrapper for SetTable()
...
In many case SetTable() is called with its takeOwnership parameter set
to true, as shown by the grid sample in which all 3 of the calls to
SetTable() set it to true, but calling it in this case is awkward, as
bare "true" in the caller is unreadable and almost invariably requires
an explanatory comment.
Improve the API by adding AssignTable(), which is the same to SetTable()
as the existing AssignImageList() to SetImageLabel(), which always takes
ownership of the table pointer.
2020-03-31 02:43:08 +02:00
Robin Dunn
1608fde659
Add a Create method to the shim class
2020-03-30 15:20:19 -07:00
Robin Dunn
868154ee90
native wxAnimationCtrl derives from the generic class
2020-03-30 15:01:21 -07:00
Robin Dunn
a7f9d5e3c5
* Switch back to using an wxAnimationBase class
...
* Change the [GS]etAnimation methods to be non-virtual so they can use generic/native types of animation obj
2020-03-30 14:53:11 -07:00
Robin Dunn
08ac4dbad6
Name the base animation class wxGenericAnimation with a wxAnimation shim class
2020-03-27 15:53:03 -07:00
Maarten Bent
f1a017539a
Generate an error when the CPU parameter is not specified and cannot be determined
...
See #18640
2020-03-27 23:11:00 +01:00
Robin Dunn
488084c2f5
Name the base animation class wxGenericAnimation with a wxAnimation shim class
2020-03-27 14:33:11 -07:00
Robin Dunn
fae15d39a6
* Rename the generic version as wxGenericAnimationCtrl
...
* Add a simple shim class for the generic wxAnimationCtrl
* Use the generic wxAnimation as the base class (this will probably change...)
2020-03-25 16:29:34 -07:00
Robin Dunn
1fa74df7f4
Remove --disable-nativeanimation and wxUSE_NATIVE_ANIMATIONCTRL
2020-03-25 14:03:28 -07:00
Vadim Zeitlin
360867d37b
Remove extra accidentally added blank line in auto-generated file
...
Just commit the result after running build/update-setup-h.
2020-03-25 12:20:18 +01:00
Robin Dunn
201af608f7
Update description of wxUSE_NATIVE_ANIMATIONCTRL
2020-03-24 19:43:13 -07:00
Robin Dunn
eeedc14a58
DoCanRead is protected in the base class, make it the same in derived classes.
2020-03-24 16:25:00 -07:00
Robin Dunn
398b178431
Compile native or generic animation classes based on wxUSE flags
2020-03-24 14:49:03 -07:00
Robin Dunn
d72ef11e87
Add --disable-nativeanimation configure option, and wxUSE_NATIVE_ANIMATIONCTRL
2020-03-24 13:19:34 -07:00