Compare commits

..

628 Commits

Author SHA1 Message Date
Bryan Petty
ca7f8f3d51 This commit was manufactured by cvs2svn to create tag 'Py-0-9-3'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/Py-0-9-3@23916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 19:54:58 +00:00
Patrick K. O'Brien
db90456c7a new minor version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 19:54:58 +00:00
Robin Dunn
8faa1f356d Increase the initial size of the log window a bit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 19:50:49 +00:00
Robin Dunn
4f62b37a95 Fix sample so it works correctly when NUmeric is not installed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 19:43:59 +00:00
Robin Dunn
a8a844ded4 Added Chris Barker's FloatCanvas.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 19:28:19 +00:00
Robin Dunn
72f7f6a467 Fix some refresh issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 18:53:33 +00:00
Robin Dunn
aaf015186e Use newevent module
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 18:43:31 +00:00
Robin Dunn
f0e615b6ab Updates to wxMaskedEditCtrl.
Added wxMaskedNumCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 18:29:40 +00:00
Patrick K. O'Brien
3adf0c5b2b whitespace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 13:19:28 +00:00
Patrick K. O'Brien
06f8e28786 Allow stubs to run if called directly. Kevin Altis requested this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-25 13:14:11 +00:00
Robin Dunn
e4cfa0ee7f reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 22:42:42 +00:00
Robin Dunn
31f9c02b94 Fixed typos and SWIG #ifdef stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 22:37:43 +00:00
Robin Dunn
07b0a4da6d reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 19:13:51 +00:00
Chris Elliott
8b497a012c compile with motif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 15:56:21 +00:00
Chris Elliott
f531d3c4d4 compile for motif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 15:54:00 +00:00
Vadim Zeitlin
f9a53b0880 no real changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 13:38:51 +00:00
Julian Smart
7abe75210f Tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 08:20:34 +00:00
Robin Dunn
1aad7d9118 reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:37:56 +00:00
Robin Dunn
3a78892d31 Added wxPython.lib.newevent from Miki Tebeka
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:37:40 +00:00
Robin Dunn
5e899a81d9 fixed indentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:22:50 +00:00
Robin Dunn
b4d05d410b Applied Patch #775357
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:21:17 +00:00
Robin Dunn
8c5d4072b1 Allow derived classes to prevent default focus handling (by not
calling Skip)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 23:48:17 +00:00
Robin Dunn
7ba2b66675 Fixes in focus handling related to the AutoComplete window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 23:42:41 +00:00
Mattia Barbon
74b4ca1c60 Add a couple of wxPerl notes.
Mark keyed wxList methods as deprecated.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 19:29:23 +00:00
Robin Dunn
15b6268b64 Install runtime libs to a versioned directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:44:38 +00:00
Robin Dunn
2034324361 Moved the hack for the Carbon header compile error to helpers.h so
other modules will see it if needed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:28:19 +00:00
Robin Dunn
cad8feccb8 Added notes about building on Solaris.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:26:05 +00:00
Robin Dunn
0bf23aa272 HitTest patch from Alberto
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:15:43 +00:00
Robin Dunn
9f1b05c6ed reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:15:11 +00:00
Robin Dunn
5e0a6ccf92 dropped the prerelease flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:14:33 +00:00
Robin Dunn
0b51434e6e demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 02:04:38 +00:00
Robin Dunn
d4d9af78c2 reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 02:03:19 +00:00
Robin Dunn
198c577357 Initialize the default tool width and height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 23:14:07 +00:00
Robin Dunn
467760b6d4 Recoded images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 23:04:51 +00:00
Robin Dunn
f3927bf5d3 Changes when/how the wxApp object is created.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 23:02:36 +00:00
Robin Dunn
f00a46313d Fixed some float --> int conversion warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:30:35 +00:00
Robin Dunn
aa22c8def6 ReSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:29:34 +00:00
Robin Dunn
191845f266 Add wxTrap wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:28:57 +00:00
Robin Dunn
83fbc2a202 Fix a compilation warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:28:31 +00:00
Robin Dunn
935835b927 Fix a return type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:28:19 +00:00
Robin Dunn
228401620b Tweak wxCOlour.__repr__ and add wxRegionIterator.__nonzero__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:28:06 +00:00
Robin Dunn
52245f7a59 Catch exception when signal is used in the non-main thread
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:26:08 +00:00
Robin Dunn
78856556a9 Version number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:25:08 +00:00
Robin Dunn
cde2e5f7f3 Change some wxASSERT's to wxCHECK's so the offending code will safely
be skipped instead of causing a crash.  (Backported from 2.5)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:07:55 +00:00
Robin Dunn
1cca2da448 Init wxRTTI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:04:45 +00:00
Robin Dunn
5f00f92581 demo tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 22:02:46 +00:00
Robin Dunn
6be25ecd5c ReSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 21:55:30 +00:00
Robin Dunn
0aae3952c7 Fixed GetPoints. Since wxRealPoint is not an wxObject I can't use the
helper function here.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 21:53:33 +00:00
Robin Dunn
0b2c06fef3 Added some missing constants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 21:52:17 +00:00
Vadim Zeitlin
0bbf4cf70c fixed bug in DeleteEntry()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 20:36:58 +00:00
Julian Smart
a974cefd4d Must use --disable-fs_inet to prevent chkconf error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 12:12:46 +00:00
Julian Smart
d093b6cee2 Tweaks for wxMGL RPM production
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 12:10:12 +00:00
Julian Smart
6784a588c5 More SC makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 10:42:50 +00:00
Julian Smart
9902e8a2f8 Added Symantec files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 10:39:40 +00:00
Chris Elliott
68cbf3f89f fix for gtk swapped colors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 09:44:57 +00:00
Chris Elliott
7993dbdd97 SF patch [ 773930 ] Fix for OpenWatcom makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 09:16:20 +00:00
Julian Smart
455b55a6a8 Fixed precompiled header settings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 08:03:58 +00:00
Julian Smart
57b939855d Added missing files to project file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 07:52:28 +00:00
Vadim Zeitlin
889285fd21 don't return & in strings returned by GetLabelTop() (closes 687905)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 15:22:15 +00:00
Julian Smart
ec5b49cf64 Corrected date
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 12:45:27 +00:00
Vadim Zeitlin
18d69bb3bb regenerated after --rezflags change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 12:03:07 +00:00
Vadim Zeitlin
3c775050a0 fixed wx-config --rezflags output on platforms != Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 11:18:41 +00:00
Julian Smart
bb676f2daf Killed un-dead file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 08:43:12 +00:00
Julian Smart
8bb3c88570 Regenerated configure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 08:40:25 +00:00
Vadim Zeitlin
07421d20b5 memory leak fixes in file dialogs (patch 783812)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 00:06:05 +00:00
Vadim Zeitlin
032b711c92 backported IPAddress() from HEAD (patch 793048)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 23:50:10 +00:00
Stefan Neis
144c947fab Testing creation of some typical sub-windows without WS_VISIBLE style
(Those seem to not use it under MSW either...).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 22:58:39 +00:00
Stefan Neis
cda910b673 Configure scripts for all wxWindows-2.4.2 ports on OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 21:47:14 +00:00
Stefan Neis
5c44c2ff04 Updated OS/2 specific part of the installation instructions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 21:17:20 +00:00
Vadim Zeitlin
c8434ee2f4 corrected nativ(e)dlg sample name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 19:39:26 +00:00
Vadim Zeitlin
30097f6f29 updated version to 2.4.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 19:38:26 +00:00
Stefan Neis
d05a1ebd09 Adapted MAKE_SHELL/MAKESHELL to current make versions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 19:00:31 +00:00
Robin Dunn
44aaf1af69 Check wxSIZE_ALLOW_MINUS_ONE for x and y too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 22:32:24 +00:00
Václav Slavík
ce720741f0 Fix wxZipFSHandler behaviour when used with relative filenames with ..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 21:51:44 +00:00
Václav Slavík
e0ea65c81b backported intl.cpp fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 21:45:03 +00:00
Robin Dunn
bbb24b614a Prevent possible divide by zero problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 20:27:11 +00:00
Robin Dunn
3e01b8d2cb Patch #809286 and a couple other minor changes to the stc sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 18:40:13 +00:00
Julian Smart
5ea8a0241b Applied patch [ 809066 ] Cleanup for text2rtf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 16:09:29 +00:00
Chris Elliott
cf1ae91a8c fix stctest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 09:06:12 +00:00
Chris Elliott
1ae1842962 fix if unicode bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 07:51:28 +00:00
Vadim Zeitlin
ec58a24047 check whether input stream is readable in OpenFile() (patch 808941)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 00:01:08 +00:00
Robin Dunn
ac0f346dca Added DoDragOver and DoDropText from Angelo Mandato, and ensured that
my unicode LoadFile/SaveFile changes were in the .in file this time.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 22:28:25 +00:00
Robin Dunn
faa232e903 Added missing }
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 20:40:41 +00:00
Robin Dunn
c7b539b354 Updated wxSTC in 2.4 branch to Scintilla 1.54.
Also includes patches from ABX and new sample from Otto Wyss


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 18:14:34 +00:00
Bryan Petty
3bfecd48e0 This commit was manufactured by cvs2svn to create branch
'WX_2_4_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 18:14:34 +00:00
Julian Smart
cb3e6a679e Applied patch submitted with bug [ 808130 ] Configure-based builds produce crippled library
Adds
wxUSE_IMAGE_LOADING_IN_MSW
wxUSE_RESOURCE_LOADING_IN_MSW
to configure


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 14:21:33 +00:00
Julian Smart
539125ef9c Applied patch [ 808125 ] wxString::PrintfV() truncating at 1024 bytes string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 14:10:16 +00:00
Julian Smart
d1ce423c3e Applied patch [ 808328 ] restore border styles for wxFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 13:03:27 +00:00
Stefan Csomor
c1cdbd128c clip region fix backported for fast port setter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 11:35:32 +00:00
Vadim Zeitlin
0e3585e9b8 tool windows shouldn't appear on the taskbar (patch 808350)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 11:32:09 +00:00
Robin Dunn
75cf127cf9 Added character coding comment for Python 2.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 20:22:15 +00:00
Robin Dunn
9245f5cd38 Unicode fix from Will
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 20:21:28 +00:00
Vadim Zeitlin
3450d39e45 compilation fix for Unicode && compatibility_2 (bug 807764)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 11:39:26 +00:00
Robin Dunn
2a1d234f6c Updated version number and fixed oglmisc.cpp filename
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-16 17:14:03 +00:00
Robin Dunn
05ed6a12d4 Ensure that the native font is initialized so the face name and such
are valid


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 19:27:47 +00:00
Vadim Zeitlin
72213c85e9 wxNavigationKeyEvent doesn't derive from wxCommandEvent (but from wxEvent)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 11:00:51 +00:00
Vadim Zeitlin
1c4a0ca4c1 backport: adjust m_current when inserting items in the control (patch 799937)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 23:01:58 +00:00
Julian Smart
7e6e96f608 Changed version to 2.4.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 19:22:35 +00:00
Václav Slavík
e59fcce8b5 backported style flags fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-13 11:05:52 +00:00
Julian Smart
f8480f281c Applied patch [ 805147 ] GDI objects are not deselected from DC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-12 16:08:47 +00:00
Roman Rolinsky
3dd0697400 slightly changed text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-12 09:58:37 +00:00
Roman Rolinsky
0e573042c4 Fixed problems with wxStaticBitmap (stock_id attribute, icon type
switching).

Changed some dimensions in properties panel elements.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-12 09:45:35 +00:00
Robert Roebling
82dc259d6c Filter out triple click events entirely rather than confusing
everyone.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 18:37:11 +00:00
Václav Slavík
31aa986e27 backported better classinfo test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 19:20:03 +00:00
Vadim Zeitlin
259da6c52a backported wxHTTPStream EOF fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 16:38:50 +00:00
Robert Roebling
9d7fde109c Test if g_thread alreasy is initialized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 14:32:25 +00:00
Gilles Depeyrot
652a4489b8 remove gdb debug related configuration option which causes problems with Apple D
eveloper Tools assembler


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 05:50:46 +00:00
Robert Roebling
84a4784aba Applied fixes for
memory leaks in file dialog and font dialog
    miniframe drawing prob
    file object for dragging


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 18:02:27 +00:00
Mattia Barbon
3f8d9bc981 Updated Italian translation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 14:30:01 +00:00
Stefan Neis
a13500d541 Insure that messages are posted to the main threads event loop,
instead of sending them to the thread-local event loop
        (which typically does not exist under wxWindows).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-07 17:50:12 +00:00
Stefan Neis
8db2ef43d0 Initialize PM subsystem in every thread, to enable sending messages to the GUI.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-07 12:49:04 +00:00
Mattia Barbon
4066177bfd Added a couple of wxPerl notes. (backport)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 22:21:45 +00:00
Chris Elliott
d461d28e0e fix makefile for digitalmars to build taskbar sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-03 14:35:49 +00:00
Chris Elliott
bbd3070ca3 fix makefile for digitalmars to build joytest sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-03 14:25:13 +00:00
Chris Elliott
1f4514b378 partial fix for digital mars compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-01 12:54:58 +00:00
Chris Elliott
805a614d5a fix digital mars compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-01 12:48:54 +00:00
Vadim Zeitlin
849e641411 set array size correctly in wxArrayString::Shrink() (bug 797758)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-30 20:55:43 +00:00
Stefan Neis
bf2b70693b Fixed several bugs in threading code for OS/2. Thread sample now working.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-30 20:44:14 +00:00
Václav Slavík
9fb83fe107 Content-Type parsing should be case insensitive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-29 09:59:00 +00:00
Stefan Csomor
857a68a6a8 masking out yes/no/cancel flags before creating top level window (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-29 07:46:29 +00:00
Stefan Csomor
3a0bd3d5cd -1 , -1 for SetSelection improved
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 14:49:11 +00:00
Václav Slavík
9f4a5bc2c7 unknown container now accepts wxNO_FULL_REPAINT_ON_RESIZE flag (John Anderson)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 10:48:41 +00:00
Václav Slavík
6eae09a1aa unknown container now accepts wxNO_FULL_REPAINT_ON_RESIZE flag (John Anderson)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 10:40:43 +00:00
Václav Slavík
c14dc56ac0 wxCheckList -> wxCheckListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 09:36:54 +00:00
Julian Smart
5eace63e83 Added notes for OnPreparePrinting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 08:47:00 +00:00
Chris Elliott
ca7f743abb fix for d mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 20:53:48 +00:00
Chris Elliott
b1724637b8 fix for d mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 20:20:21 +00:00
Chris Elliott
6683f9b239 fix for d mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 20:09:33 +00:00
Chris Elliott
ee8a3ffa4f fix build for digital mars 8.35 and grid samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 20:05:41 +00:00
Robin Dunn
b1aaaadc5a avoid a bug in Carbon headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-25 20:22:05 +00:00
Julian Smart
914a37e5fd Fixed redefinition of i
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-25 18:42:38 +00:00
Julian Smart
6b6a271f4d Fix for missing CCS_VERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-25 14:27:05 +00:00
Julian Smart
0d8391fdd2 Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-25 10:02:04 +00:00
Stefan Neis
cec2758435 More fixes/improvements for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 11:35:13 +00:00
Stefan Neis
9c075e212d Fixed compile error (seen on OS/2).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 10:19:37 +00:00
Stefan Neis
22d0d332bd Removed superfluous conditional include.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 09:56:16 +00:00
Stefan Neis
8db75328d6 Minor correction for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 09:52:09 +00:00
Stefan Neis
4be2c4b3a6 Fixes for multithreading handling on OS/2.
Some fixes for autoconf-2.57.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 07:31:06 +00:00
Ron Lee
fb446a01f1 Typo fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-22 16:03:38 +00:00
Ron Lee
8e6cba6943 Updated for 2.4.1.2 release.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-22 15:41:59 +00:00
Václav Slavík
945eecbe0f backported HTML tables horizontal size fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 14:47:05 +00:00
Julian Smart
0edd44ba7c Updated XRC tool section.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 08:06:57 +00:00
Stefan Neis
f4e096c56e Compilation fixes for gcc-3.2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-20 17:02:09 +00:00
Julian Smart
46674d3538 Unicode fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 15:57:13 +00:00
Julian Smart
877708ff94 Applied patch [ 778716 ] Fix resolve in smapi.cpp for UNICODE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 15:51:04 +00:00
Chris Elliott
66a7ee10c9 fix bug in directory creation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 11:17:25 +00:00
Chris Elliott
de2fb611f7 fix bug in name of implib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 10:30:06 +00:00
Stefan Neis
0ae780c7c3 Completely reworked OS/2 thread implementation.
Moved wxConditionInternal from src/msw/thread.cpp to include/wx/thrimpl.cpp
        to give OS/2 the possibility to reuse the code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-17 22:57:26 +00:00
Mattia Barbon
4d831c9265 Compilation fixed sor wxUSE_PROTOCOL_FTP/HTTP=0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-16 12:10:15 +00:00
Vadim Zeitlin
ad7462e21d fix bug with entries present in both global and local files (patch 773360)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-16 12:07:03 +00:00
Vadim Zeitlin
0350e78d7c don't create a multiline text control in the text editor (even not under MSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-15 22:20:33 +00:00
Chris Elliott
133dcca6b8 backport changes for D Mars contrib dir
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 12:25:24 +00:00
Chris Elliott
ddab8bea0a backport changes for D Mars (sample makefiles, mostly untested)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 12:11:33 +00:00
Chris Elliott
edfbd496c2 backport changes for D Mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 12:06:26 +00:00
Bryan Petty
38046fb37c This commit was manufactured by cvs2svn to create branch
'WX_2_4_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 12:06:26 +00:00
Chris Elliott
04231ab0c4 backport changes for D Mars (sample makefiles, mostly untested)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 11:51:27 +00:00
Chris Elliott
809a1985f7 backport changes for D Mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 11:48:37 +00:00
Vadim Zeitlin
99654c4ef6 made wxTreeItemIdValue typedef for long, not ulong, so that it is possible to write code working for both 2.4 and 2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 00:59:29 +00:00
Vadim Zeitlin
115cacce0c fixed extraneous scrolling when scrollbars are added/removed (patch 788026; bug 746618)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 23:55:52 +00:00
Vadim Zeitlin
ccecc6542b set LVCFMT_IMAGE, this at least allows to show imageso n the right sidei n the first column too (and fixes bug 787781)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 10:06:02 +00:00
Mattia Barbon
6d8baa7536 Warning fixes for (MinGW) GCC 3.3.1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-12 16:57:35 +00:00
Stefan Csomor
e7cbbff330 two fixes from Justin Bradford
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-10 14:20:03 +00:00
Stefan Neis
a54c4cc2d1 Added forgotten(?) wxMutexGuiEnter.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 17:08:01 +00:00
Vadim Zeitlin
dc1e40c83f don't ignore start parameter in find_last_of()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-08 11:54:26 +00:00
Robin Dunn
4dd3328bec Fix for wxTextCtrl::GetSelection for single line controls in GTK2 mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-08 03:58:24 +00:00
Stefan Neis
7f1d11ee6b Added implementations for two cases of wxSystemSettingsNative::GetMetric to
make wxTextEntryDialog work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-07 23:14:32 +00:00
Stefan Neis
d199418df1 Got sockets working.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-07 21:31:04 +00:00
Robin Dunn
e3a3fdc83f only match the regex at the end of the string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-07 15:08:00 +00:00
Stefan Neis
6101d2d48b Don't forbid using threads on OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-07 08:48:19 +00:00
Robin Dunn
6168f561d8 Patch from Will Sadkin fixing parameter order
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 15:14:17 +00:00
Robin Dunn
1fc4b8e5d6 Mention wxSTK update
build tweak


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 22:54:01 +00:00
Robin Dunn
b89c96ee05 Oops, forgot the very long line was still there. Take it back out.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 22:53:09 +00:00
Robin Dunn
1f1b5e9336 Demo/test tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 22:48:04 +00:00
Robin Dunn
09755e7491 reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 22:47:14 +00:00
Robin Dunn
867d00bc71 Fixed SF Bug #781355. It was a problem with the clipping region. (By
default when drawing the ctrl characters a different drawtext method
is called than for normal text and this one didn't take care of the
clipping region correctly.)  Also fixed a couple buffer overflow
errors.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 22:25:38 +00:00
Vadim Zeitlin
60541ceb57 copy wxImage options when copying the images (replaces patch 780705)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 17:48:35 +00:00
Vadim Zeitlin
8fcdff23a5 fixes for Borland make (patch 769317)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 17:42:59 +00:00
Vadim Zeitlin
820a477a59 set event object correctly for the menu events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-03 23:26:11 +00:00
Mattia Barbon
6989d60149 Improve wxHashMap documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-03 20:05:27 +00:00
Robin Dunn
0c0042aa83 If a wxPy[Command]Event has been cloned then we need to propogate the
Skip value from the original back to the clone after it has been
processed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 18:28:07 +00:00
Robert Roebling
93846b2ced Further adaptions of wxFileDialog to mini-screens.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 18:27:56 +00:00
Robert Roebling
cc744424c1 The GPE window manager doesn"t like SetSizeHints().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 18:27:11 +00:00
Robin Dunn
9e039e3753 Various testing changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 17:13:42 +00:00
Robin Dunn
21de2c2911 Show how to iterate selected items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 17:12:36 +00:00
Robin Dunn
3cf67e09d5 Fixes for menu items with a bitmap and an accelerator, with thanks to
Alberto Griggio.  (Previously sometimes an event was not sent for menu
items with an image and an accelerator.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 16:47:39 +00:00
Vadim Zeitlin
86f63b95c4 mention wxWS_BLOCK_EVENTS change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 15:00:17 +00:00
Vadim Zeitlin
4ae711c91a reverted GTK 1.x part of the last patch, it breaks popup menus sometimes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 00:15:26 +00:00
Robin Dunn
3c097668f5 Added new STC file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 16:02:54 +00:00
Robin Dunn
69ce96e476 Updated comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 16:02:33 +00:00
Robin Dunn
425e9cb2df Release ownersihp of the image list in the Assign*ImageList methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 16:01:26 +00:00
Václav Slavík
043ec5267a added animate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 08:23:09 +00:00
Robert Roebling
0d9f985f37 Use glib functions instead of C functions for
wxDir. This works on the iPaq as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-27 22:11:44 +00:00
Julian Smart
cb181d559c COpy emulator.xpm
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-26 22:25:03 +00:00
Robert Roebling
feac3e3a38 Compile fix for wxchar.cpp,
PDA screen size code for all ports.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-25 18:55:02 +00:00
Robert Roebling
48e5489066 Minor adatation for PDA size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-25 18:53:19 +00:00
Robert Roebling
d8970354a9 #if brackets for compiling out MDI.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-25 18:52:26 +00:00
Robin Dunn
b3eeb688ea return sensible (fake) values for DBCS query methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-23 16:55:28 +00:00
Vadim Zeitlin
ab3e843d47 fixed wxSTAY_ON_TOP for the dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 23:50:38 +00:00
Vadim Zeitlin
73f62345d2 define _NO_COPY macros here too for forward compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 22:37:47 +00:00
Julian Smart
08d8451c88 Applied patch [ 774886 ] wxnotebook bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 16:47:33 +00:00
Julian Smart
7daba52772 Applied patch [ 774837 ] OGL wxLineShape::HitTest: smaller region
Sorted out misc/oglmisc mess


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 16:39:31 +00:00
Robert Roebling
1091d8a834 Applied bitmap safer return patch.
Applied gtk pop up menu patch.
  Applied fontutil patch for better font matching in GTK 1.2


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 08:57:09 +00:00
Robin Dunn
8144bb6320 Patch #775355 Unicode fix for STC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 01:00:16 +00:00
Vadim Zeitlin
7828f07191 make it possible to have flickerless splitter by not forcing repaint on resize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 23:00:07 +00:00
Václav Slavík
184a08cfb9 expand wildcards on windows (patch #773160)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 22:23:09 +00:00
Václav Slavík
346dd7d756 fix filenames handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 11:52:47 +00:00
Václav Slavík
fa32ef75e4 fixed exit code when wxUSE_GUI=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 10:49:08 +00:00
Robin Dunn
55f55e8a8d Update to Scintilla 1.53
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-18 06:37:25 +00:00
Robin Dunn
bd07ff5792 Applied patch that converts the throbber to using timers instead of threads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-18 01:53:08 +00:00
Vadim Zeitlin
66633caba3 set richedit DLL handle to 0 after unloading (patch 768994)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 21:54:14 +00:00
Vadim Zeitlin
fe5d9397f3 don't use fall back if we had already found the MIME type (patch 769826)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-17 12:50:04 +00:00
Robin Dunn
6f821c3329 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 23:20:41 +00:00
Robin Dunn
5fab111751 Fix for #764099. Instead of undoing Python's signal handlers and
module, just set SIG_DFL for SIGINT.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 23:17:59 +00:00
Robin Dunn
d80b0153dd Fix for #764099. Instead of undoing Python's signal handlers and
module, just set SIG_DFL for SIGINT.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 23:12:02 +00:00
Václav Slavík
0f50de85ff added wxBU_EXACTFIT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 21:10:20 +00:00
Robin Dunn
9e3f80cb3c SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 19:15:52 +00:00
Robin Dunn
8a20a0d191 SWIGged updates ffor wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 19:17:54 +00:00
Robin Dunn
80af91bba4 Fixed wxFileSystem_URLToFileName and FileNameToURL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 19:17:35 +00:00
Robin Dunn
1d5d2fcfd4 new version number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 19:15:35 +00:00
Stefan Neis
517386c7f7 Mention changes to unix/fontutil.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-12 23:15:59 +00:00
Stefan Neis
dbe7347394 Font is only non default if it has non default field values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-12 23:14:45 +00:00
Vadim Zeitlin
11ed408c51 set string length properly in wxString(p, conv, len) ctor (patch 755593)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 12:13:49 +00:00
Vadim Zeitlin
51d2edccb7 fix handling of HTTP headers case (patch 763760)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 11:24:04 +00:00
Julian Smart
fb85527783 Applied patch [ 760463 ] wxMenu::FindItemByPosition for 2.4 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 08:57:34 +00:00
Julian Smart
251d904621 Applied patch [ 762033 ] wxTextValidator crashes when given a NULL wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 08:21:49 +00:00
Julian Smart
f4bf101605 Partially applied patch [ 763900 ] fix for vertical toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 08:16:00 +00:00
Julian Smart
a0a54ebd4b Applied patch [ 767505 ] BCB6 link error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 07:50:57 +00:00
Julian Smart
6eac572a5e Applied patch [ 767518 ] BCB6 resource compiler chokes on dialog1.rc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 07:47:10 +00:00
Vadim Zeitlin
ebacdfcde4 fix compilation with --disable-compat-22 (patch 759563)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 23:22:46 +00:00
Vadim Zeitlin
5e4196efab wxScrolledWindow scrollbar update fix (patch 680427)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 23:09:09 +00:00
Robin Dunn
15134cb5b1 Added note about fixing a bug in Apple's fp.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 19:11:35 +00:00
Vadim Zeitlin
caf5419ccf updated the version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 22:30:48 +00:00
Vadim Zeitlin
d5b23cc0b9 just some warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 21:36:56 +00:00
Vadim Zeitlin
b6780e979a removed non existing file which was preventing "make install" from working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 21:19:44 +00:00
Gilles Depeyrot
90a6046ab2 backported minor corrections for compilation with gcc 3.3 (use cast of address i
nstead of address of cast)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 20:13:16 +00:00
Gilles Depeyrot
296252dcf5 backported minor corrections for compilation with gcc 3.3 (use cast of address instead of address of cast)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 20:11:26 +00:00
Robert Roebling
0653df2501 Added code for better mouse click detection in various
native controls. wxChoice and wxSpinCtrl look better,
   wxListBox doesn't.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 14:21:56 +00:00
Robert Roebling
0b148b75c4 Added IsOwnGtkWindow() to wxChoice for mouse click interception.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 14:20:18 +00:00
Vadim Zeitlin
3a42fa9cec backported patch 762500 (don't eas 100% of CPU when showing popup menu)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 23:29:03 +00:00
Robert Roebling
ca93cfe6b8 Mini error reported by Valgrind.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 12:38:45 +00:00
Robert Roebling
cd0a3c88a3 Clarified the list item end label edit semantics in the docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 11:51:54 +00:00
Robert Roebling
90dab4e65a OK, wxMSW doesn't seem to send the end label edit event
for wxListCtrls if the label editing was cancelled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 11:49:43 +00:00
Robert Roebling
3a547e0e37 Update to ending a label edit action in both tree control
and list controls. This includes the patch for tree
   control to correct the focus behavour when cancelling
   a label change action. It also adds an end_label_edit
   event to wxListCtrl when cancelling (this was not done
   before).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 11:41:16 +00:00
Robert Roebling
1d6e7c3803 Applied patch to wxTextCtrl::IsEditable()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-06 10:38:21 +00:00
Václav Slavík
76bad0760c added wxLC_VIRTUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-05 20:39:01 +00:00
Robin Dunn
972e8710d4 Fixed some line-endings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 23:21:35 +00:00
Robin Dunn
3fd82ab921 Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 19:16:17 +00:00
Robin Dunn
4c2a85bbd8 Copy/Paste error fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 19:15:25 +00:00
Robin Dunn
5940a2978d Check for and allow zero length files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 17:37:34 +00:00
David Elliott
24a62af3f8 Added call to SetValidator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 14:27:42 +00:00
Vadim Zeitlin
6333b4be27 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-29 00:39:13 +00:00
Vadim Zeitlin
15a126c5e3 fix for comparison bug in GetHeader()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-28 23:40:29 +00:00
Robin Dunn
728a6147f9 SWIGged updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-28 02:18:37 +00:00
Robin Dunn
d643e8ca24 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-28 02:18:17 +00:00
Robin Dunn
466a37b313 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-28 01:53:45 +00:00
Robin Dunn
4aac1f88a6 Don't need to include private.h anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-28 01:52:57 +00:00
Vadim Zeitlin
7dc607d0a1 added RefreshItem[s]()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-27 21:15:05 +00:00
Stefan Csomor
f4841924a0 resetting clipping region (needed because of faster port setting)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-27 19:48:11 +00:00
Robin Dunn
f73cf2885e Added a sample of using wxFileDialog for saving
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-27 19:02:22 +00:00
Robin Dunn
f4e8f51c54 Use wxSTC in the demo for displaying the soucre code of the samples.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-27 18:39:54 +00:00
Robin Dunn
f40d1e7e5b Fixed OOR for wxPyHtmlWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 19:09:25 +00:00
Robin Dunn
189be6523c Fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 19:08:51 +00:00
Robin Dunn
f175a6e3dc wxTreeListCtrl updates: fixed wrapping of GetSelections and made
keyboard navigation work like MSW's native tree when on MSW.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 18:35:03 +00:00
Robin Dunn
e6874ccf25 Patch from Will Sadkin
##  Version 1.3
##   1. Made it possible to configure grouping, decimal and shift-decimal characters,
##      to make controls more usable internationally.
##   2. Added code to smart "adjust" value strings presented to .SetValue()
##      for right-aligned numeric format controls if they are shorter than
##      than the control width,  prepending the missing portion, prepending control
##      template left substring for the missing characters, so that setting
##      numeric values is easier.
##   3. Renamed SetMaskParameters SetCtrlParameters() (with old name preserved
##      for b-c), as this makes more sense.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 18:33:13 +00:00
Roger Gammans
ef596c3261 correct docuemtation for wxEVT_GRID_SELECT_CELL and wxEVT_GRID_CELL_CHANGE
events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 17:30:46 +00:00
Vadim Zeitlin
7fba7cfd5d backported wxDateSpan comparison operators from trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 18:45:18 +00:00
Julian Smart
7e650857ce Initialised static controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 08:20:05 +00:00
Vadim Zeitlin
d723d6c834 fix for iostream.h missing in VC 7.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-23 16:21:39 +00:00
Vadim Zeitlin
2dd9b2717f use __VISUALC__ instead of _MSC_VER to avoid problems with CW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-23 16:04:09 +00:00
Robert Roebling
b7f8adfd2d Applied (part of) the bitmap theme patch.
Didn't find the static text alignment problem.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-23 15:00:16 +00:00
Vadim Zeitlin
7c79b1598f fix VC 7.x release build problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-22 16:13:47 +00:00
Vadim Zeitlin
d95204cac1 corrected the comment explaining how to update version components
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-22 13:56:51 +00:00
Vadim Zeitlin
2fe2de5c21 GNU/Hurd patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-22 12:48:38 +00:00
Robert Roebling
3cac4ac95a Small fix for splitterwindow (no longer wrong cursor in
nested scrolled window).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-21 14:04:21 +00:00
Stefan Neis
966c319c64 Reverted patch [ 746201 ] (partially) because of unwanted side-effects
to grids with 0 rows _or_ 0 columns.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-21 08:40:06 +00:00
Gilles Depeyrot
5de3edd09e corrected return value of wxTimer::Start when timer is successfully created
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-20 20:48:17 +00:00
Václav Slavík
522652591a fix one of reasons for crash if there is no font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-20 20:20:16 +00:00
Robin Dunn
f9747bcfed Some demo tweaks and a bug workaround
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 19:29:17 +00:00
Robert Roebling
253f27bde8 Reorderd timer code as per bug 757060. The code there
is required to set the id to -1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 19:03:47 +00:00
Robert Roebling
e80c838693 Probable fix for Font crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 19:00:23 +00:00
Vadim Zeitlin
be9d7aa6f5 fixed infinite recursion bug in some rare cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 17:05:46 +00:00
Václav Slavík
47b4af9e09 make it possible to not attach toolbars to frames (John Anderson)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-18 16:25:36 +00:00
Václav Slavík
c334e639dc added --basename and --release flags to wx-config (patch #750815)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-18 16:08:15 +00:00
Julian Smart
37a4073bef Added extra wxGLCanvas documentation from
Davide Pasquini <davide.pasquini@fastwebnet.it>


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-18 09:20:46 +00:00
Julian Smart
8519136eed Workaround a crash bug; real solution as yet unknown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-18 07:41:24 +00:00
Vadim Zeitlin
763094830f #undef LoadIcon/Bitmap() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 23:08:22 +00:00
Robin Dunn
10f42c3352 Comment out the post and postun sections since they are not used (and
are currently mandrake specific...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 21:28:12 +00:00
Julian Smart
3d0c2f20f0 Addition of uxtheme.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 18:46:00 +00:00
Robin Dunn
57a6d29c2e Hmmm... The menu stuff only works on Mandrake. Need to find a
cross-distro way to do it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 17:44:38 +00:00
Robin Dunn
18b8a5519f Fixed misplaced parentethis. (#755963)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 17:07:21 +00:00
Vadim Zeitlin
dde2f47eb1 wxComboBox doesn't derive from wxChoice (officially)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 11:06:10 +00:00
Vadim Zeitlin
b64d8f9463 undid the last change: it results in crashes with some GTK+ versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 09:56:15 +00:00
Robin Dunn
6179ac0699 Oops...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 07:24:55 +00:00
Robin Dunn
678350199f Added new .png icons to the installer script
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 07:22:09 +00:00
Robin Dunn
7739ea4c67 Switched back to "PyCrust.ico" because Windows explorer can apparently
only associate one "py.ico" at a time, even if they are located in
different directories.

Also added Linux /usr/lib/menu entries for the Py apps and XRCed when
building the RPMs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 07:10:21 +00:00
Robin Dunn
236de41c27 Version number update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 07:08:01 +00:00
Robin Dunn
34b072a685 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-17 02:24:31 +00:00
Robin Dunn
c2f3aa47be SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:49:34 +00:00
Robin Dunn
8c5d3fc7e8 SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:41:44 +00:00
Robin Dunn
90346640db Reorgainize the wrappers for wxPrintDialogData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:41:09 +00:00
Robin Dunn
0097dbcc26 SetAllPages needs to be used if the Min and Max pages are set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:40:05 +00:00
Robin Dunn
27feadf334 only measure one line at a time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:38:05 +00:00
Robin Dunn
b7094fec10 Ensure there is no border on the generic static texts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 23:37:38 +00:00
Robin Dunn
79d4530dad Fix for wxPopupWindows not being raised to the top by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 22:40:11 +00:00
Robin Dunn
f30d4a7421 Remove the test for parent window type when checking if to give a
sunken style automatically


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 22:08:01 +00:00
Robin Dunn
2a15016acd Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 20:36:18 +00:00
Robin Dunn
d38c6e6e3f fix how this package is imported instead of using the default
generated by wx_create.py


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-16 20:35:21 +00:00
Vadim Zeitlin
216c39aeda fixed build problems when OpenGL libs were not in the same directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-15 19:37:51 +00:00
Vadim Zeitlin
b4746de9ec don't ignore wxLC_NO_HEADER style when inserting first column (backported from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-14 17:16:50 +00:00
Vadim Zeitlin
412a5ab4ef always NUL-terminate log messages, even if they're longer than buffer size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-14 16:45:31 +00:00
Julian Smart
8d009f3f65 Recorded where announcements were sent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-14 11:03:44 +00:00
Julian Smart
ead0537623 Scrollbar correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 18:54:31 +00:00
Robin Dunn
767e098382 New files generated by the .dmg build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 18:27:10 +00:00
Robin Dunn
49f98fb4ab Correct version number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 18:26:37 +00:00
Vadim Zeitlin
56b41acdc9 backported fix for counting subexpressions from HEAD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 17:16:32 +00:00
Václav Slavík
a2516a408b fs_inet depends on protocol classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 15:33:14 +00:00
Julian Smart
f0dd2a408c Only have one file with publicity tips - in CVS head.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 10:27:45 +00:00
Robin Dunn
96ba8a28f6 Forgot to uncomment the cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 07:02:10 +00:00
Robin Dunn
18b0ae28c6 update the win32 installer script
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 06:35:26 +00:00
Robin Dunn
3ee2294bac A script to assist in converting from the old 'from wxPython.wx import *'
style to the new 'import wx' style.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:22:54 +00:00
Robin Dunn
c1125823f1 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:20:43 +00:00
Robin Dunn
e433b5b4c6 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:20:40 +00:00
Robin Dunn
a8110d1e1e SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:20:15 +00:00
Robin Dunn
6bf7626a0c some other tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:08:44 +00:00
Robin Dunn
a10572ce53 typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:08:08 +00:00
Robin Dunn
87edb19b4d wxPython distrib changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:04:18 +00:00
Robin Dunn
0a0a0d5cf3 Don't have a trailing semi-colons in macros for compilers that
complain about doubling them, ;;


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:03:32 +00:00
Robin Dunn
e702e59878 Added wxCursorFromBits.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:01:49 +00:00
Vadim Zeitlin
fa499d55ca updated to 2.4.1, no big changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 22:55:41 +00:00
Vadim Zeitlin
d7ace383ec compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 22:55:16 +00:00
Robin Dunn
e5125b7488 Patch #753465 a fix for Bug#750363.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 18:53:42 +00:00
Robin Dunn
fbb447e2c4 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 18:38:13 +00:00
Robin Dunn
61762bf46f SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 18:38:12 +00:00
Robin Dunn
0c1c17961d (re)Enable the default ctor for wxCursor for all platforms...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 18:34:39 +00:00
Václav Slavík
8ac7b0858a fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 16:15:26 +00:00
Chris Elliott
96a96e730f another watcom makefile (from SF bug report 751351)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 12:15:11 +00:00
Bryan Petty
a1c6cbf16e This commit was manufactured by cvs2svn to create branch
'WX_2_4_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 12:15:11 +00:00
Roman Rolinsky
16e4e873a2 changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 11:00:09 +00:00
Robin Dunn
209d266d50 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 01:36:44 +00:00
Robin Dunn
d10f0b94b8 SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 00:43:06 +00:00
Robin Dunn
151796fa32 Fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 00:42:02 +00:00
Robin Dunn
0cbe0b1784 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-12 00:29:28 +00:00
Robin Dunn
1f1c4a921b Regenerated the files for the wx renamer package
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 23:56:55 +00:00
Robin Dunn
2ac01a6ca3 Script to generate the renamer stubs for the wx package
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 23:53:54 +00:00
Robin Dunn
7afcee21b2 typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:44:46 +00:00
Robin Dunn
ba692f5788 Fixes for wxMac combobox wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:38:32 +00:00
Robin Dunn
63d2cc405d Draw with a different color if the control is disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:33:42 +00:00
Robin Dunn
70e0dca9ef Updated version number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:31:06 +00:00
Robin Dunn
95bbb2b9a4 fixed typo or something
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:28:33 +00:00
Robin Dunn
16ec06b235 Add style parameter to wxMultipleChoiceDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:21:49 +00:00
Robin Dunn
d5081b7888 wxMenuItem::SetMenu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:20:35 +00:00
Robin Dunn
b1a6341a26 Fix some class names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:19:57 +00:00
Robin Dunn
3b9de29c38 Clearly state that the new wx module is being used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:18:44 +00:00
Robin Dunn
e1663a1065 some test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:18:19 +00:00
Robin Dunn
51304829d6 fix the 16-bit overflow in wxTreeListCtrl too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:16:58 +00:00
Gilles Depeyrot
e59530f9e0 backported SF patch #752538 to implement wxGetOSDirectory() for Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 18:21:13 +00:00
Chris Elliott
e2e8bf2d64 fix SF bug report 751351
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 14:36:36 +00:00
Julian Smart
21ba2ace60 Allow for multiple CHM controllers in app (don't leak dynamic libs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 14:15:36 +00:00
Robin Dunn
568abcbd3a Ensure that a wxMenuItem's parent menu is updated if it is removed
from one and added to another menu.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-10 23:48:46 +00:00
Václav Slavík
6523dea767 fixed Content-Type lookup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-10 21:23:53 +00:00
Stefan Neis
600afbe5da Restore original behaviour if m_wxwindow == NULL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 18:21:41 +00:00
Václav Slavík
d4d283bf1b compilation fix for VisualAge C++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 17:06:40 +00:00
Stefan Neis
376c6d4008 Moved include to wx/module.h out of #ifndef WX_PRECOMP.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 16:35:12 +00:00
Stefan Neis
f2301c5757 Updated configure scripts for OS/2 (new version number - 2.4.1, minor fixes).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 12:42:01 +00:00
Václav Slavík
5b4c6454ec compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 08:52:24 +00:00
Václav Slavík
cf519177cc samples/shaped doesn't have .h files, make dist failed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 08:45:10 +00:00
Julian Smart
46e620fc8b Only bring the window to the top in Show() if we're a top-level
window, else we mess up z-order/tab order


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-09 05:06:28 +00:00
Julian Smart
f5abdcb3c3 Some project file corrections
Test for correct symbol in resource sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-08 21:47:02 +00:00
Julian Smart
e874fa1bd5 Some fixes to project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-08 20:04:18 +00:00
Mattia Barbon
1476cdecb0 wxMessageDialog and ::wxMessageBox don't support wxCENTRE: remove
it from documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-08 18:20:24 +00:00
Julian Smart
4125fb9694 shaped sample is in 2.4, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-08 17:43:05 +00:00
Julian Smart
fdda9a6b9d Updated month in readme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-08 07:57:27 +00:00
Robin Dunn
ca01f8dfe5 revert my last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 15:54:41 +00:00
Julian Smart
a741b4e4bd Applied patch [ 748638 ] wxDos2UnixFilename for unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 13:55:43 +00:00
Julian Smart
2d0e6b13c2 Reports suggest that _sometimes_ WS_VSCROLL/WS_HSCROLL
are needed. So map wxVSCROLL/wxHSCROLL to these.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 13:22:34 +00:00
Julian Smart
f3e305f049 Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 10:12:53 +00:00
Julian Smart
96ec96d318 Fix for [ 748805 ] Assert failure for specified situation in samples/controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 09:59:38 +00:00
Robin Dunn
2381ea4581 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 05:34:58 +00:00
Robin Dunn
f61ae9fb62 SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 04:30:37 +00:00
Robin Dunn
5f6044310d Forgot this wxRTTI fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 04:24:31 +00:00
Robin Dunn
a068ecbc5f Simplified how the wxSizer methods are wrapped, changed the name of
the "option" parameter to "proportion" ("option" is still accepted for
compatibility, but this will go away in a future release,)
SetItemMinSize can now take a wxSize (or 2-tuple) parameter, and
Spacers can be specified with a wxSize (or 2-tuple) parameter


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 04:23:44 +00:00
Robin Dunn
b7850f8fe4 Fix for new refresh code. (It's possible for m_wxwidnow to be NULL.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 03:59:00 +00:00
Robin Dunn
9ec1cc00f2 Some fixes for some bad wxRTTI names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 00:49:01 +00:00
Robin Dunn
35089a8a57 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 23:59:51 +00:00
Robin Dunn
0eca8d4044 SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 23:56:10 +00:00
Robin Dunn
27f4f38e85 fix so wxMenu::InsertItem actually inserts rather than overwrites
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 23:46:36 +00:00
Robin Dunn
6844c083a1 Just silently return NULL like the other ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 23:15:50 +00:00
Robin Dunn
f5d220099f Don't get picky about unicode mode. Scintilla doesn't set the mode
for calltip windows anyway.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:34:00 +00:00
Robin Dunn
ec100e892a Don't add -dbg to the build dir, it makes the clean command get confused
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:31:07 +00:00
Robin Dunn
bf16cbc3d6 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:30:09 +00:00
Robin Dunn
526bdb340c Patch from Will Sadkin, allows the emptyInvalid flag to apply to subfields
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:29:08 +00:00
Robin Dunn
71df851e7f Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
wxPreviewControlBar so they can be derived from in Python and be able
to override the C++ virtual methods.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:25:16 +00:00
Robin Dunn
83ef7e2eaf Moved hangman to samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:24:25 +00:00
Stefan Neis
bcacb15d36 Fixed Refresh to clip update rectangles to the visible area of a
(scrolled) window. If there are many invisible/partly visible
        rectangles in the update region GTK+-1.2.10 starts complaining
        about bad match errors and soon crashes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 20:12:39 +00:00
Robin Dunn
6bc7d0dda4 Some demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 20:04:50 +00:00
Julian Smart
2062833988 Include module.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 16:32:40 +00:00
Julian Smart
8e8ee87b86 More useful usage reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 10:46:08 +00:00
Chris Elliott
5402151db6 fix erase in makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 10:34:42 +00:00
Robin Dunn
63482228c2 Put terminating NUL in the buffer since MB2WC doesn't do it. [#749825]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 00:43:51 +00:00
Robin Dunn
7296575156 Add the test for __main__ to all that didn't have it, so all demo
samples can be run standalone


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 23:48:28 +00:00
Robin Dunn
46ddee38b0 Converted the main demo framework files to the new namespace, (none of
the actual samples yet except NewNamespace...)
Added the GridDragAndDrop sample
Fixed the NewNamespace sample to actually have something to display


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 23:18:16 +00:00
Robin Dunn
0e8922d54e Patches for wxTreeListCtrl from Alberto
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 20:33:55 +00:00
Julian Smart
2b369f8133 Reverted the warning fix since it breaks MinGW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 20:33:17 +00:00
Robin Dunn
3473885694 Added some missing renamer modules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 18:59:47 +00:00
Robin Dunn
7b32730bab Changed the doodle sample to use the new wx namespace, also enhanced a
few things


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 18:57:17 +00:00
Mattia Barbon
c6afc57c82 Unicode compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 18:07:55 +00:00
Mattia Barbon
fd788c22d5 MinGW compilation fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 18:06:40 +00:00
Mattia Barbon
04df6d82a3 Avoid redefinition warning. (already defined in platform.h)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 18:05:09 +00:00
Julian Smart
6999716b96 Applied patch/bug [ 748226 ] OGL samples does not follow settings from setup.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 17:26:35 +00:00
Julian Smart
c1a23315cd Fixed compile warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 16:08:40 +00:00
Julian Smart
d33b133cd6 Correction for accidental changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 15:50:28 +00:00
Chris Elliott
b022709ac5 possible fix of Borland incompatible DLL problem for 2.4.1 /2.4.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 15:11:54 +00:00
Julian Smart
73e90c7137 Disable non-standard notebook styles if CommCtl doesn't support them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 13:29:52 +00:00
Chris Elliott
152ce11a13 fix SF bug 749486
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:42:45 +00:00
Chris Elliott
7a9539b77a fix SF bug 749486
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:28:21 +00:00
Julian Smart
e885525adb Fix for [ 748885 ] dialoged does not contain check for wxUSE_WX_RESOURCES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:15:05 +00:00
Julian Smart
19eea942ad Fix for [ 748890 ] can't set wxUSE_CONSTRAINTS to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:13:18 +00:00
Chris Elliott
ee6c4f6f44 fix SF bug 748752
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:07:55 +00:00
Julian Smart
19210eea93 Fixed bug [ 749471 ] wxDocument with no command processor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 12:03:47 +00:00
Julian Smart
6a2dbd8ca4 Fixed native dialog bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 10:57:59 +00:00
Chris Elliott
50cbce6d06 remove Borland's 16 bit makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 08:10:00 +00:00
Chris Elliott
8d1faa443c remove Borland's 16 bit makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-05 07:37:19 +00:00
Stefan Neis
c0ce485169 Added call to AdjustScrollbars in CalcDimensions to be able to scroll to the
"end" of a grid after adding rows/columns.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 20:51:25 +00:00
Julian Smart
fcede292cc Don't divide by zero.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 12:53:03 +00:00
Chris Elliott
646a6e4347 fix name of borland dll
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 07:12:45 +00:00
Robin Dunn
eeab02964a Demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:54:35 +00:00
Robin Dunn
7552d17984 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:50:40 +00:00
Robin Dunn
80e3d51279 Added theme enabling methods, although I'm not sure if they actually
do anything on any othe the platforms yet...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:48:27 +00:00
Robin Dunn
b2257cfcec wxTipWindow on wxMac derives from wxFrame since there is no wxPopupWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:46:56 +00:00
Robin Dunn
78a07fd17b Draw the stripy background on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:44:42 +00:00
Robin Dunn
8016d8e124 Added support for Mac theming in wxBrush so there is a way to draw the
stripy background.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:40:27 +00:00
Robin Dunn
6306f9664b Added missing wxNB_TOP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:37:39 +00:00
Robin Dunn
adf64959aa More changes for compilation issues on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-04 00:07:57 +00:00
Robin Dunn
ba0d19c23f backported the, uh... "fix" for update problems on wxMac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 23:20:21 +00:00
Julian Smart
15cefc9dc9 Should put lib in main lib dir, not under contrib/lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 16:47:54 +00:00
Julian Smart
c338206c96 Fix for bug [ 748171 ] Can't compile contrib/samples/fl/fl_demo2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 16:19:39 +00:00
Vadim Zeitlin
6d42225630 added missing module.h include (bug 748158)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 13:19:21 +00:00
Vadim Zeitlin
060f9ce148 generate wxEVT_COMMAND_LIST_INSERT_ITEM (patch 747070)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 10:46:08 +00:00
Vadim Zeitlin
f71203a294 implement DoGetBsetSize() for wxNoteBook (patch 745533)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 10:39:59 +00:00
Vadim Zeitlin
ff486b6e97 fixed calculations in SetMapMode() (use FP division, not integer)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 22:41:44 +00:00
Julian Smart
c29c603597 Updated change log
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 13:57:28 +00:00
Julian Smart
50745b84b2 Backported theme fix for notebook page anomaly on XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 13:47:14 +00:00
Bryan Petty
7e5799ed42 This commit was manufactured by cvs2svn to create branch
'WX_2_4_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 13:47:14 +00:00
Vadim Zeitlin
6af862d577 fixed compilation warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 21:29:17 +00:00
Julian Smart
caa7ab9b29 Fixed doc bug [ 733128 ] 'wxTaskBarIcon.PopupMenu(..)' missing doc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 21:11:16 +00:00
Julian Smart
0ea1d3f095 Pass focus window to submenu items too (no reason I can think of not to).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 20:40:09 +00:00
Julian Smart
db1c50bccd Fixed bug [ 743664 ] wxListCtrl asserts when deleting its m_textCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 20:12:30 +00:00
Julian Smart
87709afba0 Fix for [ 731966 ] Missing files in VC++ project file in WX_2_4_BRANCH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:51:10 +00:00
Julian Smart
780c98f7e6 Fix for [ 688754 ] wxNotebook::SetSelection(-1) will segfault
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:41:50 +00:00
Julian Smart
5c9194275a Fix (I hope) for bug [ 673862 ] printing zero length string with postscript does not work
Now descent and externalLeading will be zeroed if the string is empty.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:23:16 +00:00
Julian Smart
0888aa4b90 Use hyphen not underscore for wxWindows installer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:17:10 +00:00
Julian Smart
e788f7edfe Applied bug fix [ 684949 ] Dialup Sample With Borland C++ 5.5.1 Free Compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:06:30 +00:00
Julian Smart
a031ea171a Added some pragmas, to address problem mentioned
in bug report:

[ 670355 ] Borland C++ 5.5 with wxW 2.4.0


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 19:00:48 +00:00
Julian Smart
000c548490 Fix for [ 744346 ] __WIN95__ not defined automatically...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 16:54:22 +00:00
Julian Smart
953a8d6472 Applied patch [ 650511 ] wxCalendarCtrl - year does not change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 16:46:49 +00:00
Julian Smart
04679d6d10 Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing
x -> y


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 13:45:54 +00:00
Julian Smart
617b1fbb04 Applied patch [ 735588 ] Gtk2 textctrl selection fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 13:42:21 +00:00
Julian Smart
aa88de778a Applied patch [ 733425 ] Fix for header rendering problem in CalCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 13:39:30 +00:00
Julian Smart
a49932b757 Applied patch [ 745983 ] Fix for memory leak in class wxPluginManager in dynload.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 12:58:30 +00:00
Julian Smart
73265c5504 Applied [ 746201 ] wxGrid row/col change not updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 12:55:59 +00:00
Julian Smart
c1f7ecdf3b Added BCC include dir in XRC makefile
Typo correction in app.tex


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 12:26:34 +00:00
Julian Smart
1e3d20528d Typo in comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 12:04:23 +00:00
Vadim Zeitlin
5c1933ad4b regenerated to have version 2.4.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 10:28:14 +00:00
Julian Smart
9290f03940 Backported wxConfig fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-31 17:55:17 +00:00
Vadim Zeitlin
e47201cf41 corrected MakeLower/Upper() return value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-31 15:10:56 +00:00
Robin Dunn
2d77bf096f Added test case for inserting menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 22:31:49 +00:00
Robin Dunn
7a4ac109ec Fixes parsing when using mxDateTime, patch from Will Sadkin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 20:06:07 +00:00
Gilles Depeyrot
9f7110bcbf backported deallocation fix for Visual C++ Multithreaded non DLL runtime
this fix only has a performance impact on wxString in this configuration


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 15:01:42 +00:00
Robin Dunn
7dcfae6d49 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 00:30:31 +00:00
Robin Dunn
57ffafaae1 Use Python Longs when off_t can be 64-bit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 00:24:00 +00:00
Robin Dunn
3fd659e9e4 Added various tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 00:22:27 +00:00
Robin Dunn
75dba7c0af Added LoadFile and SaveFile methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 23:50:21 +00:00
Robin Dunn
3ac92fa641 Backported the wxGTK key event fixes for gtk2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 23:29:48 +00:00
Robin Dunn
79f3f7cdb2 fix a precedence order problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 20:30:54 +00:00
Stefan Csomor
d42aedcaca GetEventHandler()-> was missing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 19:02:04 +00:00
Robin Dunn
0f3a8b518b Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-29 15:34:13 +00:00
Gilles Depeyrot
4f26bc4784 allow wxDisplaySize to be called with NULL parameters
implement GetMetric for wxSYS_SCREEN_X & wxSYS_SCREEN_X using wxDisplaySize


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-28 20:08:24 +00:00
Chris Elliott
e453562c32 fixing SF bug 742496
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-27 09:16:22 +00:00
Julian Smart
6e537cd2e2 More style fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-26 22:59:24 +00:00
Julian Smart
6bf9dc1356 Further border style corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-26 22:15:25 +00:00
Julian Smart
ab28df5f10 Include missing.h and commctrl.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-26 19:28:35 +00:00
Václav Slavík
7edf0f4df1 clarify using embedded XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-26 16:20:54 +00:00
Chris Elliott
d71b6fee3d fix SF bug 742496
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-26 10:23:03 +00:00
Vadim Zeitlin
90a50fd5bd fix m_Matches overflow if Compile() is called more than once (bug 742236)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 20:28:01 +00:00
Julian Smart
e6380ade7a Backported size fix for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 17:19:16 +00:00
Julian Smart
b42599763b Backported wxSplitterWindow and wxWizard from head
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 13:20:25 +00:00
Bryan Petty
e1168afdf1 This commit was manufactured by cvs2svn to create branch
'WX_2_4_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 13:20:25 +00:00
Václav Slavík
c3fd661722 fix _() for wxUSE_INTL==0 case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 11:18:28 +00:00
Václav Slavík
ef15d07386 added CompareAccelString function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-25 11:18:13 +00:00
Julian Smart
9bb36c5e85 Updated release number
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-24 11:07:22 +00:00
Julian Smart
34499797f3 Applied patch [ 736321 ] Compile error for src/msw/textctrl.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 18:56:14 +00:00
Julian Smart
e2fbb6551a Applied patch [ 742452 ] wxPrintDialogData: can't set PD_PAGENUMS
Applied patch [ 742446 ] wxPrintDialogData::GetAllPages always returns TRUE


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 18:38:12 +00:00
Stefan Csomor
d99e873817 experimental speed up avoiding style copying and restoring
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 18:35:01 +00:00
Stefan Csomor
d5c45cc949 speed up for string conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 18:30:26 +00:00
Robin Dunn
4e78ec2f5a Added warning to the docstring
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:50:39 +00:00
Robin Dunn
bb27f7d002 Experimental script to assist in static linking wxWindows/wxPython to
the python interpreter


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:48:46 +00:00
Robin Dunn
d4851eb741 typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:48:09 +00:00
Robin Dunn
53c72358c0 Added "megaGrid" sample to the demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:47:49 +00:00
Robin Dunn
5ede8ea93d Added new or missing methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:46:59 +00:00
Robin Dunn
ffa0e0d51d define LVSICF_NOSCROLL if it is missing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-23 16:28:21 +00:00
Stefan Csomor
5416dbea9b wxPrintData::ValidateOrCreate to keep common code for wxMac, used when ConvertToNative is called, not needed here anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 21:18:00 +00:00
Stefan Csomor
8a7a789e63 ValidateOrCreate to keep common code for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 21:14:56 +00:00
Stefan Csomor
d6c8f96094 extending printing code (backport of 2.5 is not possible)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 21:12:31 +00:00
Roger Gammans
5fc42941db * 2.4 version of sf.net pacth 735595
Backport of docs from patch 2.5 patch


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 19:42:57 +00:00
Stefan Csomor
15682dd0cd turning off a wxSTAY_ON_TOP patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 18:12:57 +00:00
Stefan Csomor
bd1f3340cb fix by Egon to avoid endless loop when no matching item found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-22 18:07:05 +00:00
Václav Slavík
5009d37d51 backported HTML pagebreak code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 23:05:46 +00:00
Robin Dunn
cc715ad02b Fix page positioning when the tabs are on a side different than
wxNB_TOP by choosing margins dynamically instead of always using fixed
margin sizes.  Also remove unnecessary large internal borders
(although they can be reactivated by flipping an #if.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 22:41:01 +00:00
Stefan Csomor
5aff4a31b3 removed print.cpp from Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 20:37:07 +00:00
Julian Smart
2eb717eb22 Applied patch [ 731656 ] Owner draw menu icons
Benjamin I. Williams


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 19:07:02 +00:00
Julian Smart
0895fb72c3 Applied patch [ 739401 ] gtk_init() has to be called before gdk_threads_enter()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 18:54:27 +00:00
Julian Smart
845cff4d72 Applied patch [ 740012 ] GetKeyState returns 16-Bit value on WindowsNT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 18:43:03 +00:00
Julian Smart
6c2298b2db Noted that the preview object is deleted by the frame.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 15:45:57 +00:00
Julian Smart
984424b443 Fixed wxListCtrl simple border
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-21 07:43:49 +00:00
Robin Dunn
c8ad57a77a Ensure that the focus gets redirected to the embedded control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-20 18:26:47 +00:00
Roman Rolinsky
ff5bb76716 two-stage creation of XRC-based dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-20 13:26:38 +00:00
Robin Dunn
9831428651 Patch from Eugene Rimsky
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-19 23:55:09 +00:00
Patrick K. O'Brien
519a8af2fa Protect against inspect.getdoc() failing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-19 21:41:24 +00:00
Václav Slavík
af8b8aa277 allow untranslated accelerators, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-19 16:45:47 +00:00
Julian Smart
6f5d76722b Don't prepend directory to filename for shortcuts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-18 09:20:42 +00:00
Julian Smart
36f7711df6 Corrected wxScrollBar style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-17 09:30:00 +00:00
Robin Dunn
8cd8ce0be2 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 19:07:29 +00:00
Robin Dunn
be01c1a550 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 19:07:03 +00:00
Robin Dunn
7fefeea078 SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 19:06:44 +00:00
Robin Dunn
a5d0a5701f Fixed a couple minor bugs and changed copyright info
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 18:33:47 +00:00
Robin Dunn
d6738b5fb6 Updated some test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 18:29:32 +00:00
Robin Dunn
7356db934c Fixed parameter types for the wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:58:48 +00:00
Robin Dunn
99e67248a7 Tiny update for the build notes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:58:33 +00:00
Robin Dunn
5fdb1fb356 Fixed wxFutureCall so it automatically cleans up after itself after
the timer has expired, if there are no references held to it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:58:09 +00:00
Robin Dunn
088fa4c076 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:51:39 +00:00
Robin Dunn
11f9207e9e fixed compile errors for wxTreeListCtrl on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:49:56 +00:00
Robin Dunn
7160e19699 Modified frame styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-16 17:47:09 +00:00
Julian Smart
ce231d2667 Doc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-14 21:31:03 +00:00
Robin Dunn
ddadc73ae5 Acutally use the m_maxChars parameter value instead of ignoring it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-14 20:50:55 +00:00
Robin Dunn
9a27fdf2c6 MSW compile fixes, detabified, a couple minor bugs fixed, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-13 22:10:32 +00:00
Mattia Barbon
b8a31222b9 Fixed bug with notebook pages not showing (probably affected any
wxWindow/wxPanel child when panel was hidden and then shown again).
The bug was introduced by the fix for hidden windows still
intercepting mouse events. (backport)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-13 19:58:53 +00:00
Julian Smart
3d3fd07689 Rationalised style handling in tree control
No longer use WS_EX_WINDOWEDGE since it seems to be obsolete,
and has no effect


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-13 15:20:50 +00:00
Patrick K. O'Brien
1a24baa1a0 Fixed sort bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 20:02:08 +00:00
Stefan Csomor
f0f3ef30ba redraw fix backported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:56:37 +00:00
Stefan Csomor
65c3c03f4a CFStringRef support backport
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:29:04 +00:00
Stefan Csomor
855ff63b6a better min size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:25:48 +00:00
Stefan Csomor
3e4c97edf2 void correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:18:28 +00:00
Stefan Csomor
4182609042 native help tool tips under Carbon and OSX, backport
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:14:44 +00:00
Stefan Csomor
30d61191be added CFStringRef methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 19:11:16 +00:00
Roman Rolinsky
ff7744a993 just a test for IsShown (no refreshing if not)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 14:12:39 +00:00
Roman Rolinsky
ec3435a947 new version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 14:11:39 +00:00
Roman Rolinsky
86a574a07a added Expand/Collapse handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 14:11:30 +00:00
Roman Rolinsky
336b1df17d fixed sizes of some controls under windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 14:10:45 +00:00
Roman Rolinsky
adf520e7a8 changed scrolled window to container, but there's still no support in wxXRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 14:09:06 +00:00
Julian Smart
7b452d0dc8 Auto 3D border if parent is a panel or dialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 10:14:43 +00:00
Julian Smart
5c8c438c33 Apply correct style variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 10:09:40 +00:00
Gilles Depeyrot
2b312fb177 assert is raised when using the thread sample (which works) so the test is
probably not so easy. Can widget callbacks be triggered from child threads
and, if so, for which widgets?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-11 19:28:13 +00:00
Gilles Depeyrot
0866ab9046 added assert to detect attempt to install idle handler from widget callback
not called from main thread


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-11 16:44:48 +00:00
Vadim Zeitlin
613df03afb compilation fix for TEST_MIME
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-11 00:10:46 +00:00
Julian Smart
00e8c2009e Fixed crash in EnsureVisible in wxTR_HIDE_ROOT mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-09 21:48:24 +00:00
Robert Roebling
c0bfa2acd4 Compile fix for GTK 1.2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-09 14:31:40 +00:00
Julian Smart
f97ef56b88 Use context sensitive help XPM for Windows too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-09 10:00:38 +00:00
Vadim Zeitlin
db15725500 undid patch which was supposed to allow thread recreation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 23:36:42 +00:00
Vadim Zeitlin
01771b15dd linking fix for wxUSE_PROLOGIO with compilers/makefiles not defining __WIN32__ on command line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 23:25:31 +00:00
Robin Dunn
346573fc95 More patches to the masked edit control from Will Sadkin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 21:42:47 +00:00
Patrick K. O'Brien
14ca9dc4b0 Updated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 15:48:05 +00:00
Robin Dunn
e0b302e05d Patches to the masked edit control from Will Sadkin:
##   1. Fixed .SetValue() to replace the current value, rather than the current
##      selection. Also changed it to generate ValueError if presented with
##      either a value which doesn't follow the format or won't fit.  Also made
##      set value adjust numeric and date controls as if user entered the value.
##      Expanded doc explaining how SetValue() works.
##   2. Fixed EUDATE* autoformats, fixed IsDateType mask list, and added ability to
##      use 3-char months for dates, and EUDATETIME, and EUDATEMILTIME autoformats.
##   3. Made all date autoformats automatically pick implied "datestyle".
##   4. Added IsModified override, since base wxTextCtrl never reports modified if
##      .SetValue used to change the value, which is what the masked edit controls
##      use internally.
##   5. Fixed bug in date position adjustment on 2 to 4 digit date conversion when
##      using tab to "leave field" and auto-adjust.
##   6. Fixed bug in _isCharAllowed() for negative number insertion on pastes,
##      and bug in ._Paste() that didn't account for signs in signed masks either.
##   7. Fixed issues with _adjustPos for right-insert fields causing improper
##      selection/replacement of values
##   8. Fixed _OnHome handler to properly handle extending current selection to
##      beginning of control.
##   9. Exposed all (valid) autoformats to demo, binding descriptions to
##      autoformats.
##  10. Fixed a couple of bugs in email regexp.
##  11. Modified autoformats to be more amenable to international use.
##  12. Clarified meaning of '-' formatcode in doc.
##  13. Fixed a couple of coding bugs being flagged by Python2.1.
##  14. Fixed several issues with sign positioning, erasure and validity
##      checking for "numeric" masked controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 14:29:43 +00:00
Patrick K. O'Brien
2352d3f843 The wx package requires wxPython 2.4.1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 13:44:45 +00:00
Robin Dunn
feb2d6d223 Prevent scrolling back to the top when calling SetItemCount again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 06:29:39 +00:00
Robin Dunn
c71bb017ee Fix GetItemRect to offset by the header window, if present.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 02:17:52 +00:00
Robin Dunn
dac982f799 moved comments to the right place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 23:22:30 +00:00
Robin Dunn
1deeb8c822 No need to import Image
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 22:07:19 +00:00
Robin Dunn
cdc77b67db Added #if TARGET_CARBON around shaped window stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 21:29:39 +00:00
Julian Smart
0b7bf40bbc Make sure grid elements have no borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 19:29:18 +00:00
Robin Dunn
082640752d SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 19:25:03 +00:00
Václav Slavík
21f9c5560d fix for multiple initialization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 19:03:10 +00:00
Robin Dunn
268df712a3 Binary compatible almost correct workaround for failure to merge the
m_overflow flag


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 17:47:51 +00:00
Julian Smart
1b4c5c70bb More style issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 16:07:36 +00:00
Julian Smart
0842947f77 Fix some style glitches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 15:00:06 +00:00
Julian Smart
41350749c7 Add WS_VISIBLE style so controls actually show up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 13:58:16 +00:00
Julian Smart
a25cf84937 Use native tree control by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 09:48:22 +00:00
Robert Roebling
9426087491 Second attempt to use bitmap menus under GTK2. This
creates a memory leak since GTK2 expects a static
    bitmap and we have to create it on the fly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 09:36:14 +00:00
Julian Smart
c5d4a908ee Backported the window border improvements to 2.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 08:36:40 +00:00
Robin Dunn
7779af28db SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:59:56 +00:00
Robin Dunn
e09838afc4 Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
a call to any Python callable object.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:57:59 +00:00
Robin Dunn
28118dbd1d Added wrappers for wxTreeListCtrl, only to wxPython so far but it
could probably go into contrib/gizmos with some more work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:56:16 +00:00
Robin Dunn
f632c16831 Typos fixed and other tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:55:07 +00:00
Robin Dunn
2f511ce8d0 Added wrappers for wxTreeListCtrl, only to wxPython so far but it
could probably go into contrib/gizmos with some more work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:44:13 +00:00
Robin Dunn
aeeb59a436 Fixed a comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:37:13 +00:00
Robin Dunn
c9462e363c Added inline setters for wxTreeEvent so we don't need to add new
friends anytime someone wants to generate wxTreeEvents


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:30:37 +00:00
Robin Dunn
b148feb55e allow the base class to participate in the CanPaste decision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 23:43:39 +00:00
Patrick K. O'Brien
09dbc89e7b Changed path to epydoc files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 21:34:26 +00:00
Patrick K. O'Brien
e96dfa70f5 Absolute paths to the epydoc files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 21:32:32 +00:00
Patrick K. O'Brien
10b9b230e1 Updated to include new wx epydoc reference.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 21:25:01 +00:00
Patrick K. O'Brien
742c06e8aa Added DirFilterListCtrl class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 19:42:09 +00:00
Patrick K. O'Brien
f864dfa8f7 Add more stuff to the output file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 19:20:24 +00:00
Patrick K. O'Brien
4ed72fe0c3 Better module docstring.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 19:17:57 +00:00
Julian Smart
f32edf89b1 Compilo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 19:14:17 +00:00
Patrick K. O'Brien
a2743d3433 Added two functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 18:23:27 +00:00
Robert Roebling
c69021d8cd Added menu bitmaps to GTK2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 14:28:40 +00:00
Julian Smart
f6bef341eb Removed obsolete 16-bit import libs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 09:44:36 +00:00
Julian Smart
44571a5d27 Doc clarifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 07:53:46 +00:00
Robert Roebling
1daf3f08fd splitter mini fix upported from HEAD.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 07:23:33 +00:00
Robert Roebling
da6c39648e Compilation fixes for Penguin under Unicode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 07:02:16 +00:00
Robert Roebling
5e0701b3a5 Adapted GLCanvas to GTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 07:01:14 +00:00
Patrick K. O'Brien
7f9e738a57 Generates wx package for epydoc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-06 01:53:30 +00:00
Patrick K. O'Brien
1096092fbc Namespace cleanup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-05 18:37:07 +00:00
Robert Roebling
76e0d41aaf Cleaned the mess in wxSplitterWindow::OnMouse()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-05 08:36:50 +00:00
Robert Roebling
d05cabeedc Removed surplus enter/leave events after mouse capture/release.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-05 08:35:36 +00:00
Robert Roebling
056ace7e98 Added test for mouse capture and enter/leave events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-05 07:32:30 +00:00
Julian Smart
ff27cad84b Initialised m_isBeingDeleted -- I don't know how anything
worked without it...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 21:09:58 +00:00
Julian Smart
e71d7ac230 Setting state to STATE_NEW in wxThread::Create
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 20:51:09 +00:00
Patrick K. O'Brien
0bb26f5835 HTML files shouldn't be in CVS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 20:23:19 +00:00
Patrick K. O'Brien
a933edba06 New file, overview of other docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 20:21:01 +00:00
Patrick K. O'Brien
3079d52188 New and updated files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 19:44:27 +00:00
Patrick K. O'Brien
674fa4d446 Updated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 19:35:53 +00:00
Patrick K. O'Brien
ad72f14fdf Updates.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 18:05:37 +00:00
Patrick K. O'Brien
2383b8d3fe Improved `Can* checks in EditWindow`, since STC is too lenient,
particularly when it is set to read-only but returns True for
CanPaste() (seems like an STC bug to me).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 18:03:17 +00:00
Julian Smart
f09eff9aea Applied updated patch [ 731719 ] Owner draw font leak/overuse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 17:12:58 +00:00
Patrick K. O'Brien
1152dd24a2 Added pretty-print Display tab.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 16:51:46 +00:00
Julian Smart
4ff30320ce Added defined() to directive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 15:50:27 +00:00
Mattia Barbon
8b061b2af9 Fix for the fact that unmapped but managed widgets
intercept mouse events even if they are not visible. (backport)
  Set/reset MappedWhenManaged flag when showing/hiding a window,
otherwise, since some common operations (moving, adding items to a
listbox, ...) do a Unmanage-Manage pair, calling Hide and then
(for example) SetSize would show the window again. (backport)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 12:27:46 +00:00
Mattia Barbon
9ac09df9c6 Pass events to pushed event handlers. (backport)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 12:25:03 +00:00
Robin Dunn
6f9fbb55ab Reversed the meaning of black and white in wxRegion::ConvertToBitmap
so it matches the menaning of black and white in wxMask


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 17:56:30 +00:00
Patrick K. O'Brien
35825a5dcc import wx
Changed some strings to refer to "Py" rather than "PyCrust".


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 16:01:41 +00:00
Julian Smart
f9940dab60 Applied [ 731578 ] wxThread state bugfix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 15:41:57 +00:00
Julian Smart
9fe6f6c258 Applied patch [ 726350 ] wxGrid - MovePageDown()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 15:17:38 +00:00
Patrick K. O'Brien
bd969821f9 Docstring changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 15:15:44 +00:00
Julian Smart
c7e25919c6 Applied patch [ 731846 ] GTK Print Options
Print options were omitted from print command


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 15:11:55 +00:00
Patrick K. O'Brien
1952003649 This module doesn't use wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 14:31:54 +00:00
Julian Smart
0fb551a0a2 Applied patch [ 731195 ] More #if/#endif's to build a smaller library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 13:50:04 +00:00
Julian Smart
ea2d63b55b Doc corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 13:45:00 +00:00
Patrick K. O'Brien
603c2b68de Begin new version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 13:20:47 +00:00
26 changed files with 588 additions and 333 deletions

View File

@@ -1,4 +1,49 @@
0.9.2 (5/3/2003 to //2003)
-----------------------------
Changed to the new prefix-less "wx" package::
import wx
instead of::
from wxPython import wx
Fixed typo in ``PyWrap.py``::
if __name__ == '__main__':
main(sys.argv)
should have been::
if __name__ == '__main__':
main()
Added pretty-print Display tab to Crust, based on suggestion from
Jason Whitlark.
Improved ``Can*`` checks in ``EditWindow``, since STC is too lenient,
particularly when it is set to read-only but returns True for
CanPaste() (seems like an STC bug to me)::
def CanCopy(self):
"""Return True if text is selected and can be copied."""
return self.GetSelectionStart() != self.GetSelectionEnd()
def CanCut(self):
"""Return True if text is selected and can be cut."""
return self.CanCopy() and self.CanEdit()
def CanEdit(self):
"""Return True if editing should succeed."""
return not self.GetReadOnly()
def CanPaste(self):
"""Return True if pasting should succeed."""
return stc.StyledTextCtrl.CanPaste(self) and self.CanEdit()
0.9.1 (3/21/2003 to 5/2/2003)
-----------------------------

View File

@@ -4,7 +4,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
import os
import sys
@@ -17,15 +17,15 @@ except NameError:
True = 1==1
False = 1==0
class App(wx.wxApp):
class App(wx.App):
"""PyAlaCarte standalone application."""
def __init__(self, filename=None):
self.filename = filename
wx.wxApp.__init__(self, redirect=False)
wx.App.__init__(self, redirect=False)
def OnInit(self):
wx.wxInitAllImageHandlers()
wx.InitAllImageHandlers()
self.frame = editor.EditorFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)

View File

@@ -4,7 +4,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
import os
import sys
@@ -17,15 +17,15 @@ except NameError:
True = 1==1
False = 1==0
class App(wx.wxApp):
class App(wx.App):
"""PyAlaMode standalone application."""
def __init__(self, filename=None):
self.filename = filename
wx.wxApp.__init__(self, redirect=False)
wx.App.__init__(self, redirect=False)
def OnInit(self):
wx.wxInitAllImageHandlers()
wx.InitAllImageHandlers()
self.frame = editor.EditorNotebookFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)

View File

@@ -4,7 +4,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
import os
import sys
@@ -17,15 +17,15 @@ except NameError:
True = 1==1
False = 1==0
class App(wx.wxApp):
class App(wx.App):
"""PyAlaModeTest standalone application."""
def __init__(self, filename=None):
self.filename = filename
wx.wxApp.__init__(self, redirect=False)
wx.App.__init__(self, redirect=False)
def OnInit(self):
wx.wxInitAllImageHandlers()
wx.InitAllImageHandlers()
self.frame = editor.EditorShellNotebookFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -11,7 +11,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
try:
True
@@ -20,12 +20,12 @@ except NameError:
False = 1==0
class App(wx.wxApp):
class App(wx.App):
"""PyCrust standalone application."""
def OnInit(self):
from wxPython import wx
wx.wxInitAllImageHandlers()
import wx
wx.InitAllImageHandlers()
locals = __main__.__dict__
from crust import CrustFrame
self.frame = CrustFrame(locals=locals)

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -15,9 +15,8 @@ import interpreter
import introspect
import pseudo
import shell
import sys
from wxPython import wx
import wx
try:
True

View File

@@ -11,7 +11,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
try:
True
@@ -20,12 +20,12 @@ except NameError:
False = 1==0
class App(wx.wxApp):
class App(wx.App):
"""PyShell standalone application."""
def OnInit(self):
from wxPython import wx
wx.wxInitAllImageHandlers()
import wx
wx.InitAllImageHandlers()
locals = __main__.__dict__
from shell import ShellFrame
self.frame = ShellFrame(locals=locals)

View File

@@ -7,7 +7,7 @@ __revision__ = "$Revision$"[11:-2]
import os
import sys
from wxPython import wx
import wx
from crust import CrustFrame as Frame
try:
@@ -18,7 +18,7 @@ except NameError:
def wrap(app):
wx.wxInitAllImageHandlers()
wx.InitAllImageHandlers()
frame = Frame()
frame.SetSize((750, 525))
frame.Show(True)
@@ -41,7 +41,7 @@ def main(modulename=None):
d = module.__dict__
for item in d.keys():
try:
if issubclass(d[item], wx.wxApp):
if issubclass(d[item], wx.App):
App = d[item]
except (NameError, TypeError):
pass
@@ -53,4 +53,4 @@ def main(modulename=None):
if __name__ == '__main__':
main(sys.argv)
main()

View File

@@ -1,4 +1,4 @@
"""Python package."""
"""The py package, formerly the PyCrust package."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"

View File

@@ -4,8 +4,6 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
from interpreter import Interpreter
import imp
import os

View File

@@ -1,15 +1,17 @@
"""PyCrust Crust combines the shell and filling into one control."""
"""Crust combines the shell and filling into one control."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
import os
import pprint
import sys
import dispatcher
import editwindow
from filling import Filling
import frame
from shell import Shell
@@ -22,26 +24,26 @@ except NameError:
False = 1==0
class Crust(wx.wxSplitterWindow):
"""PyCrust Crust based on wxSplitterWindow."""
class Crust(wx.SplitterWindow):
"""Crust based on SplitterWindow."""
name = 'PyCrust Crust'
name = 'Crust'
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxSP_3D,
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.SP_3D,
name='Crust Window', rootObject=None, rootLabel=None,
rootIsNamespace=True, intro='', locals=None,
InterpClass=None, *args, **kwds):
"""Create a PyCrust Crust instance."""
wx.wxSplitterWindow.__init__(self, parent, id, pos, size, style, name)
"""Create Crust instance."""
wx.SplitterWindow.__init__(self, parent, id, pos, size, style, name)
self.shell = Shell(parent=self, introText=intro,
locals=locals, InterpClass=InterpClass,
*args, **kwds)
self.editor = self.shell
if rootObject is None:
rootObject = self.shell.interp.locals
self.notebook = wx.wxNotebook(parent=self, id=-1)
self.notebook = wx.Notebook(parent=self, id=-1)
self.shell.interp.locals['notebook'] = self.notebook
self.filling = Filling(parent=self.notebook,
rootObject=rootObject,
@@ -50,6 +52,10 @@ class Crust(wx.wxSplitterWindow):
# Add 'filling' to the interpreter's locals.
self.shell.interp.locals['filling'] = self.filling
self.notebook.AddPage(page=self.filling, text='Namespace', select=True)
self.display = Display(parent=self.notebook)
self.notebook.AddPage(page=self.display, text='Display')
# Add 'pp' (pretty print) to the interpreter's locals.
self.shell.interp.locals['pp'] = self.display.setItem
self.calltip = Calltip(parent=self.notebook)
self.notebook.AddPage(page=self.calltip, text='Calltip')
self.sessionlisting = SessionListing(parent=self.notebook)
@@ -74,13 +80,46 @@ class Crust(wx.wxSplitterWindow):
self.SetMinimumPaneSize(1)
class Calltip(wx.wxTextCtrl):
class Display(editwindow.EditWindow):
"""STC used to display an object using Pretty Print."""
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize,
style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER,
static=False):
"""Create Display instance."""
editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
# Configure various defaults and user preferences.
self.SetReadOnly(True)
self.SetWrapMode(False)
if not static:
dispatcher.connect(receiver=self.push, signal='Interpreter.push')
def push(self, command, more):
"""Receiver for Interpreter.push signal."""
self.Refresh()
def Refresh(self):
if not hasattr(self, "item"):
return
self.SetReadOnly(False)
text = pprint.pformat(self.item)
self.SetText(text)
self.SetReadOnly(True)
def setItem(self, item):
"""Set item to pretty print in the notebook Display tab."""
self.item = item
self.Refresh()
class Calltip(wx.TextCtrl):
"""Text control containing the most recent shell calltip."""
def __init__(self, parent=None, id=-1):
style = wx.wxTE_MULTILINE | wx.wxTE_READONLY | wx.wxTE_RICH2
wx.wxTextCtrl.__init__(self, parent=parent, id=id, style=style)
self.SetBackgroundColour(wx.wxColour(255, 255, 232))
style = wx.TE_MULTILINE | wx.TE_READONLY | wx.TE_RICH2
wx.TextCtrl.__init__(self, parent=parent, id=id, style=style)
self.SetBackgroundColour(wx.Colour(255, 255, 232))
dispatcher.connect(receiver=self.display, signal='Shell.calltip')
def display(self, calltip):
@@ -88,13 +127,13 @@ class Calltip(wx.wxTextCtrl):
self.SetValue(calltip)
class SessionListing(wx.wxTextCtrl):
class SessionListing(wx.TextCtrl):
"""Text control containing all commands for session."""
def __init__(self, parent=None, id=-1):
style = wx.wxTE_MULTILINE | wx.wxTE_READONLY | \
wx.wxTE_RICH2 | wx.wxTE_DONTWRAP
wx.wxTextCtrl.__init__(self, parent=parent, id=id, style=style)
style = wx.TE_MULTILINE | wx.TE_READONLY | \
wx.TE_RICH2 | wx.TE_DONTWRAP
wx.TextCtrl.__init__(self, parent=parent, id=id, style=style)
dispatcher.connect(receiver=self.push, signal='Interpreter.push')
def push(self, command, more):
@@ -107,13 +146,13 @@ class SessionListing(wx.wxTextCtrl):
self.AppendText(command + '\n')
class DispatcherListing(wx.wxTextCtrl):
class DispatcherListing(wx.TextCtrl):
"""Text control containing all dispatches for session."""
def __init__(self, parent=None, id=-1):
style = wx.wxTE_MULTILINE | wx.wxTE_READONLY | \
wx.wxTE_RICH2 | wx.wxTE_DONTWRAP
wx.wxTextCtrl.__init__(self, parent=parent, id=id, style=style)
style = wx.TE_MULTILINE | wx.TE_READONLY | \
wx.TE_RICH2 | wx.TE_DONTWRAP
wx.TextCtrl.__init__(self, parent=parent, id=id, style=style)
dispatcher.connect(receiver=self.spy)
def spy(self, signal, sender):
@@ -129,15 +168,15 @@ class DispatcherListing(wx.wxTextCtrl):
class CrustFrame(frame.Frame):
"""Frame containing all the PyCrust components."""
name = 'PyCrust Frame'
name = 'CrustFrame'
revision = __revision__
def __init__(self, parent=None, id=-1, title='PyCrust',
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize,
style=wx.wxDEFAULT_FRAME_STYLE,
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE,
rootObject=None, rootLabel=None, rootIsNamespace=True,
locals=None, InterpClass=None, *args, **kwds):
"""Create a PyCrust CrustFrame instance."""
"""Create CrustFrame instance."""
frame.Frame.__init__(self, parent, id, title, pos, size, style)
intro = 'PyCrust %s - The Flakiest Python Shell' % VERSION
intro += '\nSponsored by Orbtech - '
@@ -174,9 +213,9 @@ class CrustFrame(frame.Frame):
'Shell Revision: %s\n' % self.shell.revision + \
'Interpreter Revision: %s\n\n' % self.shell.interp.revision + \
'Python Version: %s\n' % sys.version.split()[0] + \
'wxPython Version: %s\n' % wx.__version__ + \
'wxPython Version: %s\n' % wx.VERSION_STRING + \
'Platform: %s\n' % sys.platform
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()

View File

@@ -4,7 +4,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
from buffer import Buffer
import crust
@@ -25,8 +25,9 @@ class EditorFrame(frame.Frame):
"""Frame containing one editor."""
def __init__(self, parent=None, id=-1, title='PyAlaCarte',
pos=wx.wxDefaultPosition, size=(800, 600),
style=wx.wxDEFAULT_FRAME_STYLE, filename=None):
pos=wx.DefaultPosition, size=(800, 600),
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE,
filename=None):
"""Create EditorFrame instance."""
frame.Frame.__init__(self, parent, id, title, pos, size, style)
self.buffers = {}
@@ -55,8 +56,8 @@ class EditorFrame(frame.Frame):
"""Display an About window."""
title = 'About PyAlaCarte'
text = 'Another fine, flaky program.'
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()
@@ -141,11 +142,12 @@ class EditorFrame(frame.Frame):
"""Create new buffer."""
self.bufferDestroy()
buffer = Buffer()
self.panel = panel = wx.wxPanel(parent=self, id=-1)
self.panel = panel = wx.Panel(parent=self, id=-1)
wx.EVT_ERASE_BACKGROUND(panel, lambda x: x)
editor = Editor(parent=panel)
panel.editor = editor
sizer = wx.wxBoxSizer(wx.wxVERTICAL)
sizer.Add(editor.window, 1, wx.wxEXPAND)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(editor.window, 1, wx.EXPAND)
panel.SetSizer(sizer)
panel.SetAutoLayout(True)
sizer.Layout()
@@ -153,6 +155,8 @@ class EditorFrame(frame.Frame):
buffer.open(filename)
self.setEditor(editor)
self.editor.setFocus()
self.SendSizeEvent()
def bufferDestroy(self):
"""Destroy the current buffer."""
@@ -164,6 +168,7 @@ class EditorFrame(frame.Frame):
self.buffer = None
self.panel.Destroy()
def bufferHasChanged(self):
"""Return True if buffer has changed since last save."""
if self.buffer:
@@ -255,8 +260,9 @@ class EditorNotebookFrame(EditorFrame):
"""Frame containing one or more editors in a notebook."""
def __init__(self, parent=None, id=-1, title='PyAlaMode',
pos=wx.wxDefaultPosition, size=(800, 600),
style=wx.wxDEFAULT_FRAME_STYLE, filename=None):
pos=wx.DefaultPosition, size=(800, 600),
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE,
filename=None):
"""Create EditorNotebookFrame instance."""
self.notebook = None
EditorFrame.__init__(self, parent, id, title, pos,
@@ -270,7 +276,7 @@ class EditorNotebookFrame(EditorFrame):
Called automatically by base class during init."""
self.notebook = EditorNotebook(parent=self)
intro = 'PyCrust %s' % version.VERSION
intro = 'Py %s' % version.VERSION
import imp
module = imp.new_module('__main__')
import __builtin__
@@ -284,7 +290,7 @@ class EditorNotebookFrame(EditorFrame):
self.shell.setStatusText = self.SetStatusText
# Fix a problem with the sash shrinking to nothing.
self.crust.filling.SetSashPosition(200)
self.notebook.AddPage(page=self.crust, text='PyCrust', select=True)
self.notebook.AddPage(page=self.crust, text='*Shell*', select=True)
self.setEditor(self.crust.editor)
self.crust.editor.SetFocus()
@@ -296,8 +302,8 @@ class EditorNotebookFrame(EditorFrame):
"""Display an About window."""
title = 'About PyAlaMode'
text = 'Another fine, flaky program.'
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()
@@ -317,11 +323,12 @@ class EditorNotebookFrame(EditorFrame):
def bufferCreate(self, filename=None):
"""Create new buffer."""
buffer = Buffer()
panel = wx.wxPanel(parent=self.notebook, id=-1)
panel = wx.Panel(parent=self.notebook, id=-1)
wx.EVT_ERASE_BACKGROUND(panel, lambda x: x)
editor = Editor(parent=panel)
panel.editor = editor
sizer = wx.wxBoxSizer(wx.wxVERTICAL)
sizer.Add(editor.window, 1, wx.wxEXPAND)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(editor.window, 1, wx.EXPAND)
panel.SetSizer(sizer)
panel.SetAutoLayout(True)
sizer.Layout()
@@ -359,12 +366,12 @@ class EditorNotebookFrame(EditorFrame):
return cancel
class EditorNotebook(wx.wxNotebook):
class EditorNotebook(wx.Notebook):
"""A notebook containing a page for each editor."""
def __init__(self, parent):
"""Create EditorNotebook instance."""
wx.wxNotebook.__init__(self, parent, id=-1)
wx.Notebook.__init__(self, parent, id=-1, style=wx.NO_FULL_REPAINT_ON_RESIZE)
wx.EVT_NOTEBOOK_PAGE_CHANGING(self, self.GetId(),
self.OnPageChanging)
wx.EVT_NOTEBOOK_PAGE_CHANGED(self, self.GetId(),
@@ -430,8 +437,8 @@ class EditorShellNotebookFrame(EditorNotebookFrame):
"""Frame containing a notebook containing EditorShellNotebooks."""
def __init__(self, parent=None, id=-1, title='PyAlaModeTest',
pos=wx.wxDefaultPosition, size=(600, 400),
style=wx.wxDEFAULT_FRAME_STYLE,
pos=wx.DefaultPosition, size=(600, 400),
style=wx.DEFAULT_FRAME_STYLE,
filename=None, singlefile=False):
"""Create EditorShellNotebookFrame instance."""
self._singlefile = singlefile
@@ -449,8 +456,8 @@ class EditorShellNotebookFrame(EditorNotebookFrame):
"""Display an About window."""
title = 'About PyAlaModePlus'
text = 'Another fine, flaky program.'
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()
@@ -515,16 +522,16 @@ class EditorShellNotebookFrame(EditorNotebookFrame):
return cancel
class EditorShellNotebook(wx.wxNotebook):
class EditorShellNotebook(wx.Notebook):
"""A notebook containing an editor page and a shell page."""
def __init__(self, parent, filename=None):
"""Create EditorShellNotebook instance."""
wx.wxNotebook.__init__(self, parent, id=-1)
wx.Notebook.__init__(self, parent, id=-1)
usePanels = True
if usePanels:
editorparent = editorpanel = wx.wxPanel(self, -1)
shellparent = shellpanel = wx.wxPanel(self, -1)
editorparent = editorpanel = wx.Panel(self, -1)
shellparent = shellpanel = wx.Panel(self, -1)
else:
editorparent = self
shellparent = self
@@ -533,18 +540,18 @@ class EditorShellNotebook(wx.wxNotebook):
self.buffer.addEditor(self.editor)
self.buffer.open(filename)
self.shell = Shell(parent=shellparent, locals=self.buffer.interp.locals,
style=wx.wxCLIP_CHILDREN | wx.wxSUNKEN_BORDER)
style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER)
self.buffer.interp.locals.clear()
if usePanels:
self.AddPage(page=editorpanel, text='Editor', select=True)
self.AddPage(page=shellpanel, text='Shell')
# Setup sizers
editorsizer = wx.wxBoxSizer(wx.wxVERTICAL)
editorsizer.Add(self.editor.window, 1, wx.wxEXPAND)
editorsizer = wx.BoxSizer(wx.VERTICAL)
editorsizer.Add(self.editor.window, 1, wx.EXPAND)
editorpanel.SetSizer(editorsizer)
editorpanel.SetAutoLayout(True)
shellsizer = wx.wxBoxSizer(wx.wxVERTICAL)
shellsizer.Add(self.shell, 1, wx.wxEXPAND)
shellsizer = wx.BoxSizer(wx.VERTICAL)
shellsizer.Add(self.shell, 1, wx.EXPAND)
shellpanel.SetSizer(shellsizer)
shellpanel.SetAutoLayout(True)
else:
@@ -563,7 +570,7 @@ class EditorShellNotebook(wx.wxNotebook):
event.Skip()
def SetFocus(self):
wx.wxNotebook.SetFocus(self)
wx.Notebook.SetFocus(self)
selection = self.GetSelection()
if selection == 0:
self.editor.setFocus()
@@ -574,9 +581,9 @@ class EditorShellNotebook(wx.wxNotebook):
class Editor:
"""Editor having an EditWindow."""
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize,
style=wx.wxCLIP_CHILDREN | wx.wxSUNKEN_BORDER):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize,
style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER):
"""Create Editor instance."""
self.window = EditWindow(self, parent, id, pos, size, style)
self.id = self.window.GetId()
@@ -732,9 +739,9 @@ class Editor:
class EditWindow(editwindow.EditWindow):
"""EditWindow based on StyledTextCtrl."""
def __init__(self, editor, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize,
style=wx.wxCLIP_CHILDREN | wx.wxSUNKEN_BORDER):
def __init__(self, editor, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize,
style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER):
"""Create EditWindow instance."""
editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
self.editor = editor
@@ -746,7 +753,7 @@ class DialogResults:
def __init__(self, returned):
"""Create wrapper for results returned by dialog."""
self.returned = returned
self.positive = returned in (wx.wxID_OK, wx.wxID_YES)
self.positive = returned in (wx.ID_OK, wx.ID_YES)
self.text = self._asString()
@@ -755,22 +762,22 @@ class DialogResults:
def _asString(self):
returned = self.returned
if returned == wx.wxID_OK:
if returned == wx.ID_OK:
return "Ok"
elif returned == wx.wxID_CANCEL:
elif returned == wx.ID_CANCEL:
return "Cancel"
elif returned == wx.wxID_YES:
elif returned == wx.ID_YES:
return "Yes"
elif returned == wx.wxID_NO:
elif returned == wx.ID_NO:
return "No"
def fileDialog(parent=None, title='Open', directory='', filename='',
wildcard='All Files (*.*)|*.*',
style=wx.wxOPEN | wx.wxMULTIPLE):
style=wx.OPEN | wx.MULTIPLE):
"""File dialog wrapper function."""
dialog = wx.wxFileDialog(parent, title, directory, filename,
wildcard, style)
dialog = wx.FileDialog(parent, title, directory, filename,
wildcard, style)
result = DialogResults(dialog.ShowModal())
if result.positive:
result.paths = dialog.GetPaths()
@@ -781,10 +788,10 @@ def fileDialog(parent=None, title='Open', directory='', filename='',
def openSingle(parent=None, title='Open', directory='', filename='',
wildcard='All Files (*.*)|*.*', style=wx.wxOPEN):
wildcard='All Files (*.*)|*.*', style=wx.OPEN):
"""File dialog wrapper function."""
dialog = wx.wxFileDialog(parent, title, directory, filename,
wildcard, style)
dialog = wx.FileDialog(parent, title, directory, filename,
wildcard, style)
result = DialogResults(dialog.ShowModal())
if result.positive:
result.path = dialog.GetPath()
@@ -796,17 +803,17 @@ def openSingle(parent=None, title='Open', directory='', filename='',
def openMultiple(parent=None, title='Open', directory='', filename='',
wildcard='All Files (*.*)|*.*',
style=wx.wxOPEN | wx.wxMULTIPLE):
style=wx.OPEN | wx.MULTIPLE):
"""File dialog wrapper function."""
return fileDialog(parent, title, directory, filename, wildcard, style)
def saveSingle(parent=None, title='Save', directory='', filename='',
wildcard='All Files (*.*)|*.*',
style=wx.wxSAVE | wx.wxHIDE_READONLY | wx.wxOVERWRITE_PROMPT):
style=wx.SAVE | wx.HIDE_READONLY | wx.OVERWRITE_PROMPT):
"""File dialog wrapper function."""
dialog = wx.wxFileDialog(parent, title, directory, filename,
wildcard, style)
dialog = wx.FileDialog(parent, title, directory, filename,
wildcard, style)
result = DialogResults(dialog.ShowModal())
if result.positive:
result.path = dialog.GetPath()
@@ -817,9 +824,9 @@ def saveSingle(parent=None, title='Save', directory='', filename='',
def directory(parent=None, message='Choose a directory', path='', style=0,
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize):
pos=wx.DefaultPosition, size=wx.DefaultSize):
"""Dir dialog wrapper function."""
dialog = wx.wxDirDialog(parent, message, path, style, pos, size)
dialog = wx.DirDialog(parent, message, path, style, pos, size)
result = DialogResults(dialog.ShowModal())
if result.positive:
result.path = dialog.GetPath()
@@ -830,10 +837,10 @@ def directory(parent=None, message='Choose a directory', path='', style=0,
def messageDialog(parent=None, message='', title='Message box',
style=wx.wxYES_NO | wx.wxCANCEL | wx.wxCENTRE | wx.wxICON_QUESTION,
pos=wx.wxDefaultPosition):
style=wx.YES_NO | wx.CANCEL | wx.CENTRE | wx.ICON_QUESTION,
pos=wx.DefaultPosition):
"""Message dialog wrapper function."""
dialog = wx.wxMessageDialog(parent, message, title, style, pos)
dialog = wx.MessageDialog(parent, message, title, style, pos)
result = DialogResults(dialog.ShowModal())
dialog.Destroy()
return result

View File

@@ -4,8 +4,8 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
from wxPython import stc
import wx
from wx import stc
import keyword
import os
@@ -21,7 +21,7 @@ except NameError:
True = 1==1
False = 1==0
if wx.wxPlatform == '__WXMSW__':
if wx.Platform == '__WXMSW__':
FACES = { 'times' : 'Times New Roman',
'mono' : 'Courier New',
'helv' : 'Lucida Console',
@@ -42,15 +42,15 @@ else: # GTK
}
class EditWindow(stc.wxStyledTextCtrl):
class EditWindow(stc.StyledTextCtrl):
"""EditWindow based on StyledTextCtrl."""
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN | wx.wxSUNKEN_BORDER):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER):
"""Create EditWindow instance."""
stc.wxStyledTextCtrl.__init__(self, parent, id, pos, size, style)
stc.StyledTextCtrl.__init__(self, parent, id, pos, size, style)
self.__config()
stc.EVT_STC_UPDATEUI(self, id, self.OnUpdateUI)
dispatcher.connect(receiver=self._fontsizer, signal='FontIncrease')
@@ -70,10 +70,10 @@ class EditWindow(stc.wxStyledTextCtrl):
def __config(self):
"""Configure shell based on user preferences."""
self.SetMarginType(1, stc.wxSTC_MARGIN_NUMBER)
self.SetMarginType(1, stc.STC_MARGIN_NUMBER)
self.SetMarginWidth(1, 40)
self.SetLexer(stc.wxSTC_LEX_PYTHON)
self.SetLexer(stc.STC_LEX_PYTHON)
self.SetKeyWords(0, ' '.join(keyword.kwlist))
self.setStyles(FACES)
@@ -91,7 +91,7 @@ class EditWindow(stc.wxStyledTextCtrl):
self.AutoCompStops(' .,;:([)]}\'"\\<>%^&+-=*/|`')
# Do we want to automatically pop up command argument help?
self.autoCallTip = True
self.CallTipSetBackground(wx.wxColour(255, 255, 232))
self.CallTipSetBackground(wx.Colour(255, 255, 232))
self.SetWrapMode(False)
try:
self.SetEndAtLastLine(False)
@@ -102,50 +102,50 @@ class EditWindow(stc.wxStyledTextCtrl):
"""Configure font size, typeface and color for lexer."""
# Default style
self.StyleSetSpec(stc.wxSTC_STYLE_DEFAULT,
self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
"face:%(mono)s,size:%(size)d,back:%(backcol)s" % \
faces)
self.StyleClearAll()
# Built in styles
self.StyleSetSpec(stc.wxSTC_STYLE_LINENUMBER,
self.StyleSetSpec(stc.STC_STYLE_LINENUMBER,
"back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % faces)
self.StyleSetSpec(stc.wxSTC_STYLE_CONTROLCHAR,
self.StyleSetSpec(stc.STC_STYLE_CONTROLCHAR,
"face:%(mono)s" % faces)
self.StyleSetSpec(stc.wxSTC_STYLE_BRACELIGHT,
self.StyleSetSpec(stc.STC_STYLE_BRACELIGHT,
"fore:#0000FF,back:#FFFF88")
self.StyleSetSpec(stc.wxSTC_STYLE_BRACEBAD,
self.StyleSetSpec(stc.STC_STYLE_BRACEBAD,
"fore:#FF0000,back:#FFFF88")
# Python styles
self.StyleSetSpec(stc.wxSTC_P_DEFAULT,
self.StyleSetSpec(stc.STC_P_DEFAULT,
"face:%(mono)s" % faces)
self.StyleSetSpec(stc.wxSTC_P_COMMENTLINE,
self.StyleSetSpec(stc.STC_P_COMMENTLINE,
"fore:#007F00,face:%(mono)s" % faces)
self.StyleSetSpec(stc.wxSTC_P_NUMBER,
self.StyleSetSpec(stc.STC_P_NUMBER,
"")
self.StyleSetSpec(stc.wxSTC_P_STRING,
self.StyleSetSpec(stc.STC_P_STRING,
"fore:#7F007F,face:%(mono)s" % faces)
self.StyleSetSpec(stc.wxSTC_P_CHARACTER,
self.StyleSetSpec(stc.STC_P_CHARACTER,
"fore:#7F007F,face:%(mono)s" % faces)
self.StyleSetSpec(stc.wxSTC_P_WORD,
self.StyleSetSpec(stc.STC_P_WORD,
"fore:#00007F,bold")
self.StyleSetSpec(stc.wxSTC_P_TRIPLE,
self.StyleSetSpec(stc.STC_P_TRIPLE,
"fore:#7F0000")
self.StyleSetSpec(stc.wxSTC_P_TRIPLEDOUBLE,
self.StyleSetSpec(stc.STC_P_TRIPLEDOUBLE,
"fore:#000033,back:#FFFFE8")
self.StyleSetSpec(stc.wxSTC_P_CLASSNAME,
self.StyleSetSpec(stc.STC_P_CLASSNAME,
"fore:#0000FF,bold")
self.StyleSetSpec(stc.wxSTC_P_DEFNAME,
self.StyleSetSpec(stc.STC_P_DEFNAME,
"fore:#007F7F,bold")
self.StyleSetSpec(stc.wxSTC_P_OPERATOR,
self.StyleSetSpec(stc.STC_P_OPERATOR,
"")
self.StyleSetSpec(stc.wxSTC_P_IDENTIFIER,
self.StyleSetSpec(stc.STC_P_IDENTIFIER,
"")
self.StyleSetSpec(stc.wxSTC_P_COMMENTBLOCK,
self.StyleSetSpec(stc.STC_P_COMMENTBLOCK,
"fore:#7F7F7F")
self.StyleSetSpec(stc.wxSTC_P_STRINGEOL,
self.StyleSetSpec(stc.STC_P_STRINGEOL,
"fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces)
def OnUpdateUI(self, event):
@@ -163,7 +163,7 @@ class EditWindow(stc.wxStyledTextCtrl):
# Check before.
if charBefore and chr(charBefore) in '[]{}()' \
and styleBefore == stc.wxSTC_P_OPERATOR:
and styleBefore == stc.STC_P_OPERATOR:
braceAtCaret = caretPos - 1
# Check after.
@@ -171,7 +171,7 @@ class EditWindow(stc.wxStyledTextCtrl):
charAfter = self.GetCharAt(caretPos)
styleAfter = self.GetStyleAt(caretPos)
if charAfter and chr(charAfter) in '[]{}()' \
and styleAfter == stc.wxSTC_P_OPERATOR:
and styleAfter == stc.STC_P_OPERATOR:
braceAtCaret = caretPos
if braceAtCaret >= 0:
@@ -182,14 +182,18 @@ class EditWindow(stc.wxStyledTextCtrl):
else:
self.BraceHighlight(braceAtCaret, braceOpposite)
def CanCut(self):
"""Return true if text is selected and can be cut."""
return self.CanCopy()
def CanCopy(self):
"""Return true if text is selected and can be copied."""
"""Return True if text is selected and can be copied."""
return self.GetSelectionStart() != self.GetSelectionEnd()
def CanCut(self):
"""Return True if text is selected and can be cut."""
return self.CanCopy() and self.CanEdit()
def CanEdit(self):
"""Return true if editing should succeed."""
return True
"""Return True if editing should succeed."""
return not self.GetReadOnly()
def CanPaste(self):
"""Return True if pasting should succeed."""
return stc.StyledTextCtrl.CanPaste(self) and self.CanEdit()

View File

@@ -1,11 +1,11 @@
"""PyCrust Filling is the gui tree control through which a user can
navigate the local namespace or any object."""
"""Filling is the gui tree control through which a user can navigate
the local namespace or any object."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
import dispatcher
import editwindow
@@ -34,24 +34,26 @@ DOCTYPES = ('BuiltinFunctionType', 'BuiltinMethodType', 'ClassType',
SIMPLETYPES = [getattr(types, t) for t in dir(types) \
if not t.startswith('_') and t not in DOCTYPES]
del t
try:
COMMONTYPES.append(type(''.__repr__)) # Method-wrapper in version 2.2.x.
except AttributeError:
pass
class FillingTree(wx.wxTreeCtrl):
"""PyCrust FillingTree based on wxTreeCtrl."""
class FillingTree(wx.TreeCtrl):
"""FillingTree based on TreeCtrl."""
name = 'PyCrust Filling Tree'
name = 'Filling Tree'
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxTR_DEFAULT_STYLE,
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.TR_DEFAULT_STYLE,
rootObject=None, rootLabel=None, rootIsNamespace=False,
static=False):
"""Create a PyCrust FillingTree instance."""
wx.wxTreeCtrl.__init__(self, parent, id, pos, size, style)
"""Create FillingTree instance."""
wx.TreeCtrl.__init__(self, parent, id, pos, size, style)
self.rootIsNamespace = rootIsNamespace
import __main__
if rootObject is None:
@@ -61,7 +63,7 @@ class FillingTree(wx.wxTreeCtrl):
rootLabel = 'locals()'
if not rootLabel:
rootLabel = 'Ingredients'
rootData = wx.wxTreeItemData(rootObject)
rootData = wx.TreeItemData(rootObject)
self.item = self.root = self.AddRoot(rootLabel, -1, -1, rootData)
self.SetItemHasChildren(self.root, self.objHasChildren(rootObject))
wx.EVT_TREE_ITEM_EXPANDING(self, self.GetId(), self.OnItemExpanding)
@@ -77,7 +79,7 @@ class FillingTree(wx.wxTreeCtrl):
def OnItemExpanding(self, event):
"""Add children to the item."""
busy = wx.wxBusyCursor()
busy = wx.BusyCursor()
item = event.GetItem()
if self.IsExpanded(item):
return
@@ -86,7 +88,7 @@ class FillingTree(wx.wxTreeCtrl):
def OnItemCollapsed(self, event):
"""Remove all children from the item."""
busy = wx.wxBusyCursor()
busy = wx.BusyCursor()
item = event.GetItem()
# self.CollapseAndReset(item)
# self.DeleteChildren(item)
@@ -94,7 +96,7 @@ class FillingTree(wx.wxTreeCtrl):
def OnSelChanged(self, event):
"""Display information about the item."""
busy = wx.wxBusyCursor()
busy = wx.BusyCursor()
self.item = event.GetItem()
self.display()
@@ -116,7 +118,7 @@ class FillingTree(wx.wxTreeCtrl):
def objGetChildren(self, obj):
"""Return dictionary with attributes or contents of object."""
busy = wx.wxBusyCursor()
busy = wx.BusyCursor()
otype = type(obj)
if otype is types.DictType \
or str(otype)[17:23] == 'BTrees' and hasattr(obj, 'keys'):
@@ -144,7 +146,7 @@ class FillingTree(wx.wxTreeCtrl):
if not children:
return
keys = children.keys()
keys.sort(lambda x, y: cmp(x.lower(), y.lower()))
keys.sort(lambda x, y: cmp(str(x).lower(), str(y).lower()))
for key in keys:
itemtext = str(key)
# Show string dictionary items with single quotes, except
@@ -156,7 +158,7 @@ class FillingTree(wx.wxTreeCtrl):
or (item == self.root and not self.rootIsNamespace)):
itemtext = repr(key)
child = children[key]
data = wx.wxTreeItemData(child)
data = wx.TreeItemData(child)
branch = self.AppendItem(parent=item, text=itemtext, data=data)
self.SetItemHasChildren(branch, self.objHasChildren(child))
@@ -166,7 +168,7 @@ class FillingTree(wx.wxTreeCtrl):
self.addChildren(item)
self.setText('')
obj = self.GetPyData(item)
if wx.wxPlatform == '__WXMSW__':
if wx.Platform == '__WXMSW__':
if obj is None: # Windows bug fix.
return
self.SetItemHasChildren(item, self.objHasChildren(obj))
@@ -248,13 +250,13 @@ class FillingTree(wx.wxTreeCtrl):
class FillingText(editwindow.EditWindow):
"""FillingText based on StyledTextCtrl."""
name = 'PyFilling Text'
name = 'Filling Text'
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN,
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.CLIP_CHILDREN,
static=False):
"""Create a FillingText instance."""
"""Create FillingText instance."""
editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
# Configure various defaults and user preferences.
self.SetReadOnly(True)
@@ -273,18 +275,18 @@ class FillingText(editwindow.EditWindow):
self.SetReadOnly(True)
class Filling(wx.wxSplitterWindow):
class Filling(wx.SplitterWindow):
"""Filling based on wxSplitterWindow."""
name = 'PyFilling'
name = 'Filling'
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxSP_3D,
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.SP_3D,
name='Filling Window', rootObject=None,
rootLabel=None, rootIsNamespace=False, static=False):
"""Create a Filling instance."""
wx.wxSplitterWindow.__init__(self, parent, id, pos, size, style, name)
wx.SplitterWindow.__init__(self, parent, id, pos, size, style, name)
self.tree = FillingTree(parent=self, rootObject=rootObject,
rootLabel=rootLabel,
rootIsNamespace=rootIsNamespace,
@@ -299,23 +301,23 @@ class Filling(wx.wxSplitterWindow):
self.tree.display()
class FillingFrame(wx.wxFrame):
class FillingFrame(wx.Frame):
"""Frame containing the namespace tree component."""
name = 'PyFilling Frame'
name = 'Filling Frame'
revision = __revision__
def __init__(self, parent=None, id=-1, title='PyFilling',
pos=wx.wxDefaultPosition, size=(600, 400),
style=wx.wxDEFAULT_FRAME_STYLE, rootObject=None,
pos=wx.DefaultPosition, size=(600, 400),
style=wx.DEFAULT_FRAME_STYLE, rootObject=None,
rootLabel=None, rootIsNamespace=False, static=False):
"""Create a FillingFrame instance."""
wx.wxFrame.__init__(self, parent, id, title, pos, size, style)
"""Create FillingFrame instance."""
wx.Frame.__init__(self, parent, id, title, pos, size, style)
intro = 'PyFilling - The Tastiest Namespace Inspector'
self.CreateStatusBar()
self.SetStatusText(intro)
import images
self.SetIcon(images.getPyCrustIcon())
self.SetIcon(images.getPyIcon())
self.filling = Filling(parent=self, rootObject=rootObject,
rootLabel=rootLabel,
rootIsNamespace=rootIsNamespace,
@@ -324,11 +326,11 @@ class FillingFrame(wx.wxFrame):
self.filling.tree.setStatusText = self.SetStatusText
class App(wx.wxApp):
class App(wx.App):
"""PyFilling standalone application."""
def OnInit(self):
wx.wxInitAllImageHandlers()
wx.InitAllImageHandlers()
self.fillingFrame = FillingFrame()
self.fillingFrame.Show(True)
self.SetTopWindow(self.fillingFrame)

View File

@@ -4,7 +4,7 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx
from version import VERSION
try:
@@ -13,49 +13,49 @@ except NameError:
True = 1==1
False = 1==0
ID_NEW = wx.wxID_NEW
ID_OPEN = wx.wxID_OPEN
ID_REVERT = wx.wxID_REVERT
ID_CLOSE = wx.wxID_CLOSE
ID_SAVE = wx.wxID_SAVE
ID_SAVEAS = wx.wxID_SAVEAS
ID_PRINT = wx.wxID_PRINT
ID_EXIT = wx.wxID_EXIT
ID_UNDO = wx.wxID_UNDO
ID_REDO = wx.wxID_REDO
ID_CUT = wx.wxID_CUT
ID_COPY = wx.wxID_COPY
ID_PASTE = wx.wxID_PASTE
ID_CLEAR = wx.wxID_CLEAR
ID_SELECTALL = wx.wxID_SELECTALL
ID_ABOUT = wx.wxID_ABOUT
ID_AUTOCOMP = wx.wxNewId()
ID_AUTOCOMP_SHOW = wx.wxNewId()
ID_AUTOCOMP_MAGIC = wx.wxNewId()
ID_AUTOCOMP_SINGLE = wx.wxNewId()
ID_AUTOCOMP_DOUBLE = wx.wxNewId()
ID_CALLTIPS = wx.wxNewId()
ID_CALLTIPS_SHOW = wx.wxNewId()
ID_COPY_PLUS = wx.wxNewId()
ID_NAMESPACE = wx.wxNewId()
ID_PASTE_PLUS = wx.wxNewId()
ID_WRAP = wx.wxNewId()
ID_NEW = wx.ID_NEW
ID_OPEN = wx.ID_OPEN
ID_REVERT = wx.ID_REVERT
ID_CLOSE = wx.ID_CLOSE
ID_SAVE = wx.ID_SAVE
ID_SAVEAS = wx.ID_SAVEAS
ID_PRINT = wx.ID_PRINT
ID_EXIT = wx.ID_EXIT
ID_UNDO = wx.ID_UNDO
ID_REDO = wx.ID_REDO
ID_CUT = wx.ID_CUT
ID_COPY = wx.ID_COPY
ID_PASTE = wx.ID_PASTE
ID_CLEAR = wx.ID_CLEAR
ID_SELECTALL = wx.ID_SELECTALL
ID_ABOUT = wx.ID_ABOUT
ID_AUTOCOMP = wx.NewId()
ID_AUTOCOMP_SHOW = wx.NewId()
ID_AUTOCOMP_MAGIC = wx.NewId()
ID_AUTOCOMP_SINGLE = wx.NewId()
ID_AUTOCOMP_DOUBLE = wx.NewId()
ID_CALLTIPS = wx.NewId()
ID_CALLTIPS_SHOW = wx.NewId()
ID_COPY_PLUS = wx.NewId()
ID_NAMESPACE = wx.NewId()
ID_PASTE_PLUS = wx.NewId()
ID_WRAP = wx.NewId()
class Frame(wx.wxFrame):
class Frame(wx.Frame):
"""Frame with standard menu items."""
revision = __revision__
def __init__(self, parent=None, id=-1, title='Editor',
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize,
style=wx.wxDEFAULT_FRAME_STYLE):
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE):
"""Create a Frame instance."""
wx.wxFrame.__init__(self, parent, id, title, pos, size, style)
wx.Frame.__init__(self, parent, id, title, pos, size, style)
self.CreateStatusBar()
self.SetStatusText('Frame')
import images
self.SetIcon(images.getPyCrustIcon())
self.SetIcon(images.getPyIcon())
self.__createMenus()
wx.EVT_CLOSE(self, self.OnClose)
@@ -64,7 +64,7 @@ class Frame(wx.wxFrame):
self.Destroy()
def __createMenus(self):
m = self.fileMenu = wx.wxMenu()
m = self.fileMenu = wx.Menu()
m.Append(ID_NEW, '&New \tCtrl+N',
'New file')
m.Append(ID_OPEN, '&Open... \tCtrl+O',
@@ -88,7 +88,7 @@ class Frame(wx.wxFrame):
m.AppendSeparator()
m.Append(ID_EXIT, 'E&xit', 'Exit Program')
m = self.editMenu = wx.wxMenu()
m = self.editMenu = wx.Menu()
m.Append(ID_UNDO, '&Undo \tCtrl+Z',
'Undo the last action')
m.Append(ID_REDO, '&Redo \tCtrl+Y',
@@ -109,7 +109,7 @@ class Frame(wx.wxFrame):
m.Append(ID_SELECTALL, 'Select A&ll \tCtrl+A',
'Select all text')
m = self.autocompMenu = wx.wxMenu()
m = self.autocompMenu = wx.Menu()
m.Append(ID_AUTOCOMP_SHOW, 'Show Auto Completion',
'Show auto completion list', 1)
m.Append(ID_AUTOCOMP_MAGIC, 'Include Magic Attributes',
@@ -120,11 +120,11 @@ class Frame(wx.wxFrame):
m.Append(ID_AUTOCOMP_DOUBLE, 'Include Double Underscores',
'Include attibutes prefixed by a double underscore', 1)
m = self.calltipsMenu = wx.wxMenu()
m = self.calltipsMenu = wx.Menu()
m.Append(ID_CALLTIPS_SHOW, 'Show Call Tips',
'Show call tips with argument signature and docstring', 1)
m = self.optionsMenu = wx.wxMenu()
m = self.optionsMenu = wx.Menu()
m.AppendMenu(ID_AUTOCOMP, '&Auto Completion', self.autocompMenu,
'Auto Completion Options')
m.AppendMenu(ID_CALLTIPS, '&Call Tips', self.calltipsMenu,
@@ -132,11 +132,11 @@ class Frame(wx.wxFrame):
m.Append(ID_WRAP, '&Wrap Lines',
'Wrap lines at right edge', 1)
m = self.helpMenu = wx.wxMenu()
m = self.helpMenu = wx.Menu()
m.AppendSeparator()
m.Append(ID_ABOUT, '&About...', 'About this program')
b = self.menuBar = wx.wxMenuBar()
b = self.menuBar = wx.MenuBar()
b.Append(self.fileMenu, '&File')
b.Append(self.editMenu, '&Edit')
b.Append(self.optionsMenu, '&Options')
@@ -221,77 +221,77 @@ class Frame(wx.wxFrame):
self.Close(False)
def OnUndo(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Undo()
def OnRedo(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Redo()
def OnCut(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Cut()
def OnCopy(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Copy()
def OnCopyPlus(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.CopyWithPrompts()
def OnPaste(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Paste()
def OnPastePlus(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.PasteAndRun()
def OnClear(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.Clear()
def OnSelectAll(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.SelectAll()
def OnAbout(self, event):
"""Display an About window."""
title = 'About'
text = 'Your message here.'
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()
def OnAutoCompleteShow(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.autoComplete = event.IsChecked()
def OnAutoCompleteMagic(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.autoCompleteIncludeMagic = event.IsChecked()
def OnAutoCompleteSingle(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.autoCompleteIncludeSingle = event.IsChecked()
def OnAutoCompleteDouble(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.autoCompleteIncludeDouble = event.IsChecked()
def OnCallTipsShow(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.autoCallTip = event.IsChecked()
def OnWrap(self, event):
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
win.SetWrapMode(event.IsChecked())
def OnUpdateMenu(self, event):
"""Update menu items based on current status and context."""
win = wx.wxWindow_FindFocus()
win = wx.Window_FindFocus()
id = event.GetId()
event.Enable(True)
try:
@@ -300,17 +300,23 @@ class Frame(wx.wxFrame):
elif id == ID_OPEN:
event.Enable(hasattr(self, 'bufferOpen'))
elif id == ID_REVERT:
event.Enable(hasattr(self, 'bufferRevert') and self.hasBuffer())
event.Enable(hasattr(self, 'bufferRevert')
and self.hasBuffer())
elif id == ID_CLOSE:
event.Enable(hasattr(self, 'bufferClose') and self.hasBuffer())
event.Enable(hasattr(self, 'bufferClose')
and self.hasBuffer())
elif id == ID_SAVE:
event.Enable(hasattr(self, 'bufferSave') and self.bufferHasChanged())
event.Enable(hasattr(self, 'bufferSave')
and self.bufferHasChanged())
elif id == ID_SAVEAS:
event.Enable(hasattr(self, 'bufferSaveAs') and self.hasBuffer())
event.Enable(hasattr(self, 'bufferSaveAs')
and self.hasBuffer())
elif id == ID_NAMESPACE:
event.Enable(hasattr(self, 'updateNamespace') and self.hasBuffer())
event.Enable(hasattr(self, 'updateNamespace')
and self.hasBuffer())
elif id == ID_PRINT:
event.Enable(hasattr(self, 'bufferPrint') and self.hasBuffer())
event.Enable(hasattr(self, 'bufferPrint')
and self.hasBuffer())
elif id == ID_UNDO:
event.Enable(win.CanUndo())
elif id == ID_REDO:

View File

@@ -1,12 +1,26 @@
#----------------------------------------------------------------------
# This file was generated by ../scripts/img2py
#
from wxPython.wx import wxImageFromStream, wxBitmapFromImage
from wxPython.wx import wxEmptyIcon
"""Support for icons."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import wx
import cStringIO
def getPyCrustData():
def getPyIcon():
icon = wx.EmptyIcon()
icon.CopyFromBitmap(getPyBitmap())
return icon
def getPyBitmap():
return wx.BitmapFromImage(getPyImage())
def getPyImage():
stream = cStringIO.StringIO(getPyData())
return wx.ImageFromStream(stream)
def getPyData():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\
\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x04\
@@ -56,16 +70,3 @@ N\xba\xb3\xab\x87\xfb\x8f\x97\xd8\xd9\xd5\x03\xc0\xfd\xc7K\xec\xd8\xd6\xdd\
\x8f\xdb\xbel\x8e\xa1S\xc7\xda\xc6\xe6\xee\xccs\xe9\xdcYnV\x95\xd8\xf2?&q+\
\x9c\x1b1\xf3\xbf\xcd3{\xfdJ\xdb\xf8\xde\xfd\x19.\\\xad\x08\x80\xbf\x01\xd1\
\x86\xfa\x8b\xc7\xc0\xc8\xb7\x00\x00\x00\x00IEND\xaeB`\x82'
def getPyCrustBitmap():
return wxBitmapFromImage(getPyCrustImage())
def getPyCrustImage():
stream = cStringIO.StringIO(getPyCrustData())
return wxImageFromStream(stream)
def getPyCrustIcon():
icon = wxEmptyIcon()
icon.CopyFromBitmap(getPyCrustBitmap())
return icon

View File

@@ -1,4 +1,4 @@
"""PyCrust Interpreter executes Python commands."""
"""Interpreter executes Python commands."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
@@ -18,7 +18,7 @@ except NameError:
class Interpreter(InteractiveInterpreter):
"""PyCrust Interpreter based on code.InteractiveInterpreter."""
"""Interpreter based on code.InteractiveInterpreter."""
revision = __revision__
@@ -112,7 +112,7 @@ class Interpreter(InteractiveInterpreter):
class InterpreterAlaCarte(Interpreter):
"""PyCrustAlaCarte Demo Interpreter."""
"""Demo Interpreter."""
def __init__(self, locals, rawin, stdin, stdout, stderr,
ps1='main prompt', ps2='continuation prompt'):

View File

@@ -174,7 +174,10 @@ def getCallTip(command='', locals=None):
tip1 = name + argspec
doc = ''
if callable(object):
doc = inspect.getdoc(object)
try:
doc = inspect.getdoc(object)
except:
pass
if doc:
# tip2 is the first separated line of the docstring, like:
# "Return call tip text for a command."

View File

@@ -1,8 +1,6 @@
"""The PyCrust Shell is an interactive text control in which a user
types in commands to be sent to the interpreter. This particular shell
is based on wxPython's wxStyledTextCtrl. The latest files are always
available at the SourceForge project page at
http://sourceforge.net/projects/pycrust/.
"""Shell is an interactive text control in which a user types in
commands to be sent to the interpreter. This particular shell is
based on wxPython's wxStyledTextCtrl.
Sponsored by Orbtech - Your source for Python programming expertise."""
@@ -13,6 +11,8 @@ __revision__ = "$Revision$"[11:-2]
from wxd.d_wx import wx
from wxd.d_stc import stc
import wx
import keyword
import os
import sys
@@ -40,18 +40,18 @@ NAVKEYS = (wx.WXK_END, wx.WXK_LEFT, wx.WXK_RIGHT,
class ShellFrame(frame.Frame):
"""Frame containing the PyCrust shell component."""
"""Frame containing the shell component."""
name = 'PyCrust Shell Frame'
name = 'Shell Frame'
revision = __revision__
def __init__(self, parent=None, id=-1, title='PyShell',
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize,
style=wx.wxDEFAULT_FRAME_STYLE, locals=None,
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE, locals=None,
InterpClass=None, *args, **kwds):
"""Create a PyCrust ShellFrame instance."""
"""Create ShellFrame instance."""
frame.Frame.__init__(self, parent, id, title, pos, size, style)
intro = 'PyCrust %s - The Flakiest Python Shell' % VERSION
intro = 'PyShell %s - The Flakiest Python Shell' % VERSION
intro += '\nSponsored by Orbtech - ' + \
'Your source for Python programming expertise.'
self.SetStatusText(intro.replace('\n', ', '))
@@ -81,10 +81,10 @@ class ShellFrame(frame.Frame):
'Shell Revision: %s\n' % self.shell.revision + \
'Interpreter Revision: %s\n\n' % self.shell.interp.revision + \
'Python Version: %s\n' % sys.version.split()[0] + \
'wxPython Version: %s\n' % wx.__version__ + \
'wxPython Version: %s\n' % wx.VERSION_STRING + \
'Platform: %s\n' % sys.platform
dialog = wx.wxMessageDialog(self, text, title,
wx.wxOK | wx.wxICON_INFORMATION)
dialog = wx.MessageDialog(self, text, title,
wx.OK | wx.ICON_INFORMATION)
dialog.ShowModal()
dialog.Destroy()
@@ -95,7 +95,7 @@ class ShellFacade:
This is a semi-transparent facade, in that all attributes of other
are accessible, even though only some are visible to the user."""
name = 'PyCrust Shell Interface'
name = 'Shell Interface'
revision = __revision__
def __init__(self, other):
@@ -174,15 +174,15 @@ Ctrl+= Default font size.
class Shell(editwindow.EditWindow):
"""PyCrust Shell based on StyledTextCtrl."""
"""Shell based on StyledTextCtrl."""
name = 'PyCrust Shell'
name = 'Shell'
revision = __revision__
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN,
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.CLIP_CHILDREN,
introText='', locals=None, InterpClass=None, *args, **kwds):
"""Create a PyCrust Shell instance."""
"""Create Shell instance."""
editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
self.wrap()
if locals is None:
@@ -240,7 +240,7 @@ class Shell(editwindow.EditWindow):
# Do this last so the user has complete control over their
# environment. They can override anything they want.
self.execStartupScript(self.interp.startupScript)
wx.wxCallAfter(self.ScrollToLine, 0)
wx.CallAfter(self.ScrollToLine, 0)
def destroy(self):
del self.interp
@@ -299,17 +299,17 @@ class Shell(editwindow.EditWindow):
self.push('')
def about(self):
"""Display information about PyCrust."""
"""Display information about Py."""
text = """
Author: %r
PyCrust Version: %s
Shell Revision: %s
Interpreter Revision: %s
Py Version: %s
Py Shell Revision: %s
Py Interpreter Revision: %s
Python Version: %s
wxPython Version: %s
Platform: %s""" % \
(__author__, VERSION, self.revision, self.interp.revision,
sys.version.split()[0], wx.__version__, sys.platform)
sys.version.split()[0], wx.VERSION_STRING, sys.platform)
self.write(text.strip())
def OnChar(self, event):
@@ -673,7 +673,7 @@ Platform: %s""" % \
def push(self, command):
"""Send command to the interpreter for execution."""
self.write(os.linesep)
busy = wx.wxBusyCursor()
busy = wx.BusyCursor()
self.waiting = True
self.more = self.interp.push(command)
self.waiting = False
@@ -751,7 +751,7 @@ Platform: %s""" % \
self.prompt()
try:
while not reader.input:
wx.wxYieldIfNeeded()
wx.YieldIfNeeded()
input = reader.input
finally:
reader.input = ''
@@ -774,10 +774,10 @@ Platform: %s""" % \
def ask(self, prompt='Please enter your response:'):
"""Get response from the user using a dialog box."""
dialog = wx.wxTextEntryDialog(None, prompt,
'Input Dialog (Raw)', '')
dialog = wx.TextEntryDialog(None, prompt,
'Input Dialog (Raw)', '')
try:
if dialog.ShowModal() == wx.wxID_OK:
if dialog.ShowModal() == wx.ID_OK:
text = dialog.GetValue()
return text
finally:
@@ -931,14 +931,14 @@ Platform: %s""" % \
command = command.replace(os.linesep + ps2, os.linesep)
command = command.replace(os.linesep + ps1, os.linesep)
command = self.lstripPrompt(text=command)
data = wx.wxTextDataObject(command)
data = wx.TextDataObject(command)
self._clip(data)
def CopyWithPrompts(self):
"""Copy selection, including prompts, and place it on the clipboard."""
if self.CanCopy():
command = self.GetSelectedText()
data = wx.wxTextDataObject(command)
data = wx.TextDataObject(command)
self._clip(data)
def CopyWithPromptsPrefixed(self):
@@ -949,23 +949,23 @@ Platform: %s""" % \
spaces = ' ' * 4
command = spaces + command.replace(os.linesep,
os.linesep + spaces)
data = wx.wxTextDataObject(command)
data = wx.TextDataObject(command)
self._clip(data)
def _clip(self, data):
if wx.wxTheClipboard.Open():
wx.wxTheClipboard.UsePrimarySelection(False)
wx.wxTheClipboard.SetData(data)
wx.wxTheClipboard.Flush()
wx.wxTheClipboard.Close()
if wx.TheClipboard.Open():
wx.TheClipboard.UsePrimarySelection(False)
wx.TheClipboard.SetData(data)
wx.TheClipboard.Flush()
wx.TheClipboard.Close()
def Paste(self):
"""Replace selection with clipboard contents."""
if self.CanPaste() and wx.wxTheClipboard.Open():
if self.CanPaste() and wx.TheClipboard.Open():
ps2 = str(sys.ps2)
if wx.wxTheClipboard.IsSupported(wx.wxDataFormat(wx.wxDF_TEXT)):
data = wx.wxTextDataObject()
if wx.wxTheClipboard.GetData(data):
if wx.TheClipboard.IsSupported(wx.DataFormat(wx.DF_TEXT)):
data = wx.TextDataObject()
if wx.TheClipboard.GetData(data):
self.ReplaceSelection('')
command = data.GetText()
command = command.rstrip()
@@ -975,16 +975,16 @@ Platform: %s""" % \
command = command.replace(os.linesep, '\n')
command = command.replace('\n', os.linesep + ps2)
self.write(command)
wx.wxTheClipboard.Close()
wx.TheClipboard.Close()
def PasteAndRun(self):
"""Replace selection with clipboard contents, run commands."""
if wx.wxTheClipboard.Open():
if wx.TheClipboard.Open():
ps1 = str(sys.ps1)
ps2 = str(sys.ps2)
if wx.wxTheClipboard.IsSupported(wx.wxDataFormat(wx.wxDF_TEXT)):
data = wx.wxTextDataObject()
if wx.wxTheClipboard.GetData(data):
if wx.TheClipboard.IsSupported(wx.DataFormat(wx.DF_TEXT)):
data = wx.TextDataObject()
if wx.TheClipboard.GetData(data):
endpos = self.GetTextLength()
self.SetCurrentPos(endpos)
startpos = self.promptPosEnd
@@ -1022,14 +1022,14 @@ Platform: %s""" % \
command = command.replace('\n', os.linesep + ps2)
self.write(command)
self.processLine()
wx.wxTheClipboard.Close()
wx.TheClipboard.Close()
def wrap(self, wrap=True):
"""Sets whether text is word wrapped."""
try:
self.SetWrapMode(wrap)
except AttributeError:
return 'Wrapping is not available in this version of PyCrust.'
return 'Wrapping is not available in this version.'
def zoom(self, points=0):
"""Set the zoom level.

View File

@@ -1,11 +1,9 @@
"""Provides an object representing the current 'version' or 'release'
of PyCrust as a whole. Individual classes, such as the shell, filling
and interpreter, each have a revision property based on the CVS
Revision."""
of Py as a whole. Individual classes, such as the shell, filling and
interpreter, each have a revision property based on the CVS Revision."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
VERSION = '0.9.1'
VERSION = '0.9.3'

View File

@@ -503,6 +503,19 @@ class GenericDirCtrl(Control):
pass
class DirFilterListCtrl(Choice):
""""""
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0):
""""""
pass
def FillFilterList(filter, defaultFilter):
""""""
pass
class ListBox(ControlWithItems):
""""""

View File

@@ -788,7 +788,14 @@ def EVT_WINDOW_CREATE(win, func):
""""""
pass
def EVT_WINDOW_CREATE_ID(win, id, func):
""""""
pass
def EVT_WINDOW_DESTROY(win, func):
""""""
pass
def EVT_WINDOW_DESTROY_ID(win, id, func):
""""""
pass

View File

@@ -0,0 +1,133 @@
"""API generator for decorator classes.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import inspect
import os
import sys
import types
header = '''\
"""wxPython decorator classes.
This file is automatically generated, and these are not the real
wxPython classes. These are Python versions for API documentation
purposes only.
Please send corrections, questions, and suggestions to:
Patrick K. O'Brien <pobrien@orbtech.com>
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
from wxd import Parameters as wx
try:
True
except NameError:
True = 1==1
False = 1==0
'''
modlist = [
'Base',
'Window',
'Frames',
'Accelerators',
'App',
'ClipDragDrop',
'Config',
'Controls',
'DataStructures',
'DateTime',
'Dialogs',
'Drawing',
'Errors',
'EventFunctions',
'Events',
'FileSystem',
'Functions',
'Help',
'ImageHandlers',
'Joystick',
'LayoutConstraints',
'Logging',
'Menus',
'MimeTypes',
'Misc',
'Panel',
'Printing',
'Process',
'SashSplitter',
'Sizers',
'Streams',
'Threading',
'ToolBar',
'Tree',
'Validators',
]
dir = os.path.realpath('api/wx/')
filename = os.path.join(dir, '__init__.py')
def main():
modules = {}
f = file(filename, 'w')
f.write(header)
for modname in modlist:
modules[modname] = __import__(modname, globals())
for modname in modlist:
module = modules[modname]
try:
source = inspect.getsource(module)
except IOError:
print 'No source for', module
else:
# Remove everything up to the first class or function definition.
splitter = '\n\nclass '
parts = source.split(splitter, 1)
if len(parts) == 2:
source = splitter + parts[1]
else:
splitter = '\n\ndef '
parts = source.split(splitter, 1)
if len(parts) == 2:
source = splitter + parts[1]
source = '\n\n\n' + source.strip()
f.write(source)
print 'Writing', modname
f.write('\n')
f.close()
# Add constants and any other missing stuff.
f = file(filename, 'a')
f.write('\n\n## Other Stuff:\n\n')
import wx as old
old = old.__dict__
sys.path.insert(0, dir) # Munge the sys.path so that we can
import __init__ # import the file we just created.
new = __init__.__dict__
l = [(k, v) for (k, v) in old.items() if (not k.startswith('_')
and not k.endswith('Ptr')
and not (k == 'cvar'))]
l.sort()
from wxPython import wx
for key, value in l:
if key not in new:
if (inspect.isclass(value)
or inspect.isroutine(value)
or type(value) is types.InstanceType):
value = repr(value)
text = '%s = %r' % (key, value)
f.write(text + '\n')
print 'Writing', text
f.close()
if __name__ == '__main__':
main()