Commit Graph

48 Commits

Author SHA1 Message Date
Jeremy Drake
31e6c8ed34 WXMSW: use HandleToLong/LongToHandle functions.
On Clang++, casting from a pointer to an integer of a smaller size is
considered an error.  In cases where Windows HANDLEs are converted
to/from longs, use the Windows-provided conversion functions
HandleToLong and LongToHandle.

In a couple of cases, a pointer is being cast to long in a __hash__
function.  These don't seem Windows-specific so it is not safe to assume
the Windows conversion functions are present.  In those cases, fall back
to the (ugly) double-casting that the Windows functions contain.
2021-06-14 11:43:29 -07:00
Robin Dunn
92f8cd2d55 Fix lots of misspelled words 2020-07-14 11:38:32 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
9b9b1c8f99 Ensure that the correct signature is used for GetValue and GetValueByRow virtual overrides 2020-01-23 15:53:56 -08:00
Robin Dunn
059e1bee65 Check for Python errors upon return from overloaded virtual methods 2019-09-05 18:55:39 -07:00
Robin Dunn
54dc9ac457 Add EnableSystemTheme method to the classes which support it 2019-06-12 13:33:26 -07:00
Robin Dunn
229870f9c9 Add a __bool__ for every __nonzero__ that doesn't already have one 2018-10-12 23:58:16 -07:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
14eb37d4b8 Merge pull request #858 from RobinD42/fix-issue856
Transfer ownership of clientData objects in wx.dataview.DataViewTreeCtrl
(cherry picked from commit 5266b15e28)
2018-05-16 22:36:23 -07:00
Robin Dunn
5ccc51d5df Remove some accidentally committed test code 2018-02-19 17:19:38 -08:00
Robin Dunn
cff5cfa6e9 Fixes for some unittests 2018-02-18 22:05:45 -08:00
Robin Dunn
b82365c1da fumble-finger-fix 2018-02-13 17:58:37 -08:00
Robin Dunn
d9dc156bf1 SetEditCanceled is an implementation detail not meant to be public 2018-02-13 17:46:51 -08:00
Robin Dunn
0773836287 Fixed typo 2018-02-09 17:14:02 -08:00
Robin Dunn
87d7edab83 Lots of changes needed to get things building again after switching to wxWidgets master 2018-02-09 15:15:01 -08:00
Robin Dunn
f1a24d4978 Add classes that have been added to existing interface headers 2018-02-09 15:03:58 -08:00
Robin Dunn
b180e6b9d4 dataview tweaks, and demo update for CustomRenderer 2017-11-17 14:52:40 -08:00
Robin Dunn
326d707717 Fix comparing DataViewItem with None 2017-11-07 15:42:25 -08:00
Robin Dunn
2e706e7aba Set wx.RefCounter objects to be owned by C++.
Set the /Transfer/ annotation on the ctors, because the C++ objects will always own themselves and will delete themselves when their C++ refcount drops to zero.
2017-05-23 13:18:53 -07:00
Robin Dunn
5b26416ecb Fix the virtual catcher code, and some cleanup. 2017-04-25 17:40:24 -07:00
Robin Dunn
b50b321d0e Fix some virtual method signatures 2017-04-25 14:37:50 -07:00
Robin Dunn
05626ef850 Give dataview.TreeListItem hash and equality operators.
Remove non equality operators from DataViewItem, as there is no implicit ordering of the items that makes sense
2017-04-14 21:28:54 -07:00
Robin Dunn
4e38994944 Update copyright in etg 2017-02-13 16:14:55 -08:00
Robin Dunn
e7911f5c1e minor code reorg 2017-01-31 19:17:15 -08:00
Robin Dunn
b6a2f4ff7c Revert adding pure virtual impls for wxDataViewCustomRenderer
Things still broken, waiting on a SIP fix…
2017-01-31 12:11:32 -08:00
Robin Dunn
1f7a6cb152 Fix missing pure virtuals in wxDataViewCustomRenderer 2017-01-30 14:18:04 -08:00
Metallicow
ebc8d0d971 trim trailing space etg directory 2016-11-10 12:08:36 -06:00
Robin Dunn
b0208259ee Use rich compare methods instead of __cmp__, as Python3 doesn't support the latter. 2015-03-25 20:37:22 -07:00
Robin Dunn
236cedff5c Pythonize DataViewCtrl.HitTest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-28 04:48:08 +00:00
Robin Dunn
af11009f80 Redeclare more virtual methods from the base class that have
implementations in wxDataViewColumn

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-07 03:04:38 +00:00
Robin Dunn
28a4550a83 Python 2.7 also has sys.maxsize so we can use that instead of the
six.MAXSIZE alias.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-06 08:05:15 +00:00
Robin Dunn
fdea4ad5cf Now that voidptr is fixed and can be constructed with an integer, there
is no need to add a kludge to use integer as a pointer from Python.  So
get rid of the extra wxDataViewItem constructor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-06 08:05:07 +00:00
Robin Dunn
f039b3dad2 It is just wxDataViewChoiceByIndexRenderer that is only available in the
generic version.  Add wrapper for wxDataViewChoiceRenderer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-06 08:04:01 +00:00
Robin Dunn
8971a8a38b sys.maxint —> six.MAXSIZE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-27 07:52:10 +00:00
Robin Dunn
911f823333 Deal with object IDs that are larger than 2**63
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 20:10:15 +00:00
Robin Dunn
c41aaa9054 Transfer ownership in DataViewEvent.SetDataObject
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 20:20:08 +00:00
Robin Dunn
98ffccc725 Switch to new shortened wxEventType names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-26 07:04:50 +00:00
Robin Dunn
984ef83099 Add a new wxDataViewItem ctor accepting an integer value.
Apparently sip used to auto-convert from int to void* but it doesn't anymore. Fixes #15135

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-05 04:04:38 +00:00
Robin Dunn
35fd2e16bf Update copyright year
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Andrea Gavana
66840744d2 Phoenix: few corrections to the overviews; Added some more contributed snippets; Fixed some more converted snippets; Added the correct interlink references in the etg files; better handling of the Doxygen stuff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-05 20:44:52 +00:00
Robin Dunn
b6865190d5 rename 'from' and 'to' parameters to avoid syntax errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:22:14 +00:00
Robin Dunn
aacc033a6d Add the rest of the dataview classes, lots of unittests and supporting helpers and MappedTypes.
Update existing dataview and variant classes and MappedTypes to add missing features and such needed for Classic compatibility and full coverage of the API.

Add some samples ported from the Classic demo so the DVC and related classes can be seen in action.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:22:20 +00:00
Robin Dunn
766baba0a6 M0ve the call to addAutoProperties into the doCommonTweaks function, but make it not generate the auto properties if there are already properties in the class or the class explicitly clears the alllowAutoProperties flag, turning it off.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-24 21:35:29 +00:00
Robin Dunn
ee1f7f2548 Rename addGetterSetterProps --> addAutoProperties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 19:04:40 +00:00
Kevin Ollivier
aaca0c1ffe More work on wxDVC support, including DataViewItem support and GetValue override work, along with a few misc. things, and add a script in etgtools to create new etg files given command line params.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 06:09:42 +00:00
Kevin Ollivier
747eb463b6 Switch to using a typemap for wxVariant, and add impls for wxString, long, int and bool.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 17:30:23 +00:00
Robin Dunn
91a404fd22 FIx the %Extract used in the wxListWrapper and wxArrayWrapper templates to include the module name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:40:55 +00:00
Kevin Ollivier
f327ab13e4 Commit another missing file...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-16 21:17:38 +00:00