Compare commits

..

1299 Commits

Author SHA1 Message Date
Bryan Petty
5599379cc6 This commit was manufactured by cvs2svn to create tag 'TOKENZR_ORIG'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/TOKENZR_ORIG@2882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 17:13:12 +00:00
Guilhem Lavaux
44d6d19123 * Bug fixed in CountTokens()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 17:13:12 +00:00
Robert Roebling
4080c40a71 wxProgressDialg works again.
Did I do "update" in testconf?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 16:17:16 +00:00
Karsten Ballüder
4abcafeaa3 minor update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 15:34:38 +00:00
Robert Roebling
96f201da8b wxMotif compiles and links now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 15:25:23 +00:00
Karsten Ballüder
03e172339c improved dialog size which created the listbox a bit too small
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 14:31:49 +00:00
Vadim Zeitlin
834362a2e4 dlg navigation keys work even when combobox has focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 12:51:20 +00:00
Karsten Ballüder
d728dd40e8 Minor improvement to keyevent handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 12:49:01 +00:00
Vadim Zeitlin
c0b042fce9 in-place editing code from Michael Bedward integrated (with my docs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 11:26:19 +00:00
Robert Roebling
da175b2ce4 Motif compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 10:03:44 +00:00
Robin Dunn
2d9f55970b Updates to the wxPython distribution builders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-23 05:28:10 +00:00
Vadim Zeitlin
f96b60aa86 wxHTMLHelpController compiles (and somewhat works) under Windows, added a
(compile-time) option to the sample to always use HTML help, even under MSW.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 21:20:48 +00:00
Vadim Zeitlin
2506aab63c an assert added to check that we're not doing something stupid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 21:18:31 +00:00
Robert Roebling
a622c15240 A bit of distribution/makefiles things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 18:51:25 +00:00
Robin Dunn
16694769ec wxPython 2.1b1: More more set of generated sources...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 18:01:12 +00:00
Robin Dunn
d24a34bb5d wxPython 2.1b1: Very minor changes needed for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 17:45:34 +00:00
Robin Dunn
76784eecd9 Now uses proper wxUSE_xxx flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 17:39:02 +00:00
Robin Dunn
714d718eff updated ignores
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 16:08:59 +00:00
Robin Dunn
34e5bea573 typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 16:08:43 +00:00
Robin Dunn
5662a243c7 Finished a sample I forgot to do before...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 15:46:03 +00:00
Karsten Ballüder
64a9d1f9c3 Significantly improved thanks to vi.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 15:31:46 +00:00
Vadim Zeitlin
bd1e9c12b1 just to resolve a dummy conflict
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 11:51:07 +00:00
Robert Roebling
8bedcdce08 Makefiles without dependencies
Compile fixes...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 10:45:56 +00:00
Robert Roebling
2df7be7f2c Some #include and #if wxUSE_XX things
Shut up notification in wxTextCtrl
  Made things compile again...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 08:36:29 +00:00
Robin Dunn
bb0054cda8 wxPython 2.1b1 for wxMSW (wxGTK coming soon)
Lots of changes, see the README.txt for details...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 07:03:29 +00:00
Robin Dunn
2233e5b82c wxPython documentation updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-22 06:53:24 +00:00
Robert Roebling
d75638f85f Motif compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 21:37:49 +00:00
Vadim Zeitlin
7f24bd194b wxStaticBitmap::GetIcon() added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 21:29:40 +00:00
Karsten Ballüder
0f90ec9365 Crude hack to enable PageUp/DownKeys when controlbar is enabled.
Needs improvement, but better than no keyboard support at all.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 21:00:36 +00:00
Karsten Ballüder
a2c5528a9e print overlap gone, mouse/cursor handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 20:58:26 +00:00
Robin Dunn
d3a9f4afd9 Fixed core dump for when there is no image list on the TreeCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 20:53:15 +00:00
Robert Roebling
bea74fbbeb New Makefile.ins, updates for the Motif build, removed
typos from configure, etc.
  Corrected typo in wxGTK's window.cpp related to [not] sending
    char events when Alt is pressed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 20:04:13 +00:00
Vadim Zeitlin
917b3d40f2 msg boxes now have icons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 17:41:05 +00:00
Karsten Ballüder
ffdaed2fc3 fixes to progressdialog and its use in printing framework
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 14:11:45 +00:00
Karsten Ballüder
ab31bbc2ad merged in from Mahogany
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 14:11:23 +00:00
Robert Roebling
d7657f7562 Disabled dependencies for a while
Added Motif Makefile.in
  wxPostScriptDC now uses fprintf() instead of <<


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 11:27:53 +00:00
Karsten Ballüder
3959bace92 cursor reflects focus change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 11:17:16 +00:00
Karsten Ballüder
7a120a8385 Merged in latest changes from Mahogany. Untested.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-21 10:59:05 +00:00
Vadim Zeitlin
57c0af52bf buttons now become default when they have focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 22:07:49 +00:00
Vadim Zeitlin
319fefa910 keyboard/focus handling improved a bit more:
1. wxFrame doesn't give focus to anything at all on activation
2. last control restored more often (some problems still persist)
3. buttons process enter
4. text controls with wxTE_PROCESS_TAB still leave TAB work as dialog
   navigation key if the event wasn't processed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:51:15 +00:00
Vadim Zeitlin
7c54578678 better update rect calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:34:39 +00:00
Vadim Zeitlin
051205e611 compile warnings removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:34:04 +00:00
Vadim Zeitlin
e8225073c5 bug which could result in trying to show the caret when we didn't have focus fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:33:41 +00:00
Vadim Zeitlin
27db7200b1 link problem in release build fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:32:44 +00:00
Vadim Zeitlin
a4f964122d better wxGetUserId/Name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:32:26 +00:00
Vadim Zeitlin
a8731351d8 splitter doesn't change position when the window containing it is minimized and restored
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 21:32:00 +00:00
Ove Kaaven
049426fc80 ...fixing up a previous Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 06:06:55 +00:00
Ove Kaaven
0b6cf8797e OK, maybe not done yet, have to fix Unicode compilation one more place...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-20 06:03:35 +00:00
Ove Kaaven
1fd8a4504d Unicode fixes. Appears that this may be the last before wxMSW will link
in Unicode mode.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 19:48:26 +00:00
Ove Kaaven
73c022c90a Unicode fix, it seems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 09:23:49 +00:00
Ove Kaaven
6c00e46fa8 Because someone was inconsistent about using LPSTR and char*, I missed
the other Unicode problem the first time around...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 08:44:05 +00:00
Robert Roebling
c17bcb8448 Remaining Makefile.ins,
Changed cp flags for "apply",
  Added linestyle test
  char -> wxChar in wxStringTokenizer


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 08:29:21 +00:00
Ove Kaaven
d9a451ce33 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 08:12:26 +00:00
Ove Kaaven
a5e0b1e83d wxStrncmp implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 04:32:35 +00:00
Vadim Zeitlin
101f488cf5 text controls respect wxTE_PROCESS_ENTER/TAB styles again, WM_GETDLGCODE
handling is generally better


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-19 00:08:58 +00:00
Vadim Zeitlin
d220ae3237 1. uninitialized variable in wxPanel fixed and unused one removed from wxWindow
2. wxTreeCtrl sends more notification messages


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-18 18:04:32 +00:00
Vadim Zeitlin
1e3698e55d standard icons for msg boxes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-18 17:56:51 +00:00
Karsten Ballüder
dafc583198 replaced a wrong assert with an if
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-18 17:38:19 +00:00
Robert Roebling
f6577bba75 Made things compile again (two pizzas).
Made timer reentry safe, I think.
  Added CVS build info.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-18 14:18:47 +00:00
Vadim Zeitlin
a2f935bd4e --foreign switch to automake added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-18 12:55:06 +00:00
Vadim Zeitlin
4005cc780c fixes to work in M
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 21:40:49 +00:00
Vadim Zeitlin
edccf4281b 1. wxDialogs are now destroyed when they go out of scope
2. [GS]etDefaultItem() are now in wxPanel, not wxWindow
3. better checking for g_isPainting - hopefully no more false asserts
4. wxListCtrl not recreated any more when view changes, this corrects
   the bug with selection not working after view mode change
5. wxListCtrl now generates wxEVT_ITEM_ACTIVATED event
6. you can now press/toggle a button with a space
7. couple of other minor fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 21:21:52 +00:00
Robert Roebling
f7bdcdd70d Made the RTTI thing an option.
Added submenus to controls sample.
  Failed at producing tear-off menus.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 19:46:17 +00:00
Karsten Ballüder
076d2575bc Fixed the ugly cursor. global cursor no longer initialised, broken code in
window.cpp fixed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 17:01:53 +00:00
Karsten Ballüder
73864f4018 "wx/xxx.h" --> <wx/xxx.h>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 16:29:17 +00:00
Karsten Ballüder
79570d64d3 Changed default cursor to be an arrow rather than the ugly X.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 16:16:53 +00:00
Karsten Ballüder
0f5f43ac05 Fixed fatal typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 14:58:36 +00:00
Karsten Ballüder
69f481a682 Modified to always prefix CPPFLAGS with local include/wx path, so that user
environment settings can no longer interfere with build.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 14:49:25 +00:00
Karsten Ballüder
a362e3aa30 Uses new wxMenu(long style) constructor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 14:14:38 +00:00
Karsten Ballüder
ae53c98c9f Implemented tearoff menus, please see my posting to wxwin-developers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 14:08:00 +00:00
Julian Smart
28d52eed36 Added some #defines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 12:07:57 +00:00
Robert Roebling
c11584af00 Tried a test for the RTTI options of GCC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 11:12:57 +00:00
Karsten Ballüder
f803d8644d file should end with newline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 10:03:00 +00:00
Ove Kaaven
b0655a87f4 Attempt to implement a bunch of wx string.h equivalents.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-17 07:00:38 +00:00
Robert Roebling
04338f96a9 put -fno-rtti into wx-config
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 19:13:10 +00:00
Robert Roebling
f53561f1f0 wxWINE things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 16:34:31 +00:00
Karsten Ballüder
40dac23a6a wxCHOICE defaults to yes now, even in debug mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 15:29:20 +00:00
Robert Roebling
e65ed37acb Forgot this one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 08:18:14 +00:00
Robert Roebling
77c85c2b2a make fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 08:14:52 +00:00
Ove Kaaven
e66474166b Had missed one LPSTR.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 06:50:28 +00:00
Ove Kaaven
2df98b2377 Someone probably meant "wx/defs.h" instead of "defs.h"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 06:03:04 +00:00
Ove Kaaven
7d4194184e Suppose I should trust the headers in BC++5.02 more than BC++4.52
(since the headers on BC++4.52 appears incorrect/outdated, compilation will
now fail on 4.52 in Unicode mode... but if you want Unicode, you use the
newest software anyway, right?)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-16 05:13:27 +00:00
Vadim Zeitlin
f33fee2ae6 wxString::IsSameAs(char) added and documented as well as operator==(char)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 22:30:44 +00:00
Robert Roebling
51d55e1c0c Automake fix.
Docs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 21:46:57 +00:00
Vadim Zeitlin
1318fabeb4 compilation fixes for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 21:06:12 +00:00
Vadim Zeitlin
8c517ddd1a 2 typos corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 20:42:48 +00:00
Robert Roebling
ce4169a4d1 Added a few #if wxUSE_XXX
Regrouped image format handlers
  Updated the rest accordingly
  Added changes.txt for wxGTK


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 20:21:59 +00:00
Robert Roebling
dcf924a345 Added zillions of #if wxUSE_XXX
Removed cmndlgs usage of wxSizer and constraints
  Changed occurences of wxConv_xxx to wxConvXxxx and
    changed some wxConvLibc to wxConvCurrent
  Added Unicode tests to typetests (not finished)
  Compile fix for wxString in Unicode mode - we have
   to use the "experimental" printf then, I guess.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 23:04:05 +00:00
Ove Kaaven
9f50f9f1a1 Explicit casting/instantiation to resolve ambiguous overload.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 21:51:06 +00:00
Karsten Ballüder
daa69da89e Fixed the keyboard selection handling (Please remember to maintain m_Selecting
when Starting/Ending/Discarding selection!!!).
Fixed a LineBreak() related bug.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 20:02:01 +00:00
Ove Kaaven
ef609210f1 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 17:54:47 +00:00
Harco de Hilster
acbd3e518a ignore .lo and .la
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 17:14:39 +00:00
Harco de Hilster
b737aec87e cvs now ignores libtool's .lo and .la files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 17:13:40 +00:00
Karsten Ballüder
6e5fefdf86 Should work for wxMSW, now. Cannot test this myself, though.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 15:47:50 +00:00
Karsten Ballüder
c5a451873e Modified so that it should work for __WXMSW__, too. I cannot check
this myself, though. :-(


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 15:47:28 +00:00
Ove Kaaven
002f42185d The Unicode handling fixes my app seemed to need.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:51:25 +00:00
Karsten Ballüder
627fe5e8ab improved selection-autodeletion, but backspace handling not perfect
yet, untested


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:51:10 +00:00
Ove Kaaven
837e57436a A few weeks of Unicode fixes (my old win95 laptop compiles sloowly,
especially when through the nullmodem cable).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:39:11 +00:00
Ove Kaaven
5f8e1c164d Some more Unicode changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:31:47 +00:00
Ove Kaaven
ee0fc54abf Could of Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:29:41 +00:00
Ove Kaaven
ec2ba3aa46 Unicode needs the 'experimental' printf, so define it if wxUSE_UNICODE
for now...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:26:11 +00:00
Ove Kaaven
5ca07d0fd7 operator for wxString == wx[W]CharBuffer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:23:18 +00:00
Ove Kaaven
9df8c2df09 Couple more Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:20:58 +00:00
Ove Kaaven
c47d0f2eb1 Unicode changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 14:19:15 +00:00
Patrick Albert
c0de7af40b Correct some minor compile pbs with VC++1.52c & VC++4.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 09:43:38 +00:00
Patrick Albert
27a9bd487b *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 07:12:16 +00:00
Vadim Zeitlin
006162a9e9 wxGetFullHostName() implemented - it doesn't work though (and won't even
compile under Win16 I think - TODO)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-14 00:00:47 +00:00
Vadim Zeitlin
683730003b WXDLLEXPORTLOCAL removed, WXDLLEXPORT seems to be enough
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 23:59:16 +00:00
Vadim Zeitlin
d427503c36 1. some more of "#if wxUSE_XXX" here and there
2. Makefile fixes for Cygwin compilation


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 22:54:04 +00:00
Vadim Zeitlin
a9b5e89f5f 1. libtool 1.2d => 1.3 (should speed up configure checks for it because it
caches the results)
2. aclocal.m4 is automatically generated by aclocal from acinclude.m4
3. fixes to configure for Cygnus compilation (Win32)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 22:27:35 +00:00
Vadim Zeitlin
bfac849985 wxWindow::Fit() infinite loop bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 22:10:16 +00:00
Karsten Ballüder
5c47e84eb6 Added missing initialisation of m_AutoDeleteSelection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 17:48:22 +00:00
Karsten Ballüder
d9939b3d99 Fixed two minor bugs. Still more than enough left. Quite some new ones.:-(
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 17:44:22 +00:00
Karsten Ballüder
96c5bd7fc4 Added missing wxGetFullHostName() and wxNO_DEFAULT for generic msgdialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 16:04:54 +00:00
Robert Roebling
91b8de8dee Added OS/2 patches to wxGTK.
Updated docs.
  Added wxMask code.
  Added Sylvain's newest tree ctrl code and sample.
  Corrected wxDC background colour (now as wrong as wxMSW).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 15:24:01 +00:00
Vadim Zeitlin
668e4f17be 1. crash when deleting multi line selection fixed
2. BreakLine() does just discard the first line (wreaking total havoc) any
   more
3. ScrollToCursor() actually scrolls to cursor
4. style change affects the first line too - and since the first time, style
   doesn't change mysteriously any more after second Clear()
5. word cursor movement even better (did I get it right this time?)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-12 21:07:44 +00:00
Vadim Zeitlin
6b92f831b7 IRIX compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-12 21:03:13 +00:00
Vadim Zeitlin
d75c7970c4 {Get/Set}{Width/Height} documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-12 20:56:46 +00:00
Robert Roebling
0180dad680 Implemented ListCtrl::SetColumnWidth() wxLIST_AUTOSIZE
Fixed typo in configure
  Added docs for wxINTXX_SWAP_XX macros


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 17:27:57 +00:00
Vadim Zeitlin
f7770f09be 1. wxLayoutList::GetNumLines() and MoveCursorToEnd() added (and work)
2. FindObjectScreen() applies the line style - corrects "mouse click mis
   positions the cursor" bug


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 12:10:26 +00:00
Vadim Zeitlin
cc7755804f wxSize::[GS]et{Width|Height} added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 11:15:21 +00:00
Vadim Zeitlin
02fe546f1f minor changes (fixing crash on mouse click)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 11:14:47 +00:00
Vadim Zeitlin
55021f25ff IRIX compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 10:47:18 +00:00
Karsten Ballüder
bbcdb973f7 Fixed a few bugs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 09:21:49 +00:00
Vadim Zeitlin
aef82f12c8 more DLL compilation changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-11 00:53:28 +00:00
Robin Dunn
e0272d0578 Fixed compile errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 23:00:03 +00:00
Robin Dunn
7631a29204 Added wxWindowBase::CentreOnParent to allow top level windows to be
centered over their parent (if they have one) instead of the entire
screen.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 22:44:50 +00:00
Robert Roebling
7e2c43b855 Corrected byte swapping macros.
Added test for them to typetest.
  Removed debug code from wxClipboard.
  Added empty compat. call to wxMSW's clipboard.
  Added for primary selection to sample/text.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 22:29:46 +00:00
Vadim Zeitlin
85833f5c6c WXDLLEXPORT added to wxStringTokenizer (and also several "const"s here and
there...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 21:16:58 +00:00
Vadim Zeitlin
b23198ab9e compialtion fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 21:16:11 +00:00
Vadim Zeitlin
9026ad85a9 wxNotebook compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 20:48:15 +00:00
Ove Kaaven
04e8174b84 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 18:13:44 +00:00
Ove Kaaven
32c1cda244 A few Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 18:12:13 +00:00
Ove Kaaven
093ac02981 Use wxStricmp instead of Stricmp in CmpNoCase.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 18:10:10 +00:00
Ove Kaaven
4b900067d3 I see no reason to have a copy of Stricmp from string.h in here when the
same thing was accomplished with macros about 10 lines below it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 18:08:46 +00:00
Ove Kaaven
bdb9dffbf6 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 17:59:57 +00:00
Robin Dunn
465db8da3f Added makefile and such for VC so I cna see what richedit is like.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 17:50:10 +00:00
Karsten Ballüder
da16935f6c Popup menu and cursor corrected. Some bugs fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 17:22:02 +00:00
Karsten Ballüder
e839ce8d9b Attempt to add primary selection support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 17:13:56 +00:00
Karsten Ballüder
cee6127eb8 Attempt to add primary selection support, but doesn't work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 17:13:28 +00:00
Robert Roebling
2b62ab3575 Docs.
Fix DialogEd XOR's.
  Colour does proper RGB value comparison.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 16:21:23 +00:00
Karsten Ballüder
566a4f58b7 The cursor is back! (Someone corrected wxGTK's idea of XOR. :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 15:08:05 +00:00
Karsten Ballüder
c131587cdb layout better
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 14:27:40 +00:00
Robert Roebling
39c9d5ac9d wxWINE fixes.
Removed wxTextCtrl tests from controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 10:21:05 +00:00
Karsten Ballüder
9df759b508 documented the wxNO_DEFAULT that I added to make No button in dialog
the default.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-10 09:55:03 +00:00
Vadim Zeitlin
40c101af66 1. fatal typo in colour copying in wxStyleInfo ctor fixed
2. yet slightly better selection handling
3. scrollbars now appear when the window is resized and disappear too
   (it's somewhat strange still...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 22:19:31 +00:00
Julian Smart
25889d3c43 Getting various compilers to work with wxWin again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 18:16:38 +00:00
Robert Roebling
4286a5b595 The last drops of WINE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 18:09:47 +00:00
Karsten Ballüder
a8561a273b Fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 16:47:02 +00:00
Vadim Zeitlin
0b4c331f91 makefile for wxLayout sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 16:24:46 +00:00
Vadim Zeitlin
93a740f1d6 wxLayoutStyleInfo ctor reverted back to the original, selection works better
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 16:22:24 +00:00
Karsten Ballüder
6dee824f1b added WAVE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 15:47:05 +00:00
Karsten Ballüder
2749089a33 Added --with-wave/--without-wave for conditional wxWave support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 14:49:50 +00:00
Karsten Ballüder
1ed6983d9c Fixed handling of --enable-optimise (had to remove American spelling, sorry).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 13:40:11 +00:00
Vadim Zeitlin
7547d64ec0 wxLayoutStyleInfo ctor doesn't set all fields to -1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 13:21:28 +00:00
Vadim Zeitlin
8236a88ae2 menu changed, many uninitialized variables are now initialized - thanks Purify
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 11:36:45 +00:00
Vadim Zeitlin
3a5ffa81c1 1. wxPaintDC reuse now seems to actually work instead of leading to mysterious
bugs (but I still don't know why should we have it at all)
2. wxMenuItem initializes m_bChecked variable - thanks Purify
3. don't try to delete the brush which couldn't be created in app.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 11:32:32 +00:00
Karsten Ballüder
119143528d compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 10:22:17 +00:00
Karsten Ballüder
f7f647e0e0 Now works with older versions of the test command, too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 10:02:41 +00:00
Robin Dunn
a8db5b6a88 Added command for building MS HTML Help file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 07:03:30 +00:00
Robin Dunn
7b3be6cb27 Added config values (commented out) for generating the MS HTML Help
project, contents, and index files.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 07:02:40 +00:00
Robert Roebling
5ea105e0ba WINE is so fine.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-09 00:32:07 +00:00
Vadim Zeitlin
96eb3b1a82 compile and cursor positioning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 22:01:45 +00:00
Robert Roebling
c455ab932f Chianti, Pinot noir, WINE..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 20:56:50 +00:00
Vadim Zeitlin
af0bb3b161 more Motif fixes (still doesn't compile, but *really* close :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 19:10:37 +00:00
Vadim Zeitlin
ced859c3dc 1. fixes for non-Posix sh in configure
2. better caching of wxUSE_<toolkit> argument
3. new wxString::PrintfV() is configured by configure


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 18:03:36 +00:00
Julian Smart
a2b0fa12c9 Removed floor() references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 15:56:50 +00:00
Vadim Zeitlin
2cdd0d01e5 explained (?) difference between LeftDown and LeftIsDown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 15:42:07 +00:00
Vadim Zeitlin
945bda7d9a the default value for the constraints is wxUnconstrained, not wxAsIs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 15:08:42 +00:00
Robert Roebling
910f1f8ce6 Compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 14:30:26 +00:00
Karsten Ballüder
73c5006d21 another fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 12:20:12 +00:00
Karsten Ballüder
4dc2c3bbc5 Fixed compilation, sorry for that.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 12:17:00 +00:00
Robert Roebling
d1c7e624c4 A few more WINE fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 10:08:05 +00:00
Robin Dunn
b54238992f Added wxFrame::MakeModal for MSW, (it's already there for GTK)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 07:01:10 +00:00
Robin Dunn
953ccd3da9 Changed GetSize to DoGetSize so virtual GetSize works right.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-08 06:58:57 +00:00
Robert Roebling
3d2afb7abe compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 22:12:57 +00:00
Robin Dunn
6ec9d18f1b Added GetMessage to those that are undef'ed and reimplemented as
inlines for wxMSW.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 21:29:10 +00:00
Robin Dunn
61e33e31ab Since wxPrivateDataObject doesn't derive from wxObject it can't
participate in wxWindows RTTI system using wxClassInfo.  Removed
DECLARE_DYNAMIC_CLASS( wxPrivateDataObject )


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 21:28:06 +00:00
Robert Roebling
5a92d200e1 Added some WINE things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 21:17:21 +00:00
Karsten Ballüder
a585ca5cb0 Coupled some core functionality out, to allow its use outside the wxLibrary
framework. Fixed a Unix bug (I believe). Untested, sorry for that, will test
ASAP.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 20:49:35 +00:00
Karsten Ballüder
98394c294e now accepts automake 1.3, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 20:48:26 +00:00
Karsten Ballüder
da0fb2767c Added a function to get screen coordinates relating to cursor coords.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 20:47:54 +00:00
Robert Roebling
d7431b43f4 Ignore.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 19:44:52 +00:00
Robert Roebling
287cada9c7 Just ignore CVS. It's better for you.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 19:41:37 +00:00
Robert Roebling
8b08d10020 I'm able to make a wxGTK.tgz again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 19:12:49 +00:00
Vadim Zeitlin
143121c5e1 1. configure caches the command line options
2. Motif makefile added


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 18:27:43 +00:00
Vadim Zeitlin
34636400a0 1. wxWindow::IsTopLevel() added and documented
2. wxDynamicClass() added and documented
3. first Motif fixes (doesn't compile yet)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 18:26:42 +00:00
Robert Roebling
6a2dd3f958 CVS cleanups.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 16:22:28 +00:00
Robert Roebling
c8c5323c96 Distribution things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 15:53:28 +00:00
Robert Roebling
8e1e6facb7 Updated distribtion and docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 14:51:24 +00:00
Robert Roebling
7fbdec7baa Fixed wrong include paths for zlib/png/jpeg.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 13:54:28 +00:00
Robert Roebling
385bcb3545 Install AFMs as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 11:27:46 +00:00
Karsten Ballüder
25dbfc255b Moved to ../samples/rtfedit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 09:58:07 +00:00
Karsten Ballüder
6c11b52650 Formerly known as wxLayout.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 09:57:14 +00:00
Vadim Zeitlin
fa16690b7d compilation fix for newer wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 09:47:13 +00:00
Vadim Zeitlin
7db05816fd fix for older versions of automake
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 09:46:52 +00:00
Robert Roebling
72195a0fd2 Corrected cursors for during capture mouse.
Added wxSP_LIVE_UPADTE to splitter.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-07 09:00:15 +00:00
Vadim Zeitlin
5df1250b30 bug in menu accelerators code corrected (don't create empty accel table,
this exposes a bug in Win32 API :-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-06 22:12:36 +00:00
Vadim Zeitlin
d66f34ece7 some small fixes to make it work a bit again under MSW:
1. bg bitmap reenabled
2. wxCaret positioning reenabled


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-06 22:10:54 +00:00
Karsten Ballüder
f38c391ab0 My heavy modification and some back-changes to allow it to work with ancient wxGTK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-06 17:11:15 +00:00
Robert Roebling
5bd9e5192b Corrected hotkeys for MDI menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-06 16:07:39 +00:00
Vadim Zeitlin
7cc7f0eb18 background bitmap test added, other minor fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 22:38:07 +00:00
Vadim Zeitlin
b480d85128 repositioning the cursor with mouse clicks works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 21:29:41 +00:00
Robert Roebling
2b6f061f0a Changed to libtool's interface vs. release versioning
make install works


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 20:42:19 +00:00
Robert Roebling
dbf3cd7a2b Compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 10:25:39 +00:00
Brian Macy
0c589ad076 Attempt at getting mingw32 working again... still doesn't work
I wonder when the last time it did work


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 05:00:23 +00:00
Vadim Zeitlin
052cbfee35 latest changes: added word-wise movement (buggy, esp. backwards), more minor
fixes, big problems (scrolling/selection) still remain under MSW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 01:03:54 +00:00
Vadim Zeitlin
9bf84618af 1. added missing wxUSE_TEXTDLG to setup0.h
2. added new style wxWANTS_CHARS and WM_GETDLGCODE handling for windows with
   this style


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-05 00:59:07 +00:00
Robert Roebling
97636f1013 Added missing file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 23:18:11 +00:00
Robert Roebling
279338910f Added semicolon to macro in list.h - I just read that
Vadim doesn't want it there - oh well.
 Added check for XKBext.h
 Made BMP loader BIGENDIAN safe.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 22:53:14 +00:00
Vadim Zeitlin
bcd2b961ff 1. warnings suppressed in wave.cpp
2. various fixes to configure/Makefiles - building in another dir works again
3. AC_C_BIGENDIAN replaced with WX_C_BIGENDIAN (much better :-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 22:25:40 +00:00
Vadim Zeitlin
f2fe5464d6 these files are not used any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 22:12:13 +00:00
Robert Roebling
d716d96758 Added wxInt32 etc (FIXME for 64bit)
Added byte swapping for BIG vs LITTLE endian


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 10:25:46 +00:00
Robert Roebling
85ad5eb54d Corrected bug in DoSetSize() (wxALLOW_MINUS_ONE)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 07:27:02 +00:00
Robert Roebling
47b61a784c More makefiles correction. Minimal runs now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-04 06:50:42 +00:00
Vadim Zeitlin
c6eba8f8b2 1. more (minor) wxCaret bug fixes
2. try to enforce wxPaintDC usage only inside EVT_PAINT handler (only in
   debug mode)
3. warnings removed from pnghand.cpp and dibuitls.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 23:17:01 +00:00
Vadim Zeitlin
2bc07607fc wxString::begin and end added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 22:46:05 +00:00
Vadim Zeitlin
bcf4a975e4 MSW fixes for wxLayout, part II: now breaking and merging line works too.
Scrolling still doesn't :-(


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 22:36:01 +00:00
Robert Roebling
239bca2e6d Small makefile corrections.
Added test for endianness.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 22:14:38 +00:00
Robert Roebling
f61757b17c Reactivtaed the new wxRect code
Changed ordering of includes in configure


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 17:13:08 +00:00
Julian Smart
de5ae7c6e6 Corrected spelling of 'unrecognized'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 16:19:38 +00:00
Julian Smart
9f55878ef2 Removed GetSize from wxToolBar95
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 16:17:49 +00:00
Robert Roebling
79b00c62b9 Another typo in ocnfigure.in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 15:59:39 +00:00
Robert Roebling
e602002e27 Another typo concerning wxUSE_SASH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 15:42:54 +00:00
Robert Roebling
7742598f08 The new wxRect doesn't compile so I #if 0ed it
Fixed typo in configure.in


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 14:56:33 +00:00
Robert Roebling
09fbacf7ad Moved main Makefile.am for wxGTK to /src/gtk
Removed LTLIBOBJECT code from configure with
    excpetion of PNG, JPEG, ZLIB and iODBC
  Added missing #ifdef for the Xkbdetectauto thing


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 14:14:19 +00:00
Julian Smart
b93d0c6402 min/max -> wxMin/wxMax
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-03 08:45:33 +00:00
Vadim Zeitlin
5bdc3b1d4a First part of fixes to make this work under MSW.
1. letters actually appear on the screen
2. Clear() works
3. Backspace/Delete in one line works too
4. breaking lines works
5. cursor is now a wxCaret
6. tons of other fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 21:26:11 +00:00
Brian Macy
379a3b04b9 Readd mingw32 support
Clean-up


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 15:46:54 +00:00
Vadim Zeitlin
70d1b3cf88 1. library should build
2. first Motif fixes
3. --enable-debug option in configure
4. default toolkit detection actually works - and --with-gtk/motif too


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 14:52:49 +00:00
Julian Smart
e90babdf85 Added progdlgg.cpp to makefiles; fixed true/false in treectrl.h; made IsFree
consistent (const omission)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 14:08:08 +00:00
Vadim Zeitlin
efeb036598 --with-toolkit should work now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 12:29:15 +00:00
Vadim Zeitlin
c7114f5962 1. make install/uninstall seems to work
2. setup.h will be automatically updated/recreated when needed (due to
   automake stupidness I have to create the real setup.h in the top level
   build directory now)
3. wx-config --cflags gives -I@prefix@/include only once, not twice


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 12:03:19 +00:00
Vadim Zeitlin
45ec03f3d3 (inexisting) datetime.h removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 11:49:40 +00:00
Vadim Zeitlin
c7e54e3e30 another autogenerated file removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 11:23:26 +00:00
Julian Smart
dcb44466c1 day_of_week fix to wxDate, wxRect additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 10:34:35 +00:00
Vadim Zeitlin
a2cddd6385 latest changes (no need for link to Makefile.am any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 10:01:24 +00:00
Vadim Zeitlin
36a0ce39f2 removing (finally) autogenerated files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 10:00:54 +00:00
Vadim Zeitlin
dc30432a63 file used to generate setup.h.in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 09:54:05 +00:00
Vadim Zeitlin
ff684c98ad slightly updated makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 09:19:22 +00:00
Vadim Zeitlin
7ee392a2ca ok, putting it back... not everybody has autoheader
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 09:15:23 +00:00
Vadim Zeitlin
6f7389f222 in fact, this one is auto generated too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 09:12:40 +00:00
Vadim Zeitlin
1a519eb007 headers are now installed by automake too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 08:34:09 +00:00
Vadim Zeitlin
cf21ed98df what was it doing there anyhow?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 07:57:59 +00:00
Ryan Norton
294645ebe8 This commit was generated by cvs2svn to compensate for changes in r2634,
which included commits to RCS files with non-trunk default branches.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 01:53:30 +00:00
Ryan Norton
858cde9dbf Initial revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 01:53:29 +00:00
Vadim Zeitlin
07dcc2173f Initial revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-02 01:53:28 +00:00
Vadim Zeitlin
546db2a8f8 compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 22:46:59 +00:00
Vadim Zeitlin
717226c9c9 headers location fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 17:13:36 +00:00
Vadim Zeitlin
5d4d67bc9b the icon for the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:58:01 +00:00
Vadim Zeitlin
42cfc50b9f file needed by automake
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:40:38 +00:00
Vadim Zeitlin
ccf2a2ee68 autogenerated now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:35:35 +00:00
Vadim Zeitlin
cc03361d7a re-readding makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:30:12 +00:00
Vadim Zeitlin
279a9792d8 this file is needed, after all...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:27:39 +00:00
Vadim Zeitlin
437e8b3306 re-removing Makefile.in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:22:37 +00:00
Vadim Zeitlin
9a98a85452 second try...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:14:29 +00:00
Vadim Zeitlin
788008ebca second try...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:13:13 +00:00
Vadim Zeitlin
610356ce1b Makefile is now autogenerated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:12:11 +00:00
Vadim Zeitlin
dafb733205 another unneeded file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:05:31 +00:00
Vadim Zeitlin
c0d1d789c1 new location for setup.h.in file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 16:04:17 +00:00
Vadim Zeitlin
352c26ff0f more new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 15:55:56 +00:00
Vadim Zeitlin
509a395608 include path to setup.h corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 15:51:40 +00:00
Vadim Zeitlin
88ac883a0d new makefiles (part I)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 15:32:12 +00:00
Vadim Zeitlin
29f7914424 old makefiles removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 15:13:27 +00:00
Robert Roebling
f7ac40d158 New way to grey out disabled toolbar icons.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 14:29:59 +00:00
Robert Roebling
05060eeb83 Added wxTextCtrl::IsEditable(), GetSelection() and
ShowPosition()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 11:10:17 +00:00
Robert Roebling
b00c560766 wxImageList::Add() returned wrong index.
made list ctrl sample more Unicode friendly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 10:39:10 +00:00
Vadim Zeitlin
c7abc967cd Oops, I didn't see Robert had already corrected 16bit BMP typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 09:50:53 +00:00
Robert Roebling
837904f262 Hotkey fix for submenus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 08:23:57 +00:00
Robert Roebling
dfc3d7e025 Moving frames and dialogs now reports correct
positions.

  Typo in BMP loading.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-01 07:38:28 +00:00
Brian Macy
6bbd334480 Reworked the undef stuff a little
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 19:24:12 +00:00
Robert Roebling
db2d879ad4 Tried to find thread/clipboard problem cause...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 19:16:11 +00:00
Vadim Zeitlin
28d2a709de treectrl.cpp renamed to treegtk.cpp due to usage of VPATH in makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 17:14:12 +00:00
Robert Roebling
8ce63e9d66 Implemented Reparent() and added test for it to minifram sample.
Fixed one out of two window resizing bugs in multi-line text ctrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 17:04:50 +00:00
Robert Roebling
02e8b87f6f Added own sample for text ctrl, char/key events, clipboard.
This can be removed from the controls sample.
  Made control tooltips yellow again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 14:54:04 +00:00
Robert Roebling
85eb36c267 Added support for extra bitmap for toggled tool.
Implemented WarpPointer() and added a test for it
    to controls.
  Some minor documention updates.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-31 10:47:44 +00:00
Robert Roebling
1759ff9e91 Compile fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-30 17:45:12 +00:00
Robert Roebling
ddb6bc7126 A bit more Unicode compilation.
Window insertion corrections for window, frame, dialog, mdi.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-30 16:20:42 +00:00
Brian Macy
f3bd1796ca IMHO these are the correct flags for borland
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-30 05:49:49 +00:00
Brian Macy
74295623bb fixed #if !NOPCH to be #if !defined(NOPCH)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-29 15:44:06 +00:00
Vadim Zeitlin
b8e25d73a2 compilation fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-29 00:34:17 +00:00
Robin Dunn
0c35333e9e Made SetFont for wxCheckListBox more intelligent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-28 17:27:55 +00:00
Robert Roebling
861ccde481 Added fixes for Unicode compilation.
Added WXK_ALT incl test.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-28 16:10:01 +00:00
Julian Smart
0c08906562 Added rc and def files for new samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-28 14:54:01 +00:00
Robert Roebling
012a03e092 Small correction to list ctrl and default button size.
text ctrl doesn't inherit BG colour anymore
  added missing file.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-28 10:30:57 +00:00
Robert Roebling
c25ccf85c1 New defines for wxTreeCtrl
Corrections to print preview
  MakeModal behaves sanely now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-28 09:28:38 +00:00
Julian Smart
eebc8b5e75 Added dcbase target to various makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 20:39:35 +00:00
Julian Smart
410cb77e91 Added some makefiles for caret, scroll and drawing samples.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 20:38:29 +00:00
Robert Roebling
ca26177c30 Color cubes now get created on 8-bit true-color
visual as well. (This exists).
  Added MakeModal() to wxFrame.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 19:54:05 +00:00
Robert Roebling
00a395425c Corrected SetItemState() in listctrl
Added test for this to scroll sample.
  Didn't find reason for strange positioning of
    progress dialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 18:08:50 +00:00
Robert Roebling
c4208367a1 compile fixes. Vadim ows me a pizza.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 15:37:44 +00:00
Vadim Zeitlin
be9abe3fd0 1. warning in wxDataObject fixed
2. wxProgressDialog got a new style flag and updated docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 13:22:37 +00:00
Robert Roebling
6453876e12 Doc updates.
Minor dc change.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 13:14:45 +00:00
Vadim Zeitlin
9726da4fd3 1. wxDataObject compilation fixes (can't test if it works right now, sorry)
2. wxProgressDialog ctor has "style" parameter
3. the controls samples now also demonstrates wxUpdateUI events and
wxProgressDialog


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 12:49:40 +00:00
Robert Roebling
082b27986b Small cursor improvements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-27 09:34:17 +00:00
Vadim Zeitlin
3f480da37c wxPrivateDataObject works under MSW as well (hopefully it still does under
GTK too)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 22:39:42 +00:00
Robert Roebling
238d735dc2 Got a new idea to do cursors, including global
ones and busy etc.
  Fixed an assert in UserScaler from PS code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 20:40:04 +00:00
Guilhem Lavaux
14906731b1 * Small fix in wxHTTP::BuildRequest
* Introduced wxURL::ConvertToValidURI (to be implemented)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 17:17:46 +00:00
Vadim Zeitlin
dcd6b914e5 validators now validate again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 12:39:50 +00:00
Robert Roebling
6db90681cf Made wxClientDC's use safe as per wxMSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 10:17:56 +00:00
Robert Roebling
053f9cc122 wxScrolledWindow inherits from wxPanel to
make tab travseral work.
  Work around for GTK scrolledwidget bug.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-26 09:03:25 +00:00
Brian Macy
2917e92043 Cleaned up some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:51:10 +00:00
Brian Macy
dbe949828d Move some functions from header into here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:40:30 +00:00
Brian Macy
f0218e9a22 Added dcbase.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:39:20 +00:00
Brian Macy
bd5dd95757 Move code to a dcbase.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:38:48 +00:00
Brian Macy
7740bc4143 Fixed SetForeground and SetBackground declarations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:27:00 +00:00
Vadim Zeitlin
a8f2578758 wxCaret MSW bug fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 23:07:41 +00:00
Robert Roebling
01eaf507af "Corrected" logical function in wxDC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 19:59:36 +00:00
Vadim Zeitlin
30d7f785a5 caret.cpp included
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 18:02:36 +00:00
Vadim Zeitlin
0290598f58 wxCaret now exists not only under MSW but on any supported platform as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 18:01:48 +00:00
Guilhem Lavaux
062c486171 * wxThread fixes
* wxStream fix (Read(wxStreamBase))
* wxEvent: GTK idle loop waking up was actually good, reenabled.
* wxSocket: all features working on Linux/RH6 (including high-level protocols)
       Needs testing on other platforms now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 17:14:56 +00:00
Vadim Zeitlin
4d0f3cd6ac 1. wxNotifyEvent documented
2. wxNotebook event now derives from it under wxGTK too - fixing the
   PAGE_CHANGING event handling bug
3. the controls sample demonstrates PAGE_CHANGING in action


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 13:38:50 +00:00
Robert Roebling
3c679789bd windows emit wxCreateWindowEvent
generic controls use wxINVERT for rubberbands etc
  wxXOR maps to GdkXOR etc


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 13:36:09 +00:00
Julian Smart
92b87be518 Reverted corrupt file (may not be in line with Vadim's changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 13:23:09 +00:00
Robert Roebling
29f538cea2 Fixed a notebook crash and added more tests to sample.
Corrected size behaviour of default button.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 10:40:07 +00:00
Julian Smart
794005c0ac Misc small changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-25 09:01:22 +00:00
Robert Roebling
cfb50f14ec Made listctrl header BG grey again
mapped XOR to GdkInvert and vice versa
  No more EVT_TEXT after SetValue()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 23:53:12 +00:00
Vadim Zeitlin
764a3a4906 1. bug fixes in wxCaret
2. wxPoint now has += and -=
3. Validate() takes "wxWindow *" (and not wxWindowBase) again


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 21:12:37 +00:00
Robert Roebling
587ce561e1 Rewrote wxNotebook, incl. PAGE_CHANGING event
and InsertPage and internal behaviour more
   like wxMSW. Leaves pixel junk sometimes...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 19:33:05 +00:00
Unknown (BV)
255d88eb5d Updated splitter docs to describe new wxSP_PERMIT_UNSPLIT style and
wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED splitter event type.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 17:51:44 +00:00
Unknown (BV)
370938d99c Added always-unsplittable style option (wxSP_PERMIT_UNSPLIT)
Added visual feedback on limits for sash-drag
(Fix of previous broken behaviour: now unplits only if min pane size == 0 or
 if always-unsplittable style flag is used.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 16:19:06 +00:00
Unknown (BV)
86434d7115 Added wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 16:19:04 +00:00
Robert Roebling
d872b8a926 Empty notebooks show up again. I'm afraid this
might sometimes crash with GTK 1.2.0/1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 14:03:08 +00:00
Guilhem Lavaux
0aca1ded9c wxFileIn/OutputStream fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 12:05:30 +00:00
Robert Roebling
94129723b9 Hardcode colours in systems settings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 11:37:01 +00:00
Vadim Zeitlin
789295bf7b 1. some minor but nasty bugs fixed (see post to the list)
2. new wxCaret class (MSW only so far)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 23:48:12 +00:00
Vadim Zeitlin
c52d95b412 more MDI features tested
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 23:45:47 +00:00
Vadim Zeitlin
7f539e8a66 corrected MSW-specific bug (in the sample, not the scrolling code)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 23:43:59 +00:00
Robert Roebling
1601ab7a28 Now wxYield() calls wxApp::ProcessIdle() which also
entails that wxYield() will flush events that have
   been sent from other threads. I don't know what
   wxMSW does here, but I guess the same wouldn't be
   bad.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 19:33:16 +00:00
J. Russell Smyth
e459f82d01 repaired recently broken framelayout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 18:54:27 +00:00
Robert Roebling
86fdd27b45 Compile fix for GTK 1.0
wxOleStream added


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 18:37:02 +00:00
Guilhem Lavaux
48da7d0ba8 * wxSocket seems to work with the async requester turned off.
Two things to fix:
       * async requester bug
       * GTK/GLIB idle loop wake up
  URL/HTTP/FTP/SocketServer/SocketClient seems to work (well, they work
  on my computer).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-23 16:09:45 +00:00
Robert Roebling
6bc8a1c80b GTK 1.0 compilation (not tested)
toolbars can now get inserted in the client
   area as well (as normal windows)
  Menu accels can be functions keys
  Made DialogEd work again (with wxGTK :-) )


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-22 15:13:18 +00:00
Robert Roebling
6b3eb77aec Played a little with sockets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-22 10:11:03 +00:00
Robert Roebling
7b90a8f20d Put wxGTK's threads back to life.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-22 08:01:17 +00:00
Unknown (NI)
286cb97fcf Improved keypress handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-22 03:01:45 +00:00
Unknown (NI)
f3c65ce6a7 Improved keyboard handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-22 02:55:42 +00:00
Vadim Zeitlin
e939abfd38 msg catalog code bugfix for 64 bit platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 22:43:17 +00:00
Unknown (NI)
b78cd60dc9 Added missing comma
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 21:28:44 +00:00
Unknown (NI)
218847660e Fixed handling of keypress WXK_NUMPAD_NEXT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 21:22:36 +00:00
Unknown (NI)
e9b10d03f2 added constant WXK_NUMPAD_NEXT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 21:16:00 +00:00
Robert Roebling
eba0e4d417 Made GetLabel/SetLabel() virtual
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 13:28:49 +00:00
Robert Roebling
63cc5d9d20 Fixed typos in window.cpp and utils.cpp
Tried to repair HP-UX compilation thing for iODBC.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 12:50:10 +00:00
Vadim Zeitlin
fc5a93cd09 GetItem() doesn't ignore column number any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 11:39:56 +00:00
Vadim Zeitlin
508203b056 HP-UX gcc compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 11:38:59 +00:00
J. Russell Smyth
3135da7134 documented wxCONFIG_USE_RELATIVE_PATH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-21 05:03:04 +00:00
Vadim Zeitlin
7f68042c44 mysterious radiobox bug finally fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 22:53:09 +00:00
Vadim Zeitlin
65e782405b bugs in splitter docs corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 22:17:04 +00:00
Guilhem Lavaux
dab58492b2 * Added a fix from Allen to wxStringTokenizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 17:44:04 +00:00
Robert Roebling
326f9654d2 GtkMyFixed is now more "GTK 1.2.3 ready".
Test added to notebook sample (showing that GTK
  1.2.3 is not GTK 1.2.3 ready).
  Touched frame?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 14:32:04 +00:00
Ove Kaaven
2027288898 Unicode compilation fix for find_*_of()
(I might be back at work committing other fixes soon,
but probably not before tomorrow at least.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 11:11:46 +00:00
Robin Dunn
9145664b28 wxScrolledWindow for wxMSW is now getting wxScrollWinEvents and are
scrolling again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 06:08:28 +00:00
Unknown (BV)
53f7bea59c Added a reference to the splitter event class and macros.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 04:25:13 +00:00
Unknown (BV)
e4bbf3c2b9 Added the rest of the wxSplitterEvent class interface docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 04:24:14 +00:00
Unknown (BV)
bc79aa6b22 Fix bug in which splitter would not close if sash pulled to one edge
of window when minimum pane size != 0.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-20 04:22:38 +00:00
Vadim Zeitlin
98216d409f file which undefs symbols ocnflicting with windows.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 22:44:58 +00:00
Vadim Zeitlin
d66a042c1c 1. bug in wxSplitter corrected: mouse event coords may be negative when the
mouse is captured which made sash roll over the window
2. missing functions added to wxRadioBox
3. non existent functions removed from wxRadioBox and wxControl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 22:25:41 +00:00
Robert Roebling
93b7364ecd Augmented version to b5
Disabled F10 thing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 17:51:06 +00:00
Brian Macy
9f104fbfce Changed [] parameters to be unsigned.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 17:40:01 +00:00
Karsten Ballüder
11604fb890 updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 16:47:38 +00:00
Vadim Zeitlin
43191e0c5a wxThread::Entry documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 13:46:17 +00:00
Robert Roebling
801aa1782c YOu can now activate the menu pressing F10 anywhere.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 13:41:55 +00:00
Robert Roebling
3dfb93fd82 Listctrl should now send char and key_down events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 10:46:48 +00:00
Robert Roebling
ea5c6ca7f7 Corrected tree ctrl behaviour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 10:27:11 +00:00
Robert Roebling
74505862d0 Updated distrib.
Corrected listbox dclick.
  Modified char/key event stuff.

  Added WXWIN_COMPATIBILITY_2 = 1 to setup.hin


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 09:08:27 +00:00
Robin Dunn
46499442ee fixed error about wxFrame::Command not returning a value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 04:41:23 +00:00
Vadim Zeitlin
5ad998f280 notebook creation bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 01:15:40 +00:00
Vadim Zeitlin
dabc0cd5c1 ScreenToClient() implemented correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 01:00:57 +00:00
Vadim Zeitlin
42e69d6b43 1. wxMSW seems to work (please test and send your bug reports!)
2. accelerators in the menus a la GTK (actually slightly better) implemented
3. wxSplitter now uses events (and so the code which was broken by recent changes
   works again)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-19 00:53:27 +00:00
Robert Roebling
f0492f7d97 More key event work. Added SetDetectableAutoRepeat.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 19:35:33 +00:00
Brian Macy
25dd56b1d3 Fixed some compile errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 19:08:28 +00:00
Karsten Ballüder
e0eeb9b3e7 minor progress bar fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 16:29:19 +00:00
Karsten Ballüder
57bff99cf4 highlighting fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 16:28:37 +00:00
Robert Roebling
04f90a8ce6 No longer emit char events for shift/ctrl presses.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 15:30:56 +00:00
Karsten Ballüder
891ad68ff5 fixed an over-optimisation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 15:13:16 +00:00
Karsten Ballüder
974a5cccc1 Merged in from Mahogany. A bit better and safer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 15:05:29 +00:00
Vadim Zeitlin
fac2987b2f isascii changed to isprint for better logging
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 14:52:21 +00:00
Robert Roebling
7a30ee8f2c Correxted myfixed widget to prevent warnings from GTK
Changed listbox dclick emission


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 14:49:18 +00:00
Vadim Zeitlin
0a7723227a char/key events testing added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 14:47:28 +00:00
Vadim Zeitlin
907f37b35b DeleteAllPages() bug corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-18 13:35:22 +00:00
Robert Roebling
1a6ed3711f Removed an #ifndef __WXGTK__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 19:35:26 +00:00
Robert Roebling
c5b42c871b Use wxScrollWinEvent instead of wxScrollEvent in
wxWindow and wxScrolledWindow. This breaks all ports!
  Added Layout() call to wxSplitter.
  wxDialog at least tries to set its position before its
    shown.
  wxGTK now emits char/key events as wxMSW does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 19:17:28 +00:00
Guilhem Lavaux
9111db6802 * prgodlgg.h: Update() use wxString instead of 'char *'
* wxThread: fixes (all should work fluently now)
* wxSocket: it is at last usable on my computer
     GTK/GLIB problem : reenabling the idle event propagation causes very
     strange problem (Instruction pointer/memory)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 18:10:57 +00:00
Robin Dunn
49828363f8 Moved all WXDLLEXPORT's to be before the return type in order to make
VC 6.0 happy when building a DLL.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 17:10:11 +00:00
Robin Dunn
7af6f32725 Added
wxPoint ClientToScreen(const wxPoint& pt)
    wxPoint ScreenToClient(const wxPoint& pt)

back into class wxWindow


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 17:07:46 +00:00
Robin Dunn
119f7a8c81 Enhanced HTML Help output.
1. Full-text-search is enabled
2. Additional buttons on the help window
3. The root page (contents) is now added to the tree
4. etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 17:05:59 +00:00
Vadim Zeitlin
428db2ea5a SelectColour() works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 15:13:24 +00:00
Vadim Zeitlin
c539ab556d added Next/PrevControlId
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 14:51:52 +00:00
Vadim Zeitlin
220af862c1 DrawCircle() added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 14:35:48 +00:00
Vadim Zeitlin
0f0c61d0ad more tests added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 14:10:12 +00:00
Vadim Zeitlin
969d318c6a find_first/last_[not]_of() functions added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 12:41:28 +00:00
Robert Roebling
adde8c9807 New virtual key defines (NUMPAD_XXX).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 12:27:27 +00:00
J. Russell Smyth
97560ce3a4 Added code to make wxMDIChildFrame::Activate() work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-17 06:29:39 +00:00
Karsten Ballüder
3b4470ba7a minor bug fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 23:42:31 +00:00
Karsten Ballüder
fc7840aa33 Added a wxDataFormat::SetAtom() inline function.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 23:13:16 +00:00
Karsten Ballüder
3874d10d85 Minor fix for wxDF_PRIVATE, but doesn't work yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 23:12:18 +00:00
Karsten Ballüder
47e1663e82 Many, many updates. Almost perfect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 23:10:40 +00:00
Robert Roebling
b985763280 Minor DC correction.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 19:04:45 +00:00
Karsten Ballüder
c56a9c4d73 More translations (All that I am interested in, if someone else wants to
finish them, go ahead.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 15:33:35 +00:00
Guilhem Lavaux
0dac2f38ef * Fixed a dead-lock when the thread finishes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 13:40:12 +00:00
Karsten Ballüder
e7a5464f56 About 30% done.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-16 13:31:32 +00:00
Robert Roebling
4e4ea166d7 DC change header change for wxMemoryDC and wxPostscriptDC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 23:40:42 +00:00
Robert Roebling
ed43910deb A little more testing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 13:56:21 +00:00
Robert Roebling
aba99005d2 Started drawing sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 13:33:55 +00:00
Vadim Zeitlin
d54e425674 typo in dcclient.cpp corrected (wxUSE_SPLINE => wxUSE_SPLINES)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 12:47:50 +00:00
Guilhem Lavaux
5092b3add7 * Added thread cleanup safeness: thread can be explicitely killed safely now
on Unix.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 12:01:15 +00:00
Robert Roebling
92abe7f670 wxGLCanvas compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 07:48:40 +00:00
Robin Dunn
4cd9591aab fixes for GetReturnCode/SetReturnCode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-15 00:56:11 +00:00
Robert Roebling
089e55d6e8 wxGTK now works a little again.
Added new OpenGl code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 21:04:49 +00:00
Robert Roebling
64698f9af8 wxGTK compiles and links again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 20:27:41 +00:00
Vadim Zeitlin
8e1d4f96f5 minor changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 14:44:03 +00:00
Karsten Ballüder
ed07b20b50 a few more buglets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 11:36:17 +00:00
Karsten Ballüder
cd043c51dd NL insert bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 10:41:51 +00:00
Karsten Ballüder
830cd6f489 Updated, fixed a colour bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 10:31:21 +00:00
Karsten Ballüder
b86cda55e5 The new layout mechanism is better than the old one. :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-14 09:35:54 +00:00
Vadim Zeitlin
b0e0d66151 wxWindowDC compiles (wxGTK doesn't link yet because of dcpsg.cpp problems...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 23:02:35 +00:00
Vadim Zeitlin
85d10d9bbb wxWindow::Show() works again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 21:33:12 +00:00
Vadim Zeitlin
a23fd0e1d1 1. MSW message handling simplifications
2. wxDC split into wxDC and wxDCBase
3. Several minor bug fixes, many major new bugs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 21:21:04 +00:00
Karsten Ballüder
60a040b3bb I was stupid enough to reorganise the way font changes get stored and applied,
so after only four hours work I'm back where I was yesterday. Selections still
buggy.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 21:13:26 +00:00
Karsten Ballüder
c3317e87ec untested changes...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 17:18:46 +00:00
Karsten Ballüder
5db89e99cb some changes, untested
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 17:18:32 +00:00
Karsten Ballüder
67df978396 ProgressDialog now handles multiple copies and shows total number of pages.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:52:20 +00:00
Karsten Ballüder
a9a96f0a9a slowdown effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:51:44 +00:00
Karsten Ballüder
d1fe589535 another wxLayout bug, prints empty pages suddenly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:38:11 +00:00
Guilhem Lavaux
f305c66192 * Some more CopyObject()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:24:59 +00:00
Karsten Ballüder
b778511b0c fixed wrong range for print progress dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:09:59 +00:00
Karsten Ballüder
47ff78ff4f removed an assert which was broken (looked right though)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 15:02:26 +00:00
Karsten Ballüder
d7dbc98ae9 Fixed a minor bug in hotKey handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 13:02:09 +00:00
Karsten Ballüder
d9904e2f43 two more bug notes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 11:06:54 +00:00
Karsten Ballüder
c55de8d5c3 first text (header lines) in M get malformatted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 10:56:54 +00:00
Karsten Ballüder
dfec0e85c0 find position bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 10:56:00 +00:00
Karsten Ballüder
0c34becbea Added finding of text in the list and fixed calculation of scrollbar
size.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 10:14:30 +00:00
Robert Roebling
b0e813a0c1 Added m_scanCode field to wxKeyEvent
Added a few more WXK symbols to wxGTK


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 09:53:44 +00:00
Guilhem Lavaux
cd8b9f13c7 * fix in wcslen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-13 09:44:03 +00:00
Karsten Ballüder
ae2d6d0200 Modified font handling (on the way to real rtf editing...)
Selections are better but still buggy, list size does not get calculated
completely, end of list only appears after multiple edits. ???


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 22:14:51 +00:00
Robert Roebling
69418a8e47 Maybe negative wxWindowId are better than just -1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 22:12:18 +00:00
Robert Roebling
0de9b5b23f Fixes a few SGI compiler warnings..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 20:26:54 +00:00
Václav Slavík
14204c7acc HTML Help Workshop support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 17:49:33 +00:00
Karsten Ballüder
085b1c8b61 wxlayout bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 15:34:03 +00:00
Robert Roebling
053dcf1a77 -1 is kept -1 as a wxWindowID
removed som edebug code


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 15:19:35 +00:00
Karsten Ballüder
dc4769eb08 now we can even edit again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 15:04:28 +00:00
Karsten Ballüder
0a987d2dcd Missing "c" bug should be gone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 14:53:04 +00:00
Karsten Ballüder
2184b1a53d Cursor movements and selections even in non-edit mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 14:47:25 +00:00
Karsten Ballüder
1a78a62905 Scroll to cursor works correctly now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 13:50:59 +00:00
Vadim Zeitlin
712a92f01c HAVE_WCSLEN added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 13:13:14 +00:00
Vadim Zeitlin
cbacf725b7 included longlong doc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 13:13:00 +00:00
Vadim Zeitlin
ea804aadf9 missing comma for Motif compilation added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 12:22:06 +00:00
Robert Roebling
d1367c3d78 added wxScrollWinEvent
use timestamp in various events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 09:31:02 +00:00
Unknown (BV)
021e7626ac Modified OnSashPositionChange to take an int& instead of an int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 03:04:15 +00:00
Unknown (BV)
4c0130922b Modified OnSashPositionChange to resize the window to minimum pane
size if the selected position would result in a too-small pane.
Edge-detection logic (which closes a split) moved from OnMouseEvent to
OnSashPositionChange.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-12 03:03:26 +00:00
Brian Macy
a9ac0bea5b Fixed incorrect return type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 21:09:44 +00:00
Karsten Ballüder
5b86bbbda6 updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 20:46:07 +00:00
Karsten Ballüder
c3ed793619 COPY works, cut still missing, highlighting buggy.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 20:43:12 +00:00
Robert Roebling
f924129679 wxFrame::GetClientSize -> DoGetClientSize
Minor wxDialog fix


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 20:41:00 +00:00
Robert Roebling
eb082a088a Typos fixed.
Corrected children's deletion (strict now).
  Corrected scrolled window's setup upon startup
    (with/without scrollbars etc.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 18:28:37 +00:00
Vadim Zeitlin
1a5594b80f labels respect alignment now even with GTK 1.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 17:37:43 +00:00
Vadim Zeitlin
a234a61ad3 another unused param warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 15:35:53 +00:00
Vadim Zeitlin
58654ed0f2 #pragma interface/implementation for gcc added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 14:47:05 +00:00
Vadim Zeitlin
01b43e0302 spaces around '=' are not needed any more in config files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 14:41:13 +00:00
Karsten Ballüder
ccc585e571 This one-liner seems to fix the wxStaticText alignment.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 14:08:40 +00:00
Vadim Zeitlin
74e3313b25 unused parameter warnings suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 12:37:53 +00:00
Vadim Zeitlin
f6147cfc0a unussed param warning suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 12:11:21 +00:00
Vadim Zeitlin
0633c6d6e0 one 'no' is enough when GTK 1.2.0 is not found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 12:08:39 +00:00
Vadim Zeitlin
5de9bc8049 library build even without wcslen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 11:50:40 +00:00
Vadim Zeitlin
d8f2439ceb no changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 11:49:11 +00:00
Karsten Ballüder
a086e034f9 Some nice improvements, it's even quite fast now!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 09:15:54 +00:00
Robert Roebling
31c6b4fc10 Implememted IsBeingDeleted() -> buttons work again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-11 08:23:53 +00:00
Vadim Zeitlin
162b0c3bf5 MSW compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 22:56:03 +00:00
Vadim Zeitlin
93089472db compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 22:40:05 +00:00
Vadim Zeitlin
ef58b38276 directory for test programs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 22:34:01 +00:00
Vadim Zeitlin
d7c24517cb GetHandle() added (back)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 22:29:23 +00:00
Robert Roebling
739730cae7 Made wxWindowBase's variables protected again and such.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 21:04:17 +00:00
Vadim Zeitlin
36453d0ffb wxFileSelectorEx added - could someone please implement it?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 18:27:49 +00:00
Vadim Zeitlin
8b81872f2e the initial draft of wxLongLong class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 18:16:31 +00:00
Brian Macy
bacd69f986 Added inline keyword
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:59:16 +00:00
Vadim Zeitlin
efa5b5de4b (primitive) makefile for msg catalogs and the updated wxstd.po
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:35:13 +00:00
Vadim Zeitlin
caf0debf72 patch from Janos Vegh (2nd try, now it even compiles)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:19:09 +00:00
Robert Roebling
32ac755d4a Changed wxSizer::GetSize() to DoGetSize() (and others)
Added debug code because I dont know why buttons
   sometimes work and sometimes not.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:09:28 +00:00
Vadim Zeitlin
6de2f8b9da patch from Janos Vegh for improved template handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 16:01:45 +00:00
Robert Roebling
121a3581d3 A few more things are back to work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 13:31:50 +00:00
Karsten Ballüder
1a89d2f4fb Suppressing selection highlighting in M.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 11:54:20 +00:00
Karsten Ballüder
4884bcedcf Selection improvement.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 11:51:04 +00:00
Karsten Ballüder
aab3e197ce wxScrolledWindow::Scroll() no longer calls Refresh(). Adjusted listctrl to
this change.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 11:07:54 +00:00
Karsten Ballüder
0abb488549 Added Refresh() to OnMouse.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 11:06:56 +00:00
Robert Roebling
a2053b27b3 Small modifications to Vadims changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 11:02:43 +00:00
Karsten Ballüder
b6bc5bf37c Updated for Mahogany.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 10:44:09 +00:00
Vadim Zeitlin
9931f08ade DnD sample compiles and works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 09:18:12 +00:00
Vadim Zeitlin
cc2b747254 wxWindow split (MSW part of changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-10 00:42:57 +00:00
Vadim Zeitlin
f03fc89fff wxWindow split into wxWindowBase and wxWindow (wxGTK part)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 22:17:03 +00:00
Vadim Zeitlin
358d140ac9 icons for generic dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 22:07:59 +00:00
Julian Smart
a50fb9c083 wxUSE_THREADS in sckint.h; wxMotif Clone error fixed; JPEG makefile.unx for wxMotif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 21:42:36 +00:00
Julian Smart
ba9838b991 #ifdefs for wxUSE_THREADS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 21:40:34 +00:00
Vadim Zeitlin
3358d36e06 crash in GTK 1.0 on multiline text ctrl creation fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 18:00:35 +00:00
Karsten Ballüder
404d805e79 Selection marking seems fine now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 17:28:58 +00:00
Karsten Ballüder
18d084cf1f Partially functioning selections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 15:24:57 +00:00
Karsten Ballüder
8fa2e6a209 Added a generic wxProgressDialog and made wxPostscriptPrinter use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 15:19:45 +00:00
Julian Smart
4445e5cbae *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 15:03:29 +00:00
Julian Smart
0f3e3e0c30 Misc. fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 14:49:40 +00:00
Julian Smart
ea64e17a22 Added JPEG jconfig.vc, BC++/VC++ makefiles. Sort of fixed jconfig.h for
VC++ compilation but probably configure on Unix will go and overwrite it or something.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 14:48:20 +00:00
Guilhem Lavaux
63496c98fa * Fixed two or three things in sckint.cpp but I still don't manage to
fix the bug in wxSocketInternal::StopWaiter (Main thread hangs in
  wxThreadInternal::Wait). If someone has an idea I would be very happy ...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 12:24:13 +00:00
Robert Roebling
31276cb5e7 Applied FreeBSD patch
augmented beta version to 4


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 10:54:11 +00:00
Brian Macy
631cefffd4 Recursion bad... handle C++ style comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-09 02:35:00 +00:00
Brian Macy
c00dee5597 Commented out 2 apparently used and invalid bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 21:21:35 +00:00
Brian Macy
649ef4c6b4 Reference counted objects should be used *much* more carefully. This was
completely unnecessary.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 21:21:10 +00:00
Karsten Ballüder
e589112ed0 Much improved, update rectangles almost work. Selections seem to work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 18:01:24 +00:00
Robert Roebling
de1c750f7e Corrected bmpbutton size
added wxNO_BORDER style to button classes
  added WMclass and WMname strings to dialogs and frames
  added flag to scroll sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 14:18:51 +00:00
Guilhem Lavaux
2a4f27f209 * implemented VZ's idea about creating and destroying bg threads.
(PB with the destruction of waiter: I think it's a race problem but
   I can't localize it if someone finds it please mail it to me)
* Fixed race condition in threadpsx.cpp.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 12:18:53 +00:00
Brian Macy
0304608682 Fixed two missing parens
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-08 04:58:10 +00:00
Karsten Ballüder
aff37a19e9 Fixed SetZoom() so it can be used from the outside.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 23:05:22 +00:00
Robert Roebling
ba2a0103aa a bit of debug code
radiobox gets frames again


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 21:26:56 +00:00
Vadim Zeitlin
6a2f310358 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 20:48:42 +00:00
Ove Kaaven
57f6da0dec Try to not include ctype functions for win32. Not really tested with
Borland C++, as I don't have the machine with BC++ available right now,
but it should probably be better anyway...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 18:36:06 +00:00
Guilhem Lavaux
aadbdf11bd * Created a new wxObject method: wxObject::CopyObject(wxObject&)
and wxObject::Clone() uses it.
* Added some CopyObject to events.
* Reenable the idle loop in wxEvtHandler::ProcessThreadEvent(...)
* Some correctness in wxSocket.
   Major bugs remaining:
      - it seems there is a mutex problem when it works too quickly
      - all threads aren't destroyed ...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 18:34:32 +00:00
Vadim Zeitlin
096c9f9b98 tree ctrl sorting shouldn't crash when items don't have data
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 18:02:41 +00:00
Karsten Ballüder
3418cb8b1c Crude hack to fix crash for 8bit displays. Seems to work fine. PLEASE CHECK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 10:51:50 +00:00
Ove Kaaven
5fbecd9925 Took care of those missing frees from failure conditions in wxExecute.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-07 10:20:14 +00:00
Vadim Zeitlin
167e371869 printf => wxLogTrace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 18:40:04 +00:00
Karsten Ballüder
5825712a9e Removed superfluous GDK_DECOR_BORDER.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 15:13:02 +00:00
Robert Roebling
58d1c1ae86 minor fixes
cursor fix for splitter window


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 14:30:49 +00:00
Karsten Ballüder
051b55ad8b Minor fixes, should be ok now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 09:47:01 +00:00
Julian Smart
6776a0b25c Some doc corrections; various small fixes for Cygwin and BC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 08:38:01 +00:00
Julian Smart
04a6512306 Defined PBS_SMOOTH, PBS_VERTICAL in gauge95.cpp, if required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-06 08:31:56 +00:00
Robert Roebling
b0351fc91e added wxStaticLine used in wxMessageBox
added wxNO_BORDER style to radiobox


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 21:42:48 +00:00
Karsten Ballüder
aa64626e23 Modified WM hints handling which should be much better now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 21:16:16 +00:00
Robert Roebling
08fc17448a fix for menu separator
wxGlCanvas works again (but flickers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 20:05:26 +00:00
Ove Kaaven
a55268db33 cWX2MB and cMB2WX should be available even when without wchar_t.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 14:20:05 +00:00
Julian Smart
7019025615 Fixed Yield/Windows clash in sckint.cpp, updated makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 11:45:20 +00:00
Robert Roebling
fdd3ed7a8f Added scrolling of widgets and sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 10:25:38 +00:00
Julian Smart
aeab10d07c wxNotebook fixes for Win16; VC++ 4 fixes for OLE files; wxGA_SMOOTH flag (wxMSW);
wxFRAME_FLOAT_ON_PARENT style for frames (wxMSW) to get traditional MSW behaviour.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 08:57:41 +00:00
J. Russell Smyth
e716ca3d3b Added wxCONFIG_USE_RELATIVE_PATH option to allow relative paths for config files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 05:01:08 +00:00
J. Russell Smyth
944ac90330 Added wxCONFIG_USE_RELATIVE_PATH option to allow config files to be
specified with relative paths


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-05 05:00:12 +00:00
Robert Roebling
bbf7db28cb Fox around a bug in GTK's GtkNotebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-04 16:16:31 +00:00
Robert Roebling
69cdfbf7f8 Found a few situations where the most recent
corrections crashed.
  Changed default size of wxComboBox to what
    seems to be the only value the arrow button
    likes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-04 15:54:49 +00:00
Robert Roebling
5549fa6559 Added window resize patch to wxFrame
Added patch to wxNotebook for keeping m_id in
    synch after deletion of pages
  Added patch for idle handling within DnD


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-04 11:15:37 +00:00
Robin Dunn
69c6074dc5 RPM bulid updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-04 03:43:25 +00:00
Robin Dunn
e6c95f27a3 Some slight cleanup and reorganization
Added support for making RPM distribution


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-04 00:25:56 +00:00
Robert Roebling
cf724bceea TreeCtrl indentation and spacing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 23:11:53 +00:00
Robert Roebling
e208b369f0 Fixed a bug which sometimes lead to windows
showing up at the size of 20x20 (default).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 21:09:58 +00:00
Karsten Ballüder
b0795d4568 fix for gtk 1.0.x
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 14:28:51 +00:00
Robert Roebling
858b5bddf6 Implemented flat toolbars
corrected mouse cursor over splitter window
  corrected segvs when setting bg colour in text ctrl
  sliders enlarge when they have labels to avoid pixel junk


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 12:19:16 +00:00
Robert Roebling
7f3b7908d3 configure defaults to sockets=1 and checks if threads are 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 08:06:53 +00:00
Robert Roebling
5c387335d7 Improved wxTextCtrl's wrapping behaviour
wxGTK package corrections


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-02 19:23:38 +00:00
Robert Roebling
fac4253c6f mini-bugs in wxMenu (it now converts / to \ in
the menu text)
  toolbar tips are yellow again
  typo in dcclient


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-02 09:19:44 +00:00
Robin Dunn
c127177f8d More for wxPython 2.0b9 (hopefully the last...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-02 02:06:43 +00:00
Robin Dunn
53920141b5 more 2.0b9 updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-02 00:04:00 +00:00
Robert Roebling
9c288e4d6d Fix for wxPython segvs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-01 21:23:41 +00:00
Robert Roebling
15b24b148a Rewrite generic message box
Minor corrections to frame/resizing
  Update for wxPython


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-01 21:21:35 +00:00
Robin Dunn
8d72073ee3 wxPython 2.0b9, second phase (gtk)
Added gobs of stuff, see wxPython/README.txt for details


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-01 05:10:31 +00:00
Robin Dunn
ab9bc19bd1 wxPython 2.0b9, second phase (gtk)
Added gobs of stuff, see wxPython/README.txt for details


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-01 04:41:52 +00:00
Robin Dunn
d403febc27 wxPython 2.0b9, first phase (win32)
Added gobs of stuff, see wxPython/README.txt for details


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 21:13:43 +00:00
Robin Dunn
86975656fb wxPython documentation update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 21:11:11 +00:00
Robert Roebling
ab46dc18ab Added hotkeys to menus "E&xit\tAlt-X" and such.
Added hotkeys to minimal sample. Please on wxMSW.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 20:13:24 +00:00
Ove Kaaven
c50c1ddcb2 Should compile better if wchar_t is not available.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 17:14:48 +00:00
Robert Roebling
3cdda6cd81 Updated docs, distrib and version
wxGLCanvas now gets keyboard input


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 13:53:02 +00:00
Robert Roebling
d9f39e09e8 jconfig.h uses configures results
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 10:42:51 +00:00
Karsten Ballüder
95ee0ac83b suppressed compiler warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 10:35:30 +00:00
Karsten Ballüder
f46f1bc60a suppressed compiler warning about unitialised umask value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 10:30:19 +00:00
Robin Dunn
e04ac043b1 wxPython 2.0b9, first phase (win32)
Added gobs of stuff, see wxPython/README.txt for details


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 03:36:26 +00:00
Robin Dunn
cf694132f1 wxPython 2.0b9, first phase (win32)
Added gobs of stuff, see wxPython/README.txt for details


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 03:29:54 +00:00
Robin Dunn
ca298c8852 Fixed wxValidator::Clone and friends to return a wxObject* to keep
MS VC++ happy


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-30 02:39:50 +00:00
Robert Roebling
80ec928cf7 Compile fixes for SGI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-29 21:19:57 +00:00
Ove Kaaven
53b88b545e Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-29 17:19:09 +00:00
Robin Dunn
f899db6d37 wxPython documentation update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-29 16:12:07 +00:00
Robin Dunn
a4fe652485 Added $(NEW_WXLIBNAME) to allow changing the library or DLL name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-29 15:57:41 +00:00
Robert Roebling
19da43267e controls sample tests a bit more
combox doesn't send start-up event
  spinbutton looks correct now
  slider had vertic/horiz flags mixed up
  threads use gdk_enter_gui()
  dnd works a bit more often


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-29 15:00:11 +00:00
Robert Roebling
b9a535f540 MiniFrame title are back.
DnD and threads have stopped to work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 21:41:16 +00:00
Robert Roebling
288bf1296a removed (wrong?) assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 18:28:06 +00:00
Robert Roebling
90e586840b Added configure patch for DEC
Tried to find a DnD bug.
  Corrected a tree ctrl bug.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 17:05:45 +00:00
Karsten Ballüder
d38ceae8b9 Fixed gtk 1.0.6 corruped menu entry names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 14:06:09 +00:00
Robert Roebling
72a16063d3 background colour changes for listbox and combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 12:56:25 +00:00
Karsten Ballüder
f9a273cd71 Fixed gtk 1.0.6 floating subwindow bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 11:39:57 +00:00
Robert Roebling
2e563988fb Chnages to focus code with debug code
added wxSL_LABELS


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-28 08:29:22 +00:00
Ove Kaaven
c05cbb7f5e Added wxchar.cpp, I think
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-27 23:33:24 +00:00
Robert Roebling
acfd422afa New idle handling. Only that.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-27 19:32:19 +00:00
Guilhem Lavaux
e5e41feafa * Fixed a compilation problem on Windows
* Fully added sckint.cpp to makefile.b32


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-27 18:24:37 +00:00
Robert Roebling
ec5d85fbd5 combobox buglet when inserting item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 22:17:55 +00:00
Robert Roebling
fafd7fd901 compile fix in debug mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 21:49:42 +00:00
Robert Roebling
e5ea3f7a96 added check for GTK 1.2
added symbol __WXGTK12__  (do not use GTK_MINOR_VERSION in your code
    as this is undefined anywhere outside wxGTK itself)
  updated wxGTK.spec for local builds
  fixed clipboard clear/setdata race
  test for wxConvLocal in dialogs sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 20:48:39 +00:00
Ove Kaaven
5f709e6725 Changed capitalization style of wxConv*
(e.g. wxConv_current is now wxConvCurrent, although I put some #defines
in to still have it compile)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 18:18:30 +00:00
Guilhem Lavaux
a737331db6 * Committing new wxSocket core (socket.cpp sckint.cpp). It has to be improved ...
* Adding sckint.cpp to various makefiles.
* Fixes in threadpsx.cpp (Pause/Resume)
* Fixes in threaded event dispatching
* Added Clone() to wxObject
* Implemented Clone() in wxEvent and wxSocketEvent
* wxSocket sample save the data got from the URL in test.url (this will change)
* As I only tested wxSocket on Linux Redhat 5.2 I disabled it by default on
  Windows, Mac and Unix platforms.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 18:16:56 +00:00
Karsten Ballüder
6a3ab8b15a Added the missing check for libw needed for wcslen() (Just defines in headers
don't fix such a problem.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 15:15:11 +00:00
Robert Roebling
1b3667ab28 Another attempts at getting dialog positions right
Cursor fixes.

  This requires a recompile.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 15:14:33 +00:00
Robert Roebling
227e5e99cd Layout things in wxMessageBox
Positioning of frames and dialogs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 13:10:49 +00:00
Ove Kaaven
a89ae1e485 Heavier checks for wxUSE_WCHAR_T
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 10:33:43 +00:00
Ove Kaaven
2858119ba4 Optional implementation of wcslen().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-26 10:16:21 +00:00
Robert Roebling
10d5be9ad3 experimental OLE control (the reason for the
recent reshuffle)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 16:55:03 +00:00
Robert Roebling
13393ab623 The colour is called Aquamarine, not Aquaramine. No,
you cannot eat it either.
  Also, menubar short cuts work now.
  Some more focus goodies.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 16:31:27 +00:00
Robert Roebling
1e133b7d64 Backgrounds work again
splitter sample compiles with Unicode
  if a wxClientDC is used on an unrealized widget,
    the widget's realization is forced in wxClientDC
  added underscores to wxMenuBar - don't work..
  tried to figure out why wxFrame doesn't get keyboard input


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 15:10:52 +00:00
Ove Kaaven
eea4f86a0c Implemented UTF-8 encoding.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 12:43:55 +00:00
Ove Kaaven
6f841509ce Uses wxUSE_WCHAR_T for compilers that don't support wchar_t.
Added wx_str() and WXCSTRINGCAST, which should be explicitly defined
to work on wxChar (doesn't look like people want c_str() to be
unconditionally defined as wxChar).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 12:42:55 +00:00
Robert Roebling
58dea4b067 Fixed a layout bug in MyFixed
More things done after realization
  wxListCtrl is grey now. Why?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-25 01:00:34 +00:00
Ove Kaaven
7ef156f797 GetValue() converts using wxConv_current...
my app seems to be starting to work in Unicode mode,
will wonders never cease.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 22:36:02 +00:00
Robert Roebling
2b07d71308 Had to change the time point, when widgets are
created (no longer forced). This seems to break
  wxNotebook...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 21:57:18 +00:00
Ove Kaaven
38444daf66 Fixed bug in wxConv_local.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 19:34:06 +00:00
Robert Roebling
b03b33e2e6 DnD with Unicode fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 16:00:28 +00:00
Ove Kaaven
434d2cb3c6 Added wxOKlibc(), which checks for glibc2.0, which incorrectly does UTF-8
conversion even when it's not in UTF-8 locale


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 13:57:26 +00:00
Ove Kaaven
b43ca95a8f Small bugfix for wxString::Printf regarding %hs...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 13:07:43 +00:00
Robert Roebling
031bc97f46 small change required for OLE component
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 12:55:04 +00:00
Ove Kaaven
435595e02f Constructor should survive getting passed a null pointer for conversion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 12:25:03 +00:00
Ove Kaaven
d9e89b159c cMB2WX and cWX2MB accepts null pointers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 12:21:03 +00:00
Robert Roebling
c96faa7c9b wxGLCanvas works again
added GTK 1.2 logical functions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 10:18:09 +00:00
Robert Roebling
9f06bcb3b8 minimal now works in Unicode mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-24 08:50:40 +00:00
Robert Roebling
f70d582977 made controls sample compile in unicode mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-23 10:38:58 +00:00
Karsten Ballüder
8e360a085f Modify to demonstrate layout bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-23 09:14:48 +00:00
Ove Kaaven
0042120682 More fixes to make Borland compile this in Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-23 07:31:12 +00:00
Ove Kaaven
20fd9757ff Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-23 07:30:12 +00:00
Ove Kaaven
4ca9b362cd Yet another one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-22 22:45:32 +00:00
Ove Kaaven
07fa75bc31 Another Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-22 22:39:31 +00:00
Ove Kaaven
b5be07d450 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-22 22:19:28 +00:00
Ove Kaaven
107dcfab63 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-22 21:54:38 +00:00
Ove Kaaven
b1fa8b4e25 Added operator[] (read-only of course). Borland C++ 4.52 wasn't smart
enough to automatically convert to a pointer for array indexing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-22 00:31:06 +00:00
Ove Kaaven
4de6207afa Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-21 21:46:02 +00:00
Robert Roebling
eefa26bed1 fixed bitmap constructor for monochrome bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-21 12:35:02 +00:00
Robert Roebling
7ddb3812fd script update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 19:23:03 +00:00
Ove Kaaven
b0bb2669bc Another "char" occurrence
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 14:23:27 +00:00
Brian Macy
b86510f8ef Can't figure out why Borland was excluded from DRAG and DROP... anyways, its changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 13:52:19 +00:00
Ove Kaaven
d0bdc3ca5f Some Unicode fixes (mostly for Borland's pickiness regarding _T(), which
might be considered a good thing anyway).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 11:08:02 +00:00
Ove Kaaven
554936c829 Moved that HAVE_WCSTR_H here.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 11:05:44 +00:00
Ove Kaaven
7a3e402c11 ...and my Linux doesn't have wcstr.h. (Including of those files should be
performed in wxchar.h now anyway)
Also encapsulated wxWCharBuffer in #if wxUSE_WCHAR_T


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 11:05:16 +00:00
Ove Kaaven
81d425f691 Some further changes. Now also sets a wsUSE_WCHAR_T that's set to 0 for
MSVC++ 1.5, and 1 otherwise. You may define it to 0 for other compilers
that don't have wchar_t either.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 11:00:06 +00:00
Robert Roebling
00ca73aa45 two people fixing the same thing...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 10:49:32 +00:00
Karsten Ballüder
851630e4f3 typos fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 10:30:53 +00:00
Karsten Ballüder
76ed42ef66 Tests for wchar.h/wcstr.h - PLEASE DO NOT GUESS BUT USE CONFIGURE TO TEST!!!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 10:26:43 +00:00
Karsten Ballüder
e955db19c1 I think I fixed the wxGenericPrintSetupDialog but PLEASE CHECK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 10:25:56 +00:00
Robert Roebling
8a126fcc34 little doc updates
removed GTK 1.0 Drag'n'Drop
  added (const char*) constructor to wxDataFormat
  added -I pointing to embedded /png and /jpeg dirs
  corrected frame/dialog resizing


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-20 10:09:15 +00:00
Julian Smart
75737d0570 Fixed wxPostScript printing problem (used wrong constructor, and the right
one was wrong anyway...) Fixed include dir ordering in wxMotif makefiles (wrong version of zlib.h picked up) and added wxchar.cpp to Motif makefile. Changed buffer.h since there's no wchar.h on my system.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 20:43:41 +00:00
Vadim Zeitlin
f861258fca a wxCHECK added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 20:27:40 +00:00
Ove Kaaven
65d7724685 Must include wchar.h in non-Unicode build too, since buffer.h depends on it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 19:54:58 +00:00
Ove Kaaven
111edd48cc Hmm, seems Borland also doesn't want wchar_t in fopen() and friends
(correct me if I'm wrong?)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 18:27:51 +00:00
Ove Kaaven
e97f6ab64e More wxChar conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 18:23:09 +00:00
Ove Kaaven
621ae68a13 Those pesky globals declared all over again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 18:04:57 +00:00
Ove Kaaven
df0a25492e Unicode conversion for MSW, or something
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 18:02:45 +00:00
Ove Kaaven
06c545a703 Helps Borland compile further in Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 17:48:28 +00:00
Ove Kaaven
39ca6d790b Some Unicode changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 17:47:19 +00:00
Karsten Ballüder
4875458c3e SOCKLEN_T expanded to socklen_t if supported, neede by ALPHA (yes, it's back!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 16:31:11 +00:00
Ove Kaaven
0841bffa45 Forgot an additional prototype.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 16:11:22 +00:00
Ove Kaaven
853d7d3dc9 Attempts to make this wchar_t business compile with Borland C++ 4.52.
(While I was at it, I made the macro usage even more confus...
I mean portable... than before.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 16:07:51 +00:00
Robert Roebling
67246edee2 JPEG fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 15:13:31 +00:00
Vadim Zeitlin
d390f6eefc wxTextCtrl::DiscardEdits doesn't empty the text ctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 12:51:51 +00:00
Julian Smart
63863e09de Fixed wxexpr.cpp bug (quote wasn't being removed in new MB code);
fixed one of the remaining memory leaks (wxMSW, wxDefaultValidator)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-19 10:14:51 +00:00
Vadim Zeitlin
cedda7e689 fix for the fix for the umask fix in wxTempFile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-18 21:22:40 +00:00
Ove Kaaven
923d315695 glibc2.1 chokes on null input to wcstombs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-18 10:48:43 +00:00
Ove Kaaven
20456250d2 ...for both buffer types...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-18 00:20:20 +00:00
Ove Kaaven
d87c0ac7b9 Oops. The typecasting was interpreted as a constructor call...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-18 00:18:39 +00:00
Ove Kaaven
6cf7c00f3b Defer retrieval of LANG env var, too. No memory management
or conversion is now performed in wxCSConv constructor.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 23:01:48 +00:00
Ove Kaaven
551df6f246 New private SetName method in wxCSConv...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 22:51:21 +00:00
Vadim Zeitlin
bd9d76cbe5 tooltips in controls in dialogs actually work now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 20:30:28 +00:00
Vadim Zeitlin
9a5ccab431 radiobox now sends notification messages when the selection is changed from
keyboard, but doesn't send them when the selection does not change (when the
already selected button is clicked with the mouse)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 20:29:40 +00:00
Brian Macy
41618278a6 Enough wxBitmapDataObject implementation to work with wxClipboard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 19:46:57 +00:00
Robert Roebling
e19291405f Added a bit of libJPEG 6.0b
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 17:54:07 +00:00
Ove Kaaven
6836fdedc0 Unicodified list of color strings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 13:55:56 +00:00
Robert Roebling
4b48b61050 added missing files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 13:46:46 +00:00
Robert Roebling
a626cc0305 libPNG 1.0.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 13:43:15 +00:00
Ove Kaaven
d207efe172 Adapted those asserts and debug messages for Unicode.
All of wxGTK now compiles, and for my app, also links in Unicode mode.
(Too bad it just segfaults though, guess it's debugging time...
if only gdb wouldn't segfault even when just loading the core file)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 13:21:38 +00:00
Ove Kaaven
a907da15bc Unicodified wxEndsWithPathSeparator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 13:12:39 +00:00
Ove Kaaven
66fbdb15a4 Fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 12:21:58 +00:00
Ove Kaaven
0080691b20 Unicodified a few routines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-17 12:20:43 +00:00
Ove Kaaven
c16e5a9271 Unicodified wxSplitPath
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 23:06:39 +00:00
Ove Kaaven
6f9eb45239 Had changed the prototype of wxOnAssert after the discovery of __TFILE__
but had forgotten to change the implementation too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 22:59:58 +00:00
Vadim Zeitlin
7af61b2e18 bug in handling escaped chars in entries/group names corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 21:47:34 +00:00
Brian Macy
c1b2075d92 Made return a const reference
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 19:05:11 +00:00
Vadim Zeitlin
004c69ab7b attempted Borland C++ compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 18:35:39 +00:00
Vadim Zeitlin
786855a1db log unknown log levels too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 18:35:22 +00:00
Brian Macy
c6cee67252 Changed some parameters to be const references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 18:27:29 +00:00
Vadim Zeitlin
373d88af8a wxLog shouldn't complain about log levels it doesn't know about
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 17:51:31 +00:00
Ove Kaaven
9626e0bfc6 const-ness warnings in non-Unicode again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 17:26:23 +00:00
Ove Kaaven
b2219150ca Hm, better make the operators inline.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 16:41:05 +00:00
Ove Kaaven
87138c520c All files compile in Unicode mode, but I have only converted things near
points of compiler warnings/errors, they have not been exhaustively
reviewed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 14:19:32 +00:00
Ove Kaaven
9aa521548d Added a comment.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 14:15:40 +00:00
Ove Kaaven
83a21afbcb Some Unicode conversion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 14:14:47 +00:00
Vadim Zeitlin
3727898455 don't log empty status messages in wxLogWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 14:05:33 +00:00
Ove Kaaven
bf88baa63e Needed the reverse operator+ too...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 12:49:47 +00:00
Ove Kaaven
028a2b5d53 operator+(const wxString&, const wx[W]CharBuffer)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 12:24:26 +00:00
Ove Kaaven
0e6667e269 wxGetUserHome() may return const val.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 11:30:09 +00:00
Ove Kaaven
2aaf2049c0 wxGetUserHome() returns a const value in Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 11:20:59 +00:00
Ove Kaaven
05079acc83 Compiles in Unicode mode.
OK, I've still got generic/ left to convert...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 11:19:50 +00:00
Ove Kaaven
61ef57fc5e wxGetUserHome() returns "const wxMB2WXbuf" for Unix in Unicode build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 11:18:46 +00:00
Ove Kaaven
c71c744a57 wxLoadCharacterSets() now appears to work (was a bit slow, but since it's
not called until someone actually uses wxConv_local, it should not affect
too many).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 09:58:38 +00:00
Robert Roebling
ba0730de65 wxImage now uses GTK 1.2's fast rendering code if possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-16 09:52:32 +00:00
Robert Roebling
24714ea3c5 removed some test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 19:29:04 +00:00
Vadim Zeitlin
0151c3eb43 log messages given during program initialization are not discarded any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 19:16:19 +00:00
Robert Roebling
5679f3353c small mods to tree ctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 19:10:29 +00:00
Ove Kaaven
a28d23bb2c Defer loading of character sets, and some anti-crash checks related to
missing or incomplete LANG env var.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 18:09:48 +00:00
Ove Kaaven
a86f1d4a7d Slightly better style?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 18:07:30 +00:00
Ove Kaaven
03715438eb Right-o, wxConv_local does cause some weird crashes, but things
appears to work without right now, so I #if-ed it out for now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 16:02:13 +00:00
Ove Kaaven
69e15b78af (ugh, I need to get a faster computer)
Applied the more beautiful compilation fix.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 15:38:43 +00:00
Ove Kaaven
3a309a64d7 Another inline constructor to facilitate Unicode conversion without #if-ing...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 15:13:26 +00:00
Ove Kaaven
15965b8b11 Compilation problem in non-Unicode mode. (Will fix in a more beautiful way later)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:54:16 +00:00
Ove Kaaven
e06937ad73 Compiler warning in non-Unicode mode fixed.
(No, does not fix a real problem, the library is still compiling here)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:51:31 +00:00
Karsten Ballüder
34adc693b0 Added a wxYield() warning to wxExecute() entry.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:40:41 +00:00
Ove Kaaven
05939a8140 OK, while I wait for the non-Unicode build to compile, I can report
that now all files in gtk/ compiles in Unicode mode. unix/ is still
missing, but that probably wouldn't take too long.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:36:04 +00:00
Karsten Ballüder
95dee6514a Added wxEnableTopLevelWindows(bool enable) for use by wxSafeYield().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:18:12 +00:00
Vadim Zeitlin
af3de916ef workaround for mingw32 div() bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 14:16:14 +00:00
Vadim Zeitlin
2f000c959a GTK 1.0.x compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 13:53:00 +00:00
Vadim Zeitlin
7fd43a44d6 GTK 1.0.x compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 13:47:16 +00:00
Ove Kaaven
9f15c5febf A couple more.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 13:24:06 +00:00
Ove Kaaven
b019151f0b So far so good. These now compiles in Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 13:02:22 +00:00
Robert Roebling
b1da76e108 added update UI event code to toolbar, could
someone test this


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 12:08:59 +00:00
Ove Kaaven
d4ffe273ca Implemented wxArrayString::Shrink() and stuff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 10:11:31 +00:00
Robert Roebling
41ca191f4b egcs compilation fix
toolbars give away their space when floating (as well)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-15 10:05:22 +00:00
Ove Kaaven
ed9b9841b3 OK, enough for today. To be continued tomorrow...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 22:47:16 +00:00
Ove Kaaven
93c5dd39af These at least compiles in Unicode mode...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 21:53:47 +00:00
Ove Kaaven
578c208107 char -> wxChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 21:52:38 +00:00
Ove Kaaven
3bce750983 This seems to be compiling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 20:23:46 +00:00
Ove Kaaven
3e473156c6 If you look at the conversion and character set code at the bottom of
string.cpp (and the #includes), maybe someone will think that it should
be moved into a separate file. (I'd agree but not bother yet.)
(And someone added literals without _T() in imaggif.cpp again)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 19:59:03 +00:00
Ove Kaaven
a69f7aa823 More helpful Unicode stuff.
Conversion classes are now:
wxConv_libc (standard mbstowcs/wcstombs)
wxConv_file (usually same as above, but I think some Asian locales
use different encoding systems on the filenames than on the contents
of the files)
wxConv_UTF7 (7-bit Unicode encoding (similar to BASE64), for email etc,
not implemented yet)
wxConv_UTF8 (8-bit Unicode encoding, not implemented yet, just uses
mbstowcs/wcstombs, which just happens to be UTF-8 in glibc2)
wxConv_gdk (gdk_mbstowcs/gdk_wcstombs, not too useful)
wxConv_local (current 8-bit character set, from LANG env var)

wxConv_current: pointer to conversion class. Points by default to
wxConv_local, but it's meant to be able to be redirected by the user
(and wxGTK can point it at wxConv_UTF8 if it manages to set the UTF-8
locale).

mbc_str() returns mb_str(*wxConv_current) for convenience.
I will use mbc_str() in my upcoming wxGTK adaption.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 19:56:54 +00:00
Robert Roebling
16bcc879d9 wxGTK's built-in dockable menu now give their
space away when floating


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 16:56:36 +00:00
Vadim Zeitlin
67a7abf778 HitTest() now works when the ctrl is scrolled too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 14:58:17 +00:00
Robert Roebling
32a95f9f1a mini frame rewrite (titlebar still missing)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 14:55:56 +00:00
Ove Kaaven
ba555d51b0 wxConv classes and instances, including wxConv_gdk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 14:37:54 +00:00
Ove Kaaven
d41bba9157 wxMBConv derived classes and instances.
Added wxConv_gdk (wrapper for gdk_mbstowcs and gdk_wcstombs, which use
X calls instead of libc calls), which should probably not be used, but is
now there for completeness, and in case it's useful after all.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 14:36:58 +00:00
Robert Roebling
a260fe6a43 added wxCB_READONLY
fixed MDI bug
  fixed GTK 1.2.0 compilation in wxMenu::something


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 12:58:23 +00:00
Ove Kaaven
f39f922082 And here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 11:56:36 +00:00
Ove Kaaven
3b90345be1 Declared here too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 11:56:15 +00:00
Ove Kaaven
908d45166b The char->wxChar in window.h cascades through some other header files.
Someone give a hint why you'd declare the same extern global vars
separately in a ton of header files instead of just once in a header
file included by all the others?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 11:55:35 +00:00
Ove Kaaven
74ce55e92c char -> wxChar. (Vadim, you can probably just go ahead messing with
this file now)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-14 09:37:21 +00:00
Václav Slavík
e207152c59 fixed transparency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 22:29:58 +00:00
Vadim Zeitlin
5c51506096 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 22:24:24 +00:00
Robert Roebling
5af019af85 Drag'n'Drop works in a basic form
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 20:22:32 +00:00
Ove Kaaven
62bd5cf059 This is the way to go (well, close enough).
Unicodified lots of asserts.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 17:55:13 +00:00
Ove Kaaven
9cc7a35d9c By this commit, I guess I'm announcing intent to add Unicode support to wxGTK.
"Somebody stop me!" - The Mask


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 17:45:04 +00:00
Robert Roebling
4ba47b4019 Drag works.
Drop works,
  Drag'n'Drop doesn't work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 16:46:55 +00:00
Ove Kaaven
fde7d98ecd Got some compiler warnings in non-Unicode build. Fixed them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 16:22:43 +00:00
Ove Kaaven
d9a56bdeaf Someone must have committed some ASCII string literals while I wasn't looking.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 16:15:04 +00:00
Ove Kaaven
1ec11a0645 Unicode conversion.
All files in the common/ subdirectory now compiles in Unicode mode.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 15:23:06 +00:00
Ove Kaaven
5432628520 Unicode conversion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 15:20:36 +00:00
Ove Kaaven
d44f866a66 Now this one also compiles in Unicode mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 14:36:47 +00:00
Karsten Ballüder
0454d4ca74 Added variable cursor to highlight embedded user data.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 13:45:59 +00:00
Ove Kaaven
4846abaf45 Unicode interface (the communication itself is still in ASCII, I hope).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 12:44:37 +00:00
Ove Kaaven
8bec6d4ae8 Unicode support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 12:40:33 +00:00
Ove Kaaven
4400c1a450 Fixed a typo. Added sloppy implementation of wxSscanf (converts source and format,
then calls vsscanf; use only on number arguments!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 12:29:59 +00:00
Ove Kaaven
ea1395db1f Add wxSscanf (used in ftp.cpp to parse returned address)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 12:19:42 +00:00
Ove Kaaven
783b6cfda4 The prevalent wide characters.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 11:44:33 +00:00
Ove Kaaven
2ed57eb790 Unicode. You know the drill.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 11:43:03 +00:00
Vadim Zeitlin
4b21397f16 GetViews() documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 11:26:25 +00:00
Ove Kaaven
84fff0b395 More Unicode stuff. Implemented wxFprintf.
Some printfs changed to wxPrintf, fprintf to wxFprintf, as well as the
usual char->wxChar and _T().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 10:34:24 +00:00
Ove Kaaven
6d9bd0682c char->wxChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 10:31:53 +00:00
Ove Kaaven
c1160779dc Fixed glibc2.0 check (for that glibc2.0 workaround, which gives glibc2.1
warnings instead, since __ctype_tolower/upper is not declared there)
Added declarations for wxFprintf and wxVfprintf.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 10:21:42 +00:00
Vadim Zeitlin
fe99e2858a wxTempFile now respects umask when creating new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 09:01:10 +00:00
Vadim Zeitlin
0fea8a59b1 an attempt to fix glibc2.0 stupidness
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:56:14 +00:00
Vadim Zeitlin
c1ac1056b0 apparently this should fix some Borland problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:31:15 +00:00
Vadim Zeitlin
f33396842a some typos in docs and code corrected (thanks Janos)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:14:19 +00:00
Ove Kaaven
53388a784b Implemented wxPrintf.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:08:04 +00:00
Ove Kaaven
7c337432f0 Added wxPrintf declaration.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:03:36 +00:00
Vadim Zeitlin
8801832d0a Pending() and Dispatch() implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 08:00:44 +00:00
Ove Kaaven
e296ac9f3d Another one bites the dust.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 07:41:45 +00:00
Ove Kaaven
cf2f341a0a Unicode-mode typos in string.cpp (where did they suddenly come from?)
More Unicode-build conversion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 07:38:23 +00:00
Ove Kaaven
111bb7f2ea wxString assignment operator from wx[W]CharBuffer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 07:19:59 +00:00
Ove Kaaven
a982ddd202 wxAtof independent of wxNEED_WX_STDLIB_H, used by Visual C++ in Unicode mode,
defined to atof in non-Unicode mode.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 06:53:41 +00:00
Ove Kaaven
b7a5d6ca90 wxAtof implementation independent of (the rest of) wxNEED_WX_STDLIB_H
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-13 06:48:04 +00:00
Vadim Zeitlin
66f32eca4c wxAtof() fixed (?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 23:21:19 +00:00
Robert Roebling
829e3e8d3d wxDropTarget starts to work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:56:14 +00:00
Ove Kaaven
6b769f3d1f BIG glitch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:43:59 +00:00
Ove Kaaven
4300d6cbc3 Small glitch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:41:40 +00:00
Ove Kaaven
509201463d It now compiles all these files without warnings in Unicode mode.
(at least It Works For Me(tm))
I will respond to any complaints when I wake up for another workday
(any complaints will prove whether Vadim was right in that it's bound
to break things)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:31:12 +00:00
Ove Kaaven
9d2f3c71d8 Oh well, I'll just stuff in the rest of the Unicode changes I have made
so far here. You may start complaining now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:20:19 +00:00
Ove Kaaven
9e3d3318dc Uses Unicode strings. Now we've got a __TFILE__ macro, too (I think?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:17:06 +00:00
Ove Kaaven
e36e6f95aa Unicode support. Uses wxWCharBuffer in Unicode build. Compiles, at least.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 22:03:14 +00:00
Ove Kaaven
7b36d72062 Unicode support. The _() macro is made to imply _T() (would be boring to
type _(_T("text")), I think). That means you have to use wxGetString()
directly if you need to look up from a string variable instead of a literal.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 21:58:42 +00:00
Ove Kaaven
2bb67b808b Unicode support for wxString (wxchar.cpp won't compile without it, so I
figured I couldn't hold it back anyway).
Added many macros. Changed most char to wxChar, and literals wrapped in _T().
Added conversion classes. Added new constructors to wxString, and mb_str(),
wc_str(), and fn_str() (the last is mb_str() on Unix and c_str() on Windows,
since Windows takes file names in Unicode (I think), while Unix doesn't).
Rewrote wxString::Printf().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 21:14:46 +00:00
Ove Kaaven
f3dbd876fc Added wxchar.cpp/.obj
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 20:44:57 +00:00
Ove Kaaven
f93d01be83 Added allocation constructor (makes it easy to convert right into a buffer
allocated to size by this class), copy constructor (egcs does not like
const wxCharBuffer& mb_str() { return wxCharBuffer(...); }, so it HAS to be
copiable), and assignment constructor (so it can be stored to a variable
for efficiency, instead of being converted every time the string is needed).

(The copy and assignment operator wipes the source, so the buffer is
essentially passed on to the new instance without being freed by the old.)

wcsdup() is not declared in glibc by default, so use malloc() instead.
Added some 'convenience' macros.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 20:10:56 +00:00
Karsten Ballüder
9e55588fe3 Countless (some half-finished) optimisations.
Started implementing selections.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 20:06:46 +00:00
Ove Kaaven
e97a90f0a8 For non-Unicode added #include <ctype.h> and <string.h> to avoid some missing
declaration warnings, added wxAtof, changed wxStrtok declaration, added
conditional declarations for functions in wxchar.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 20:01:51 +00:00
Ove Kaaven
c9e089e9f4 Added wxchar.cpp, which contains:
wxMB2WC, wxWC2MB (wrappers for mbstowcs and wcstombs)
wxStrdup and thread-safe wxStrtok, for when libc does not supply it
wxSetlocale, wxSprintf, wxVsprintf, wxAtof, wxAtoi, wxAtol, wxGetenv,
wxSystem: Unicode-supporting wrappers


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 19:56:38 +00:00
Robert Roebling
ef47f9b3fd Fixing a few fixes..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 14:41:43 +00:00
Vadim Zeitlin
ea18eed94c wxUSE_THREADS typo corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 14:02:23 +00:00
Robert Roebling
96d5ab4d29 added moving subwindow when scrolling (tested in image.cpp )
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 13:47:34 +00:00
Václav Slavík
99cc0158e2 ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 13:44:52 +00:00
Robert Roebling
ca35e608cd clipboards tests
WM hint corrections (guesses)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 13:18:04 +00:00
Vadim Zeitlin
c386222cd3 fixed compilation under Motif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 11:51:36 +00:00
Vadim Zeitlin
5f939e78ef HitTest test added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 11:48:06 +00:00
Vadim Zeitlin
a0fdaceeb1 GTK 1.0.x compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 11:39:51 +00:00
Vadim Zeitlin
14971e5b9f auto buffer class(es)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 09:57:22 +00:00
Robin Dunn
e12f91dc2b Added $(WAITFLAG) so other shells can use appropriate flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 01:30:01 +00:00
Robin Dunn
69157f8b8b Added SetPaperId. It seemed to want such a method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 01:22:05 +00:00
Vadim Zeitlin
eac2aeb01e wxGetCwd fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-11 23:19:48 +00:00
Vadim Zeitlin
7fe4f50002 thread deletion fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-11 23:15:31 +00:00
Robert Roebling
ab2b3dd4a2 Rewrote MDI system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-11 22:43:52 +00:00
Václav Slavík
53b7ce7ef8 direct stream use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-11 19:07:33 +00:00
Václav Slavík
9e9ee68e90 MIME support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-11 19:07:17 +00:00
Vadim Zeitlin
092fdc46a9 oops... fatal bug (which I recently introduced) with uninit callback corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-10 22:27:21 +00:00
Vadim Zeitlin
357196321f unitialized var initialized (mainly to reduce Purify warnings)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-10 22:26:46 +00:00
Vadim Zeitlin
8df136714c tooltip bug (which I introduced recently) corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-10 22:24:32 +00:00
Ove Kaaven
639a9fb5d7 Added wxStrdup().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-10 14:15:15 +00:00
Robert Roebling
f362b96d67 Removed this Maximize() overridden bug
Changed wxFrame so that drawing into the
    client area draws into the client area.
    Removed some ugly hacks on the way. Don't
    forget to recompile everything.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 20:26:29 +00:00
Robert Roebling
034be8882c Here it comes:
Doc updates
  Makefile doesn't strip anylonger
  Makefile adapted to /src/unix etc
  Added wxLB_ALWAYS_SB
  Added MWM window manager hints
  Fixed event handling bugs that (among others) caused
    the wxListBox misbeahiour
  Rwwrote GtkmyFixed for GTK 1.2
  Made data requests etc in wxClipboadr asynchronous
  Added underscores to menus (some)
  Tried in vain to make wxTextCtrl (and its GtkTable)
    behave correctly. The bottom text control in the
    controls samples still misbehaves upon start-up.
  did I change notebook.cpp ?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 18:01:17 +00:00
Guilhem Lavaux
c84fb40aab * Commented out "delete this;"
* Finished threads can be restarted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 17:31:20 +00:00
Ove Kaaven
1cfecdda6f For non-Unicode, preserve binary compatibility by doing
#define wxChar char
instead of typedef char wxChar. This is a temporary measure.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 12:42:26 +00:00
Karsten Ballüder
f0594f42be No more overlap between lines (I hope).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 10:06:21 +00:00
Karsten Ballüder
d701d432df better centering of text/images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 09:54:03 +00:00
Karsten Ballüder
49cd56ef86 fixed some glitches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 09:45:38 +00:00
Karsten Ballüder
d30b4d2007 Modified it to adjust to different icons sizes. Please check.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-09 09:18:52 +00:00
Ove Kaaven
34f9227c5a Unicode definitions for glibc, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 23:38:47 +00:00
Ove Kaaven
64ef36223c Unicode support is *experimental*, so disable it by default.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 23:22:29 +00:00
Karsten Ballüder
08ee61e920 Removed check for pthread-0.7 on Linux which causes problems on some glibc2
systems and break static linkage.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 20:52:29 +00:00
Karsten Ballüder
53a8af592a Fixed gtk 1.2.x wxYield() problem (tested).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 20:51:00 +00:00
Julian Smart
7cf8333086 Added candidate wxDragImage implementation for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 19:36:00 +00:00
Julian Smart
6c41a418df Changed the focus-window event handling back
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-08 14:42:46 +00:00
Julian Smart
e702ff0f08 Menu/toolbar event handling now tries the window with the focus first.
wxTextCtrl processes cut, copy, paste, undo, redo commands and UI updates
automatically.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 21:33:22 +00:00
Václav Slavík
b59ff3c9c8 fixed bug with incorrect fileformat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 21:08:13 +00:00
Vadim Zeitlin
b12696919b allow access to terminating NUL character with operator[]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 17:22:19 +00:00
Karsten Ballüder
614ed50d20 workaround for counterintuitive wxString::operator[] behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 17:02:25 +00:00
Julian Smart
d2c7e39b9b Some typos corrected in iniconf.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 15:01:51 +00:00
Julian Smart
b59bf2db65 Added imaggif.h, imaggif.cpp (wxImage GIF-reading support); candidate
FindFocus implementation for wxMotif


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 14:51:34 +00:00
Vadim Zeitlin
9869734d04 no more SetAppName/SetVendor in the config classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 13:01:50 +00:00
Vadim Zeitlin
b58197f24a SetLabel() adjusts the label size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 12:59:29 +00:00
Vadim Zeitlin
1baa5e4ab5 ::GetWindowText() -> wxGetWindowText
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 12:35:36 +00:00
Karsten Ballüder
b66e7a06b5 I seem to have fixed the DeleteSubGroups() bug - PLEASE CHECK!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-07 11:23:50 +00:00
Vadim Zeitlin
61ba49f2b6 wxRegConfig::GetEntryType() added and some bugs fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 21:13:46 +00:00
Robert Roebling
22d5903e91 Chnaged text id for clipboard to "text/plain"
Now DnD actually links as well


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 20:50:34 +00:00
Julian Smart
b80ec6db89 Fixed some bugs in new code (CanPaste, GetSelection)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 20:26:41 +00:00
Vadim Zeitlin
966a3b2cc6 trying to work around gcc internal compiler error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 18:33:23 +00:00
Robert Roebling
d6086ea663 Changed clipboard text format id from "STRING" to "TEXT"
DnD might now actually compile (but nothing else)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 17:24:14 +00:00
Julian Smart
ca8b28f2ef Added some missing wxTextCtrl functions: Undo, Redo, CanUndo, CanRedo,
CanCopy, CanCut, CanPaste, GetSelection, IsEditable.
Also added wxNotebook::SetTabSize (only implemented on wxMSW but necessary
when using just an icon).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 16:32:33 +00:00
Vadim Zeitlin
49d5d881d4 wxTempFile now respects the access rights under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 16:28:21 +00:00
Vadim Zeitlin
c972e125b6 fixed compilation for gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 14:38:30 +00:00
Julian Smart
e9c4b1a2b5 JPEG and PNG code taken out of image.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 13:44:37 +00:00
Julian Smart
58abfef64f Fixed OnMenuHighlight, wxPrintData problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 12:55:44 +00:00
Vadim Zeitlin
19d40bab31 wxConfig::GetEntryType() added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 10:23:31 +00:00
Vadim Zeitlin
9a48c2ba3d bug in FindItemForId() fixed (?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 08:50:10 +00:00
Julian Smart
de4d7713bc ShowPosition fix to allow negative numbers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-06 08:29:30 +00:00
J. Russell Smyth
21677c36c9 Removed Persistance Framework code/files from FrameLayout
Corrected makefiles to match


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-05 23:55:42 +00:00
Julian Smart
c4b10e41c7 MSWOnCommand bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-05 16:13:24 +00:00
J. Russell Smyth
dffb854d17 removed settingsdlg from makefile.g95 - not part of the library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-05 03:22:57 +00:00
Václav Slavík
18c07b73c6 fixed input stream
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-04 13:02:19 +00:00
Julian Smart
58a33cb4e6 Win16 corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-04 11:24:51 +00:00
Harco de Hilster
594542b128 removed a few objects whose sources have been moved
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-04 05:24:58 +00:00
Vadim Zeitlin
c2dcfdef63 wxMenu and wxMenuBar modifications: now works much better with owner-drawn
items, better encapsulation (the wxMenu data members are no longer public),
simplified wxFrame and derived classes by moving the common parts into
member functions of wxMenuBar


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 22:25:12 +00:00
Vadim Zeitlin
14531b30fe code demonstrating wxMSW bug added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 21:15:28 +00:00
Julian Smart
cb2302446c Corrected someone's double-initialisation bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 20:36:17 +00:00
Julian Smart
6aa55ce727 Correct wrong memset ordering that produced an assert in the printing sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 19:17:42 +00:00
Brian Macy
7d5818e08b First attempt at clean-up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 17:46:18 +00:00
Karsten Ballüder
59e2b19ff7 Also the radiobox was unitialised.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 16:59:38 +00:00
Karsten Ballüder
378f7b3f89 Compiles and runs again with new printing code (which is still broken in wxGTK).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 16:57:46 +00:00
Karsten Ballüder
d14612c662 Attempt at fixing the broken printer dialog. *Lots* of unitialised variables!
Not fixed yet.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 16:48:12 +00:00
Guilhem Lavaux
4d3a259aff * Changed "wxPendingEvents" to pointers (tested on GTK)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-03 09:24:52 +00:00
Vadim Zeitlin
103aec296a more backwards compatibility for printing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 22:30:56 +00:00
Vadim Zeitlin
391364946e a simpler fix of textctrl key doubling bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 22:08:39 +00:00
Vadim Zeitlin
7708abe9cd wxMkdir() has 2nd param under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 21:57:20 +00:00
Julian Smart
a0d8a30528 Fixed doubled-up key effects in wxTextCtrl by resetting m_lastMsg to 0
after calling Default().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 19:05:02 +00:00
Julian Smart
511327386b Switched wxMkdir code back to old working version.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 16:25:46 +00:00
Vadim Zeitlin
ae8db4dc3a setup.h for makefile builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 10:36:03 +00:00
J. Russell Smyth
7cf496bfdc removed declaration of wxObject::Dump(stream &str) from tex2rtf.cpp -
I cannot see a reason for it, and it wont compile under VC++ (redefined
function).  Code is still there commented out if someone knows why it
should be here and how to ifdef it so VC++ 6.0 can still build it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 00:35:45 +00:00
J. Russell Smyth
a4146f166f changed (no longer valid) wxToUpper and wxToLower to toupper/tolower
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-02 00:29:59 +00:00
Julian Smart
26ac40202f Fixed wxPalette memory leak when loading BMP files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-01 19:29:18 +00:00
Robert Roebling
d345e841da With the exceptions of DnD, wxGTk now works with
both GTK 1.0.6 and GTK 1.2.1 - the latter still
  produces warnings and blah.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-01 12:14:30 +00:00
Vadim Zeitlin
1a33c3ba91 wxMkDir() has 'perm' argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-01 12:01:47 +00:00
Vadim Zeitlin
5ab656cd53 wxFindNextFile typo corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-01 11:23:00 +00:00
Brian Macy
348675e1cc Very bad wxPrintData destructor... fixed typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 23:01:10 +00:00
Robert Roebling
30f1b5f3ef added wxFrame::Command()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 17:53:27 +00:00
Robin Dunn
40c7a5fc4e Fixed the "Can't open file" message in ReadDIB so that it actually
displays the filename instead of garbage.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 16:40:08 +00:00
Vadim Zeitlin
b207457ce7 wxFAIL/ASSERT/CHECK documentation updated, CHECK2 added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 13:59:39 +00:00
Vadim Zeitlin
b29518f8f9 count++ bug corrected (patch from Dino Scaringella)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 13:35:03 +00:00
Robert Roebling
3c1b65a4a8 Added debug code to clipbard
changed colour reporting to PS


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-31 13:01:43 +00:00
Harco de Hilster
cd7f122719 calls to wxDynamicToolBar::AddTool(int,wxBitmap&) confused egcs-1.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 19:29:02 +00:00
J. Russell Smyth
f1d534dfb5 Fixed wxApp::SendIdleEvents for Vadim's new wxWindowList wxTopLevelWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 17:28:16 +00:00
Vadim Zeitlin
7491d644e6 Motif compilation fixes (now ok)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 11:09:48 +00:00
Vadim Zeitlin
58230fb1b3 call to pthread_attr_setscope() added (disabled for now) and several other small fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 11:09:18 +00:00
Vadim Zeitlin
4417b34387 1. notes for AIX compilation added
2. setup0.h existence documented


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 09:47:59 +00:00
Vadim Zeitlin
d524e22d02 docs synchronized with code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 09:47:18 +00:00
Vadim Zeitlin
82e06aa02f this file is now called setup0.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 09:46:27 +00:00
Vadim Zeitlin
e146b8c8bf wxTopLevelWindows is now a wxWindowList, better compatibility with the old
wxList in list.h


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-30 09:43:29 +00:00
J. Russell Smyth
8ffd43c56b changed removed wxToUpper to standard toupper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 22:17:15 +00:00
Vadim Zeitlin
c30aaf75f0 last fixes to fixes (MSW compilation works now)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 21:18:49 +00:00
Brian Macy
e87b7b6000 Ignore failure when deleting something that might not exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 21:17:51 +00:00
Brian Macy
a43e96b6ce Don't fail when deleting files that might not exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 21:14:23 +00:00
Brian Macy
7e81174d0b Added time.h so it would compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 21:08:15 +00:00
Vadim Zeitlin
d6b9496a96 header changes for the fixes commited previously
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 20:49:05 +00:00
Vadim Zeitlin
0fb67cd196 many miscellaneous fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 16:46:18 +00:00
Vadim Zeitlin
8826f46f0d more backwards compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 16:43:40 +00:00
Vadim Zeitlin
c27eab7e9c EVT_TEXT_UPDATED bug fixed, text ctrl callbacks simplified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 14:44:21 +00:00
Karsten Ballüder
dd59841c33 Merged in latest wxLayout code from Mahogany Mail.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 09:56:44 +00:00
Julian Smart
0a3d0d1157 Undefed Yield symbol if defined, else syntax error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 08:55:03 +00:00
Julian Smart
1d3dbc7b63 Fixed missing brace in app.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-29 08:51:32 +00:00
Harco de Hilster
8a252c002e added some more URLs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-28 23:08:55 +00:00
Harco de Hilster
0bea2d47cb works for windows too now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-28 22:38:48 +00:00
Harco de Hilster
eeec36a21f updated. Lots of new useless features. Internet-enabled, as they say...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-28 20:55:44 +00:00
Harco de Hilster
0d236c34d0 somewhat better organization; still a mess though. Don't know why I'm
committing...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-27 21:29:41 +00:00
Guilhem Lavaux
7214297d16 * Added threads event propagation. Should compile on GTK (tested).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-27 18:50:54 +00:00
Harco de Hilster
eedcfe5eb9 set background to white. EVT_CHAR still doesn't work in MSW though.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-27 15:11:59 +00:00
Harco de Hilster
35c1ca4bea very silly sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-26 23:07:46 +00:00
Julian Smart
33d28952b2 Added paper classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-26 21:14:01 +00:00
Julian Smart
7bcb11d307 Many changes to the printing classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 23:06:01 +00:00
Vadim Zeitlin
0ed9a934ca wait4() replaced by waitpid() which is POSIX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 16:55:29 +00:00
Vadim Zeitlin
2804b6d824 wxUSE_SIZE_T_STRING_OPERATOR fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 15:47:09 +00:00
Vadim Zeitlin
700b95dd32 HAVE_BOOL fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 15:27:26 +00:00
Vadim Zeitlin
227b5cd72f AIX patches from Hans-Joachim Baader <hans-joachim.baader@cjt.de>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 15:05:57 +00:00
Vadim Zeitlin
9dc12949f1 Motif cell highlighting problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 14:51:14 +00:00
Vadim Zeitlin
66a007fbcb wxNO_BORDER honoured by wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-25 14:44:44 +00:00
Vadim Zeitlin
4d91c1d1ae char handling fixed again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 23:40:28 +00:00
Vadim Zeitlin
c4dbfe148c fix for scrolling in checklistboxes (Win32 only)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 23:38:24 +00:00
Vadim Zeitlin
9e3e082102 hack to allow icons in wxStaticBitmap as well as bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 23:35:16 +00:00
Vadim Zeitlin
54bdd8b0ff char handling fixed once again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 23:34:18 +00:00
Vadim Zeitlin
dd3646fd30 CollapseAndReset() fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 21:56:08 +00:00
Vadim Zeitlin
8cd850693f compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 21:44:33 +00:00
Vadim Zeitlin
c626a8b797 wxMenu code clean up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 19:05:19 +00:00
Harco de Hilster
1c22cf1cf1 Some minor fixes to satisfy Latex. Tex2rtf works ok.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 22:51:44 +00:00
Vadim Zeitlin
be1023d508 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 22:10:12 +00:00
Julian Smart
6cd47507e8 Corrected valtext.cpp for disabled controls; added Dialog Editor fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 19:56:58 +00:00
Vadim Zeitlin
cc385968c4 1. ReadMailcap/MimeTypes returna bool error code
2. 'fallback' flag added to ReadMailcap
3, subtle (and very rare) bug with mailcap entries order corrected


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 17:39:47 +00:00
Vadim Zeitlin
3218cf580b wxFileDialog::GetFilename and GetDir work now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 15:53:08 +00:00
Vadim Zeitlin
5919d76b44 EndModal() isn't called twice any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 15:52:39 +00:00
Vadim Zeitlin
f65635b5c9 EnsureVisible() also expands the parent items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 13:50:29 +00:00
Vadim Zeitlin
882eefb1f7 more fixes for paused thread termination
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 13:27:03 +00:00
Julian Smart
d13c32e99d WS_CLIPCHILDREN is not always enabled in wxNotebook (caused painting problems).
Memory leak checking in app.cpp (wxMSW) now does checking from last checkpoint.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 09:14:07 +00:00
Vadim Zeitlin
879ba15fba issue with right aligned checkboxes added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 19:40:48 +00:00
Vadim Zeitlin
2cc0e28f6a hack to implement right aligned checkboxes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 18:55:24 +00:00
Karsten Ballüder
a818cceade fixed the description of wxSafeYield()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 14:51:27 +00:00
Vadim Zeitlin
43bb369911 wxSafeYield documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 13:30:41 +00:00
Vadim Zeitlin
d6d6268622 wxEvent::Skip() clarification added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 12:59:39 +00:00
Vadim Zeitlin
862cc6f9cd attempt to fix Delete/Pause deadlock
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 12:49:05 +00:00
Vadim Zeitlin
29545b1dc6 unix directory added to 'clean' target
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 12:28:50 +00:00
Karsten Ballüder
ead7ce1013 Added wxSafeYield(wxWindow *win=NULL).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 10:22:26 +00:00
J. Russell Smyth
8496896226 Minor correction to allow "disabled" buttons to work under MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-22 04:29:45 +00:00
Julian Smart
58a8ab8868 Added wxTreeCtrl::SetItemDropHighlight (wxMSW only);
added WS_CLIPCHILDREN style to wxNotebook.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-21 22:39:45 +00:00
J. Russell Smyth
aeab6775d8 Modified wxMSW listbox.cpp to work with wxCommandEvent::m_commandString
as wxString
Modified framelayout Makefile.vc's for move of settingsdlg.[h,cpp] and
wxinfo.[h,cpp] to sample/demo


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-21 08:20:38 +00:00
Karsten Ballüder
fad866f4b7 Fixed wxExecute() to handle filenames with spaces and quoted arguments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-19 10:57:18 +00:00
J. Russell Smyth
2387e0f207 Added Makefile/Makefile.in to generate tex2rtf under linux/unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-17 20:23:02 +00:00
Vadim Zeitlin
22b4634c61 mime.types entries with all fields on same line parsed correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-17 16:25:49 +00:00
J. Russell Smyth
da7b3583d8 1 - fixed listbox.cpp to work with events with m_commandString member as wxString (fixing to match recent change)
2 - made wxSystemSettings::GetSystemColour(wxSYS_COLOUR_GRAYTEXT) return better value


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-17 11:11:15 +00:00
J. Russell Smyth
af11388a62 1 - Moved settingsdlg.[h,cpp] and wxinfo.[h,cpp] to demo where they belong
2 - removed pf_sample from library - this was test code
3 - modified newbmpbutton to create all button images once at initial
creation
4 - newbmpbutton only refreses when necessary
5 - non-msw platforms may now disable (enable(FALSE)) a button - this will half-grey the image and draw text in disabled color.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-17 11:07:19 +00:00
Vadim Zeitlin
2900641401 wxCommandEvent::SetString() change - now uses wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-16 18:54:24 +00:00
Vadim Zeitlin
f42d2aba76 wxTextFile::Close() implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-16 18:44:38 +00:00
Karsten Ballüder
c0c22f7f4f testing cvs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-16 17:39:19 +00:00
Vadim Zeitlin
9c6e1335a0 compilation without threads fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-16 13:46:56 +00:00
Vadim Zeitlin
6442ad7f48 wxMotif compilation fix: tooltips always disabled, motif/setup.h created
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-15 13:22:15 +00:00
J. Russell Smyth
a1469addcd removed Antiflicker plugin and simple customize plugin from default
plugins


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-15 09:44:03 +00:00
J. Russell Smyth
862416e006 Completed Vadims HAVE_BOOL changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-15 09:33:49 +00:00
Vadim Zeitlin
68ad65f856 typos in error messages corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 22:31:35 +00:00
Vadim Zeitlin
fb9e1bc282 compilation fix (forgot to check in this one)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 22:00:56 +00:00
Karsten Ballüder
6ba4e8aceb Fixes and more functionality.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 21:22:10 +00:00
Karsten Ballüder
77c630ca85 Should work very well now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 16:04:57 +00:00
Václav Slavík
86a9c8e02f fixed bug in GetMimeType under win
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 12:41:17 +00:00
J. Russell Smyth
49841b74a4 Made font/color fixes right for windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 07:52:50 +00:00
J. Russell Smyth
8a704c2b39 1. Made use system colors/fonts
2. Made able to use xpm's and honor xpm transparency


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 00:26:08 +00:00
J. Russell Smyth
cb0f2f5446 added wxSYS_COLOR_BTNTEXT case was missing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-14 00:15:19 +00:00
J. Russell Smyth
08973ff0aa Made frame layout stuff use system settings for colors, fonts
Added xpm's to frame layout demo area
makd fl_demo use xpm's under GTK
made fl use xpm transparency


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-13 23:58:43 +00:00
Guilhem Lavaux
294e9a7aa0 * Docs fixes, wxStream overview enabled (all docs should compile now)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-13 20:14:37 +00:00
J. Russell Smyth
da9531bf35 1. added code to dyntbar to allow bitmap loading from windows resources
2. modified fl_demo sample to use bitmaps in windows resource to allow
   run-from-anywhere behaviour under windows.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-13 00:42:30 +00:00
Vadim Zeitlin
7cf8cb48f8 another attempt to improve combobox behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 21:36:27 +00:00
Vadim Zeitlin
8a85884a0f some UI adjustments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 21:22:46 +00:00
Vadim Zeitlin
5f99187160 typo corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:49:26 +00:00
Vadim Zeitlin
23f6fd7bf3 compilation fix (another typo...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:39:02 +00:00
Vadim Zeitlin
afefdd933b compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:38:12 +00:00
Vadim Zeitlin
fc9ef629ac another (last?) FreeBSD thread compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:35:30 +00:00
Vadim Zeitlin
57493f9f85 more things are done by configure: checks for bool, whether overloading based
on size_t/int works or not (for wxString), the type of 3rd argument to
getsockaddr, absence of libXpm is not fatal (not tested), whether strings.h
exists


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 19:12:49 +00:00
Guilhem Lavaux
55b7bba191 * wxStreams overview added to the documentation. I didn't yet tested it
so I didn't activate it ...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 18:42:15 +00:00
Julian Smart
8162b84897 Minor doc tweaks plus major wxTreeCtrl bug fixed (double deletion of tree items
in some circumstances)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 16:52:29 +00:00
Karsten Ballüder
81f1bb400a fixed locking problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 16:09:09 +00:00
Vadim Zeitlin
2d45abf154 test for bool is now done in configure, not by manually testing compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 15:52:55 +00:00
Vadim Zeitlin
6184444ce5 typo corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 15:43:45 +00:00
Vadim Zeitlin
1bfcb0b6c3 some fixes for AIX compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 15:23:00 +00:00
Vadim Zeitlin
0138c2de79 crash for frames without children corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 15:21:14 +00:00
Vadim Zeitlin
5f12ae5cd7 wxYield() calls OnInternalIdle() of all top level windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 14:25:45 +00:00
Vadim Zeitlin
903b682c6b thread compilation fixed for FreeBSD 3.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 14:12:38 +00:00
Karsten Ballüder
d90810420b fixed a listctrl index bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 09:25:12 +00:00
J. Russell Smyth
25fe862014 Added note about new make files for frame layout samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 00:34:31 +00:00
J. Russell Smyth
299d04bca8 New makefiles for samples under Visual C++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-12 00:29:34 +00:00
Vadim Zeitlin
1363811bb6 wxMotif Solaris 2.6 compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-11 15:16:39 +00:00
Karsten Ballüder
80cb83bef2 Fixed configure/linkage for non-threaded case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-11 10:37:09 +00:00
Karsten Ballüder
7e72761c5e Another solaris 2.5 fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-11 09:57:22 +00:00
Karsten Ballüder
cc743a6f79 gcc 2.8.0/solaris compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-11 09:44:53 +00:00
Vadim Zeitlin
1e8a4bc241 wxLogStderr sends output to debugger too under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-10 22:03:06 +00:00
Vadim Zeitlin
5e0b1434d4 simplified test for thread libs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-10 16:21:20 +00:00
Vadim Zeitlin
5f0f31fefd stripping is now done during installation, not linking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-10 14:24:50 +00:00
Vadim Zeitlin
bdcbd8a791 GetMaxSize() docs updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-10 13:00:52 +00:00
Harco de Hilster
0fc52d4112 added Russ Smyth fix for VC6 compile problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-09 22:11:42 +00:00
Stefan Csomor
3e418ffc10 corrected a type in the constructor from two points
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-09 18:28:50 +00:00
Vadim Zeitlin
b8e9dd4359 arbitrary characters allowed in wxFileConfig entry names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-09 18:09:43 +00:00
Stefan Csomor
21d423d3d3 Read was not copying back the buffers contents into the string parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-09 17:12:05 +00:00
Vadim Zeitlin
7c26969c48 create unix subdir if doesn't exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-09 13:43:44 +00:00
Harco de Hilster
839eb2915d minor update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 22:16:00 +00:00
Harco de Hilster
9bcbb65d4f vc makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 22:07:36 +00:00
Harco de Hilster
8e6b0231f1 a few win32 makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 22:02:46 +00:00
Karsten Ballüder
2e0bceb668 Fixed checking for libjpeg and linking against it which were broken.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 14:13:56 +00:00
Julian Smart
706bb5f973 Small changes incl. making wxTAB_TRAVERSAL always on in wxDialog (wxMSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 11:22:31 +00:00
Harco de Hilster
6e0e2e9ccd fixed treectrl bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 00:34:17 +00:00
Harco de Hilster
46735f5536 ignore this :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-08 00:12:40 +00:00
Harco de Hilster
3699625257 readme file, for reading.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 23:57:57 +00:00
Harco de Hilster
3641264278 removed big-ass manual.html file from src dir.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 23:35:44 +00:00
Harco de Hilster
bd9396d52d Added Aleksandras' framelayout code, with more or less working Linux Makefiles
General makefiles to be added later.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 23:34:37 +00:00
Vadim Zeitlin
8c0d01c876 Win compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 23:31:46 +00:00
Vadim Zeitlin
978304896b bug fix for kbList::erase (done long ago in M version)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 23:01:40 +00:00
Karsten Ballüder
43e916c33e New, rewritten, wxLayout. Almost complete.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-07 21:38:50 +00:00
Julian Smart
f5ee2e5f8f Small changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 11:51:06 +00:00
Vadim Zeitlin
72914c567f HAVE_SCHED_H test added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 00:31:05 +00:00
Vadim Zeitlin
34f8c26e93 more FreeBSD thread fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 00:30:23 +00:00
Vadim Zeitlin
ab8247f4b9 Borland makefile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 00:28:49 +00:00
Vadim Zeitlin
518b5d2ffb 1. the common helper functions are now in src/unix/utilsunx.cpp
2. POSIX threads are in src/unix/threadpsx.cpp
3. some more functions are detected using configure and not  guessed from the
   platform type


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 00:11:27 +00:00
Vadim Zeitlin
cf6c13a14f this code is now common (src/unix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-06 00:04:53 +00:00
Vadim Zeitlin
68401dfe2c (more) FreeBSD thread fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 16:24:07 +00:00
Vadim Zeitlin
91845adaba checks for various thread functions added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 16:04:32 +00:00
Vadim Zeitlin
c293350081 thread detection works on FreeBSD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 13:50:47 +00:00
Vadim Zeitlin
afce4c035f compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 13:23:38 +00:00
Robert Roebling
17867d61dc Two optical corrections
#ifdeffed the cursor code in splitter and sash
  Made tex2rtf compile

  I will release this as 2.0.1


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 12:40:11 +00:00
Karsten Ballüder
cb813dee48 Utility scripts for external HTML help controller.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 10:34:45 +00:00
Robin Dunn
62abd41ede Minor wxPython changes for wxWin 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-05 07:23:42 +00:00
Vadim Zeitlin
9f68a1f235 nanosleep() detection works for Solaris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-04 19:49:01 +00:00
Vadim Zeitlin
c9b6828bfc nanosleep() detection works for Solaris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-04 19:46:40 +00:00
Vadim Zeitlin
5b34447be3 HP-UX compilation fixes (or so I hope)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-04 17:43:06 +00:00
Vadim Zeitlin
afb7489128 wxUsleep() introduced (and documented) to try to work around usleep() bug in
MT programs under Solaris


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-03 17:11:14 +00:00
Vadim Zeitlin
ba6f401d45 SGI compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-03 17:05:25 +00:00
Julian Smart
803ef87492 Corrected event.h for wxKeyEvent/wxMouseEvent, and corresponding docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-02 16:21:27 +00:00
Robert Roebling
180307dac0 Chnaged wxGLCanvas::SetSize() to DoSetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-02 11:23:42 +00:00
Robert Roebling
370ae202e1 Now enabling sockets enables sockets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-02 10:56:37 +00:00
Robert Roebling
d28e197756 now wxsocket is on by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-02 08:59:15 +00:00
Robert Roebling
b1a39f47f8 Removed warnings from tbarsimpl
Now wxSlider also works for negative values.
  wx-config reports 2.0.1
  made wxUSE_SOCKET default
  forgot to run autoconf


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-02 08:56:59 +00:00
Robin Dunn
b8c99a930e Changes for allowing wxRA_SPECIFY_ROWS and wxRA_SPECIFY_COLS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 23:21:39 +00:00
Julian Smart
b69f1bd186 Cured some Motif bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 22:41:38 +00:00
Vadim Zeitlin
66d781461d warnings suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 18:20:36 +00:00
Vadim Zeitlin
26128999a7 wxCriticalSection changes undone - should work now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 18:20:12 +00:00
Julian Smart
7d532b0ceb Removed my buggy bug-fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 16:31:36 +00:00
Vadim Zeitlin
50ef256ed3 argc == 0 bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 15:49:34 +00:00
Vadim Zeitlin
54f04bc0ab FreeBSD compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 15:47:28 +00:00
Vadim Zeitlin
6380910c1f wxSpinButton works ok with negative values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 14:30:43 +00:00
Julian Smart
20e85460c4 Added dummy OnIdle to wxWindow in wxGTK; doc tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 13:06:15 +00:00
Harco de Hilster
4218848890 Added Makefile[.in] for wxGTK standard build. Are not yet used, because
wxGTK's createall script doesn't look in this dir...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 01:31:51 +00:00
Harco de Hilster
af6c301b95 added Makefile[.in] for build using wxGTK method. Note that wxGTK's createall
script doesn't yet look this deep, so it's not very usefull now...

also fixed some wxGTK compile problems.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-01 01:26:11 +00:00
Julian Smart
4ac1ab8836 Added tbarsmpl.cpp (hope that's OK...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 23:48:02 +00:00
Julian Smart
9a05fd8d13 wxUSE_SOCKETS added to setup(0).h; Cygwin corrections; doc tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 23:39:59 +00:00
Harco de Hilster
a5dec9e54d Modified makefile.unx to include bitmaps dir. Added missing folder.xpm
to bitmaps


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 21:56:55 +00:00
Julian Smart
2a47d3c193 Doc mods; fixed return non-processing problem; fixed toolbar sizing problems
(incl. MDI area clipping); put wxPrintPaperDatabase, wxPrintPaperType into prntbase.cpp
since it's needed in non-PostScript WIN16 for the generic page setup dialog;
corrected some 16-bit makefiles


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 20:59:08 +00:00
Robert Roebling
828f655fd3 added wxMenu::Append( wxMenuItem )
added keyboard hooks to glcanvas
  fixed probs with slider/spin button etc


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 18:03:27 +00:00
Vadim Zeitlin
dd3c394ae4 wxCheckListBox fixes: crash/memory leak when items are dynamically
inserted/deleted corrected and docs updated


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 15:35:51 +00:00
Vadim Zeitlin
9018abe3ef shows different SetCursor() calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 14:18:05 +00:00
Vadim Zeitlin
3eddf563ed SetCursor() doesn't set cursor for children of the window any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 14:16:33 +00:00
Vadim Zeitlin
9e2be6f02e wxArrayString documentation added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 13:58:05 +00:00
Guilhem Lavaux
35a4dab713 * Added "--with-sockets" and made wxSocket optionnal.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 12:36:21 +00:00
Vadim Zeitlin
0ab913706d some more files to ignore for cvs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-28 00:00:41 +00:00
Vadim Zeitlin
666887645f cursor problem in sash windows corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 23:55:04 +00:00
Vadim Zeitlin
cfb7687556 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 23:54:22 +00:00
Vadim Zeitlin
e373f51b6c 1. wxListCtrl fixes
a) implemented GetColumnCount()
 b) columns are always created with some reasonable (i.e. != 0) width

2. wxRadioBox: keyboard navigation now works inside it (almost) as it should


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 23:52:48 +00:00
Vadim Zeitlin
212d0bb3c7 added 'provides wxwin'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 23:16:54 +00:00
Vadim Zeitlin
ac91b9d22a unused param warning suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 22:51:13 +00:00
Guilhem Lavaux
375abe3dac * wxSocket fixes: FTP, HTTP works really now. GTK fixes to prevent infinite loop.
* wxSocket stream fix: they can be encapsulated by now
* Doc update: wxURL::GetPath


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 21:01:05 +00:00
Vadim Zeitlin
839b865d08 VK_APPS handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 14:40:06 +00:00
Vadim Zeitlin
d3f0a137d2 MSWProcessMessage speed up by a factor of 100 (at least)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 14:39:34 +00:00
Vadim Zeitlin
f7c832a786 wxTreeCtrl::GetBoundRect() implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 14:38:46 +00:00
Vadim Zeitlin
0a54c4a8cd keyboard navigation in dialogs works (again)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 14:37:31 +00:00
Vadim Zeitlin
296ec7d3ac 1. typos corrected in ftp/protocol/url (Members is no longer a hyperlink
leading to nowhere)
2. wxTreeCtrl::GetBoundRect() documentation updated


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 14:36:05 +00:00
Guilhem Lavaux
41895a05ea * Big memory bug fixed in socket/getline fixed.
* Added two missing "virtual" in stream.h (Sorry, you'll have to rebuild all)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 11:32:10 +00:00
Robin Dunn
ed175610f0 Added missing wxRA_SPECIFY_ROWS, wxRA_SPECIFY_COLS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 04:21:58 +00:00
Robin Dunn
022380e0a5 minor tweaks for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 04:20:50 +00:00
Vadim Zeitlin
f8d8ae383a i18n overview
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 01:43:43 +00:00
Vadim Zeitlin
f4621a09f0 wxSetCursor() bug with splitters corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 01:33:05 +00:00
Vadim Zeitlin
ed93168bf9 1. (very) short i18n overview added, wxGetTranslation() documented.
2. wxTreeCtrl overview written and documentation updated
3. wxString docmunetation updated (no more unresolved references)
4. wxWindow::SetCursor() recursive behaviour mentioned


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-27 01:26:26 +00:00
Julian Smart
721b32e058 DoSetClientSize omissions fixed; some doc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 22:22:13 +00:00
Vadim Zeitlin
585037876a char */wxString confusion cleaned in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 21:13:12 +00:00
Vadim Zeitlin
60acb9473f wxLog fix as for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 20:56:54 +00:00
Guilhem Lavaux
5a99f84afe *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 18:54:44 +00:00
Guilhem Lavaux
0d6957a540 * Missing doc file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 18:51:51 +00:00
Julian Smart
b23386b266 Fixed wxMSW arrow key bug, changed wxPoem window to a wxWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 18:04:12 +00:00
Julian Smart
532372a31c Doc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 17:29:39 +00:00
Harco de Hilster
3a2629c0a2 added double click handler. various minor fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 17:01:16 +00:00
Julian Smart
fd34e3a570 Some doc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 09:45:30 +00:00
Harco de Hilster
7d255c9c34 A port of tkPlotCanvas.py. Requires Numeric module.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-26 00:25:13 +00:00
Julian Smart
ab6e89dea5 wxBitmapButton bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 22:53:49 +00:00
Guilhem Lavaux
9a1b2c283e * Added a small wxHTTP description
* Added some example/description to wxFTP
* Some more on wxURL

* Added missing file in wxMMedia


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 20:13:10 +00:00
Vadim Zeitlin
623e1cb209 delete all log messages suppressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 15:45:33 +00:00
Julian Smart
777553d227 Small changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 15:09:23 +00:00
Julian Smart
40b480c35d Corrected some .tex problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 15:07:00 +00:00
Vadim Zeitlin
a994f81b94 1. validator fixes: don't eat TAB. Added new SetBellOnError() function to
suppress _annoying_ bell.
2. Docs and samples updated to reflect this.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 14:47:18 +00:00
Vadim Zeitlin
bb0ca8dfcc InsertItems() implemented for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 13:50:44 +00:00
Vadim Zeitlin
bbdbfb0e3d check list box sample updated to test InsertItems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 13:50:16 +00:00
Vadim Zeitlin
e3f3949907 more HP-UX fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 13:38:09 +00:00
Vadim Zeitlin
81108288e6 InsertItems() documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 12:38:56 +00:00
Vadim Zeitlin
25b1fc055a SetSize() fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 12:25:55 +00:00
Karsten Ballüder
02da33e27d GetNextItem() now checks for item < GetItemCount() to avoid illegal
wxList access beyond end of list.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 10:32:48 +00:00
Vadim Zeitlin
539dae5200 more DG-UX compilation fixes (thanks to Benjamin Beckwith)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 09:36:35 +00:00
Robin Dunn
c3c1cebed3 wxPython version 2.0b5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 07:18:52 +00:00
Robin Dunn
0699c8646a wxPython version 2.0b5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-25 07:09:51 +00:00
Vadim Zeitlin
99f09bc1b9 wxString docs are nearly complete (but don't compile :-( ), a brief threads
overview


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 23:53:40 +00:00
Vadim Zeitlin
ec9f78844b demonstrates SetCursor() now too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 23:50:59 +00:00
Vadim Zeitlin
1aff8b0241 SetCursor() works now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 23:48:32 +00:00
Vadim Zeitlin
db2150a19b added /usr/include/Xm to the search path
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 14:53:59 +00:00
Vadim Zeitlin
68995f26e8 wxGTK fixes for the yesterday's addition of m_isWindow flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 13:15:42 +00:00
Robin Dunn
21f280f4ec More wxPython docs...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 08:17:50 +00:00
Julian Smart
ad813b00d5 Some stubs corrections; Motif corrections incl. busy cursor fix; doc corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 08:02:28 +00:00
Harco de Hilster
3cc7ea5302 Some wxPython interface change updates. Moved refresh button. Platform
sensitive defaults for external browser. uses wxYield instead of (silly)
quicktimer hack.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-24 00:46:09 +00:00
Robin Dunn
afc48cd0d8 reenabled some methods for wxPython on wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 23:48:55 +00:00
Vadim Zeitlin
f7c44a6a16 wxCritSection change to accomodate mem checking system (even better :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 23:24:50 +00:00
Vadim Zeitlin
00fdc89da8 wxCritSection change to accomodate mem checking system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 23:23:00 +00:00
Vadim Zeitlin
6bf5720681 more cursor fixes (now ::wxSetCursor() works too)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 23:08:40 +00:00
Václav Slavík
02b5126b85 Czech language
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 23:00:22 +00:00
Vadim Zeitlin
c793fa8756 some very minor fixes (I don't even remember what exactly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:57:19 +00:00
Vadim Zeitlin
d20eef8ac8 menu help string fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:53:48 +00:00
Vadim Zeitlin
634903fd04 wxBeginBusyCursor now works (better)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:51:14 +00:00
Vadim Zeitlin
e5c0b16a78 wxLogXXX() functions called near app termiantion shouldn't crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:49:26 +00:00
Vadim Zeitlin
90022ddc1e compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:43:48 +00:00
Vadim Zeitlin
3aa0e8fa2b new options: wxUSE_OLE (on by default except for some compilers),
wxUSE_DYNLIB_CLASS (off by default)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:42:49 +00:00
Vadim Zeitlin
193bf01364 small optimizations: m_isWindow and m_isCommandEvent flags introduced
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 22:41:37 +00:00
Vadim Zeitlin
89a43902a8 another wxBeginBusyCursor fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 19:05:55 +00:00
Vadim Zeitlin
7c39369e5a some feeble attempts at making wxBeginBusyCursor work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 18:57:01 +00:00
Vadim Zeitlin
a1d8eaf7a9 support for incorrect entries in .mime.types added (world is not perfect, alas)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 18:26:04 +00:00
Vadim Zeitlin
20d10ee18b SetSelection(from, to) and SetEditable() implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 18:13:52 +00:00
Vadim Zeitlin
8a0d4cf6c5 HP-UX compilation fixes (thanks to Zdravko Bas)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 17:51:46 +00:00
Vadim Zeitlin
eb9bbf52b6 1. C++ comments removed from setup.h
2. --with-dynlib option added (wxUSE_DYNLIB_CLASS)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 17:48:53 +00:00
Vadim Zeitlin
69a282d4e6 crash in some very special case when arrows were used to move around fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-23 15:43:05 +00:00
Vadim Zeitlin
0b5efdc724 listview has LVS_EX_FULLROWSELECT style when supported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 23:15:21 +00:00
Vadim Zeitlin
3e4efd7cb9 dlopen fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 20:34:06 +00:00
Vadim Zeitlin
58e8de26aa dlopen() also exists under FreeBSD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 19:48:34 +00:00
Vadim Zeitlin
7b0bfbb256 HP-UX support added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 19:42:45 +00:00
Karsten Ballüder
f76f940bce Fixed DoSetClientSize() causing infinite recursion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 14:50:16 +00:00
Julian Smart
2de8030dbe Soem corrections for SetSize changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 13:28:13 +00:00
Vadim Zeitlin
bfc6fde4b1 GetSize() and GetClientSize() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 11:01:13 +00:00
Julian Smart
1edddaf24c Corrected WM_KEYDOWN bug (missing 'break')
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 10:31:34 +00:00
Julian Smart
7c5dc04fd2 Minor changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-22 09:32:50 +00:00
Vadim Zeitlin
e541d0bf0c error msg when there are no files in wxFindFirst() removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-21 23:17:13 +00:00
Vadim Zeitlin
d12e353663 1. more C++ parser fixes - now it almost parses wx/string.h
a) #if/#ifdef/#else (very) limited support
 b) param type fix - now indirection chars are correctly handled
 c) class/struct/union distinction
 d) public/private fixes
 e) Dump() function added - very useful for debugging

2. option to ignore parameter names during 'diff' (in fact, they're ignored
   by default, and this option switches it on)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-21 22:32:46 +00:00
Václav Slavík
c4c794e1d0 NO_GUI bug fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-21 12:59:54 +00:00
Vadim Zeitlin
71b8c213cb wxListCtrl column resize bug corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 23:17:26 +00:00
Vadim Zeitlin
f71f5a4fe1 1. better 'const' and 'virtual' functions handling
2. operators are now supported
3. tokens such as "<=" and "!=" are now tokenized properly


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 23:01:55 +00:00
Vadim Zeitlin
5f7cf62fbf 1. new 'diff' mode which seems to work
2. output files are not overwritten in 'dmup' mode
3. fixes for better handling of const functions and operators


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 23:00:26 +00:00
Vadim Zeitlin
037267e156 \\param -> \param
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 22:50:06 +00:00
Vadim Zeitlin
e6c2ee9583 ignore file for HelpGen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 22:49:10 +00:00
Robin Dunn
21f8d7ea6b Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
window handle.  If you can get the window handle into the python code,
it should just work...  More news on this later.

Added wxImageList, wxToolTip.

Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
wxRegConfig class.

As usual, some bug fixes, tweaks, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 10:05:52 +00:00
Robin Dunn
b57bdb5a3f Changes needed to enable wxGTK compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 10:02:38 +00:00
Robin Dunn
1176513863 Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
window handle.  If you can get the window handle into the python code,
it should just work...  More news on this later.

Added wxImageList, wxToolTip.

Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
wxRegConfig class.

As usual, some bug fixes, tweaks, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 09:11:32 +00:00
Robin Dunn
af309447ff Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
window handle.  If you can get the window handle into the python code,
it should just work...  More news on this later.

Added wxImageList, wxToolTip.

Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
wxRegConfig class.

As usual, some bug fixes, tweaks, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 09:05:04 +00:00
Robin Dunn
7010b7bccd Added missing | symbol
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-20 06:53:36 +00:00
Julian Smart
0bc9b25e9a Added George Tasker's forward slash fix to file dialog; added some consts to prntbase.h;
removed redundant IMPLEMENT_WXWIN_MAINs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 21:54:37 +00:00
Robin Dunn
b97b1af824 added wxSetInstance()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 19:35:30 +00:00
Vadim Zeitlin
64716cd79d some minor fixes for DEC CXX compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 17:32:03 +00:00
Vadim Zeitlin
ebefb2f345 more locations for Motif headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 15:51:04 +00:00
Vadim Zeitlin
e370f4029e directory for message catalogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 15:05:11 +00:00
Robert Roebling
51cc4dad89 propagate key event from listctrl to its parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 13:24:18 +00:00
Robin Dunn
06d20283af Added first batch of docs and notes for wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-19 07:58:02 +00:00
Julian Smart
2e35f56f6d Fixed wxMotif's wxExecute again, added OnPaint capability to wxFrame,
removed old focus code from wxGTK's ~wxWindow


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 22:51:03 +00:00
Julian Smart
0492c5a094 Cured last focus bug (I hope); some wxMotif mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 21:24:11 +00:00
Vadim Zeitlin
dd0e574a0e i18n fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 19:39:03 +00:00
Guilhem Lavaux
8a7c9dcc1c * Fixes and updates on wxMMedia.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 18:18:06 +00:00
Stefan Csomor
b2cce0c457 mbstowcs hack for CodeWarrior's MSL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 17:59:32 +00:00
Julian Smart
c1e73a4c94 Doesn't overwrite setup.h now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 15:12:41 +00:00
Vadim Zeitlin
da61ab3189 a file I forgot to check in (sorry Julian)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 15:11:18 +00:00
Julian Smart
33b64e6f8b Added 'tardist' script for creating .tgz archives of wxWin; cured wxExecute
crash on wxMotif; added wxHelpControllerBase::SetViewer; added consts to wxColour
== and != operators; changed beta version; fixed wxChoice/wxComboBox bugs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 14:55:34 +00:00
Vadim Zeitlin
a5a19b8360 wxMimeTypesManager::IsOfType() added (and documented)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 14:23:24 +00:00
Vadim Zeitlin
d37fd2fada wxSplitPath() bugs corrected and it's documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 14:22:23 +00:00
Robert Roebling
a7ac4461ab Dialog items inherit parent's font now
Augmented beta to 5


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 14:04:46 +00:00
Vadim Zeitlin
d1d3ccbe2b vsnprintf() detection now works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 09:37:50 +00:00
Vadim Zeitlin
8a17d0eb54 AC_HAVE_LIBRARY replaced with AC_CHECK_LIB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-18 09:28:03 +00:00
Vadim Zeitlin
e6045e08ed wxExecute() fixes and doc updates: the return value for sync exec case is now
the exit code of the process and not its pid. Warning: MSW code is untested.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 21:04:47 +00:00
Vadim Zeitlin
220a0f42d4 wxExecute() fix (running console programs doesn't cause X errors any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 20:26:38 +00:00
Julian Smart
b8ecf3e993 Added missing const to wxGTK's wxMDIChildFrame::GetToolbar; added bc_ide.txt instructions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 19:26:42 +00:00
Vadim Zeitlin
7e84f02dfd wxProcess fixes (Detach() added), cleared/corrected wxExecute() documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 17:56:59 +00:00
Julian Smart
ca5c8b2df6 Changed .vc makefiles to allow different configurations to co-exist (so library
names have changed a bit). Split ipvaddr.tex from sckaddr.tex.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 17:18:22 +00:00
Robert Roebling
de8113d9a3 Let's face it, GTK's resizing is broken and
I cannot repair it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 16:42:36 +00:00
Vadim Zeitlin
d3dcceb436 wxListCtrl will receive EVT_CHAR() events now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 13:36:48 +00:00
Robert Roebling
f5eafd0e55 resize fun
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-17 10:13:12 +00:00
Julian Smart
dbdb39b2d0 Some doc corrections; removed wxDocument arg from wxView constructor;
wxTextCtrl::OnChar correction; added SetString and default constructor
to wxStringTokenizer; added missing MSW wxFrame::SetSize functions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-16 20:17:02 +00:00
Robert Roebling
e27ce4e910 MDI fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-16 15:36:43 +00:00
Robert Roebling
4fcd73bd9b Applied Russel's changes to wxToolBarBase
fixed stippled brush for bitmaps (as opposed to pixmaps)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-16 09:31:28 +00:00
Vadim Zeitlin
84c188148d A couple of identifiers at global level moved to the .cpp file from .h where
they had nothing to do from the very beginning


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 23:09:33 +00:00
Vadim Zeitlin
59734eb597 1. Parser improvements
a) const and virtual methods are parsed correctly (not static yet)
 b) "const" which is part of the return type is not swallowed

2. HelpGen improvements: -o outputdir parameter added to the cmd line,
   "//---------" kind comments discarded now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 23:07:37 +00:00
Vadim Zeitlin
c1b7dab08b started wxIntl documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 23:04:52 +00:00
Julian Smart
954b8ae603 Added 'Include files' section to class references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 20:41:29 +00:00
Vadim Zeitlin
a2ace6ff1f enable verbose messages by default in debug builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 19:26:17 +00:00
Vadim Zeitlin
c429c0bfc4 compilation warnings about missing braces fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 15:06:10 +00:00
Julian Smart
cf0b3979bc GnuWin32 corrections (::ZeroMemory doesn't exist)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-15 13:05:58 +00:00
Julian Smart
c7f49969d6 Added png, zlib targets to 16-bit makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-14 23:23:19 +00:00
Vadim Zeitlin
16f6dfd814 made wxToolTip::Enable() and SetDelay() static (as in wxGTK) and added some
code in the controls sample to test them


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-14 21:59:48 +00:00
Guilhem Lavaux
9fc0fe377b * Stream: update in doc, fix in code.
* wxMMedia: various fixes, WAV and AIFF should work on Linux, preparing it
    for Windows.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-14 17:46:47 +00:00
Robert Roebling
20239453d5 Fixed refresh bug in wxGLCanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-14 13:04:39 +00:00
Julian Smart
aed0ed3c42 Small Tex2RTF fixes; wxMotif compile fixes (motif.inc, wxCheckListBox);
wxMSW wxWindow::IsShown fix


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 22:00:14 +00:00
Guilhem Lavaux
b36f57c252 * Stream doc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 19:03:32 +00:00
Guilhem Lavaux
9f3430a6d4 * Added some warning in socket doc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 18:31:00 +00:00
Vadim Zeitlin
503d5ba994 wxToolTip entry changed (it's implemented after all)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 15:05:56 +00:00
Vadim Zeitlin
dccf032a11 added a couple of items for 2.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 15:03:35 +00:00
Vadim Zeitlin
b2ff82b9fd mentioned the fact that wxArray can't be used for storing floats/doubles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 13:55:22 +00:00
Julian Smart
cba2db0c29 Some doc corrections (added blank lines at end of docs); corrected Forty sample
dialog behaviour; added dummy menubar constructors; corrected wxMSW wxRegion bug


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-12 08:22:29 +00:00
Robert Roebling
b98d804b28 Added CTRL-TAB navigation to notebook
Added ESC -> Cancel convresion
  Added greying out of tooltips (I had some spare minutes)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 20:44:38 +00:00
Stefan Csomor
48b7862630 CW Win32 and Mac adaptions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 17:41:23 +00:00
Vadim Zeitlin
e4ffaca455 "continue;" restored to prevent the app from going into infinite loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 17:29:09 +00:00
Stefan Csomor
8be97d65a6 CW Win32 and Mac adaptions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 16:56:43 +00:00
Robert Roebling
5664fc3253 distrin corrections files
the return of TAB, part IV


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 16:27:56 +00:00
Julian Smart
a91b47e800 Solved wxMotif scrolling display problem; added wxImageModule;
added wxRETAINED support in wxMotif; changed wxDC::SetBackground behaviour;
changed OnKeyDown/OnChar behaviour; fixed wxToolBar toggle bugs; fixed
wxImage on wxMotif bug whereby new was used to allocate XImage data


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 16:00:33 +00:00
Vadim Zeitlin
b4b92fa660 added FreeBSD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 13:59:49 +00:00
Vadim Zeitlin
3f263f4542 compilation fixes for gcc 2.7.2.1 under FreeBSD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 13:58:30 +00:00
Robert Roebling
8fc613f14f Solaris compilation patches
dbtest now works a little


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-11 12:44:10 +00:00
Robert Roebling
3502e687e2 distribution things
implemented native docking for menus and toolbars
    (see toolbar sample) someone may have to create
    the new wxMenuBar constructor
  corrected wxFileDlg appearance and made it i18n
  implemented defaults buttons
  improved look of all common dlgs except print setup
  corrected forty's player dlg
  added wxMB_DOCKABLE and wxTB_DOCKABLE flags
  augmented BETA_VERSION to 4
  prevent wxListBox from sending a list_item_selected
    event when adding the first item to a list that
    is a single selection list using AppendXX()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 23:08:27 +00:00
Julian Smart
750b78ba35 Cured some small doc typos; some WIN16 fixes; transferred DLL WinMain to
IMPLEMENT_APP() macro so dummy.obj doesn't have to be linked; lexer.l fix
for LEX (I hope)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 22:44:53 +00:00
Vadim Zeitlin
debdd17e99 bug in wxSplitPath() corrected: the returned file name doesn't have the
trailing dot any more


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 20:47:01 +00:00
Guilhem Lavaux
7f42cff13e * Doc updates
* Fixes about socket, stream core, a superfluous stream.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 20:01:06 +00:00
Robert Roebling
5e1962f77f isosurf corrections
#ifdeffed tab code in wxPanel


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 17:15:19 +00:00
Karsten Ballüder
cdb664d45d added test for long long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 16:33:21 +00:00
Karsten Ballüder
6c56b261b7 Added test for long long type. (Really trivial, see setup.h: SIZEOF_xxx)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 16:14:18 +00:00
Vadim Zeitlin
3ad5e06b4a wxSplitterWindow::ReplaceWindow() function added and documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 13:38:12 +00:00
Vadim Zeitlin
4e13eb84aa added #include <fcntl.h> to allow compilation under Linux
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 12:55:15 +00:00
Robert Roebling
f234c60c4a Various update to Blit() SetBackground() Clear() etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 11:56:15 +00:00
Karsten Ballüder
616c87c9b7 small modification to stdin/stdout/stderr behaviour in wxExcute()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 11:19:10 +00:00
Julian Smart
d4ec5d3211 Added wxUSE_STREAMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-10 10:06:17 +00:00
Robin Dunn
921b3c1799 fixed somebody's typo in a preprocessor directive (&6 --> &&)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 22:58:34 +00:00
Vadim Zeitlin
59fcb8f8cc wxMSW compilation problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 22:39:55 +00:00
Julian Smart
5b6aa0ff15 Removed some TODOs in the Latex docs; changed wxMotif wxClipboard to match
wxGTK/wxMSW syntax; added Ron Kuris' wxExecute patch


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 21:22:58 +00:00
Julian Smart
3b1e466ce9 Fixed property list OnClose problem that caused Dialog Editor problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 18:19:15 +00:00
Guilhem Lavaux
da3aea64f9 * wxStream doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 18:12:20 +00:00
Vadim Zeitlin
7af89395ba wxFindFirst/NextFile() now return wxString and not "char *", wxGetCwd() added
(to be used instead of wxGetWorkingDirectory)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 17:04:29 +00:00
Vadim Zeitlin
30b21f9a04 wxArrayString::Sort() implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 16:52:19 +00:00
Julian Smart
dbda9e86f0 Added more makefiles; fixed some samples for Cygwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 16:00:23 +00:00
Julian Smart
fed485e094 Added more makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 15:40:15 +00:00
Julian Smart
8e0080ee4e Rationalised Cygwin sample makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 15:37:52 +00:00
Stefan Csomor
a6eb3b948b cw pro adaption (illegal default argument error was given)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 09:58:12 +00:00
Robert Roebling
e4677d31b4 custom icons for DnD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 08:18:14 +00:00
Robert Roebling
c46554be77 radiobox optical changes
textctrl single line append/insert stuff
  more precise testing of the above in controls


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-09 07:25:11 +00:00
Vadim Zeitlin
a9d6a93cd5 micro compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 22:13:18 +00:00
Julian Smart
176ca304b5 Make it binary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 17:19:21 +00:00
Robert Roebling
cad880f57f Keep up the good work, people...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 16:25:52 +00:00
Karsten Ballüder
b38142f370 updated wxLayout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 15:20:38 +00:00
Karsten Ballüder
eebb848a85 fixed linkage problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 12:04:14 +00:00
Vadim Zeitlin
cb6827a8c6 wxProcess-related code now works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 11:59:54 +00:00
Karsten Ballüder
f7f1f70f4b compilation fixes
PLEASE CHECK valgen.cpp: I had to insert a #include <wx/wx.h> to make it compile.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 10:54:05 +00:00
Julian Smart
1f916a19f1 Tried to fix wxPanel bug (windows now set the panel current focus window on deletion);
undid wxMSW wxRadioBox::SetSize changes that made it resizeable because it just doesn't
work (see notes in radiobox.cpp); fixed wxTextCtrl enter processing bug; fixed
Dialog Editor wxRadioBox-writing bug


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-08 00:15:40 +00:00
Julian Smart
306dfc2b3d Removed small OGL glitches; added new sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 23:56:40 +00:00
Vadim Zeitlin
dbeac4bd72 made wxProcess-related code compile again (it doesn't work correctly yet,
will be fixed a bit later)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 23:45:17 +00:00
Vadim Zeitlin
18fd783ca8 replaced "#include <wx/process.h>" by "class wxProcess;" - I don't like
recompile the files just for the pleasure of it...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 21:45:15 +00:00
Vadim Zeitlin
5336ece42c wxProcess() fixes: will really call parent's event handler and will pass the
exited process status now


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 21:26:54 +00:00
Guilhem Lavaux
07b7327093 * A few updates (stream doc)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 21:12:41 +00:00
Julian Smart
89c684ef82 Added wxGenericValidator & doc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 17:11:44 +00:00
Vadim Zeitlin
af615124b6 menu help texts added (it now works in wxGTK too, great!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 16:59:17 +00:00
Vadim Zeitlin
8eab4bae30 16x16 icons for the controls sample (32x32 were too ugly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 00:46:17 +00:00
Robin Dunn
d1e586e4b1 Follow up for changes in wxWindows to various event classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 00:24:53 +00:00
Vadim Zeitlin
2ec7a14ab1 icons for controls sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 00:23:44 +00:00
Vadim Zeitlin
5f699c22f5 GetData() now takes a pointer and not a reference, IsSupported() takes a
format and not a data object


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 00:14:10 +00:00
Vadim Zeitlin
b8653fbf44 removed "#ifdef wxGTK" around clipboard code and added "#if wxUSE_TOOLTIPS"
around code usign tooltips


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-07 00:05:43 +00:00
Robin Dunn
e5eaa0a060 Changing makefile.nt to makefile.vc as in rest of wxWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:47:03 +00:00
Vadim Zeitlin
f11f454d85 unneeded line removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:43:30 +00:00
Vadim Zeitlin
a3f4e9e81a menu title is drawn in bold font and the commands from it are ignored
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:38:19 +00:00
Vadim Zeitlin
f303327872 more files to ignore in cvs commands (setup.h, lex_yy.c, y_tab.c)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:34:28 +00:00
Vadim Zeitlin
bc413685c6 restored "#include <windows.h>"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:32:34 +00:00
Vadim Zeitlin
cb1a1dc963 fixes for compilation without wxUSE_TOOLTIPS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:28:53 +00:00
Vadim Zeitlin
462e243784 resizeable dialogs support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:27:08 +00:00
Vadim Zeitlin
26f86486b0 wxGTK compatible clipboard implementation (not OLE clipboard - it will come
later)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:25:47 +00:00
Vadim Zeitlin
d79b79b5e8 wxTextFile::Eof() bug corrected (always returned FALSE before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:17:31 +00:00
Vadim Zeitlin
189a89aeb3 description of Write() return value added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 23:12:41 +00:00
Robin Dunn
e980740ac5 Follow up for changes in wxWindows to various event classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 22:55:22 +00:00
Julian Smart
631f1bfed5 Added wxMenu::UpdateUI to wxMSW, wxGTK, wxMotif, wxStubs; rearranged/debugged
docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 13:32:46 +00:00
Julian Smart
98ffbab9d7 Altered font dialog slightly for Motif; added wxUSE_TOOLTIPS to Motif setup.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-06 00:46:25 +00:00
Julian Smart
e306597309 Removed lots of OnClose functions; doc'ed OnCloseWindow better;
MM_... -> wxMM_...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 23:55:04 +00:00
Robert Roebling
cd743a6f71 libjpeg not used by default (it didn't even link)
no menu's help texts disappear again
  now that is


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 19:07:42 +00:00
Vadim Zeitlin
0c47546c75 WXWIN_COMPATBILITY is now 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 17:26:19 +00:00
Vadim Zeitlin
f5d01a1cb7 compilation fixes (errors and warnings) for wxWin 2.0 compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 16:44:52 +00:00
Vadim Zeitlin
fe4e9e6c14 more wxCloseEvent changes: now the behaviour should be conforming to the one
described in the docs (i.e. like Julian wants it)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 16:12:43 +00:00
Julian Smart
818e52c201 Changed GetForce -> !CanVeto
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 15:06:25 +00:00
Robert Roebling
bbbbe360a8 synched Clear() and SetBackgroundColour()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 14:58:50 +00:00
Vadim Zeitlin
2b854a3261 wxWindow::OnClose() removed completely from wxGTK, wxCloseEvent is now
processed properly. Also, fixes for compilation without WXWIN_COMPATIBILITY
on.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 14:26:48 +00:00
Vadim Zeitlin
f992adf9bc refresh added when the item text or image is changed so it's redrawn
immediately


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 14:17:56 +00:00
Robert Roebling
342b6a2fe4 Added menu_highlight behaviour as in wxMSW (statusbar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-05 13:25:40 +00:00
Vadim Zeitlin
341c92a8b4 1. more keyboard navigation fixes - seems to work now
2. wxPanel now remembers the last control which had focus, so it's restored
   to it when the focus returns to the panel (very handy IMHO)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 23:21:27 +00:00
Vadim Zeitlin
4adfb4e34e removed the file setup.h - copy setup0.h into setup.h and make your changes
in it now


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 23:14:50 +00:00
Julian Smart
c3deb08b3b *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 22:16:48 +00:00
Julian Smart
f5e5bd6607 Further changes to make mfctest work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 22:06:15 +00:00
Julian Smart
1cb8b1ec05 Added /D_AFXDLL to mfc sample makefile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 21:19:42 +00:00
Julian Smart
17b74d79ad Fixed compilation for when not including <windows.h>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 21:12:30 +00:00
Julian Smart
45b776d452 Corrected XPM-related cast in resource.cpp; added generic Blitting code in wxPostScriptDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 20:28:50 +00:00
Vadim Zeitlin
2a6f6231ce wxSplitPath() handles correctly filenames with '.' but without extension
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 19:35:32 +00:00
Robin Dunn
5f83a4540d Added wxColour::wxColour(unsigned long)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 19:03:55 +00:00
Vadim Zeitlin
566b84d2ad some compilation "enhancements"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 17:39:04 +00:00
Unknown (UG)
dbac6cad78 commented out wxCrtSetDbgFlag for WXUSINGDLL=1 (ie building apps using dll linkage)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:46:24 +00:00
Unknown (UG)
9ef4a31e64 #ifdef wxUSE_LIBJPEG changed to #if wxUSELIBJPEG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:28:06 +00:00
Robert Roebling
ea6f44b5ec postscript Blit()
DC::GetSize() bug corrected


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:12:32 +00:00
Vadim Zeitlin
c606a9a401 conversions from int/long to wxString won't compile any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:06:01 +00:00
Vadim Zeitlin
a532afbbab wxGTK compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:01:30 +00:00
Vadim Zeitlin
a9aedce135 compilation fix due to wxString(int) addition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 16:00:50 +00:00
Julian Smart
acbd13a365 Some warnings removed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 11:14:41 +00:00
Václav Slavík
0a9f252212 *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 10:58:33 +00:00
Václav Slavík
3b8d35f0fc wxJPEGHandler non-default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 10:57:40 +00:00
Robert Roebling
6e13c1965f Faster imagescale code
Blit() rewritten


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-04 06:51:39 +00:00
Vadim Zeitlin
cf45d1f4b3 another compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 22:58:21 +00:00
Vadim Zeitlin
858f7d6641 _MSC_VER change fixes - now compiles again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 22:50:06 +00:00
Vadim Zeitlin
ec4768ef9a Before/After => BeforeFirst/AfterFirst (corrects some minor bugs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 19:11:02 +00:00
Vadim Zeitlin
dbc208e945 reset m_sashPosition to 0 after calling OnUnsplit(), not before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 19:10:04 +00:00
Vadim Zeitlin
3f4a0c5be3 _MSC_VER => __VISUALC__ change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 16:48:12 +00:00
Vadim Zeitlin
b7f4714a25 compilation problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 16:44:10 +00:00
Robert Roebling
2748d25157 Trying to repair what CVS can do to source code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 14:28:55 +00:00
Václav Slavík
2fff5f0811 added JPEG support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 13:43:04 +00:00
Julian Smart
4dba84be23 Cured some Latex problems; fixed i declaration; fixed filedlg.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 10:01:34 +00:00
Harco de Hilster
eefe541967 removed gtk_text references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 00:34:00 +00:00
Harco de Hilster
8fb6fe448e A minimal document skeleton. See comments inside for details
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 00:27:52 +00:00
Harco de Hilster
f66205b672 Fixed incredibly stupid mistake made earlier by me that upset tex2rtf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-03 00:18:45 +00:00
Vadim Zeitlin
c263077e08 clicking on the messages about assert failures in VC++ brings up the source
file at the line with the assert statement (nothing changed for other compilers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 23:30:51 +00:00
Vadim Zeitlin
5fb9fcfc01 1. Harm's patch for AppendText()
2. Kbd processing seems to work (dlg navigation keys, wxTE_PROCESS_TAB &c)
3. controls sample updated to use AppendText() and test kbd navigation


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 22:23:44 +00:00
Harco de Hilster
abaa293664 included description of wxTextCtrl::AppendText
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 19:20:48 +00:00
Harco de Hilster
13c21be5eb added wxTextCtrl::AppendText, used by TextCtrl operator <<
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 19:01:43 +00:00
Harco de Hilster
a6e2157322 added AppendText method, now used by operator <<
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 18:56:18 +00:00
Julian Smart
77a3b7800b Removed unnecessary (and buggy) additions. Sorry Guilhem!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 18:37:25 +00:00
Vadim Zeitlin
6ef3d3d80a allow 8bit chars in the group names in wxFileConfig
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 13:35:51 +00:00
Julian Smart
1f11220943 Consistent naming of e.g. wxUSE_CTRL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 12:37:14 +00:00
Vadim Zeitlin
0e1399b392 compilation warning removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-02 12:07:25 +00:00
Guilhem Lavaux
f2fc7f71ce * Someone destroy a part of my previous work. Redocumenting ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 18:09:27 +00:00
Unknown (UG)
2d9cdc4b69 updated so that the dll will compile successfully
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 16:51:39 +00:00
Stefan Csomor
2276c29594 latest CW additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:43:00 +00:00
Robert Roebling
291a8f20b3 Removed some trash from that came through tha cables
Fixed Blit probs
  Fixed file dlg probs
  Fixed TextCtrl probs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:39:46 +00:00
Stefan Csomor
a62489828e latest CW additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:25:15 +00:00
Stefan Csomor
38ba2bd2d7 latest CW additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:20:16 +00:00
Stefan Csomor
c17150e891 latest CW additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:06:39 +00:00
Stefan Csomor
169935ad4e latest CW additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:00:12 +00:00
Vadim Zeitlin
95bbd57c9b file I forgot to commit with other "filedlg.h"s
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 14:42:35 +00:00
Vadim Zeitlin
ff8bfdbbb1 wxToolTip modifications: wxUSE_TOOLTIPS setting (default: on) added and
the interface changed slightly to be even more consistent with wxMSW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 14:40:53 +00:00
Robert Roebling
301cd871a2 wxToolTip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 06:44:35 +00:00
117 changed files with 195 additions and 111653 deletions

57
include/wx/tokenzr.h Normal file
View File

@@ -0,0 +1,57 @@
/////////////////////////////////////////////////////////////////////////////
// Name: tokenzr.h
// Purpose: String tokenizer
// Author: Guilhem Lavaux
// Modified by:
// Created: 04/22/98
// RCS-ID: $Id$
// Copyright: (c) Guilhem Lavaux
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_TOKENZRH
#define _WX_TOKENZRH
#ifdef __GNUG__
#pragma interface
#endif
#include "wx/object.h"
#include "wx/string.h"
#include "wx/filefn.h"
class WXDLLEXPORT wxStringTokenizer : public wxObject
{
public:
wxStringTokenizer(const wxString& to_tokenize,
const wxString& delims = " \t\r\n",
bool ret_delim = FALSE);
wxStringTokenizer() { m_retdelims = FALSE;}
virtual ~wxStringTokenizer();
int CountTokens() const;
bool HasMoreTokens();
wxString NextToken();
wxString GetNextToken() { return NextToken(); };
wxString GetString() const { return m_string; }
void SetString(const wxString& to_tokenize,
const wxString& delims = " \t\r\n",
bool ret_delim = FALSE)
{
m_string = to_tokenize;
m_delims = delims;
m_retdelims = ret_delim;
}
protected:
off_t FindDelims(const wxString& str, const wxString& delims) const;
void EatLeadingDelims();
wxString m_string, m_delims;
bool m_retdelims;
};
#endif // _WX_TOKENZRH

138
src/common/tokenzr.cpp Normal file
View File

@@ -0,0 +1,138 @@
/////////////////////////////////////////////////////////////////////////////
// Name: tokenzr.cpp
// Purpose: String tokenizer
// Author: Guilhem Lavaux
// Modified by:
// Created: 04/22/98
// RCS-ID: $Id$
// Copyright: (c) Guilhem Lavaux
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "tokenzr.h"
#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/tokenzr.h"
wxStringTokenizer::wxStringTokenizer(const wxString& to_tokenize,
const wxString& delims,
bool ret_delims)
{
m_string = to_tokenize;
m_delims = delims;
m_retdelims = ret_delims;
}
wxStringTokenizer::~wxStringTokenizer()
{
}
off_t wxStringTokenizer::FindDelims(const wxString& str, const wxString& delims) const
{
for ( size_t i = 0; i < str.Length(); i++ )
{
wxChar c = str[i];
for ( size_t j = 0; j < delims.Length() ; j++ )
{
if ( delims[j] == c )
return i;
}
}
return -1;
}
int wxStringTokenizer::CountTokens() const
{
wxString p_string = m_string;
bool found = TRUE;
int pos, count = 1;
if (p_string.Length() == 0)
return 0;
while (found)
{
pos = FindDelims(p_string, m_delims);
if (pos != -1)
{
count++;
p_string = p_string(pos+1, p_string.Length());
}
else
{
found = FALSE;
}
}
return count;
}
bool wxStringTokenizer::HasMoreTokens()
{
return !m_string.IsEmpty();
}
// needed to fix leading whitespace / mult. delims bugs
void wxStringTokenizer::EatLeadingDelims()
{
int pos;
// while leading delims trim 'em from the left
while ( ( pos = FindDelims(m_string, m_delims)) == 0 )
{
m_string = m_string.Mid((size_t)1);
}
}
wxString wxStringTokenizer::NextToken()
{
off_t pos, pos2;
wxString r_string;
if ( m_string.IsEmpty() )
return m_string;
if ( !m_retdelims )
EatLeadingDelims();
pos = FindDelims(m_string, m_delims);
if (pos == -1)
{
r_string = m_string;
m_string = wxEmptyString;
return r_string;
}
if (m_retdelims)
{
if (!pos)
{
pos++;
pos2 = 1;
}
else
{
pos2 = pos;
}
}
else
{
pos2 = pos + 1;
}
r_string = m_string.Left((size_t)pos);
m_string = m_string.Mid((size_t)pos2);
return r_string;
}

View File

@@ -1,97 +0,0 @@
*.zip
.cvsignore
.emacs.desktop
__init__.py
__init__.py
__init__.pyc
__init__.pyc
__init__.pyo
__init__.pyo
cmndlgs.py
cmndlgs.py
cmndlgs.pyc
cmndlgs.pyc
cmndlgs.pyo
cmndlgs.pyo
controls.py
controls.py
controls.pyc
controls.pyc
controls.pyo
controls.pyo
controls2.py
controls2.py
controls2.pyc
controls2.pyc
controls2.pyo
controls2.pyo
events.py
events.py
events.pyc
events.pyc
events.pyo
events.pyo
frames.py
frames.py
frames.pyc
frames.pyc
frames.pyo
frames.pyo
gdi.py
gdi.py
gdi.pyc
gdi.pyc
gdi.pyo
gdi.pyo
mdi.py
mdi.py
mdi.pyc
mdi.pyc
mdi.pyo
mdi.pyo
misc.py
misc.py
misc.pyc
misc.pyc
misc.pyo
misc.pyo
stattool.py
stattool.py
stattool.pyc
stattool.pyc
stattool.pyo
stattool.pyo
utils.py
utils.py
utils.pyc
utils.pyc
utils.pyo
windows.py
windows.py
windows.pyc
windows.pyc
windows.pyo
windows.pyo
windows2.py
windows2.py
windows2.pyc
windows2.pyc
windows2.pyo
windows2.pyo
windows3.py
windows3.pyc
windows3.pyo
wx.py
wx.py
wx.pyc
wx.pyc
wx.pyo
wxc.ilk
wxc.pdb
wxc.pyd
wxp.py
wxp.pyc
wxp.pyo
wxpc.ilk
wxpc.pdb
wxpc.pyd

View File

@@ -1,204 +0,0 @@
wxPython README
---------------
Introduction
------------
The code in this subtree is a Python Extension Module that enables the
use of wxWindows from the Python language. So what is Python? Go to
http://www.python.org to learn more but in a nutshell, it's an
extremly cool object oriented language. It's easier than Perl and
nearly as powerful. It runs on more platforms than Java, and by some
reports, is even faster than Java with a JIT compiler!
So why would you want to use wxPython over just C++ and wxWindows?
Personally I prefer using Python for everything. I only use C++ when
I absolutly have to eek more performance out of an algorithm, and even
then I ususally code it as an extension module and leave the majority
of the program in Python. Another good thing to use wxPython for is
quick prototyping of your wxWindows apps. With C++ you have to
continuously go though the edit-compile-link-run cycle, which can be
quite time comsuming. With Python it is only an edit-run cycle. You
can easily build an application in a few hours with Python that would
normally take a few days with C++. Converting a wxPython app to a
C++/wxWindows app should be a straight forward task.
This extension module attempts to mirror the class heiarchy of
wxWindows as closely as possble. This means that there is a wxFrame
class in wxPython that looks, smells, tastes and acts almost the same
as the wxFrame class in the C++ version. Unfortunatly, I wasn't able
to match things exactly because of differences in the languages, but
the differences should be easy to absorb because they are natural to
Python. For example, some methods that return mutliple values via
argument pointers in C++ will return a tuple of values in Python.
These differences have not been documented yet so if something isn't
working the same as described in the wxWindows documents the best
thing to do is to scan through the wxPython sources, especially the .i
files, as that is where the interfaces for wxPython are defined.
Currently this extension module is designed such that the entire
application will be written in Python. I havn't tried it yet, but I
am sure that attempting to embed wxPython in a C++ wxWindows
application will cause problems. However there is a plan to support
this in the future.
What's new in 0.5.3
-------------------
Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
Various cleanup, tweaks, minor additions, etc. to maintain
compatibility with the current wxWindows.
What's new in 0.5.0
-------------------
Changed the import semantics from "from wxPython import *" to "from
wxPython.wx import *" This is for people who are worried about
namespace pollution, they can use "from wxPython import wx" and then
prefix all the wxPython identifiers with "wx."
Added wxTaskbarIcon for wxMSW.
Made the events work for wxGrid.
Added wxConfig.
Added wxMiniFrame for wxGTK.
Changed many of the args and return values that were pointers to gdi
objects to references to reflect changes in the wxWindows API.
Other assorted fixes and additions.
What's new in 0.4.2
-------------------
wxPython on wxGTK works!!! Both dynamic and static on Linux and
static on Solaris have been tested. Many thanks go to Harm
<H.v.d.Heijden@phys.tue.nl> for his astute detective work on tracking
down a nasty DECREF bug. Okay so I have to confess that it was just a
DSM (Dumb Stupid Mistake) on my part but it was nasty none the less
because the behavior was so different on different platforms.
The dynamicly loaded module on Solaris is still segfaulting, so it
must have been a different issue all along...
What's New in 0.4
-----------------
1. Worked on wxGTK compatibility. It is partially working. On a
Solaris/Sparc box wxPython is working but only when it is statically
linked with the Python interpreter. When built as a dyamically loaded
extension module, things start acting weirdly and it soon seg-faults.
And on Linux both the statically linked and the dynamically linked
version segfault shortly after starting up.
2. Added Toolbar, StatusBar and SplitterWindow classes.
3. Varioius bug fixes, enhancements, etc.
Build Instructions
------------------
I used SWIG (http://www.swig.org) to create the source code for the
extension module. This enabled me to only have to deal with a small
amount of code and only have to bother with the exceptional issues.
SWIG takes care of the rest and generates all the repetative code for
me. You don't need SWIG to build the extension module as all the
generated C++ code is included under the src directory.
I added a few minor features to SWIG to control some of the code
generation. If you want to playaround with this the patches are in
wxPython/SWIG.patches and they should be applied to the 1.1p5 version
of SWIG. These new patches are documented at
http://starship.skyport.net/crew/robind/python/#swig, and they should
also end up in the 1.2 version of SWIG.
wxPython is organized as a Python package. This means that the
directory containing the results of the build process should be a
subdirectory of a directory on the PYTHONPATH. (And preferably should
be named wxPython.) You can control where the build process will dump
wxPython by setting the TARGETDIR makefile variable. The default is
$(WXWIN)/utils/wxPython, where this README.txt is located. If you
leave it here then you should add $(WXWIN)/utils to your PYTHONPATH.
However, you may prefer to use something that is already on your
PYTHONPATH, such as the site-packages directory on Unix systems.
Win32
-----
1. Build wxWindows with wxUSE_RESOURCE_LOADING_IN_MSW set to 1 in
include/wx/msw/setup.h so icons can be loaded dynamically. While
there, make sure wxUSE_OWNER_DRAWN is also set to 1.
2. Change into the $(WXWIN)/utils/wxPython/src directory.
3. Edit makefile.nt and specify where your python installation is at.
You may also want to fiddle with the TARGETDIR variable as described
above.
4. Run nmake -f makefile.nt
5. If it builds successfully, congratulations! Move on to the next
step. If not then you can try mailing me for help. Also, I will
always have a pre-built win32 version of this extension module at
http://starship.skyport.net/crew/robind/python.
6. Change to the $(WXWIN)/utils/wxPython/tests directory.
7. Try executing the test programs. Note that some of these print
diagnositc or test info to standard output, so they will require the
console version of python. For example:
python test1.py
To run them without requiring a console, you can use the pythonw.exe
version of Python either from the command line or from a shortcut.
Unix
----
1. Change into the $(WXWIN)/utils/wxPython/src directory.
2. Edit Setup.in and ensure that the flags, directories, and toolkit
options are correct. See the above commentary about TARGETDIR. There
are a few sample Setup.in.[platform] files provided.
3. Run this command to generate a makefile:
make -f Makefile.pre.in boot
4. Run these commands to build and then install the wxPython extension
module:
make
make install
5. Change to the $(WXWIN)/utils/wxPython/tests directory.
6. Try executing the test programs. For example:
python test1.py
------------------------
10/20/1998
Robin Dunn
robin@alldunn.com

View File

@@ -1,97 +0,0 @@
*** swig.h.old Wed Feb 04 14:59:40 1998
--- swig.h Fri Aug 28 14:46:32 1998
***************
*** 178,185 ****
--- 178,211 ----
char *firstkey();
char *nextkey();
};
+ // -------------------------------------------------------------------
+ // Simple Vector class
+ // User is responsible for deleting contents before deleteing Vector
+ // -------------------------------------------------------------------
+
+ class Vector {
+ public:
+ Vector(size_t allocSize=8);
+ ~Vector();
+
+ size_t size() { return m_size; }
+ size_t count() { return m_count; }
+ size_t append(void* object);
+ size_t extend(size_t newSize);
+
+ void*& operator[] (size_t idx);
+
+ static void* s_nullPtr;
+
+ private:
+ size_t m_size;
+ size_t m_count;
+ void** m_data;
+ };
+
+
/************************************************************************
* class DataType
*
* Defines the basic datatypes supported by the translator.
***************
*** 684,691 ****
--- 710,761 ----
extern char *name_get(char *vname, int suppress=0);
extern char *name_set(char *vname, int suppress=0);
extern char *name_construct(char *classname, int suppress=0);
extern char *name_destroy(char *classname, int suppress=0);
+
+ // ----------------------------------------------------------------------
+ // class CPP_class
+ //
+ // Class for managing class members (internally)
+ // ----------------------------------------------------------------------
+
+ class CPP_member;
+
+ class CPP_class {
+ public:
+ char *classname; // Real class name
+ char *classrename; // New name of class (if applicable)
+ char *classtype; // class type (struct, union, class)
+ int strip; // Strip off class declarator
+ int wextern; // Value of extern wrapper variable for this class
+ int have_constructor; // Status bit indicating if we've seen a constructor
+ int have_destructor; // Status bit indicating if a destructor has been seen
+ int is_abstract; // Status bit indicating if this is an abstract class
+ int generate_default; // Generate default constructors
+ int objective_c; // Set if this is an objective C class
+ int error; // Set if this class can't be generated
+ int line; // Line number
+ char **baseclass; // Base classes (if any)
+ Hash *local; // Hash table for local types
+ Hash *scope; // Local scope hash table
+ DocEntry *de; // Documentation entry of class
+ CPP_member *members; // Linked list of members
+ CPP_class *next; // Next class
+ static CPP_class *classlist; // List of all classes stored
+
+ Vector addPragmas;
+
+ CPP_class(char *name, char *ctype);
+ void add_member(CPP_member *m);
+ CPP_member *search_member(char *name);
+ void inherit_decls(int mode);
+ void emit_decls();
+ static CPP_class *search(char *name);
+ void create_default();
+ static void create_all();
+ };
+
+ extern CPP_class *current_class;
/***********************************************************************
* -- Revision History
* $Log$
* Revision 1.1 1998/10/03 05:56:02 RD
* *** empty log message ***
*

View File

@@ -1,136 +0,0 @@
*** python.cxx.old Fri Jan 02 22:17:40 1998
--- python.cxx Fri Aug 28 14:49:18 1998
***************
*** 1679,1684 ****
--- 1679,1701 ----
}
}
}
+ } else if (strcmp(cmd, "addtomethod") == 0) {
+ // parse value, expected to be in the form "methodName:line"
+ char* txtptr = strchr(value, ':');
+ if (txtptr) {
+ // add name and line to a list in current_class
+ *txtptr = 0;
+ txtptr++;
+ AddPragmaData* apData = new AddPragmaData(value, txtptr);
+ current_class->addPragmas.append(apData);
+
+ } else {
+ fprintf(stderr,"%s : Line %d. Malformed addtomethod pragma. Should be \"methodName:text\"\n",
+ input_file, line_number);
+ }
+ } else if (strcmp(cmd, "addtoclass") == 0) {
+ AddPragmaData* apData = new AddPragmaData("__class__", value);
+ current_class->addPragmas.append(apData);
} else {
fprintf(stderr,"%s : Line %d. Unrecognized pragma.\n", input_file, line_number);
}
*** python.h.old Thu Jul 24 22:18:50 1997
--- python.h Fri Aug 28 14:46:08 1998
***************
*** 185,191 ****
--- 185,203 ----
void cpp_class_decl(char *, char *,char *);
void pragma(char *, char *, char *);
void add_typedef(DataType *t, char *name);
+
+ void emitAddPragmas(String& output, char* name, char* spacing);
};
#define PYSHADOW_MEMBER 0x2
+
+ struct AddPragmaData {
+ String m_method;
+ String m_text;
+
+ AddPragmaData(char* method, char* text)
+ : m_method(method),
+ m_text(text)
+ {}
+ };
*** pycpp.cxx.old Fri Jan 02 20:23:22 1998
--- pycpp.cxx Fri Aug 28 16:01:46 1998
***************
*** 276,281 ****
--- 276,282 ----
}
}
// if ((t->type != T_VOID) || (t->is_pointer))
+ emitAddPragmas(*pyclass, realname, tab8);
*pyclass << tab8 << "return val\n";
// Change the usage string to reflect our shadow class
***************
*** 394,399 ****
--- 395,401 ----
}
*construct << ")\n";
*construct << tab8 << "self.thisown = 1\n";
+ emitAddPragmas(*construct, "__init__", tab8);
have_constructor = 1;
} else {
***************
*** 494,502 ****
*pyclass << tab4 << "def __del__(self):\n"
<< tab8 << "if self.thisown == 1 :\n"
<< tab8 << tab4 << module << "." << name_destroy(realname) << "(self.this)\n";
!
have_destructor = 1;
-
if (doc_entry) {
doc_entry->usage = "";
doc_entry->usage << "del this";
--- 496,503 ----
*pyclass << tab4 << "def __del__(self):\n"
<< tab8 << "if self.thisown == 1 :\n"
<< tab8 << tab4 << module << "." << name_destroy(realname) << "(self.this)\n";
! emitAddPragmas(*pyclass, "__del__", tab8);
have_destructor = 1;
if (doc_entry) {
doc_entry->usage = "";
doc_entry->usage << "del this";
***************
*** 552,557 ****
--- 553,560 ----
<< tab8 << "return \"<C " << class_name <<" instance>\"\n";
classes << repr;
+ emitAddPragmas(classes, "__class__", tab4);
+
}
// Now build the real class with a normal constructor
***************
*** 747,752 ****
--- 750,777 ----
}
}
+ // --------------------------------------------------------------------------------
+ // PYTHON::emitAddPragmas(String& output, char* name, char* spacing);
+ //
+ // Search the current_class->addPragmas vector for any text belonging to name.
+ // Append the text properly spcaed to the output string.
+ //
+ // --------------------------------------------------------------------------------
+
+ void PYTHON::emitAddPragmas(String& output, char* name, char* spacing)
+ {
+ AddPragmaData* apData;
+ size_t count;
+ int i;
+
+ count = current_class->addPragmas.count();
+ for (i=0; i<count; i++) {
+ apData = (AddPragmaData*)current_class->addPragmas[i];
+ if (strcmp(apData->m_method, name) == 0) {
+ output << spacing << apData->m_text << "\n";
+ }
+ }
+ }
/*********************************************************************************
*

View File

@@ -1,488 +0,0 @@
*** cplus.cxx.old Mon Feb 02 14:55:42 1998
--- cplus.cxx Fri Aug 28 12:02:50 1998
***************
*** 581,612 ****
// Class for managing class members (internally)
// ----------------------------------------------------------------------
static char *inherit_base_class = 0;
- class CPP_class {
- public:
- char *classname; // Real class name
- char *classrename; // New name of class (if applicable)
- char *classtype; // class type (struct, union, class)
- int strip; // Strip off class declarator
- int wextern; // Value of extern wrapper variable for this class
- int have_constructor; // Status bit indicating if we've seen a constructor
- int have_destructor; // Status bit indicating if a destructor has been seen
- int is_abstract; // Status bit indicating if this is an abstract class
- int generate_default; // Generate default constructors
- int objective_c; // Set if this is an objective C class
- int error; // Set if this class can't be generated
- int line; // Line number
- char **baseclass; // Base classes (if any)
- Hash *local; // Hash table for local types
- Hash *scope; // Local scope hash table
- DocEntry *de; // Documentation entry of class
- CPP_member *members; // Linked list of members
- CPP_class *next; // Next class
- static CPP_class *classlist; // List of all classes stored
! CPP_class(char *name, char *ctype) {
CPP_class *c;
classname = copy_string(name);
classtype = copy_string(ctype);
classrename = 0;
--- 581,593 ----
// Class for managing class members (internally)
// ----------------------------------------------------------------------
static char *inherit_base_class = 0;
+ CPP_class *CPP_class::classlist = 0;
+ CPP_class *current_class;
! CPP_class::CPP_class(char *name, char *ctype) {
CPP_class *c;
classname = copy_string(name);
classtype = copy_string(ctype);
classrename = 0;
***************
*** 642,650 ****
// ------------------------------------------------------------------------------
// Add a new C++ member to this class
// ------------------------------------------------------------------------------
! void add_member(CPP_member *m) {
CPP_member *cm;
// Set base class where this was defined
if (inherit_base_class)
--- 623,631 ----
// ------------------------------------------------------------------------------
// Add a new C++ member to this class
// ------------------------------------------------------------------------------
! void CPP_class::add_member(CPP_member *m) {
CPP_member *cm;
// Set base class where this was defined
if (inherit_base_class)
***************
*** 664,672 ****
// ------------------------------------------------------------------------------
// Search for a member with the given name. Returns the member on success, 0 on failure
// ------------------------------------------------------------------------------
! CPP_member *search_member(char *name) {
CPP_member *m;
char *c;
m = members;
while (m) {
--- 645,653 ----
// ------------------------------------------------------------------------------
// Search for a member with the given name. Returns the member on success, 0 on failure
// ------------------------------------------------------------------------------
! CPP_member *CPP_class::search_member(char *name) {
CPP_member *m;
char *c;
m = members;
while (m) {
***************
*** 680,688 ****
// ------------------------------------------------------------------------------
// Inherit. Put all the declarations associated with this class into the current
// ------------------------------------------------------------------------------
! void inherit_decls(int mode) {
CPP_member *m;
m = members;
while (m) {
inherit_base_class = m->base;
--- 661,669 ----
// ------------------------------------------------------------------------------
// Inherit. Put all the declarations associated with this class into the current
// ------------------------------------------------------------------------------
! void CPP_class::inherit_decls(int mode) {
CPP_member *m;
m = members;
while (m) {
inherit_base_class = m->base;
***************
*** 696,704 ****
// ------------------------------------------------------------------------------
// Emit all of the declarations associated with this class
// ------------------------------------------------------------------------------
! void emit_decls() {
CPP_member *m = members;
int last_scope = name_scope(0);
abstract = is_abstract;
while (m) {
--- 677,685 ----
// ------------------------------------------------------------------------------
// Emit all of the declarations associated with this class
// ------------------------------------------------------------------------------
! void CPP_class::emit_decls() {
CPP_member *m = members;
int last_scope = name_scope(0);
abstract = is_abstract;
while (m) {
***************
*** 713,721 ****
// ------------------------------------------------------------------------------
// Search for a given class in the list
// ------------------------------------------------------------------------------
! static CPP_class *search(char *name) {
CPP_class *c;
c = classlist;
if (!name) return 0;
while (c) {
--- 694,702 ----
// ------------------------------------------------------------------------------
// Search for a given class in the list
// ------------------------------------------------------------------------------
! CPP_class *CPP_class::search(char *name) {
CPP_class *c;
c = classlist;
if (!name) return 0;
while (c) {
***************
*** 729,737 ****
// Add default constructors and destructors
//
// ------------------------------------------------------------------------------
! void create_default() {
if (!generate_default) return;
// Try to generate a constructor if not available.
--- 710,718 ----
// Add default constructors and destructors
//
// ------------------------------------------------------------------------------
! void CPP_class::create_default() {
if (!generate_default) return;
// Try to generate a constructor if not available.
***************
*** 751,764 ****
// ------------------------------------------------------------------------------
// Dump *all* of the classes saved out to the various
// language modules (this does what cplus_close_class used to do)
// ------------------------------------------------------------------------------
- static void create_all();
- };
-
- CPP_class *CPP_class::classlist = 0;
- static CPP_class *current_class;
-
void CPP_class::create_all() {
CPP_class *c;
c = classlist;
while (c) {
--- 732,739 ----
*** vector.cxx.old Fri Aug 28 14:23:16 1998
--- vector.cxx Fri Aug 28 14:46:52 1998
***************
*** 0 ****
--- 1,182 ----
+
+ /*******************************************************************************
+ * Simplified Wrapper and Interface Generator (SWIG)
+ *
+ * Dave Beazley
+ *
+ * Department of Computer Science Theoretical Division (T-11)
+ * University of Utah Los Alamos National Laboratory
+ * Salt Lake City, Utah 84112 Los Alamos, New Mexico 87545
+ * beazley@cs.utah.edu beazley@lanl.gov
+ *
+ * Copyright (c) 1995-1997
+ * The University of Utah and the Regents of the University of California
+ * All Rights Reserved
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that
+ * (1) The above copyright notice and the following two paragraphs
+ * appear in all copies of the source code and (2) redistributions
+ * including binaries reproduces these notices in the supporting
+ * documentation. Substantial modifications to this software may be
+ * copyrighted by their authors and need not follow the licensing terms
+ * described here, provided that the new terms are clearly indicated in
+ * all files where they apply.
+ *
+ * IN NO EVENT SHALL THE AUTHOR, THE UNIVERSITY OF CALIFORNIA, THE
+ * UNIVERSITY OF UTAH OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
+ * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
+ * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
+ * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * THE AUTHOR, THE UNIVERSITY OF CALIFORNIA, AND THE UNIVERSITY OF UTAH
+ * SPECIFICALLY DISCLAIM ANY WARRANTIES,INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND
+ * THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE,
+ * SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ *******************************************************************************/
+
+ #include "internal.h"
+
+ /*******************************************************************************
+ * $Header$
+ *
+ * File : vector.cxx
+ *
+ * A very simple Vector class. Allways assumes that memory allocations are
+ * successful. Should be made more robust...
+ *
+ *******************************************************************************/
+
+ void* Vector::s_nullPtr = NULL;
+
+ // -----------------------------------------------------------------------------
+ // Vector::Vector(size_t allocSize = 8)
+ //
+ // Constructor. Creates a new Vector.
+ //
+ // Inputs : initial allocation size (optional)
+ //
+ // Output : New Vector object.
+ //
+ // Side Effects : None
+ // -----------------------------------------------------------------------------
+
+ Vector::Vector(size_t allocSize)
+ : m_size(allocSize),
+ m_count(0),
+ m_data(0)
+ {
+ if (m_size) {
+ m_data = new void*[m_size];
+ int i;
+ for (i=0; i<m_size;i++)
+ m_data[i] = 0;
+ }
+ }
+
+
+ // -----------------------------------------------------------------------------
+ // Vector::~Vector
+ //
+ // Destructor. Only cleans up the vector, not its contents!
+ //
+ // -----------------------------------------------------------------------------
+
+
+ Vector::~Vector() {
+ if (m_data) {
+ delete [] m_data;
+ }
+
+ m_data = 0;
+ m_size = m_count = 0;
+ }
+
+
+
+ // -----------------------------------------------------------------------------
+ // size_t Vector::extend(size_t newSize)
+ //
+ // Extends the vector to at least newSize length. Won't do anything if newSize
+ // is smaller than the current size of the vector.
+ //
+ // Returns the new allocated size.
+ //
+ // -----------------------------------------------------------------------------
+
+ #define GRANULARITY 16
+
+ size_t Vector::extend(size_t newSize) {
+
+ if (newSize > m_size) {
+ newSize = newSize + (GRANULARITY - (newSize % GRANULARITY));
+
+ void** temp = new void*[newSize];
+ memcpy(temp, m_data, m_size*sizeof(void*));
+
+ int i;
+ for (i=m_size; i<newSize; i++)
+ temp[i] = 0;
+
+ delete [] m_data;
+ m_data = temp;
+ m_size = newSize;
+ }
+ return m_size;
+ }
+
+
+ // -----------------------------------------------------------------------------
+ // Vector::append(void* object)
+ //
+ // Appends the object pointer to vector at index m_count. Increments m_count.
+ // Returns the new count.
+ // -----------------------------------------------------------------------------
+
+ size_t Vector::append(void* object) {
+ if (m_count >= m_size) {
+ extend(m_count + 1);
+ }
+
+ m_data[m_count] = object;
+ m_count += 1;
+
+ return m_count;
+ }
+
+
+ // -----------------------------------------------------------------------------
+ // Vector::operator[] (size_t idx)
+ //
+ // Returns a reference to the void pointer at idx. If idx is beyond the range
+ // of the vector, returns a reference to s_nullPtr.
+ //
+ // -----------------------------------------------------------------------------
+
+ void*& Vector::operator[] (size_t idx) {
+ if (idx >= m_size) {
+ s_nullPtr = 0;
+ return s_nullPtr;
+ }
+
+ return m_data[idx];
+ }
+
+
+ /***********************************************************************
+ *
+ * -- Revision History
+ * $Log$
+ * Revision 1.1 1998/10/03 05:56:03 RD
+ * *** empty log message ***
+ *
+ *
+ ***********************************************************************/
+
+
+
+
+
+
*** makefile.msc.old Mon Jun 23 15:15:32 1997
--- makefile.msc Fri Aug 28 10:21:58 1998
***************
*** 33,50 ****
# Normally, you shouldn't have to change anything below this point #
########################################################################
LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj emit.obj newdoc.obj ascii.obj \
! html.obj latex.obj cplus.obj lang.obj hash.obj sstring.obj wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
! newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIBNAME = ..\libswig.lib
INCLUDE = -I../Include -I$(STD_INC)
! CFLAGS = -Zi -nologo -DSWIG_LIB="\"$(SWIG_LIB)\"" -DSWIG_CC="\"$(CC)\"" -DMSDOS -DSTDC_HEADERS=1 -DHAVE_LIBDL=1 $(SWIG_OPTS)
LD_FLAGS = -VERBOSE
#
--- 33,50 ----
# Normally, you shouldn't have to change anything below this point #
########################################################################
LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj emit.obj newdoc.obj ascii.obj \
! html.obj latex.obj cplus.obj lang.obj hash.obj vector.obj sstring.obj wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
! newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx vector.cxx \
sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIBNAME = ..\libswig.lib
INCLUDE = -I../Include -I$(STD_INC)
! CFLAGS = -Zi -nologo -DSWIG_LIB="\"$(SWIG_LIB)\"" -DSWIG_CC="\"$(CC)\"" -DMSDOS -DSTDC_HEADERS=1 -DHAVE_LIBDL=1 $(SWIG_OPTS) $(OTHERFLAGS)
LD_FLAGS = -VERBOSE
#
*** makefile.bc.old Sun Jan 04 12:49:24 1998
--- makefile.bc Fri Aug 28 14:42:58 1998
***************
*** 34,47 ****
########################################################################
LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj \
emit.obj newdoc.obj ascii.obj \
! html.obj latex.obj cplus.obj lang.obj hash.obj sstring.obj \
wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx \
emit.cxx newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
! sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIBNAME = ..\libswig.lib
INCLUDE = -I../Include -I$(STD_INC)
--- 34,47 ----
########################################################################
LIBOBJS = main.obj scanner.obj symbol.obj include.obj types.obj parms.obj \
emit.obj newdoc.obj ascii.obj \
! html.obj latex.obj cplus.obj lang.obj hash.obj vector.obj sstring.obj \
wrapfunc.obj getopt.obj comment.obj typemap.obj naming.obj
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx \
emit.cxx newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
! vector.cxx sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIBNAME = ..\libswig.lib
INCLUDE = -I../Include -I$(STD_INC)
*** Makefile.in.old Wed May 28 22:56:56 1997
--- Makefile.in Fri Aug 28 14:43:36 1998
***************
*** 51,63 ****
# Normally, you shouldn't have to change anything below this point #
########################################################################
LIBOBJS = main.o scanner.o symbol.o include.o types.o parms.o emit.o newdoc.o ascii.o \
! html.o latex.o cplus.o lang.o hash.o sstring.o wrapfunc.o getopt.o comment.o \
typemap.o naming.o
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
! newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx \
sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIB = ../libswig.a
--- 51,63 ----
# Normally, you shouldn't have to change anything below this point #
########################################################################
LIBOBJS = main.o scanner.o symbol.o include.o types.o parms.o emit.o newdoc.o ascii.o \
! html.o latex.o cplus.o lang.o hash.o vector.o sstring.o wrapfunc.o getopt.o comment.o \
typemap.o naming.o
LIBSRCS = main.cxx scanner.cxx symbol.cxx include.cxx types.cxx parms.cxx emit.cxx \
! newdoc.cxx ascii.cxx html.cxx latex.cxx cplus.cxx lang.cxx hash.cxx vector.cxx \
sstring.cxx wrapfunc.cxx getopt.cxx comment.cxx typemap.cxx naming.cxx
LIBHEADERS = internal.h ../Include/swig.h latex.h ascii.h html.h nodoc.h
LIB = ../libswig.a

View File

@@ -1,43 +0,0 @@
wxPython TODO List
------------------
These are the major tasks to be done on wxPython:
1. Get it working for wxGTK.
2. Figure out how to do embedding of wxPython in a wxWindows C++
application.
Actually, now that I think about it it might actually work. We
just need to move some of the wxWindows initialization stuff out
of wxpcinit, ensure that __wxStart is not called and that a wxApp
is not created. So this task becomes: Create a test case for
embedding wxPython in a C++ app. Should also create some helper
functions for passing window objects into the Python code, etc.
Test this with M.
3. Add significantly to the tests.
4. Derived Python classes should have the ability to call the standard
On** methods in the base class.
5. There are some virtual On** and other methods in wxWindows that
should end up being callbacks in derived python classes, but they
are not called via the standard event system. Is there any way to
hook into these and call Python methods (if they exist in the
derived class) without having to derive a specialized C++ class?
6. Add the Doc/View related classes
7. Add the Printing related classes
8. Document the differences (method signatures, new methods to
compensate for no overloading, etc.) between wxPython and wxWindows.
9. Create some larger-scale sample application with wxPython to show
it can be done and the simplicity that it will provide... Test
distribution with Freeze.

View File

@@ -1,38 +0,0 @@
wxPython\*.pyd
wxPython\*.pyc
wxPython\*.pyo
wxPython\*.py
wxPython\*.txt
wxPython\tests\*.py
wxPython\tests\bitmaps
wxPython\src\*.i
wxPython\src\*.py
wxPython\src\*.cpp
wxPython\src\*.h
wxPython\src\*.ico
wxPython\src\*.def
wxPython\src\*.rc
wxPython\src\makefile.*
wxPython\src\Makefile.pre.in
wxPython\src\Setup.in
wxPython\src\msw\*.cpp
wxPython\src\msw\*.h
wxPython\src\msw\*.py
wxPython\src\gtk\*.cpp
wxPython\src\gtk\*.h
wxPython\src\gtk\*.py
wxPython\src\motif\*.cpp
wxPython\src\motif\*.h
wxPython\src\motif\*.py
wxPython\src\qt\*.cpp
wxPython\src\qt\*.h
wxPython\src\qt\*.py

View File

@@ -1,8 +0,0 @@
@echo off
rem cd %WXWIN%\utils
zip -@ -r wxPython\wxPython-%1.zip < wxPython\distrib\wxPython.rsp
cd -

View File

@@ -1,26 +0,0 @@
.emacs.desktop
Makefile
Makefile.pre
Setup
Setup.save
Setup.save
config.c
make.bat
sedscript
templates
transfer.zip
vc50.pdb
vc60.pdb
wxPython.001
wxPython.dsp
wxPython.dsw
wxPython.ncb
wxPython.opt
wxc.exp
wxc.lib
wxc.res
wxp.pch
wxpc.exp
wxpc.lib
wxpc.res
wxpc.res.save

View File

@@ -1,389 +0,0 @@
# Universal Unix Makefile for Python extensions
# =============================================
# Short Instructions
# ------------------
# 1. Build and install Python (1.5 or newer).
# 2. "make -f Makefile.pre.in boot"
# 3. "make"
# You should now have a shared library.
# Long Instructions
# -----------------
# Build *and install* the basic Python 1.5 distribution. See the
# Python README for instructions. (This version of Makefile.pre.in
# only withs with Python 1.5, alpha 3 or newer.)
# Create a file Setup.in for your extension. This file follows the
# format of the Modules/Setup.in file; see the instructions there.
# For a simple module called "spam" on file "spammodule.c", it can
# contain a single line:
# spam spammodule.c
# You can build as many modules as you want in the same directory --
# just have a separate line for each of them in the Setup.in file.
# If you want to build your extension as a shared library, insert a
# line containing just the string
# *shared*
# at the top of your Setup.in file.
# Note that the build process copies Setup.in to Setup, and then works
# with Setup. It doesn't overwrite Setup when Setup.in is changed, so
# while you're in the process of debugging your Setup.in file, you may
# want to edit Setup instead, and copy it back to Setup.in later.
# (All this is done so you can distribute your extension easily and
# someone else can select the modules they actually want to build by
# commenting out lines in the Setup file, without editing the
# original. Editing Setup is also used to specify nonstandard
# locations for include or library files.)
# Copy this file (Misc/Makefile.pre.in) to the directory containing
# your extension.
# Run "make -f Makefile.pre.in boot". This creates Makefile
# (producing Makefile.pre and sedscript as intermediate files) and
# config.c, incorporating the values for sys.prefix, sys.exec_prefix
# and sys.version from the installed Python binary. For this to work,
# the python binary must be on your path. If this fails, try
# make -f Makefile.pre.in Makefile VERSION=1.5 installdir=<prefix>
# where <prefix> is the prefix used to install Python for installdir
# (and possibly similar for exec_installdir=<exec_prefix>).
# Note: "make boot" implies "make clobber" -- it assumes that when you
# bootstrap you may have changed platforms so it removes all previous
# output files.
# If you are building your extension as a shared library (your
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
# to build the shared library files. If you are building a statically
# linked Python binary (the only solution of your platform doesn't
# support shared libraries, and sometimes handy if you want to
# distribute or install the resulting Python binary), run "make
# python".
# Note: Each time you edit Makefile.pre.in or Setup, you must run
# "make Makefile" before running "make".
# Hint: if you want to use VPATH, you can start in an empty
# subdirectory and say (e.g.):
# make -f ../Makefile.pre.in boot srcdir=.. VPATH=..
# === Bootstrap variables (edited through "make boot") ===
# The prefix used by "make inclinstall libainstall" of core python
installdir= /usr/local
# The exec_prefix used by the same
exec_installdir=$(installdir)
# Source directory and VPATH in case you want to use VPATH.
# (You will have to edit these two lines yourself -- there is no
# automatic support as the Makefile is not generated by
# config.status.)
srcdir= .
VPATH= .
# === Variables that you may want to customize (rarely) ===
# (Static) build target
TARGET= python
# Installed python binary (used only by boot target)
PYTHON= python
# Add more -I and -D options here
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
# These two variables can be set in Setup to merge extensions.
# See example[23].
BASELIB=
BASESETUP=
# === Variables set by makesetup ===
MODOBJS= _MODOBJS_
MODLIBS= _MODLIBS_
# === Definitions added by makesetup ===
# === Variables from configure (through sedscript) ===
VERSION= @VERSION@
CC= @CC@
LINKCC= @LINKCC@
SGI_ABI= @SGI_ABI@
OPT= @OPT@
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
DEFS= @DEFS@
LIBS= @LIBS@
LIBM= @LIBM@
LIBC= @LIBC@
RANLIB= @RANLIB@
MACHDEP= @MACHDEP@
SO= @SO@
LDSHARED= @LDSHARED@
CCSHARED= @CCSHARED@
LINKFORSHARED= @LINKFORSHARED@
#@SET_CCC@
# Install prefix for architecture-independent files
prefix= /usr/local
# Install prefix for architecture-dependent files
exec_prefix= $(prefix)
# === Fixed definitions ===
# Shell used by make (some versions default to the login shell, which is bad)
SHELL= /bin/sh
# Expanded directories
BINDIR= $(exec_installdir)/bin
LIBDIR= $(exec_prefix)/lib
MANDIR= $(installdir)/man
INCLUDEDIR= $(installdir)/include
SCRIPTDIR= $(prefix)/lib
# Detailed destination directories
BINLIBDEST= $(LIBDIR)/python$(VERSION)
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
LIBP= $(exec_installdir)/lib/python$(VERSION)
DESTSHARED= $(BINLIBDEST)/site-packages
LIBPL= $(LIBP)/config
PYTHONLIBS= $(LIBPL)/libpython$(VERSION).a
MAKESETUP= $(LIBPL)/makesetup
MAKEFILE= $(LIBPL)/Makefile
CONFIGC= $(LIBPL)/config.c
CONFIGCIN= $(LIBPL)/config.c.in
SETUP= $(LIBPL)/Setup
SYSLIBS= $(LIBM) $(LIBC)
ADDOBJS= $(LIBPL)/python.o config.o
# Portable install script (configure doesn't always guess right)
INSTALL= $(LIBPL)/install-sh -c
# Shared libraries must be installed with executable mode on some systems;
# rather than figuring out exactly which, we always give them executable mode.
# Also, making them read-only seems to be a good idea...
INSTALL_SHARED= ${INSTALL} -m 555
#---------------------------------------------------
# Possibly change some definintions for C++
ifdef MY_LDSHARED
LDSHARED=$(MY_LDSHARED)
endif
ifdef MY_LINKCC
LINKCC=$(MY_LINKCC)
endif
# === Fixed rules ===
# Default target. This builds shared libraries only
default: sharedmods
# Build everything
all: static sharedmods
# Build shared libraries from our extension modules
sharedmods: $(SHAREDMODS)
# Build a static Python binary containing our extension modules
static: $(TARGET)
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \
$(ADDOBJS) lib.a $(PYTHONLIBS) \
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
-o $(TARGET) $(LDLAST)
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# This is a default version of the install target for wxPython. It just
# redirects to wxInstall below...
install: wxInstall
#install: sharedmods
# if test ! -d $(DESTSHARED) ; then \
# mkdir $(DESTSHARED) ; else true ; fi
# -for i in X $(SHAREDMODS); do \
# if test $$i != X; \
# then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
# fi; \
# done
# Build the library containing our extension modules
lib.a: $(MODOBJS)
-rm -f lib.a
ar cr lib.a $(MODOBJS)
-$(RANLIB) lib.a
# This runs makesetup *twice* to use the BASESETUP definition from Setup
config.c Makefile: Makefile.pre Setup $(BASESETUP) $(MAKESETUP)
$(MAKESETUP) \
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
$(MAKE) -f Makefile do-it-again
# Internal target to run makesetup for the second time
do-it-again:
$(MAKESETUP) \
-m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)
# Make config.o from the config.c created by makesetup
config.o: config.c
$(CC) $(CFLAGS) -c config.c
# Setup is copied from Setup.in *only* if it doesn't yet exist
Setup:
cp Setup.in Setup
# Make the intermediate Makefile.pre from Makefile.pre.in
Makefile.pre: Makefile.pre.in sedscript
sed -f sedscript Makefile.pre.in >Makefile.pre
# Shortcuts to make the sed arguments on one line
P=prefix
E=exec_prefix
H=Generated automatically from Makefile.pre.in by sedscript.
L=LINKFORSHARED
# Make the sed script used to create Makefile.pre from Makefile.pre.in
sedscript: $(MAKEFILE)
sed -n \
-e '1s/.*/1i\\/p' \
-e '2s%.*%# $H%p' \
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
-e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \
-e '/^$P=/s/^$P=\(.*\)/s%^$P=.*%$P=\1%/p' \
-e '/^$E=/s/^$E=\(.*\)/s%^$E=.*%$E=\1%/p' \
$(MAKEFILE) >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%= $(installdir)%" >>sedscript
echo "/^exec_installdir=/s%=.*%=$(exec_installdir)%" >>sedscript
echo "/^srcdir=/s%=.*%= $(srcdir)%" >>sedscript
echo "/^VPATH=/s%=.*%= $(VPATH)%" >>sedscript
echo "/^LINKPATH=/s%=.*%= $(LINKPATH)%" >>sedscript
echo "/^BASELIB=/s%=.*%= $(BASELIB)%" >>sedscript
echo "/^BASESETUP=/s%=.*%= $(BASESETUP)%" >>sedscript
# Bootstrap target
boot: clobber
VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
$(MAKE) -f Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
VERSION=$$VERSION \
installdir=$$installdir \
exec_installdir=$$exec_installdir \
Makefile
# Handy target to remove intermediate files and backups
clean:
-rm -f *.o *~
# Handy target to remove everything that is easily regenerated
clobber: clean
-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
-rm -f *.so *.sl so_locations
# Handy target to remove everything you don't want to distribute
distclean: clobber
-rm -f Makefile Setup
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# Custom rules and dependencies added for wxPython
#
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXGTK__
PYMODULES = $(GENCODEDIR)/wx.py $(GENCODEDIR)/events.py \
$(GENCODEDIR)/windows.py $(GENCODEDIR)/misc.py \
$(GENCODEDIR)/gdi.py $(GENCODEDIR)/mdi.py \
$(GENCODEDIR)/controls.py $(GENCODEDIR)/controls2.py \
$(GENCODEDIR)/windows2.py $(GENCODEDIR)/cmndlgs.py \
$(GENCODEDIR)/frames.py $(GENCODEDIR)/stattool.py \
$(GENCODEDIR)/utils.py $(GENCODEDIR)/windows3.py \
__init__.py
# Implicit rules to run SWIG
$(GENCODEDIR)/%.cpp : %.i
swig $(SWIGFLAGS) -c -o $@ $<
$(GENCODEDIR)/%.py : %.i
swig $(SWIGFLAGS) -c -o $@ $<
# This one must leave out the -c flag so we define the whole rule
$(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py : wx.i my_typemaps.i _defs.i _extras.py
swig $(SWIGFLAGS) -o $(GENCODEDIR)/wx.cpp wx.i
# define some dependencies
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py : windows2.i my_typemaps.i _defs.i
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py : windows3.i my_typemaps.i _defs.i
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py : events.i my_typemaps.i _defs.i
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py : misc.i my_typemaps.i _defs.i
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py : gdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py : mdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemaps.i _defs.i
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemaps.i _defs.i
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
$(GENCODEDIR)/helpers.cpp:
ln -s `pwd`/helpers.cpp $@
wxInstall : sharedmods $(PYMODULES)
if test ! -d $(TARGETDIR) ; then \
mkdir $(TARGETDIR) ; else true ; fi
if [ "$(SHAREDMODS)" != "" ]; then \
chmod 755 $(SHAREDMODS); \
cp $(SHAREDMODS) $(TARGETDIR); fi
-for i in $(PYMODULES); do \
cp $$i $(TARGETDIR); \
done
python $(LIBDEST)/compileall.py -l $(TARGETDIR)
python -O $(LIBDEST)/compileall.py -l $(TARGETDIR)
lib : libwxPython.a
libwxPython.a : lib.a
cp $< $@

View File

@@ -1,44 +0,0 @@
# This file gives the details of what is needed to build this extension
# module so the Makefile can be created.
###
### This file should be created by configure. Currently it is tweaked by hand.
###
*shared*
CCC=c++
WXWIN=../../..
GENCODEDIR=gtk
srcdir=$(GENCODEDIR)
# Depending on how your Python was built, you may have to set this
# value to use the C++ driver to link with instead of the default
# C driver. For example:
MY_LDSHARED=$(CCC) -shared
# Same as above, but for statically linking Python and wxPython together,
# in other words, if you comment out the *shared* above. If this is the
# case then you should ensure that the main() function is Python's, not
# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
# to force this...
MY_LINKCC=$(CCC)
## Pick one of these, or set your own. This is where the
## wxPython module should be installed. It should be a
## subdirectory named wxPython.
TARGETDIR=..
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
frames.cpp stattool.cpp utils.cpp windows3.cpp \
# CFLAGS
-I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
-I/usr/X11R6/include -DSWIG_GLOBAL -D__WXGTK__ \
#-D__WXDEBUG__ \
# LFLAGS
-L$(WXWIN)/lib/Linux -L/usr/X11R6/lib \
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11

View File

@@ -1,44 +0,0 @@
# This file gives the details of what is needed to build this extension
# module so the Makefile can be created.
###
### This file should be created by configure. Currently it is tweaked by hand.
###
*shared*
CCC=c++
WXWIN=../../..
GENCODEDIR=gtk
srcdir=$(GENCODEDIR)
# Depending on how your Python was built, you may have to set this
# value to use the C++ driver to link with instead of the default
# C driver. For example:
MY_LDSHARED=$(CCC) -shared
# Same as above, but for statically linking Python and wxPython together,
# in other words, if you comment out the *shared* above. If this is the
# case then you should ensure that the main() function is Python's, not
# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
# to force this...
MY_LINKCC=$(CCC)
## Pick one of these, or set your own. This is where the
## wxPython module should be installed. It should be a
## subdirectory named wxPython.
TARGETDIR=..
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
frames.cpp stattool.cpp utils.cpp windows3.cpp \
# CFLAGS
-I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
-I/usr/X11R6/include -DSWIG_GLOBAL -D__WXGTK__ \
#-D__WXDEBUG__ \
# LFLAGS
-L$(WXWIN)/lib/Linux -L/usr/X11R6/lib \
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11

View File

@@ -1,45 +0,0 @@
# This file gives the details of what is needed to build this extension
# module so the Makefile can be created.
###
### This file should be created by configure. Currently it is tweaked by hand.
###
#*shared*
CCC=c++
WXWIN=../../..
GENCODEDIR=gtk
srcdir=$(GENCODEDIR)
# Depending on how your Python was built, you may have to set this
# value to use the C++ driver to link with instead of the default
# C driver. For example:
#MY_LDSHARED=$(CCC) -shared
# Same as above, but for statically linking Python and wxPython together,
# in other words, if you comment out the *shared* above. If this is the
# case then you should ensure that the main() function is Python's, not
# wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined
# to force this...
MY_LINKCC=$(CCC)
## Pick one of these, or set your own. This is where the
## wxPython module should be installed. It should be a
## subdirectory named wxPython.
TARGETDIR=..
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
frames.cpp stattool.cpp utils.cpp windows3.cpp \
# CFLAGS
-I. -I$(WXWIN)/include -I/usr/local/lib/glib/include -I$(WXWIN)/src \
-I/usr/X/include -DSWIG_GLOBAL -D__WXGTK__ \
#-D__WXDEBUG__ \
# LFLAGS
-L$(WXWIN)/lib/solaris2.6 -L/usr/X/lib \
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 \
-lwx_gtk2 -lgtk -lgdk -lglib -lXext -lX11 -lstdc++ -lgcc

View File

@@ -1,43 +0,0 @@
#----------------------------------------------------------------------------
# Name: __init__.py
# Purpose: The presence of this file turns this directory into a
# Python package.
#
# Author: Robin Dunn
#
# Created: 8/8/98
# RCS-ID: $Id$
# Copyright: (c) 1998 by Total Control Software
# Licence: wxWindows license
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
#
# $Log$
# Revision 1.3 1998/12/15 20:41:12 RD
# Changed the import semantics from "from wxPython import *" to "from
# wxPython.wx import *" This is for people who are worried about
# namespace pollution, they can use "from wxPython import wx" and then
# prefix all the wxPython identifiers with "wx."
#
# Added wxTaskbarIcon for wxMSW.
#
# Made the events work for wxGrid.
#
# Added wxConfig.
#
# Added wxMiniFrame for wxGTK, (untested.)
#
# Changed many of the args and return values that were pointers to gdi
# objects to references to reflect changes in the wxWindows API.
#
# Other assorted fixes and additions.
#
# Revision 1.2 1998/10/07 07:34:32 RD
# Version 0.4.1 for wxGTK
#
# Revision 1.1 1998/08/09 08:25:49 RD
# Initial version
#
#

View File

@@ -1,763 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: _defs.i
// Purpose: Definitions and stuff
//
// Author: Robin Dunn
//
// Created: 6/24/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
//---------------------------------------------------------------------------
// Forward declares...
class wxPyApp;
class wxEvtHandler;
class wxWindow;
class wxFrame;
class wxMiniFrame;
class wxPanel;
class wxDialog;
class wxMenu;
class wxPyMenu;
class wxMenuBar;
class wxMenuItem;
class wxEvent;
class wxSizeEvent;
class wxCloseEvent;
class wxCommandEvent;
class wxScrollEvent;
class wxMouseEvent;
class wxKeyEvent;
class wxMoveEvent;
class wxPaintEvent;
class wxEraseEvent;
class wxFocusEvent;
class wxActivateEvent;
class wxInitDialogEvent;
class wxMenuEvent;
class wxShowEvent;
class wxIconizeEvent;
class wxMaximizeEvent;
class wxJoystickEvent;
class wxDropFilesEvent;
class wxIdleEvent;
class wxUpdateUIEvent;
class wxSysColourChangedEvent;
class wxSize;
class wxRealPoint;
class wxPoint;
class wxRect;
class wxBitmap;
class wxMask;
class wxIcon;
class wxCursor;
class wxFont;
class wxColour;
class wxPen;
class wxBrush;
class wxDC;
class wxMemoryDC;
class wxScreenDC;
class wxClientDC;
class wxPaintDC;
class wxPostScriptDC;
class wxPrinterDC;
class wxMetaFileDC;
class wxMDIParentFrame;
class wxMDIChildFrame;
class wxMDIClientWindow;
class wxControl;
class wxButton;
class wxBitmapButton;
class wxCheckBox;
class wxChoice;
class wxComboBox;
class wxGauge;
class wxStaticBox;
class wxStaticText;
class wxListBox;
class wxTextCtrl;
class wxScrollBar;
class wxSpinButton;
class wxStaticBitmap;
class wxRadioBox;
class wxRadioButton;
class wxSlider;
class wxPyTimer;
class wxIndividualLayoutConstraint;
class wxLayoutConstraints;
class wxToolBar;
class wxStatusBar;
//---------------------------------------------------------------------------
// some definitions for SWIG only
typedef unsigned char byte;
typedef short int WXTYPE;
typedef int wxWindowID;
typedef unsigned int uint;
typedef signed int EBool;
//---------------------------------------------------------------------------
// General numeric #define's and etc. Making them all enums makes SWIG use the
// real macro when making the Python Int
enum {
wxMAJOR_VERSION,
wxMINOR_VERSION,
wxRELEASE_NUMBER,
wxNOT_FOUND,
wxVSCROLL,
wxHSCROLL,
wxCAPTION,
wxDOUBLE_BORDER,
wxSUNKEN_BORDER,
wxRAISED_BORDER,
wxBORDER,
wxSIMPLE_BORDER,
wxSTATIC_BORDER,
wxTRANSPARENT_WINDOW,
wxNO_BORDER,
wxUSER_COLOURS,
wxNO_3D,
//wxOVERRIDE_KEY_TRANSLATIONS,
wxTAB_TRAVERSAL,
wxHORIZONTAL,
wxVERTICAL,
wxBOTH,
wxCENTER_FRAME,
wxSTAY_ON_TOP,
wxICONIZE,
wxMINIMIZE,
wxMAXIMIZE,
wxTHICK_FRAME,
wxSYSTEM_MENU,
wxMINIMIZE_BOX,
wxMAXIMIZE_BOX,
wxTINY_CAPTION_HORIZ,
wxTINY_CAPTION_VERT,
wxRESIZE_BOX,
wxRESIZE_BORDER,
wxDIALOG_MODAL,
wxDIALOG_MODELESS,
wxDEFAULT_FRAME_STYLE,
wxDEFAULT_DIALOG_STYLE,
wxFRAME_TOOL_WINDOW,
wxCLIP_CHILDREN,
wxRETAINED,
wxBACKINGSTORE,
wxTB_3DBUTTONS,
wxTB_HORIZONTAL,
wxTB_VERTICAL,
wxTB_FLAT,
wxCOLOURED,
wxFIXED_LENGTH,
wxALIGN_LEFT,
wxALIGN_CENTER,
wxALIGN_CENTRE,
wxALIGN_RIGHT,
wxLB_NEEDED_SB,
wxLB_ALWAYS_SB,
wxLB_SORT,
wxLB_SINGLE,
wxLB_MULTIPLE,
wxLB_EXTENDED,
wxLB_OWNERDRAW,
wxLB_HSCROLL,
wxPROCESS_ENTER,
wxPASSWORD,
wxTE_PROCESS_ENTER,
wxTE_PASSWORD,
wxTE_READONLY,
wxTE_MULTILINE,
wxCB_SIMPLE,
wxCB_DROPDOWN,
wxCB_SORT,
wxCB_READONLY,
wxRA_HORIZONTAL,
wxRA_VERTICAL,
wxRB_GROUP,
wxGA_PROGRESSBAR,
wxGA_HORIZONTAL,
wxGA_VERTICAL,
wxSL_HORIZONTAL,
wxSL_VERTICAL,
wxSL_AUTOTICKS,
wxSL_LABELS,
wxSL_LEFT,
wxSL_TOP,
wxSL_RIGHT,
wxSL_BOTTOM,
wxSL_BOTH,
wxSL_SELRANGE,
wxSB_HORIZONTAL,
wxSB_VERTICAL,
wxBU_AUTODRAW,
wxBU_NOAUTODRAW,
wxTR_HAS_BUTTONS,
wxTR_EDIT_LABELS,
wxTR_LINES_AT_ROOT,
wxLC_ICON,
wxLC_SMALL_ICON,
wxLC_LIST,
wxLC_REPORT,
wxLC_ALIGN_TOP,
wxLC_ALIGN_LEFT,
wxLC_AUTOARRANGE,
wxLC_USER_TEXT,
wxLC_EDIT_LABELS,
wxLC_NO_HEADER,
wxLC_NO_SORT_HEADER,
wxLC_SINGLE_SEL,
wxLC_SORT_ASCENDING,
wxLC_SORT_DESCENDING,
wxLC_MASK_TYPE,
wxLC_MASK_ALIGN,
wxLC_MASK_SORT,
wxSP_VERTICAL,
wxSP_HORIZONTAL,
wxSP_ARROW_KEYS,
wxSP_WRAP,
wxSP_NOBORDER,
wxSP_3D,
wxSP_BORDER,
wxTAB_MULTILINE,
wxTAB_RIGHTJUSTIFY,
wxTAB_FIXEDWIDTH,
wxTAB_OWNERDRAW,
// wxSB_SIZEGRIP,
wxFLOOD_SURFACE,
wxFLOOD_BORDER,
wxODDEVEN_RULE,
wxWINDING_RULE,
wxTOOL_TOP,
wxTOOL_BOTTOM,
wxTOOL_LEFT,
wxTOOL_RIGHT,
wxOK,
wxYES_NO,
wxCANCEL,
wxYES,
wxNO,
wxICON_EXCLAMATION,
wxICON_HAND,
wxICON_QUESTION,
wxICON_INFORMATION,
wxICON_STOP,
wxICON_ASTERISK,
wxICON_MASK,
wxCENTRE,
wxCENTER,
wxSIZE_AUTO_WIDTH,
wxSIZE_AUTO_HEIGHT,
wxSIZE_AUTO,
wxSIZE_USE_EXISTING,
wxSIZE_ALLOW_MINUS_ONE,
#ifndef __WXGTK__
wxDF_TEXT,
wxDF_BITMAP,
wxDF_METAFILE,
wxDF_DIB,
wxDF_OEMTEXT,
wxDF_FILENAME,
#endif
wxPORTRAIT,
wxLANDSCAPE,
wxID_OPEN,
wxID_CLOSE,
wxID_NEW,
wxID_SAVE,
wxID_SAVEAS,
wxID_REVERT,
wxID_EXIT,
wxID_UNDO,
wxID_REDO,
wxID_HELP,
wxID_PRINT,
wxID_PRINT_SETUP,
wxID_PREVIEW,
wxID_ABOUT,
wxID_HELP_CONTENTS,
wxID_HELP_COMMANDS,
wxID_HELP_PROCEDURES,
wxID_HELP_CONTEXT,
wxID_CUT,
wxID_COPY,
wxID_PASTE,
wxID_CLEAR,
wxID_FIND,
wxID_FILE1,
wxID_FILE2,
wxID_FILE3,
wxID_FILE4,
wxID_FILE5,
wxID_FILE6,
wxID_FILE7,
wxID_FILE8,
wxID_FILE9,
wxID_OK,
wxID_CANCEL,
wxID_APPLY,
wxID_YES,
wxID_NO,
wxBITMAP_TYPE_BMP,
wxBITMAP_TYPE_BMP_RESOURCE,
wxBITMAP_TYPE_ICO,
wxBITMAP_TYPE_ICO_RESOURCE,
wxBITMAP_TYPE_CUR,
wxBITMAP_TYPE_CUR_RESOURCE,
wxBITMAP_TYPE_XBM,
wxBITMAP_TYPE_XBM_DATA,
wxBITMAP_TYPE_XPM,
wxBITMAP_TYPE_XPM_DATA,
wxBITMAP_TYPE_TIF,
wxBITMAP_TYPE_TIF_RESOURCE,
wxBITMAP_TYPE_GIF,
wxBITMAP_TYPE_GIF_RESOURCE,
wxBITMAP_TYPE_PNG,
wxBITMAP_TYPE_PNG_RESOURCE,
wxBITMAP_TYPE_ANY,
wxBITMAP_TYPE_RESOURCE,
wxOPEN,
wxSAVE,
wxHIDE_READONLY,
wxOVERWRITE_PROMPT,
wxACCEL_ALT,
wxACCEL_CTRL,
wxACCEL_SHIFT,
};
/// Standard error codes
enum ErrCode
{
ERR_PARAM = (-4000),
ERR_NODATA,
ERR_CANCEL,
ERR_SUCCESS = 0
};
enum {
wxDEFAULT ,
wxDECORATIVE,
wxROMAN,
wxSCRIPT,
wxSWISS,
wxMODERN,
wxTELETYPE,
wxVARIABLE,
wxFIXED,
wxNORMAL,
wxLIGHT,
wxBOLD,
wxITALIC,
wxSLANT,
wxSOLID,
wxDOT,
wxLONG_DASH,
wxSHORT_DASH,
wxDOT_DASH,
wxUSER_DASH,
wxTRANSPARENT,
wxSTIPPLE,
wxBDIAGONAL_HATCH,
wxCROSSDIAG_HATCH,
wxFDIAGONAL_HATCH,
wxCROSS_HATCH,
wxHORIZONTAL_HATCH,
wxVERTICAL_HATCH,
wxJOIN_BEVEL,
wxJOIN_MITER,
wxJOIN_ROUND,
wxCAP_ROUND,
wxCAP_PROJECTING,
wxCAP_BUTT
};
typedef enum {
wxCLEAR, // 0
wxXOR, // src XOR dst
wxINVERT, // NOT dst
wxOR_REVERSE, // src OR (NOT dst)
wxAND_REVERSE,// src AND (NOT dst)
wxCOPY, // src
wxAND, // src AND dst
wxAND_INVERT, // (NOT src) AND dst
wxNO_OP, // dst
wxNOR, // (NOT src) AND (NOT dst)
wxEQUIV, // (NOT src) XOR dst
wxSRC_INVERT, // (NOT src)
wxOR_INVERT, // (NOT src) OR dst
wxNAND, // (NOT src) OR (NOT dst)
wxOR, // src OR dst
wxSET, // 1
wxSRC_OR, // source _bitmap_ OR destination
wxSRC_AND // source _bitmap_ AND destination
} form_ops_t;
enum _Virtual_keycodes {
WXK_BACK = 8,
WXK_TAB = 9,
WXK_RETURN = 13,
WXK_ESCAPE = 27,
WXK_SPACE = 32,
WXK_DELETE = 127,
WXK_START = 300,
WXK_LBUTTON,
WXK_RBUTTON,
WXK_CANCEL,
WXK_MBUTTON,
WXK_CLEAR,
WXK_SHIFT,
WXK_CONTROL,
WXK_MENU,
WXK_PAUSE,
WXK_CAPITAL,
WXK_PRIOR, // Page up
WXK_NEXT, // Page down
WXK_END,
WXK_HOME,
WXK_LEFT,
WXK_UP,
WXK_RIGHT,
WXK_DOWN,
WXK_SELECT,
WXK_PRINT,
WXK_EXECUTE,
WXK_SNAPSHOT,
WXK_INSERT,
WXK_HELP,
WXK_NUMPAD0,
WXK_NUMPAD1,
WXK_NUMPAD2,
WXK_NUMPAD3,
WXK_NUMPAD4,
WXK_NUMPAD5,
WXK_NUMPAD6,
WXK_NUMPAD7,
WXK_NUMPAD8,
WXK_NUMPAD9,
WXK_MULTIPLY,
WXK_ADD,
WXK_SEPARATOR,
WXK_SUBTRACT,
WXK_DECIMAL,
WXK_DIVIDE,
WXK_F1,
WXK_F2,
WXK_F3,
WXK_F4,
WXK_F5,
WXK_F6,
WXK_F7,
WXK_F8,
WXK_F9,
WXK_F10,
WXK_F11,
WXK_F12,
WXK_F13,
WXK_F14,
WXK_F15,
WXK_F16,
WXK_F17,
WXK_F18,
WXK_F19,
WXK_F20,
WXK_F21,
WXK_F22,
WXK_F23,
WXK_F24,
WXK_NUMLOCK,
WXK_SCROLL,
WXK_PAGEUP,
WXK_PAGEDOWN
};
typedef enum {
wxCURSOR_NONE = 0,
wxCURSOR_ARROW = 1,
wxCURSOR_BULLSEYE,
wxCURSOR_CHAR,
wxCURSOR_CROSS,
wxCURSOR_HAND,
wxCURSOR_IBEAM,
wxCURSOR_LEFT_BUTTON,
wxCURSOR_MAGNIFIER,
wxCURSOR_MIDDLE_BUTTON,
wxCURSOR_NO_ENTRY,
wxCURSOR_PAINT_BRUSH,
wxCURSOR_PENCIL,
wxCURSOR_POINT_LEFT,
wxCURSOR_POINT_RIGHT,
wxCURSOR_QUESTION_ARROW,
wxCURSOR_RIGHT_BUTTON,
wxCURSOR_SIZENESW,
wxCURSOR_SIZENS,
wxCURSOR_SIZENWSE,
wxCURSOR_SIZEWE,
wxCURSOR_SIZING,
wxCURSOR_SPRAYCAN,
wxCURSOR_WAIT,
wxCURSOR_WATCH,
wxCURSOR_BLANK
// #ifndef __WXMSW__
// /* Not yet implemented for Windows */
// , wxCURSOR_CROSS_REVERSE,
// wxCURSOR_DOUBLE_ARROW,
// wxCURSOR_BASED_ARROW_UP,
// wxCURSOR_BASED_ARROW_DOWN
// #endif
} _standard_cursors_t;
#define FALSE 0
#define false 0
#define TRUE 1
#define true 1
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
/*
* Event types
*
*/
enum wxEventType {
wxEVT_NULL = 0,
wxEVT_FIRST = 10000,
// New names
wxEVT_COMMAND_BUTTON_CLICKED,
wxEVT_COMMAND_CHECKBOX_CLICKED,
wxEVT_COMMAND_CHOICE_SELECTED,
wxEVT_COMMAND_LISTBOX_SELECTED,
wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
wxEVT_COMMAND_TEXT_UPDATED,
wxEVT_COMMAND_TEXT_ENTER,
wxEVT_COMMAND_MENU_SELECTED,
wxEVT_COMMAND_SLIDER_UPDATED,
wxEVT_COMMAND_RADIOBOX_SELECTED,
wxEVT_COMMAND_RADIOBUTTON_SELECTED,
// wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
wxEVT_COMMAND_SCROLLBAR_UPDATED,
wxEVT_COMMAND_VLBOX_SELECTED,
wxEVT_COMMAND_COMBOBOX_SELECTED,
wxEVT_COMMAND_TOOL_CLICKED,
wxEVT_COMMAND_TOOL_RCLICKED,
wxEVT_COMMAND_TOOL_ENTER,
wxEVT_SET_FOCUS,
wxEVT_KILL_FOCUS,
/* Mouse event types */
wxEVT_LEFT_DOWN,
wxEVT_LEFT_UP,
wxEVT_MIDDLE_DOWN,
wxEVT_MIDDLE_UP,
wxEVT_RIGHT_DOWN,
wxEVT_RIGHT_UP,
wxEVT_MOTION,
wxEVT_ENTER_WINDOW,
wxEVT_LEAVE_WINDOW,
wxEVT_LEFT_DCLICK,
wxEVT_MIDDLE_DCLICK,
wxEVT_RIGHT_DCLICK,
// Non-client mouse events
wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
wxEVT_NC_LEFT_UP,
wxEVT_NC_MIDDLE_DOWN,
wxEVT_NC_MIDDLE_UP,
wxEVT_NC_RIGHT_DOWN,
wxEVT_NC_RIGHT_UP,
wxEVT_NC_MOTION,
wxEVT_NC_ENTER_WINDOW,
wxEVT_NC_LEAVE_WINDOW,
wxEVT_NC_LEFT_DCLICK,
wxEVT_NC_MIDDLE_DCLICK,
wxEVT_NC_RIGHT_DCLICK,
/* Character input event type */
wxEVT_CHAR,
/*
* Scrollbar event identifiers
*/
wxEVT_SCROLL_TOP,
wxEVT_SCROLL_BOTTOM,
wxEVT_SCROLL_LINEUP,
wxEVT_SCROLL_LINEDOWN,
wxEVT_SCROLL_PAGEUP,
wxEVT_SCROLL_PAGEDOWN,
wxEVT_SCROLL_THUMBTRACK,
wxEVT_SIZE = wxEVT_FIRST + 200,
wxEVT_MOVE,
wxEVT_CLOSE_WINDOW,
wxEVT_END_SESSION,
wxEVT_QUERY_END_SESSION,
wxEVT_ACTIVATE_APP,
wxEVT_POWER,
wxEVT_CHAR_HOOK,
wxEVT_KEY_UP,
wxEVT_ACTIVATE,
wxEVT_CREATE,
wxEVT_DESTROY,
wxEVT_SHOW,
wxEVT_ICONIZE,
wxEVT_MAXIMIZE,
wxEVT_MOUSE_CAPTURE_CHANGED,
wxEVT_PAINT,
wxEVT_ERASE_BACKGROUND,
wxEVT_NC_PAINT,
wxEVT_PAINT_ICON,
wxEVT_MENU_CHAR,
wxEVT_MENU_INIT,
wxEVT_MENU_HIGHLIGHT,
wxEVT_POPUP_MENU_INIT,
wxEVT_CONTEXT_MENU,
wxEVT_SYS_COLOUR_CHANGED,
wxEVT_SETTING_CHANGED,
wxEVT_QUERY_NEW_PALETTE,
wxEVT_PALETTE_CHANGED,
wxEVT_JOY_BUTTON_DOWN,
wxEVT_JOY_BUTTON_UP,
wxEVT_JOY_MOVE,
wxEVT_JOY_ZMOVE,
wxEVT_DROP_FILES,
wxEVT_DRAW_ITEM,
wxEVT_MEASURE_ITEM,
wxEVT_COMPARE_ITEM,
wxEVT_INIT_DIALOG,
wxEVT_IDLE,
wxEVT_UPDATE_UI,
/* Generic command events */
// Note: a click is a higher-level event
// than button down/up
wxEVT_COMMAND_LEFT_CLICK,
wxEVT_COMMAND_LEFT_DCLICK,
wxEVT_COMMAND_RIGHT_CLICK,
wxEVT_COMMAND_RIGHT_DCLICK,
wxEVT_COMMAND_SET_FOCUS,
wxEVT_COMMAND_KILL_FOCUS,
wxEVT_COMMAND_ENTER,
/* Tree control event types */
wxEVT_COMMAND_TREE_BEGIN_DRAG,
wxEVT_COMMAND_TREE_BEGIN_RDRAG,
wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
wxEVT_COMMAND_TREE_END_LABEL_EDIT,
wxEVT_COMMAND_TREE_DELETE_ITEM,
wxEVT_COMMAND_TREE_GET_INFO,
wxEVT_COMMAND_TREE_SET_INFO,
wxEVT_COMMAND_TREE_ITEM_EXPANDED,
wxEVT_COMMAND_TREE_ITEM_EXPANDING,
wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
wxEVT_COMMAND_TREE_SEL_CHANGED,
wxEVT_COMMAND_TREE_SEL_CHANGING,
wxEVT_COMMAND_TREE_KEY_DOWN,
/* List control event types */
wxEVT_COMMAND_LIST_BEGIN_DRAG,
wxEVT_COMMAND_LIST_BEGIN_RDRAG,
wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
wxEVT_COMMAND_LIST_END_LABEL_EDIT,
wxEVT_COMMAND_LIST_DELETE_ITEM,
wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
wxEVT_COMMAND_LIST_GET_INFO,
wxEVT_COMMAND_LIST_SET_INFO,
wxEVT_COMMAND_LIST_ITEM_SELECTED,
wxEVT_COMMAND_LIST_ITEM_DESELECTED,
wxEVT_COMMAND_LIST_KEY_DOWN,
wxEVT_COMMAND_LIST_INSERT_ITEM,
wxEVT_COMMAND_LIST_COL_CLICK,
/* Tab and notebook control event types */
wxEVT_COMMAND_TAB_SEL_CHANGED,
wxEVT_COMMAND_TAB_SEL_CHANGING,
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
};
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.10 1999/01/30 07:30:08 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.9 1998/12/15 20:41:13 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.8 1998/11/15 23:03:42 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.7 1998/11/11 03:12:24 RD
//
// Additions for wxTreeCtrl
//
// Revision 1.6 1998/10/20 06:43:53 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.5 1998/10/02 06:40:32 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.4 1998/08/18 19:48:11 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.3 1998/08/14 23:36:33 RD
// Beginings of wxGTK compatibility
//
// Revision 1.2 1998/08/14 03:16:35 RD
// removed some definitions that got removed from defs.h
//
// Revision 1.1 1998/08/09 08:25:49 RD
// Initial version
//
//

View File

@@ -1,662 +0,0 @@
#----------------------------------------------------------------------------
# Name: _extra.py
# Purpose: This file is appended to the shadow class file generated
# by SWIG. We add some unSWIGable things here.
#
# Author: Robin Dunn
#
# Created: 6/30/97
# RCS-ID: $Id$
# Copyright: (c) 1998 by Total Control Software
# Licence: wxWindows license
#----------------------------------------------------------------------------
import sys
#----------------------------------------------------------------------
# This gives this module's dictionary to the C++ extension code...
_wxSetDictionary(vars())
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# Helper function to link python methods to wxWindows virtual
# functions by name.
def _checkForCallback(obj, name, event, theID=-1):
try: cb = getattr(obj, name)
except: pass
else: obj.Connect(theID, -1, event, cb)
def _StdWindowCallbacks(win):
_checkForCallback(win, "OnChar", wxEVT_CHAR)
_checkForCallback(win, "OnSize", wxEVT_SIZE)
_checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
_checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
_checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
_checkForCallback(win, "OnIdle", wxEVT_IDLE)
_checkForCallback(win, "OnPaint", wxEVT_PAINT)
def _StdFrameCallbacks(win):
_StdWindowCallbacks(win)
_checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
_checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
_checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
def _StdDialogCallbacks(win):
_StdWindowCallbacks(win)
_checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
_checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
_checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
_checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
_checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
def _StdOnScrollCallback(win):
try: cb = getattr(win, "OnScroll")
except: pass
else: EVT_SCROLL(win, cb)
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# functions that look and act like the C++ Macros of the same name
# Miscellaneous
def EVT_SIZE(win, func):
win.Connect(-1, -1, wxEVT_SIZE, func)
def EVT_MOVE(win, func):
win.Connect(-1, -1, wxEVT_MOVE, func)
def EVT_CLOSE(win, func):
win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func)
def EVT_PAINT(win, func):
win.Connect(-1, -1, wxEVT_PAINT, func)
def EVT_ERASE_BACKGROUND(win, func):
win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func)
def EVT_CHAR(win, func):
win.Connect(-1, -1, wxEVT_CHAR, func)
def EVT_CHAR_HOOK(win, func):
win.Connect(-1, -1, wxEVT_CHAR_HOOK, func)
def EVT_MENU_HIGHLIGHT(win, id, func):
win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func)
def EVT_MENU_HIGHLIGHT_ALL(win, func):
win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func)
def EVT_SET_FOCUS(win, func):
win.Connect(-1, -1, wxEVT_SET_FOCUS, func)
def EVT_KILL_FOCUS(win, func):
win.Connect(-1, -1, wxEVT_KILL_FOCUS, func)
def EVT_ACTIVATE(win, func):
win.Connect(-1, -1, wxEVT_ACTIVATE, func)
def EVT_ACTIVATE_APP(win, func):
win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func)
def EVT_END_SESSION(win, func):
win.Connect(-1, -1, wxEVT_END_SESSION, func)
def EVT_QUERY_END_SESSION(win, func):
win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func)
def EVT_DROP_FILES(win, func):
win.Connect(-1, -1, wxEVT_DROP_FILES, func)
def EVT_INIT_DIALOG(win, func):
win.Connect(-1, -1, wxEVT_INIT_DIALOG, func)
def EVT_SYS_COLOUR_CHANGED(win, func):
win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
def EVT_SHOW(win, func):
win.Connect(-1, -1, wxEVT_SHOW, func)
def EVT_MAXIMIZE(win, func):
win.Connect(-1, -1, wxEVT_MAXIMIZE, func)
def EVT_ICONIZE(win, func):
win.Connect(-1, -1, wxEVT_ICONIZE, func)
def EVT_NAVIGATION_KEY(win, func):
win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
# Mouse Events
def EVT_LEFT_DOWN(win, func):
win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
def EVT_LEFT_UP(win, func):
win.Connect(-1, -1, wxEVT_LEFT_UP, func)
def EVT_MIDDLE_DOWN(win, func):
win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
def EVT_MIDDLE_UP(win, func):
win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
def EVT_RIGHT_DOWN(win, func):
win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
def EVT_RIGHT_UP(win, func):
win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
def EVT_MOTION(win, func):
win.Connect(-1, -1, wxEVT_MOTION, func)
def EVT_LEFT_DCLICK(win, func):
win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
def EVT_MIDDLE_DCLICK(win, func):
win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
def EVT_RIGHT_DCLICK(win, func):
win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
def EVT_LEAVE_WINDOW(win, func):
win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
def EVT_ENTER_WINDOW(win, func):
win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
# all mouse events
def EVT_MOUSE_EVENTS(win, func):
win.Connect(-1, -1, wxEVT_LEFT_DOWN, func)
win.Connect(-1, -1, wxEVT_LEFT_UP, func)
win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func)
win.Connect(-1, -1, wxEVT_MIDDLE_UP, func)
win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func)
win.Connect(-1, -1, wxEVT_RIGHT_UP, func)
win.Connect(-1, -1, wxEVT_MOTION, func)
win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func)
win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func)
win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func)
win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func)
win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func)
# EVT_COMMAND
def EVT_COMMAND(win, id, cmd, func):
win.Connect(id, -1, cmd, func)
def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
win.Connect(id1, id2, cmd, func)
# Scrolling
def EVT_SCROLL(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
def EVT_SCROLL_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
def EVT_SCROLL_BOTTOM(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func)
def EVT_SCROLL_LINEUP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func)
def EVT_SCROLL_LINEDOWN(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func)
def EVT_SCROLL_PAGEUP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
def EVT_SCROLL_PAGEDOWN(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
def EVT_SCROLL_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
# Scrolling, with an id
def EVT_COMMAND_SCROLL(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
def EVT_COMMAND_SCROLL_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
# Convenience commands
def EVT_BUTTON(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
def EVT_CHECKBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func)
def EVT_CHOICE(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func)
def EVT_LISTBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func)
def EVT_LISTBOX_DCLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func)
def EVT_TEXT(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func)
def EVT_TEXT_ENTER(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func)
def EVT_MENU(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func)
def EVT_MENU_RANGE(win, id1, id2, func):
win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func)
def EVT_SLIDER(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func)
def EVT_RADIOBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func)
def EVT_RADIOBUTTON(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func)
def EVT_VLBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func)
def EVT_COMBOBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func)
def EVT_TOOL(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func)
def EVT_TOOL_RCLICKED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func)
def EVT_TOOL_ENTER(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func)
def EVT_CHECKLISTBOX(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func)
# Generic command events
def EVT_COMMAND_LEFT_CLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func)
def EVT_COMMAND_LEFT_DCLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func)
def EVT_COMMAND_RIGHT_CLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func)
def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func)
def EVT_COMMAND_SET_FOCUS(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func)
def EVT_COMMAND_KILL_FOCUS(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func)
def EVT_COMMAND_ENTER(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_ENTER, func)
# wxNotebook events
def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
# wxTreeCtrl events
def EVT_TREE_BEGIN_DRAG(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG, func)
def EVT_TREE_BEGIN_RDRAG(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG, func)
def EVT_TREE_BEGIN_LABEL_EDIT(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func)
def EVT_TREE_END_LABEL_EDIT(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT, func)
def EVT_TREE_GET_INFO(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO, func)
def EVT_TREE_SET_INFO(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO, func)
def EVT_TREE_ITEM_EXPANDED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED, func)
def EVT_TREE_ITEM_EXPANDING(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING, func)
def EVT_TREE_ITEM_COLLAPSED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
def EVT_TREE_ITEM_COLLAPSING(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func)
def EVT_TREE_SEL_CHANGED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED, func)
def EVT_TREE_SEL_CHANGING(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING, func)
def EVT_TREE_KEY_DOWN(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN, func)
def EVT_TREE_DELETE_ITEM(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM, func)
# wxSpinButton
def EVT_SPIN_UP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
def EVT_SPIN_DOWN(win, id, func):
win.Connect(id, -1,wxEVT_SCROLL_LINEDOWN, func)
def EVT_SPIN(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
# wxTaskBarIcon
def EVT_TASKBAR_MOVE(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
def EVT_TASKBAR_LEFT_DOWN(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
def EVT_TASKBAR_LEFT_UP(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
def EVT_TASKBAR_RIGHT_DOWN(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
def EVT_TASKBAR_RIGHT_UP(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
def EVT_TASKBAR_LEFT_DCLICK(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
def EVT_TASKBAR_RIGHT_DCLICK(win, func):
win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
# wxGrid
def EVT_GRID_SELECT_CELL(win, fn):
win.Connect(-1, -1, wxEVT_GRID_SELECT_CELL, fn)
def EVT_GRID_CREATE_CELL(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CREATE_CELL, fn)
def EVT_GRID_CHANGE_LABELS(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS, fn)
def EVT_GRID_CHANGE_SEL_LABEL(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL, fn)
def EVT_GRID_CELL_CHANGE(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE, fn)
def EVT_GRID_CELL_LCLICK(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK, fn)
def EVT_GRID_CELL_RCLICK(win, fn):
win.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK, fn)
def EVT_GRID_LABEL_LCLICK(win, fn):
win.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK, fn)
def EVT_GRID_LABEL_RCLICK(win, fn):
win.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK, fn)
# wxSashWindow
def EVT_SASH_DRAGGED(win, id, func):
win.Connect(id, -1, wxEVT_SASH_DRAGGED, func)
def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
def EVT_QUERY_LAYOUT_INFO(win, func):
win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
def EVT_CALCULATE_LAYOUT(win, func):
win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
# wxListCtrl
def EVT_LIST_BEGIN_DRAG(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG, func)
def EVT_LIST_BEGIN_RDRAG(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG, func)
def EVT_LIST_BEGIN_LABEL_EDIT(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, func)
def EVT_LIST_END_LABEL_EDIT(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT, func)
def EVT_LIST_DELETE_ITEM(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM, func)
def EVT_LIST_DELETE_ALL_ITEMS(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, func)
def EVT_LIST_GET_INFO(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO, func)
def EVT_LIST_SET_INFO(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO, func)
def EVT_LIST_ITEM_SELECTED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func)
def EVT_LIST_ITEM_DESELECTED(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func)
def EVT_LIST_KEY_DOWN(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN, func)
def EVT_LIST_INSERT_ITEM(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM, func)
def EVT_LIST_COL_CLICK(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK, func)
#----------------------------------------------------------------------
class wxTimer(wxPyTimer):
def __init__(self):
wxPyTimer.__init__(self, self.Notify) # derived class must provide
# Notify(self) method.
#----------------------------------------------------------------------
# Some wxWin methods can take "NULL" as parameters, but the shadow classes
# expect an object with the SWIG pointer as a 'this' member. This class
# and instance fools the shadow into passing the NULL pointer.
class NullObj:
this = 'NULL' # SWIG converts this to (void*)0
NULL = NullObj()
#----------------------------------------------------------------------
# aliases
wxColor = wxColour
wxNamedColor = wxNamedColour
wxPyDefaultPosition.Set(-1,-1)
wxPyDefaultSize.Set(-1,-1)
# aliases so that C++ documentation applies:
wxDefaultPosition = wxPyDefaultPosition
wxDefaultSize = wxPyDefaultSize
#----------------------------------------------------------------------
## class wxPyStdOutWindow(wxFrame):
## def __init__(self, title = "wxPython: stdout/stderr"):
## wxFrame.__init__(self, NULL, title)
## self.title = title
## self.text = wxTextWindow(self)
## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
## self.SetSize(-1,-1,400,200)
## self.Show(false)
## self.isShown = false
## def write(self, str): # with this method,
## if not self.isShown:
## self.Show(true)
## self.isShown = true
## self.text.WriteText(str)
## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
## self.Show(false)
## self.isShown = false
_defRedirect = (wxPlatform == '__WXMSW__')
#----------------------------------------------------------------------
# The main application class. Derive from this and implement an OnInit
# method that creates a frame and then calls self.SetTopWindow(frame)
class wxApp(wxPyApp):
error = 'wxApp.error'
def __init__(self, redirect=_defRedirect, filename=None):
wxPyApp.__init__(self)
self.stdioWin = None
self.saveStdio = (sys.stdout, sys.stderr)
if redirect:
self.RedirectStdio(filename)
# this initializes wxWindows and then calls our OnInit
_wxStart(self.OnInit)
def __del__(self):
try:
self.RestoreStdio()
except:
pass
def RedirectStdio(self, filename):
if filename:
sys.stdout = sys.stderr = open(filename, 'a')
else:
raise self.error, 'wxPyStdOutWindow not yet implemented.'
#self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
def RestoreStdio(self):
sys.stdout, sys.stderr = self.saveStdio
if self.stdioWin != None:
self.stdioWin.Show(false)
self.stdioWin.Destroy()
self.stdioWin = None
#----------------------------------------------------------------------------
#
# $Log$
# Revision 1.10 1999/02/01 00:10:39 RD
# Added the missing EVT_LIST_ITEM_SELECTED and friends.
#
# Revision 1.9 1999/01/30 07:30:09 RD
#
# Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
#
# Various cleanup, tweaks, minor additions, etc. to maintain
# compatibility with the current wxWindows.
#
# Revision 1.8 1999/01/29 21:13:42 HH
# Added aliases for wxDefaultPosition and wxDefaultSize (from wxPy..) in _extras,
# so that C++ documentation applies.
#
# Revision 1.7 1998/11/25 08:45:21 RD
#
# Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
# Added events for wxGrid
# Other various fixes and additions
#
# Revision 1.6 1998/11/16 00:00:52 RD
# Generic treectrl for wxPython/GTK compiles...
#
# Revision 1.5 1998/10/20 07:38:02 RD
# bug fix
#
# Revision 1.4 1998/10/20 06:43:54 RD
# New wxTreeCtrl wrappers (untested)
# some changes in helpers
# etc.
#
# Revision 1.3 1998/10/02 06:40:33 RD
#
# Version 0.4 of wxPython for MSW.
#
# Revision 1.2 1998/08/18 19:48:12 RD
# more wxGTK compatibility things.
#
# It builds now but there are serious runtime problems...
#
# Revision 1.1 1998/08/09 08:25:49 RD
# Initial version
#
#

View File

@@ -1,359 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: cmndlgs.i
// Purpose: SWIG definitions for the Common Dialog Classes
//
// Author: Robin Dunn
//
// Created: 7/25/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module cmndlgs
%{
#include "helpers.h"
#include <wx/colordlg.h>
#include <wx/dirdlg.h>
#include <wx/fontdlg.h>
#include <wx/printdlg.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
class wxColourData {
public:
wxColourData();
~wxColourData();
bool GetChooseFull();
wxColour& GetColour();
wxColour GetCustomColour(int i);
void SetChooseFull(int flag);
void SetColour(const wxColour& colour);
void SetCustomColour(int i, const wxColour& colour);
};
class wxColourDialog : public wxDialog {
public:
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxColourData& GetColourData();
int ShowModal();
};
//----------------------------------------------------------------------
class wxDirDialog : public wxDialog {
public:
wxDirDialog(wxWindow* parent,
char* message = "Choose a directory",
char* defaultPath = "",
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxString GetPath();
wxString GetMessage();
long GetStyle();
void SetMessage(const wxString& message);
void SetPath(const wxString& path);
int ShowModal();
};
//----------------------------------------------------------------------
class wxFileDialog : public wxDialog {
public:
wxFileDialog(wxWindow* parent,
char* message = "Choose a file",
char* defaultDir = "",
char* defaultFile = "",
char* wildcard = "*.*",
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxString GetDirectory();
wxString GetFilename();
int GetFilterIndex();
wxString GetMessage();
wxString GetPath();
long GetStyle();
wxString GetWildcard();
void SetDirectory(const wxString& directory);
void SetFilename(const wxString& setfilename);
void SetFilterIndex(int filterIndex);
void SetMessage(const wxString& message);
void SetPath(const wxString& path);
void SetStyle(long style);
void SetWildcard(const wxString& wildCard);
int ShowModal();
};
//----------------------------------------------------------------------
//TODO: wxMultipleChoiceDialog
//----------------------------------------------------------------------
class wxSingleChoiceDialog : public wxDialog {
public:
%addmethods {
// TODO: ignoring clientData for now...
// SWIG is messing up the &/*'s for some reason.
wxSingleChoiceDialog(wxWindow* parent,
wxString* message,
wxString* caption,
int LCOUNT, wxString* LIST,
//char** clientData = NULL,
long style = wxOK | wxCANCEL | wxCENTRE,
wxPoint* pos = &wxPyDefaultPosition) {
return new wxSingleChoiceDialog(parent, *message, *caption,
LCOUNT, LIST, NULL, style, *pos);
}
}
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
int GetSelection();
wxString GetStringSelection();
void SetSelection(int sel);
int ShowModal();
};
//----------------------------------------------------------------------
class wxTextEntryDialog : public wxDialog {
public:
wxTextEntryDialog(wxWindow* parent,
char* message,
char* caption = "Input Text",
char* defaultValue = "",
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxString GetValue();
void SetValue(const wxString& value);
int ShowModal();
};
//----------------------------------------------------------------------
class wxFontData {
public:
wxFontData();
~wxFontData();
void EnableEffects(bool enable);
bool GetAllowSymbols();
wxColour& GetColour();
wxFont GetChosenFont();
bool GetEnableEffects();
wxFont GetInitialFont();
bool GetShowHelp();
void SetAllowSymbols(bool allowSymbols);
void SetChosenFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetInitialFont(const wxFont& font);
void SetRange(int min, int max);
void SetShowHelp(bool showHelp);
};
class wxFontDialog : public wxDialog {
public:
wxFontDialog(wxWindow* parent, wxFontData* data = NULL);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxFontData& GetFontData();
int ShowModal();
};
//----------------------------------------------------------------------
class wxPageSetupData {
public:
wxPageSetupData();
~wxPageSetupData();
void EnableHelp(bool flag);
void EnableMargins(bool flag);
void EnableOrientation(bool flag);
void EnablePaper(bool flag);
void EnablePrinter(bool flag);
wxPoint GetPaperSize();
wxPoint GetMarginTopLeft();
wxPoint GetMarginBottomRight();
wxPoint GetMinMarginTopLeft();
wxPoint GetMinMarginBottomRight();
int GetOrientation();
bool GetDefaultMinMargins();
bool GetEnableMargins();
bool GetEnableOrientation();
bool GetEnablePaper();
bool GetEnablePrinter();
bool GetEnableHelp();
bool GetDefaultInfo();
void SetPaperSize(const wxPoint& size);
void SetMarginTopLeft(const wxPoint& pt);
void SetMarginBottomRight(const wxPoint& pt);
void SetMinMarginTopLeft(const wxPoint& pt);
void SetMinMarginBottomRight(const wxPoint& pt);
void SetOrientation(int orientation);
void SetDefaultMinMargins(bool flag);
void SetDefaultInfo(bool flag);
};
class wxPageSetupDialog : public wxDialog {
public:
wxPageSetupDialog(wxWindow* parent, wxPageSetupData* data = NULL);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxPageSetupData& GetPageSetupData();
int ShowModal();
};
//----------------------------------------------------------------------
class wxPrintData {
public:
wxPrintData();
~wxPrintData();
void EnableHelp(bool flag);
void EnablePageNumbers(bool flag);
void EnablePrintToFile(bool flag);
void EnableSelection(bool flag);
bool GetAllPages();
bool GetCollate();
int GetFromPage();
int GetMaxPage();
int GetMinPage();
int GetNoCopies();
int GetOrientation();
int GetToPage();
void SetCollate(bool flag);
void SetFromPage(int page);
void SetMaxPage(int page);
void SetMinPage(int page);
void SetOrientation(int orientation);
void SetNoCopies(int n);
void SetPrintToFile(bool flag);
void SetSetupDialog(bool flag);
void SetToPage(int page);
};
class wxPrintDialog : public wxDialog {
public:
wxPrintDialog(wxWindow* parent, wxPrintData* data = NULL);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
wxPrintData& GetPrintData();
%new wxDC* GetPrintDC();
int ShowModal();
};
//----------------------------------------------------------------------
class wxMessageDialog : public wxDialog {
public:
wxMessageDialog(wxWindow* parent,
char* message,
char* caption = "Message box",
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
int ShowModal();
};
//----------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.8 1998/12/17 14:07:25 RR
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.7 1998/12/15 20:41:14 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.6 1998/11/25 08:45:22 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.5 1998/11/15 23:03:43 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.4 1998/10/02 06:40:34 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:13 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:25 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:49 RD
// Initial version
//
//

View File

@@ -1,543 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: controls.i
// Purpose: Control (widget) classes for wxPython
//
// Author: Robin Dunn
//
// Created: 6/10/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module controls
%{
#include "helpers.h"
#include <wx/slider.h>
#include <wx/spinbutt.h>
#ifdef __WXMSW__
#if wxUSE_OWNER_DRAWN
#include <wx/checklst.h>
#endif
#endif
#ifdef __WXGTK__
#include <wx/checklst.h>
#endif
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import windows.i
%import gdi.i
%import events.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
%{
wxValidator wxPyDefaultValidator; // Non-const default because of SWIG
%}
//----------------------------------------------------------------------
class wxControl : public wxWindow {
public:
void Command(wxCommandEvent& event);
wxString GetLabel();
void SetLabel(const wxString& label);
};
//----------------------------------------------------------------------
class wxButton : public wxControl {
public:
wxButton(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "button");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void SetDefault();
};
//----------------------------------------------------------------------
class wxBitmapButton : public wxButton {
public:
wxBitmapButton(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxBU_AUTODRAW,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "button");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
wxBitmap& GetBitmapLabel();
wxBitmap& GetBitmapDisabled();
wxBitmap& GetBitmapFocus();
wxBitmap& GetBitmapSelected();
void SetBitmapDisabled(const wxBitmap& bitmap);
void SetBitmapFocus(const wxBitmap& bitmap);
void SetBitmapSelected(const wxBitmap& bitmap);
void SetBitmapLabel(const wxBitmap& bitmap);
};
//----------------------------------------------------------------------
class wxCheckBox : public wxControl {
public:
wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
const wxValidator& val = wxPyDefaultValidator,
char* name = "checkBox");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool GetValue();
void SetValue(const bool state);
};
//----------------------------------------------------------------------
class wxChoice : public wxControl {
public:
wxChoice(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
int LCOUNT=0, wxString* LIST=NULL,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "choice");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void Append(const wxString& item);
void Clear();
int FindString(const wxString& string);
int GetColumns();
int GetSelection();
wxString GetString(const int n);
wxString GetStringSelection();
int Number();
void SetColumns(const int n = 1);
void SetSelection(const int n);
void SetStringSelection(const wxString& string);
};
//----------------------------------------------------------------------
class wxComboBox : public wxControl {
public:
wxComboBox(wxWindow* parent, wxWindowID id, char* value = "",
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
int LCOUNT=0, wxString* LIST=NULL,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "comboBox");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void Append(const wxString& item);
// TODO: void Append(const wxString& item, char* clientData);
void Clear();
void Copy();
void Cut();
void Delete(int n);
// NotMember??: void Deselect(int n);
int FindString(const wxString& string);
// TODO: char* GetClientData(const int n);
long GetInsertionPoint();
long GetLastPosition();
int GetSelection();
wxString GetString(int n);
wxString GetStringSelection();
wxString GetValue();
int Number();
void Paste();
void Replace(long from, long to, const wxString& text);
void Remove(long from, long to);
// TODO: void SetClientData(const int n, char* data);
void SetInsertionPoint(long pos);
void SetInsertionPointEnd();
void SetSelection(int n, bool select = TRUE);
%name(SetMark)void SetSelection(long from, long to);
void SetValue(const wxString& text);
};
//----------------------------------------------------------------------
class wxGauge : public wxControl {
public:
wxGauge(wxWindow* parent, wxWindowID id, int range,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxGA_HORIZONTAL,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "gauge");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
int GetBezelFace();
int GetRange();
int GetShadowWidth();
int GetValue();
void SetBezelFace(int width);
void SetRange(int range);
void SetShadowWidth(int width);
void SetValue(int pos);
};
//----------------------------------------------------------------------
class wxStaticBox : public wxControl {
public:
wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "staticBox");
};
//----------------------------------------------------------------------
class wxStaticText : public wxControl {
public:
wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "staticText");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
wxString GetLabel();
void SetLabel(const wxString& label);
};
//----------------------------------------------------------------------
class wxListBox : public wxControl {
public:
wxListBox(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
int LCOUNT, wxString* LIST = NULL,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "listBox");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void Append(const wxString& item);
// TODO: void Append(const wxString& item, char* clientData);
void Clear();
void Delete(int n);
void Deselect(int n);
int FindString(const wxString& string);
// TODO: char* GetClientData(const int n);
int GetSelection();
// TODO: int GetSelections(int **selections);
wxString GetString(int n);
wxString GetStringSelection();
int Number();
bool Selected(const int n);
void Set(int LCOUNT, wxString* LIST);
// TODO: void SetClientData(const int n, char* data);
void SetFirstItem(int n);
%name(SetFirstItemStr)void SetFirstItem(const wxString& string);
void SetSelection(int n, bool select = TRUE);
void SetString(int n, const wxString& string);
void SetStringSelection(const wxString& string, bool select = TRUE);
};
//----------------------------------------------------------------------
class wxCheckListBox : public wxListBox {
public:
wxCheckListBox(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
int LCOUNT = 0,
wxString* LIST = NULL,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "listBox");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool IsChecked(int uiIndex);
void Check(int uiIndex, bool bCheck = TRUE);
int GetItemHeight();
};
//----------------------------------------------------------------------
class wxTextCtrl : public wxControl {
public:
wxTextCtrl(wxWindow* parent, wxWindowID id, char* value = "",
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "text");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void Clear();
void Copy();
void Cut();
void DiscardEdits();
long GetInsertionPoint();
long GetLastPosition();
int GetLineLength(long lineNo);
wxString GetLineText(long lineNo);
int GetNumberOfLines();
wxString GetValue();
bool IsModified();
bool LoadFile(const wxString& filename);
void Paste();
void PositionToXY(long pos, long *OUTPUT, long *OUTPUT);
void Remove(long from, long to);
void Replace(long from, long to, const wxString& value);
bool SaveFile(const wxString& filename);
void SetEditable(bool editable);
void SetInsertionPoint(long pos);
void SetInsertionPointEnd();
void SetSelection(long from, long to);
void SetValue(const wxString& value);
void ShowPosition(long pos);
void WriteText(const wxString& text);
long XYToPosition(long x, long y);
};
//----------------------------------------------------------------------
class wxScrollBar : public wxControl {
public:
wxScrollBar(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxSB_HORIZONTAL,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "scrollBar");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
int GetRange();
int GetPageSize();
int GetThumbPosition();
int GetThumbSize();
void SetThumbPosition(int viewStart);
void SetScrollbar(int position, int thumbSize,
int range, int pageSize,
bool refresh = TRUE);
};
//----------------------------------------------------------------------
class wxSpinButton : public wxControl {
public:
wxSpinButton(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxSP_HORIZONTAL,
char* name = "spinButton");
int GetMax();
int GetMin();
int GetValue();
void SetRange(int min, int max);
void SetValue(int value);
};
//----------------------------------------------------------------------
class wxStaticBitmap : public wxControl {
public:
wxStaticBitmap(wxWindow* parent, wxWindowID id,
const wxBitmap& bitmap,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "staticBitmap");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
wxBitmap& GetBitmap();
void SetBitmap(const wxBitmap& bitmap);
};
//----------------------------------------------------------------------
class wxRadioBox : public wxControl {
public:
wxRadioBox(wxWindow* parent, wxWindowID id,
const wxString& label,
const wxPoint& point = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
int LCOUNT = 0, wxString* LIST = NULL,
int majorDimension = 0,
long style = wxRA_HORIZONTAL,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "radioBox");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%name(EnableBox)void Enable(bool enable);
void Enable(int n, bool enable);
int FindString(const wxString& string);
#ifdef __WXMSW__
%name(GetBoxLabel)wxString GetLabel();
#endif
wxString GetLabel(int n);
int GetSelection();
wxString GetString(int n);
wxString GetStringSelection();
int Number();
%name(SetBoxLabel)void SetLabel(const wxString& label);
void SetLabel(int n, const wxString& label);
void SetSelection(int n);
void SetStringSelection(const wxString& string);
void Show(bool show);
%name(ShowItem)void Show(int item, bool show);
};
//----------------------------------------------------------------------
class wxRadioButton : public wxControl {
public:
wxRadioButton(wxWindow* parent, wxWindowID id,
const wxString& label,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "radioButton");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool GetValue();
void SetValue(bool value);
};
//----------------------------------------------------------------------
class wxSlider : public wxControl {
public:
wxSlider(wxWindow* parent, wxWindowID id,
int value, int minValue, int maxValue,
const wxPoint& point = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxSL_HORIZONTAL,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "slider");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void ClearSel();
void ClearTicks();
int GetLineSize();
int GetMax();
int GetMin();
int GetPageSize();
int GetSelEnd();
int GetSelStart();
int GetThumbLength();
int GetTickFreq();
int GetValue();
void SetRange(int minValue, int maxValue);
void SetTickFreq(int n, int pos);
void SetLineSize(int lineSize);
void SetPageSize(int pageSize);
void SetSelection(int startPos, int endPos);
void SetThumbLength(int len);
void SetTick(int tickPos);
void SetValue(int value);
};
//----------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.10 1998/12/17 17:52:19 RD
// wxPython 0.5.2
// Minor fixes and SWIG code generation for RR's changes. MSW and GTK
// versions are much closer now!
//
// Revision 1.9 1998/12/17 14:07:29 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.8 1998/12/15 20:41:15 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.7 1998/11/16 00:00:53 RD
// Generic treectrl for wxPython/GTK compiles...
//
// Revision 1.6 1998/11/15 23:03:43 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.5 1998/10/07 07:34:32 RD
// Version 0.4.1 for wxGTK
//
// Revision 1.4 1998/10/02 06:40:35 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:14 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:28 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:49 RD
// Initial version
//
//

View File

@@ -1,451 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: controls2.i
// Purpose: More control (widget) classes for wxPython
//
// Author: Robin Dunn
//
// Created: 6/10/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module controls2
%{
#include "helpers.h"
#include <wx/listctrl.h>
#include <wx/treectrl.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import windows.i
%import gdi.i
%import events.i
%import controls.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
%{
extern wxValidator wxPyDefaultValidator;
%}
//----------------------------------------------------------------------
class wxListItem {
public:
long m_mask; // Indicates what fields are valid
long m_itemId; // The zero-based item position
int m_col; // Zero-based column, if in report mode
long m_state; // The state of the item
long m_stateMask; // Which flags of m_state are valid (uses same flags)
wxString m_text; // The label/header text
int m_image; // The zero-based index into an image list
long m_data; // App-defined data
// wxColour *m_colour; // only wxGLC, not supported by Windows ;->
// For columns only
int m_format; // left, right, centre
int m_width; // width of column
wxListItem();
~wxListItem();
};
class wxListEvent: public wxCommandEvent {
public:
int m_code;
long m_itemIndex;
long m_oldItemIndex;
int m_col;
bool m_cancelled;
wxPoint m_pointDrag;
wxListItem m_item;
};
class wxListCtrl : public wxControl {
public:
wxListCtrl(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxLC_ICON,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "listCtrl");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool Arrange(int flag = wxLIST_ALIGN_DEFAULT);
bool DeleteItem(long item);
bool DeleteAllItems();
bool DeleteColumn(int col);
bool DeleteAllColumns(void);
void ClearAll(void);
#ifdef __WXMSW__
wxTextCtrl* EditLabel(long item);
bool EndEditLabel(bool cancel);
wxTextCtrl* GetEditControl();
#endif
bool EnsureVisible(long item);
long FindItem(long start, const wxString& str, bool partial = FALSE);
%name(FindItemData)long FindItem(long start, long data);
%name(FindItemAtPos)long FindItem(long start, const wxPoint& pt,
int direction);
bool GetColumn(int col, wxListItem& item);
int GetColumnWidth(int col);
int GetCountPerPage();
wxImageList* GetImageList(int which);
long GetItemData(long item);
%addmethods {
%new wxListItem* GetItem() {
wxListItem* info = new wxListItem;
self->GetItem(*info);
return info;
}
%new wxPoint* GetItemPosition(long item) {
wxPoint* pos = new wxPoint;
self->GetItemPosition(item, *pos);
return pos;
}
%new wxRect* GetItemRect(long item, int code = wxLIST_RECT_BOUNDS) {
wxRect* rect= new wxRect;
self->GetItemRect(item, *rect, code);
return rect;
}
}
int GetItemState(long item, long stateMask);
int GetItemCount();
int GetItemSpacing(bool isSmall);
wxString GetItemText(long item);
long GetNextItem(long item,
int geometry = wxLIST_NEXT_ALL,
int state = wxLIST_STATE_DONTCARE);
int GetSelectedItemCount();
#ifdef __WXMSW__
wxColour GetTextColour();
void SetTextColour(const wxColour& col);
#endif
long GetTopItem();
long HitTest(const wxPoint& point, int& OUTPUT);
%name(InsertColumnWithInfo)long InsertColumn(long col, wxListItem& info);
long InsertColumn(long col, const wxString& heading,
int format = wxLIST_FORMAT_LEFT,
int width = -1);
long InsertItem(wxListItem& info);
%name(InsertStringItem) long InsertItem(long index, const wxString& label);
%name(InsertImageItem) long InsertItem(long index, int imageIndex);
%name(InsertImageStringItem)long InsertItem(long index, const wxString& label,
int imageIndex);
bool ScrollList(int dx, int dy);
void SetBackgroundColour(const wxColour& col);
bool SetColumn(int col, wxListItem& item);
bool SetColumnWidth(int col, int width);
void SetImageList(wxImageList* imageList, int which);
bool SetItem(wxListItem& info);
%name(SetItemString)long SetItem(long index, int col, const wxString& label,
int imageId = -1);
bool SetItemData(long item, long data);
bool SetItemImage(long item, int image, int selImage);
bool SetItemPosition(long item, const wxPoint& pos);
bool SetItemState(long item, long state, long stateMask);
void SetItemText(long item, const wxString& text);
void SetSingleStyle(long style, bool add = TRUE);
void SetWindowStyleFlag(long style);
// TODO: bool SortItems(wxListCtrlCompare fn, long data);
};
//----------------------------------------------------------------------
class wxTreeItemId {
public:
wxTreeItemId();
~wxTreeItemId();
bool IsOk() const { return m_itemId != 0; }
// %addmethods {
// long GetId() { return (long)(*self); }
// }
};
// **** This isn't very useful yet. This needs to be specialized to enable
// derived Python classes...
class wxTreeItemData {
public:
wxTreeItemData();
~wxTreeItemData();
const wxTreeItemId& GetId();
void SetId(const wxTreeItemId& id);
};
class wxTreeEvent : public wxCommandEvent {
public:
wxTreeItemId GetItem();
wxTreeItemId GetOldItem();
wxPoint GetPoint();
int GetCode();
void Veto();
};
// These are for the GetFirstChild/GetNextChild methods below
%typemap(python, in) long& INOUT = long* INOUT;
%typemap(python, argout) long& INOUT = long* INOUT;
class wxTreeCtrl : public wxControl {
public:
wxTreeCtrl(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
const wxValidator& validator = wxPyDefaultValidator,
char* name = "wxTreeCtrl");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
size_t GetCount();
unsigned int GetIndent();
void SetIndent(unsigned int indent);
wxImageList *GetImageList();
wxImageList *GetStateImageList();
void SetImageList(wxImageList *imageList);
void SetStateImageList(wxImageList *imageList);
wxString GetItemText(const wxTreeItemId& item);
int GetItemImage(const wxTreeItemId& item);
int GetItemSelectedImage(const wxTreeItemId& item);
wxTreeItemData *GetItemData(const wxTreeItemId& item);
void SetItemText(const wxTreeItemId& item, const wxString& text);
void SetItemImage(const wxTreeItemId& item, int image);
void SetItemSelectedImage(const wxTreeItemId& item, int image);
void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
void SetItemHasChildren(const wxTreeItemId& item, bool hasChildren = TRUE);
bool IsVisible(const wxTreeItemId& item);
bool ItemHasChildren(const wxTreeItemId& item);
bool IsExpanded(const wxTreeItemId& item);
bool IsSelected(const wxTreeItemId& item);
wxTreeItemId GetRootItem();
wxTreeItemId GetSelection();
wxTreeItemId GetParent(const wxTreeItemId& item);
wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& INOUT);
wxTreeItemId GetNextChild(const wxTreeItemId& item, long& INOUT);
wxTreeItemId GetNextSibling(const wxTreeItemId& item);
wxTreeItemId GetPrevSibling(const wxTreeItemId& item);
wxTreeItemId GetFirstVisibleItem();
wxTreeItemId GetNextVisible(const wxTreeItemId& item);
wxTreeItemId GetPrevVisible(const wxTreeItemId& item);
wxTreeItemId AddRoot(const wxString& text,
int image = -1, int selectedImage = -1,
wxTreeItemData *data = NULL);
wxTreeItemId PrependItem(const wxTreeItemId& parent,
const wxString& text,
int image = -1, int selectedImage = -1,
wxTreeItemData *data = NULL);
wxTreeItemId InsertItem(const wxTreeItemId& parent,
const wxTreeItemId& idPrevious,
const wxString& text,
int image = -1, int selectedImage = -1,
wxTreeItemData *data = NULL);
wxTreeItemId AppendItem(const wxTreeItemId& parent,
const wxString& text,
int image = -1, int selectedImage = -1,
wxTreeItemData *data = NULL);
void Delete(const wxTreeItemId& item);
void DeleteChildren(const wxTreeItemId& item);
void DeleteAllItems();
void Expand(const wxTreeItemId& item);
void Collapse(const wxTreeItemId& item);
void CollapseAndReset(const wxTreeItemId& item);
void Toggle(const wxTreeItemId& item);
void Unselect();
void SelectItem(const wxTreeItemId& item);
void EnsureVisible(const wxTreeItemId& item);
void ScrollTo(const wxTreeItemId& item);
wxTextCtrl* EditLabel(const wxTreeItemId& item);
// **** figure out how to do this
// wxClassInfo* textCtrlClass = CLASSINFO(wxTextCtrl));
wxTextCtrl* GetEditControl();
void EndEditLabel(const wxTreeItemId& item, bool discardChanges = FALSE);
// void SortChildren(const wxTreeItemId& item);
// **** And this too
// wxTreeItemCmpFunc *cmpFunction = NULL);
void SetItemBold(const wxTreeItemId& item, bool bold = TRUE);
bool IsBold(const wxTreeItemId& item) const;
wxTreeItemId HitTest(const wxPoint& point);
};
//----------------------------------------------------------------------
#ifdef SKIPTHIS
#ifdef __WXMSW__
class wxTabEvent : public wxCommandEvent {
public:
};
class wxTabCtrl : public wxControl {
public:
wxTabCtrl(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "tabCtrl");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool DeleteAllItems();
bool DeleteItem(int item);
wxImageList* GetImageList();
int GetItemCount();
// TODO: void* GetItemData();
int GetItemImage(int item);
%addmethods {
%new wxRect* GetItemRect(int item) {
wxRect* rect = new wxRect;
self->GetItemRect(item, *rect);
return rect;
}
}
wxString GetItemText(int item);
bool GetRowCount();
int GetSelection();
int HitTest(const wxPoint& pt, long& OUTPUT);
void InsertItem(int item, const wxString& text,
int imageId = -1, void* clientData = NULL);
// TODO: bool SetItemData(int item, void* data);
bool SetItemImage(int item, int image);
void SetImageList(wxImageList* imageList);
void SetItemSize(const wxSize& size);
bool SetItemText(int item, const wxString& text);
void SetPadding(const wxSize& padding);
int SetSelection(int item);
};
#endif
#endif
//----------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.14 1999/01/30 07:30:10 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.13 1998/12/17 14:07:34 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.12 1998/12/16 22:10:52 RD
//
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.11 1998/12/15 20:41:16 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.10 1998/11/25 08:45:23 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.9 1998/11/16 00:00:54 RD
// Generic treectrl for wxPython/GTK compiles...
//
// Revision 1.8 1998/11/11 04:40:20 RD
// wxTreeCtrl now works (sort of) for wxPython-GTK. This is the new
// TreeCtrl in src/gtk/treectrl.cpp not the old generic one.
//
// Revision 1.7 1998/11/11 03:12:25 RD
//
// Additions for wxTreeCtrl
//
// Revision 1.6 1998/10/20 06:43:55 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.5 1998/10/07 07:34:33 RD
// Version 0.4.1 for wxGTK
//
// Revision 1.4 1998/10/02 06:40:36 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:15 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:30 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:49 RD
// Initial version
//
//

View File

@@ -1,341 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: events.i
// Purpose: SWIGgable Event classes for wxPython
//
// Author: Robin Dunn
//
// Created: 5/24/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module events
%{
#include "helpers.h"
#include <wx/spinbutt.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
//---------------------------------------------------------------------------
class wxEvent {
public:
wxObject* GetEventObject();
wxEventType GetEventType();
int GetId();
bool GetSkipped();
long GetTimestamp();
void SetEventObject(wxObject* object);
void SetEventType(wxEventType typ);
void SetId(int id);
void SetTimestamp(long timeStamp);
void Skip(bool skip = TRUE);
};
//---------------------------------------------------------------------------
class wxSizeEvent : public wxEvent {
public:
wxSize GetSize();
};
//---------------------------------------------------------------------------
class wxCloseEvent : public wxEvent {
public:
bool CanVeto();
// **** bool GetSessionEnding();
bool GetLoggingOff();
void Veto(bool veto = TRUE);
bool GetVeto();
void SetForce(bool force);
void SetCanVeto(bool canVeto);
void SetLoggingOff(bool loggingOff);
bool GetForce();
};
//---------------------------------------------------------------------------
class wxCommandEvent : public wxEvent {
public:
bool Checked();
long GetExtraLong();
int GetInt();
int GetSelection();
char* GetString();
bool IsSelection();
};
//---------------------------------------------------------------------------
class wxScrollEvent: public wxCommandEvent {
public:
int GetOrientation();
int GetPosition();
};
//---------------------------------------------------------------------------
class wxSpinEvent : public wxScrollEvent {
public:
};
//---------------------------------------------------------------------------
class wxMouseEvent: public wxEvent {
public:
bool IsButton();
bool ButtonDown(int but = -1);
bool ButtonDClick(int but = -1);
bool ButtonUp(int but = -1);
bool Button(int but);
bool ButtonIsDown(int but);
bool ControlDown();
bool MetaDown();
bool AltDown();
bool ShiftDown();
bool LeftDown();
bool MiddleDown();
bool RightDown();
bool LeftUp();
bool MiddleUp();
bool RightUp();
bool LeftDClick();
bool MiddleDClick();
bool RightDClick();
bool LeftIsDown();
bool MiddleIsDown();
bool RightIsDown();
bool Dragging();
bool Moving();
bool Entering();
bool Leaving();
void Position(long *OUTPUT, long *OUTPUT);
wxPoint GetPosition();
wxPoint GetLogicalPosition(const wxDC& dc);
long GetX();
long GetY();
};
//---------------------------------------------------------------------------
class wxKeyEvent: public wxEvent {
public:
bool ControlDown();
bool MetaDown();
bool AltDown();
bool ShiftDown();
long KeyCode();
void Position(float *OUTPUT, float *OUTPUT);
float GetX();
float GetY();
};
//---------------------------------------------------------------------------
class wxMoveEvent: public wxEvent {
public:
wxPoint GetPosition();
};
//---------------------------------------------------------------------------
class wxPaintEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
class wxEraseEvent: public wxEvent {
public:
wxDC *GetDC();
};
//---------------------------------------------------------------------------
class wxFocusEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
class wxActivateEvent: public wxEvent{
public:
bool GetActive();
};
//---------------------------------------------------------------------------
class wxInitDialogEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
class wxMenuEvent: public wxEvent {
public:
int GetMenuId();
};
//---------------------------------------------------------------------------
class wxShowEvent: public wxEvent {
public:
void SetShow(bool show);
bool GetShow();
};
//---------------------------------------------------------------------------
class wxIconizeEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
class wxMaximizeEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
class wxJoystickEvent: public wxEvent {
public:
wxPoint GetPosition();
int GetZPosition();
int GetButtonState();
int GetButtonChange();
int GetJoystick();
void SetJoystick(int stick);
void SetButtonState(int state);
void SetButtonChange(int change);
void SetPosition(const wxPoint& pos);
void SetZPosition(int zPos);
bool IsButton();
bool IsMove();
bool IsZMove();
bool ButtonDown(int but = wxJOY_BUTTON_ANY);
bool ButtonUp(int but = wxJOY_BUTTON_ANY);
bool ButtonIsDown(int but = wxJOY_BUTTON_ANY);
};
//---------------------------------------------------------------------------
class wxDropFilesEvent: public wxEvent {
public:
wxPoint GetPosition();
int GetNumberOfFiles();
%addmethods {
PyObject* GetFiles() {
int count = self->GetNumberOfFiles();
wxString* files = self->GetFiles();
PyObject* list = PyList_New(count);
if (!list) {
PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
return NULL;
}
for (int i=0; i<count; i++) {
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
}
return list;
}
}
};
//---------------------------------------------------------------------------
class wxIdleEvent: public wxEvent {
public:
void RequestMore(bool needMore = TRUE);
bool MoreRequested();
};
//---------------------------------------------------------------------------
class wxUpdateUIEvent: public wxEvent {
public:
bool GetChecked();
bool GetEnabled();
wxString GetText();
bool GetSetText();
bool GetSetChecked();
bool GetSetEnabled();
void Check(bool check);
void Enable(bool enable);
void SetText(const wxString& text);
};
//---------------------------------------------------------------------------
class wxSysColourChangedEvent: public wxEvent {
public:
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.5 1998/12/15 20:41:17 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.4 1998/11/16 00:00:55 RD
// Generic treectrl for wxPython/GTK compiles...
//
// Revision 1.3 1998/10/20 06:43:56 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.2 1998/08/15 07:36:33 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:50 RD
// Initial version
//
//

View File

@@ -1,122 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: frames.i
// Purpose: SWIG definitions of various window classes
//
// Author: Robin Dunn
//
// Created: 8/27/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module frames
%{
#include "helpers.h"
#include <wx/minifram.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import stattool.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
class wxFrame : public wxWindow {
public:
wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
void Centre(int direction = wxBOTH);
#ifdef __WXMSW__
void Command(int id);
#endif
wxStatusBar* CreateStatusBar(int number = 1,
long style = wxST_SIZEGRIP,
wxWindowID id = -1,
char* name = "statusBar");
wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
wxWindowID id = -1,
char* name = "toolBar");
wxMenuBar* GetMenuBar();
wxStatusBar* GetStatusBar();
wxString GetTitle();
wxToolBar* GetToolBar();
void Iconize(bool iconize);
bool IsIconized();
void Maximize(bool maximize);
void SetAcceleratorTable(const wxAcceleratorTable& accel);
void SetIcon(const wxIcon& icon);
void SetMenuBar(wxMenuBar* menuBar);
void SetStatusBar(wxStatusBar *statusBar);
void SetStatusText(const wxString& text, int number = 0);
void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
void SetTitle(const wxString& title);
void SetToolBar(wxToolBar* toolbar);
};
//---------------------------------------------------------------------------
class wxMiniFrame : public wxFrame {
public:
wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.4 1998/12/16 22:10:53 RD
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.3 1998/12/15 20:41:18 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//

View File

@@ -1,582 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: gdi.i
// Purpose: SWIG interface file for wxDC, wxBrush, wxPen, wxFont, etc.
//
// Author: Robin Dunn
//
// Created: 7/7/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module gdi
%{
#include "helpers.h"
#include <wx/metafile.h>
#ifndef __WXMSW__
#include <wx/dcps.h>
#endif
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
//---------------------------------------------------------------------------
class wxBitmap {
public:
wxBitmap(const wxString& name, long type);
~wxBitmap();
#ifdef __WXMSW__
void Create(int width, int height, int depth = -1);
#endif
int GetDepth();
int GetHeight();
wxPalette* GetPalette();
wxMask* GetMask();
int GetWidth();
bool LoadFile(const wxString& name, long flags);
bool Ok();
bool SaveFile(const wxString& name, int type, wxPalette* palette = NULL);
void SetDepth(int depth);
void SetHeight(int height);
void SetMask(wxMask* mask);
#ifdef __WXMSW__
void SetPalette(wxPalette& palette);
#endif
void SetWidth(int width);
};
%new wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1);
wxBitmap* wxNoRefBitmap(char* name, long flags);
%{ // Alternate 'constructor'
wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
return new wxBitmap(width, height, depth);
}
// This one won't own the reference, so Python won't call
// the dtor, this is good for toolbars and such where
// the parent will manage the bitmap.
wxBitmap* wxNoRefBitmap(char* name, long flags) {
return new wxBitmap(name, flags);
}
%}
//---------------------------------------------------------------------------
class wxMask {
public:
wxMask(const wxBitmap& bitmap);
~wxMask();
};
%new wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour);
%{
wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
return new wxMask(bitmap, colour);
}
%}
//---------------------------------------------------------------------------
class wxIcon : public wxBitmap {
public:
#ifdef __WXMSW__
wxIcon(const wxString& name, long flags,
int desiredWidth = -1, int desiredHeight = -1);
#endif
~wxIcon();
int GetDepth();
int GetHeight();
int GetWidth();
bool LoadFile(const wxString& name, long flags);
bool Ok();
void SetDepth(int depth);
void SetHeight(int height);
void SetWidth(int width);
};
//---------------------------------------------------------------------------
class wxCursor : public wxBitmap {
public:
#ifdef __WXMSW__
wxCursor(const wxString& cursorName, long flags, int hotSpotX=0, int hotSpotY=0);
#endif
~wxCursor();
bool Ok();
};
%name(wxStockCursor) %new wxCursor* wxPyStockCursor(int id);
%{ // Alternate 'constructor'
wxCursor* wxPyStockCursor(int id) {
return new wxCursor(id);
}
%}
//----------------------------------------------------------------------
class wxFont {
public:
// I'll do it this way to use long-lived objects and not have to
// worry about when python may delete the object.
%addmethods {
wxFont( int pointSize, int family, int style, int weight,
int underline=FALSE, char* faceName = "") {
return wxTheFontList->FindOrCreateFont(pointSize, family, style, weight,
underline, faceName);
}
// NO Destructor.
}
wxString GetFaceName();
int GetFamily();
#ifdef __WXMSW__
int GetFontId();
#endif
int GetPointSize();
int GetStyle();
bool GetUnderlined();
int GetWeight();
void SetFaceName(const wxString& faceName);
void SetFamily(int family);
void SetPointSize(int pointSize);
void SetStyle(int style);
void SetUnderlined(bool underlined);
void SetWeight(int weight);
};
//----------------------------------------------------------------------
class wxColour {
public:
wxColour(unsigned char red=0, unsigned char green=0, unsigned char blue=0);
~wxColour();
unsigned char Red();
unsigned char Green();
unsigned char Blue();
bool Ok();
void Set(unsigned char red, unsigned char green, unsigned char blue);
%addmethods {
PyObject* Get() {
PyObject* rv = PyTuple_New(3);
PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
return rv;
}
}
};
%new wxColour* wxNamedColour(const wxString& colorName);
%{ // Alternate 'constructor'
wxColour* wxNamedColour(const wxString& colorName) {
return new wxColour(colorName);
}
%}
//----------------------------------------------------------------------
typedef unsigned long wxDash;
class wxPen {
public:
// I'll do it this way to use long-lived objects and not have to
// worry about when python may delete the object.
%addmethods {
wxPen(wxColour* colour, int width=1, int style=wxSOLID) {
return wxThePenList->FindOrCreatePen(*colour, width, style);
}
// NO Destructor.
}
int GetCap();
wxColour& GetColour();
int GetJoin();
int GetStyle();
int GetWidth();
bool Ok();
void SetCap(int cap_style);
void SetColour(wxColour& colour);
void SetJoin(int join_style);
void SetStyle(int style);
void SetWidth(int width);
#ifdef __WXMSW__
// **** This one needs to return a list of ints (wxDash)
int GetDashes(wxDash **dashes);
wxBitmap* GetStipple();
void SetDashes(int LCOUNT, wxDash* LIST);
void SetStipple(wxBitmap& stipple);
#endif
};
//----------------------------------------------------------------------
class wxBrush {
public:
// I'll do it this way to use long-lived objects and not have to
// worry about when python may delete the object.
%addmethods {
wxBrush(wxColour* colour, int style=wxSOLID) {
return wxTheBrushList->FindOrCreateBrush(*colour, style);
}
// NO Destructor.
}
wxColour& GetColour();
wxBitmap * GetStipple();
int GetStyle();
bool Ok();
void SetColour(wxColour &colour);
void SetStipple(wxBitmap& bitmap);
void SetStyle(int style);
};
//----------------------------------------------------------------------
class wxDC {
public:
// wxDC(); **** abstract base class, can't instantiate.
~wxDC();
void BeginDrawing();
bool Blit(long xdest, long ydest, long width, long height,
wxDC *source, long xsrc, long ysrc, long logical_func);
void Clear();
void CrossHair(long x, long y);
void DestroyClippingRegion();
long DeviceToLogicalX(long x);
long DeviceToLogicalXRel(long x);
long DeviceToLogicalY(long y);
long DeviceToLogicalYRel(long y);
void DrawArc(long x1, long y1, long x2, long y2, long xc, long yc);
void DrawEllipse(long x, long y, long width, long height);
void DrawEllipticArc(long x, long y, long width, long height, long start, long end);
void DrawIcon(const wxIcon& icon, long x, long y);
void DrawLine(long x1, long y1, long x2, long y2);
void DrawLines(int LCOUNT, wxPoint* LIST, long xoffset=0, long yoffset=0);
void DrawPolygon(int LCOUNT, wxPoint* LIST, long xoffset=0, long yoffset=0,
int fill_style=wxODDEVEN_RULE);
void DrawPoint(long x, long y);
void DrawRectangle(long x, long y, long width, long height);
void DrawRoundedRectangle(long x, long y, long width, long height, long radius=20);
void DrawSpline(int LCOUNT, wxPoint* LIST);
void DrawText(const wxString& text, long x, long y);
void EndDoc();
void EndDrawing();
void EndPage();
void FloodFill(long x, long y, const wxColour& colour, int style=wxFLOOD_SURFACE);
wxBrush& GetBackground();
wxBrush& GetBrush();
long GetCharHeight();
long GetCharWidth();
void GetClippingBox(long *OUTPUT, long *OUTPUT,
long *OUTPUT, long *OUTPUT);
wxFont& GetFont();
int GetLogicalFunction();
int GetMapMode();
bool GetOptimization();
wxPen& GetPen();
%addmethods {
%new wxColour* GetPixel(long x, long y) {
wxColour* wc = new wxColour();
self->GetPixel(x, y, wc);
return wc;
}
}
void GetSize(int* OUTPUT, int* OUTPUT); //void GetSize(long* OUTPUT, long* OUTPUT);
wxColour& GetTextBackground();
void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT,
long *OUTPUT, long *OUTPUT);
wxColour& GetTextForeground();
long LogicalToDeviceX(long x);
long LogicalToDeviceXRel(long x);
long LogicalToDeviceY(long y);
long LogicalToDeviceYRel(long y);
long MaxX();
long MaxY();
long MinX();
long MinY();
bool Ok();
void SetDeviceOrigin(long x, long y);
void SetBackground(const wxBrush& brush);
void SetBackgroundMode(int mode);
void SetClippingRegion(long x, long y, long width, long height);
void SetPalette(const wxPalette& colourMap);
void SetBrush(const wxBrush& brush);
void SetFont(const wxFont& font);
void SetLogicalFunction(int function);
void SetMapMode(int mode);
void SetOptimization(bool optimize);
void SetPen(const wxPen& pen);
void SetTextBackground(const wxColour& colour);
void SetTextForeground(const wxColour& colour);
void SetUserScale(double x_scale, double y_scale);
bool StartDoc(const wxString& message);
void StartPage();
%addmethods {
// This one is my own creation...
void DrawBitmap(wxBitmap& bitmap, long x, long y, bool swapPalette=TRUE) {
wxMemoryDC* memDC = new wxMemoryDC;
memDC->SelectObject(bitmap);
if (swapPalette)
self->SetPalette(*bitmap.GetPalette());
self->Blit(x, y, bitmap.GetWidth(), bitmap.GetHeight(), memDC,
0, 0, self->GetLogicalFunction());
memDC->SelectObject(wxNullBitmap);
delete memDC;
}
}
};
//----------------------------------------------------------------------
class wxMemoryDC : public wxDC {
public:
wxMemoryDC();
void SelectObject(const wxBitmap& bitmap);
}
%new wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC);
%{ // Alternate 'constructor'
wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
return new wxMemoryDC(oldDC);
}
%}
//---------------------------------------------------------------------------
class wxScreenDC : public wxDC {
public:
wxScreenDC();
bool StartDrawingOnTop(wxWindow* window);
%name(StartDrawingOnTopRect) bool StartDrawingOnTop(wxRect* rect = NULL);
bool EndDrawingOnTop();
};
//---------------------------------------------------------------------------
class wxClientDC : public wxDC {
public:
wxClientDC(wxWindow* win);
};
//---------------------------------------------------------------------------
class wxPaintDC : public wxDC {
public:
wxPaintDC(wxWindow* win);
};
//---------------------------------------------------------------------------
class wxWindowDC : public wxDC {
public:
wxWindowDC(wxWindow* win);
};
//---------------------------------------------------------------------------
#ifndef __WXMSW__
class wxPostScriptDC : public wxDC {
public:
wxPostScriptDC(const wxString& output, bool interactive = TRUE, wxWindow* win = NULL);
};
#endif
//---------------------------------------------------------------------------
#ifdef __WXMSW__
class wxPrinterDC : public wxDC {
public:
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output,
bool interactive = TRUE, int orientation = wxPORTRAIT);
};
#endif
//---------------------------------------------------------------------------
#ifdef __WXMSW__
class wxMetaFileDC : public wxDC {
public:
wxMetaFileDC(const wxString& filename = wxPyEmptyStr);
wxMetaFile* Close();
};
#endif
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
%readonly
extern wxFont *wxNORMAL_FONT;
extern wxFont *wxSMALL_FONT;
extern wxFont *wxITALIC_FONT;
extern wxFont *wxSWISS_FONT;
extern wxPen *wxRED_PEN;
extern wxPen *wxCYAN_PEN;
extern wxPen *wxGREEN_PEN;
extern wxPen *wxBLACK_PEN;
extern wxPen *wxWHITE_PEN;
extern wxPen *wxTRANSPARENT_PEN;
extern wxPen *wxBLACK_DASHED_PEN;
extern wxPen *wxGREY_PEN;
extern wxPen *wxMEDIUM_GREY_PEN;
extern wxPen *wxLIGHT_GREY_PEN;
extern wxBrush *wxBLUE_BRUSH;
extern wxBrush *wxGREEN_BRUSH;
extern wxBrush *wxWHITE_BRUSH;
extern wxBrush *wxBLACK_BRUSH;
extern wxBrush *wxTRANSPARENT_BRUSH;
extern wxBrush *wxCYAN_BRUSH;
extern wxBrush *wxRED_BRUSH;
extern wxBrush *wxGREY_BRUSH;
extern wxBrush *wxMEDIUM_GREY_BRUSH;
extern wxBrush *wxLIGHT_GREY_BRUSH;
extern wxColour *wxBLACK;
extern wxColour *wxWHITE;
extern wxColour *wxRED;
extern wxColour *wxBLUE;
extern wxColour *wxGREEN;
extern wxColour *wxCYAN;
extern wxColour *wxLIGHT_GREY;
extern wxCursor *wxSTANDARD_CURSOR;
extern wxCursor *wxHOURGLASS_CURSOR;
extern wxCursor *wxCROSS_CURSOR;
extern wxBitmap wxNullBitmap;
extern wxIcon wxNullIcon;
extern wxCursor wxNullCursor;
extern wxPen wxNullPen;
extern wxBrush wxNullBrush;
extern wxPalette wxNullPalette;
extern wxFont wxNullFont;
extern wxColour wxNullColour;
//---------------------------------------------------------------------------
class wxPalette {
public:
wxPalette(int LCOUNT, byte* LIST, byte* LIST, byte* LIST);
~wxPalette();
int GetPixel(byte red, byte green, byte blue);
bool GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT);
bool Ok();
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.12 1999/01/30 07:30:11 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.11 1998/12/18 15:49:05 RR
//
// wxClipboard now serves the primary selection as well
// wxPython fixes
// warning mesages
//
// Revision 1.10 1998/12/17 18:05:50 RD
//
// wxPython 0.5.2
// Minor fixes and SWIG code generation for RR's changes. MSW and GTK
// versions are much closer now!
//
// Revision 1.9 1998/12/17 14:07:37 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.8 1998/12/16 22:10:54 RD
//
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.7 1998/12/15 20:41:18 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.6 1998/11/25 08:45:24 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.5 1998/10/20 06:43:57 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.4 1998/10/02 06:40:38 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:16 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:35 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:50 RD
// Initial version
//
//

File diff suppressed because it is too large Load Diff

View File

@@ -1,592 +0,0 @@
# This file was created automatically by SWIG.
import cmndlgsc
from misc import *
from gdi import *
from windows import *
import wx
class wxColourDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxColourData(self.this)
def GetChooseFull(self):
val = cmndlgsc.wxColourData_GetChooseFull(self.this)
return val
def GetColour(self):
val = cmndlgsc.wxColourData_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetCustomColour(self,arg0):
val = cmndlgsc.wxColourData_GetCustomColour(self.this,arg0)
val = wxColourPtr(val)
val.thisown = 1
return val
def SetChooseFull(self,arg0):
val = cmndlgsc.wxColourData_SetChooseFull(self.this,arg0)
return val
def SetColour(self,arg0):
val = cmndlgsc.wxColourData_SetColour(self.this,arg0.this)
return val
def SetCustomColour(self,arg0,arg1):
val = cmndlgsc.wxColourData_SetCustomColour(self.this,arg0,arg1.this)
return val
def __repr__(self):
return "<C wxColourData instance>"
class wxColourData(wxColourDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxColourData()
self.thisown = 1
class wxColourDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetColourData(self):
val = cmndlgsc.wxColourDialog_GetColourData(self.this)
val = wxColourDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxColourDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxColourDialog instance>"
class wxColourDialog(wxColourDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxDirDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPath(self):
val = cmndlgsc.wxDirDialog_GetPath(self.this)
return val
def GetMessage(self):
val = cmndlgsc.wxDirDialog_GetMessage(self.this)
return val
def GetStyle(self):
val = cmndlgsc.wxDirDialog_GetStyle(self.this)
return val
def SetMessage(self,arg0):
val = cmndlgsc.wxDirDialog_SetMessage(self.this,arg0)
return val
def SetPath(self,arg0):
val = cmndlgsc.wxDirDialog_SetPath(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxDirDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxDirDialog instance>"
class wxDirDialog(wxDirDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[3] = argl[3].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxFileDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDirectory(self):
val = cmndlgsc.wxFileDialog_GetDirectory(self.this)
return val
def GetFilename(self):
val = cmndlgsc.wxFileDialog_GetFilename(self.this)
return val
def GetFilterIndex(self):
val = cmndlgsc.wxFileDialog_GetFilterIndex(self.this)
return val
def GetMessage(self):
val = cmndlgsc.wxFileDialog_GetMessage(self.this)
return val
def GetPath(self):
val = cmndlgsc.wxFileDialog_GetPath(self.this)
return val
def GetStyle(self):
val = cmndlgsc.wxFileDialog_GetStyle(self.this)
return val
def GetWildcard(self):
val = cmndlgsc.wxFileDialog_GetWildcard(self.this)
return val
def SetDirectory(self,arg0):
val = cmndlgsc.wxFileDialog_SetDirectory(self.this,arg0)
return val
def SetFilename(self,arg0):
val = cmndlgsc.wxFileDialog_SetFilename(self.this,arg0)
return val
def SetFilterIndex(self,arg0):
val = cmndlgsc.wxFileDialog_SetFilterIndex(self.this,arg0)
return val
def SetMessage(self,arg0):
val = cmndlgsc.wxFileDialog_SetMessage(self.this,arg0)
return val
def SetPath(self,arg0):
val = cmndlgsc.wxFileDialog_SetPath(self.this,arg0)
return val
def SetStyle(self,arg0):
val = cmndlgsc.wxFileDialog_SetStyle(self.this,arg0)
return val
def SetWildcard(self,arg0):
val = cmndlgsc.wxFileDialog_SetWildcard(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxFileDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxFileDialog instance>"
class wxFileDialog(wxFileDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[5] = argl[5].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxSingleChoiceDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSelection(self):
val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self.this)
return val
def GetStringSelection(self):
val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self.this)
return val
def SetSelection(self,arg0):
val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxSingleChoiceDialog instance>"
class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
def __init__(self,arg0,arg1,arg2,arg3,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxTextEntryDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = cmndlgsc.wxTextEntryDialog_GetValue(self.this)
return val
def SetValue(self,arg0):
val = cmndlgsc.wxTextEntryDialog_SetValue(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxTextEntryDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxTextEntryDialog instance>"
class wxTextEntryDialog(wxTextEntryDialogPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[3] = argl[3].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxFontDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxFontData(self.this)
def EnableEffects(self,arg0):
val = cmndlgsc.wxFontData_EnableEffects(self.this,arg0)
return val
def GetAllowSymbols(self):
val = cmndlgsc.wxFontData_GetAllowSymbols(self.this)
return val
def GetColour(self):
val = cmndlgsc.wxFontData_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetChosenFont(self):
val = cmndlgsc.wxFontData_GetChosenFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetEnableEffects(self):
val = cmndlgsc.wxFontData_GetEnableEffects(self.this)
return val
def GetInitialFont(self):
val = cmndlgsc.wxFontData_GetInitialFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetShowHelp(self):
val = cmndlgsc.wxFontData_GetShowHelp(self.this)
return val
def SetAllowSymbols(self,arg0):
val = cmndlgsc.wxFontData_SetAllowSymbols(self.this,arg0)
return val
def SetChosenFont(self,arg0):
val = cmndlgsc.wxFontData_SetChosenFont(self.this,arg0.this)
return val
def SetColour(self,arg0):
val = cmndlgsc.wxFontData_SetColour(self.this,arg0.this)
return val
def SetInitialFont(self,arg0):
val = cmndlgsc.wxFontData_SetInitialFont(self.this,arg0.this)
return val
def SetRange(self,arg0,arg1):
val = cmndlgsc.wxFontData_SetRange(self.this,arg0,arg1)
return val
def SetShowHelp(self,arg0):
val = cmndlgsc.wxFontData_SetShowHelp(self.this,arg0)
return val
def __repr__(self):
return "<C wxFontData instance>"
class wxFontData(wxFontDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxFontData()
self.thisown = 1
class wxFontDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFontData(self):
val = cmndlgsc.wxFontDialog_GetFontData(self.this)
val = wxFontDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxFontDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxFontDialog instance>"
class wxFontDialog(wxFontDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxPageSetupDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxPageSetupData(self.this)
def EnableHelp(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableHelp(self.this,arg0)
return val
def EnableMargins(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableMargins(self.this,arg0)
return val
def EnableOrientation(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableOrientation(self.this,arg0)
return val
def EnablePaper(self,arg0):
val = cmndlgsc.wxPageSetupData_EnablePaper(self.this,arg0)
return val
def EnablePrinter(self,arg0):
val = cmndlgsc.wxPageSetupData_EnablePrinter(self.this,arg0)
return val
def GetPaperSize(self):
val = cmndlgsc.wxPageSetupData_GetPaperSize(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMarginTopLeft(self):
val = cmndlgsc.wxPageSetupData_GetMarginTopLeft(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMarginBottomRight(self):
val = cmndlgsc.wxPageSetupData_GetMarginBottomRight(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMinMarginTopLeft(self):
val = cmndlgsc.wxPageSetupData_GetMinMarginTopLeft(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMinMarginBottomRight(self):
val = cmndlgsc.wxPageSetupData_GetMinMarginBottomRight(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetOrientation(self):
val = cmndlgsc.wxPageSetupData_GetOrientation(self.this)
return val
def GetDefaultMinMargins(self):
val = cmndlgsc.wxPageSetupData_GetDefaultMinMargins(self.this)
return val
def GetEnableMargins(self):
val = cmndlgsc.wxPageSetupData_GetEnableMargins(self.this)
return val
def GetEnableOrientation(self):
val = cmndlgsc.wxPageSetupData_GetEnableOrientation(self.this)
return val
def GetEnablePaper(self):
val = cmndlgsc.wxPageSetupData_GetEnablePaper(self.this)
return val
def GetEnablePrinter(self):
val = cmndlgsc.wxPageSetupData_GetEnablePrinter(self.this)
return val
def GetEnableHelp(self):
val = cmndlgsc.wxPageSetupData_GetEnableHelp(self.this)
return val
def GetDefaultInfo(self):
val = cmndlgsc.wxPageSetupData_GetDefaultInfo(self.this)
return val
def SetPaperSize(self,arg0):
val = cmndlgsc.wxPageSetupData_SetPaperSize(self.this,arg0.this)
return val
def SetMarginTopLeft(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMarginTopLeft(self.this,arg0.this)
return val
def SetMarginBottomRight(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMarginBottomRight(self.this,arg0.this)
return val
def SetMinMarginTopLeft(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMinMarginTopLeft(self.this,arg0.this)
return val
def SetMinMarginBottomRight(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMinMarginBottomRight(self.this,arg0.this)
return val
def SetOrientation(self,arg0):
val = cmndlgsc.wxPageSetupData_SetOrientation(self.this,arg0)
return val
def SetDefaultMinMargins(self,arg0):
val = cmndlgsc.wxPageSetupData_SetDefaultMinMargins(self.this,arg0)
return val
def SetDefaultInfo(self,arg0):
val = cmndlgsc.wxPageSetupData_SetDefaultInfo(self.this,arg0)
return val
def __repr__(self):
return "<C wxPageSetupData instance>"
class wxPageSetupData(wxPageSetupDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxPageSetupData()
self.thisown = 1
class wxPageSetupDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPageSetupData(self):
val = cmndlgsc.wxPageSetupDialog_GetPageSetupData(self.this)
val = wxPageSetupDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxPageSetupDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxPageSetupDialog instance>"
class wxPageSetupDialog(wxPageSetupDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxPrintDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxPrintData(self.this)
def EnableHelp(self,arg0):
val = cmndlgsc.wxPrintData_EnableHelp(self.this,arg0)
return val
def EnablePageNumbers(self,arg0):
val = cmndlgsc.wxPrintData_EnablePageNumbers(self.this,arg0)
return val
def EnablePrintToFile(self,arg0):
val = cmndlgsc.wxPrintData_EnablePrintToFile(self.this,arg0)
return val
def EnableSelection(self,arg0):
val = cmndlgsc.wxPrintData_EnableSelection(self.this,arg0)
return val
def GetAllPages(self):
val = cmndlgsc.wxPrintData_GetAllPages(self.this)
return val
def GetCollate(self):
val = cmndlgsc.wxPrintData_GetCollate(self.this)
return val
def GetFromPage(self):
val = cmndlgsc.wxPrintData_GetFromPage(self.this)
return val
def GetMaxPage(self):
val = cmndlgsc.wxPrintData_GetMaxPage(self.this)
return val
def GetMinPage(self):
val = cmndlgsc.wxPrintData_GetMinPage(self.this)
return val
def GetNoCopies(self):
val = cmndlgsc.wxPrintData_GetNoCopies(self.this)
return val
def GetOrientation(self):
val = cmndlgsc.wxPrintData_GetOrientation(self.this)
return val
def GetToPage(self):
val = cmndlgsc.wxPrintData_GetToPage(self.this)
return val
def SetCollate(self,arg0):
val = cmndlgsc.wxPrintData_SetCollate(self.this,arg0)
return val
def SetFromPage(self,arg0):
val = cmndlgsc.wxPrintData_SetFromPage(self.this,arg0)
return val
def SetMaxPage(self,arg0):
val = cmndlgsc.wxPrintData_SetMaxPage(self.this,arg0)
return val
def SetMinPage(self,arg0):
val = cmndlgsc.wxPrintData_SetMinPage(self.this,arg0)
return val
def SetOrientation(self,arg0):
val = cmndlgsc.wxPrintData_SetOrientation(self.this,arg0)
return val
def SetNoCopies(self,arg0):
val = cmndlgsc.wxPrintData_SetNoCopies(self.this,arg0)
return val
def SetPrintToFile(self,arg0):
val = cmndlgsc.wxPrintData_SetPrintToFile(self.this,arg0)
return val
def SetSetupDialog(self,arg0):
val = cmndlgsc.wxPrintData_SetSetupDialog(self.this,arg0)
return val
def SetToPage(self,arg0):
val = cmndlgsc.wxPrintData_SetToPage(self.this,arg0)
return val
def __repr__(self):
return "<C wxPrintData instance>"
class wxPrintData(wxPrintDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxPrintData()
self.thisown = 1
class wxPrintDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPrintData(self):
val = cmndlgsc.wxPrintDialog_GetPrintData(self.this)
val = wxPrintDataPtr(val)
return val
def GetPrintDC(self):
val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this)
val = wxDCPtr(val)
val.thisown = 1
return val
def ShowModal(self):
val = cmndlgsc.wxPrintDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxPrintDialog instance>"
class wxPrintDialog(wxPrintDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxMessageDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ShowModal(self):
val = cmndlgsc.wxMessageDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxMessageDialog instance>"
class wxMessageDialog(wxMessageDialogPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,836 +0,0 @@
# This file was created automatically by SWIG.
import controlsc
from misc import *
from windows import *
from gdi import *
from events import *
import wx
class wxControlPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Command(self,arg0):
val = controlsc.wxControl_Command(self.this,arg0.this)
return val
def GetLabel(self):
val = controlsc.wxControl_GetLabel(self.this)
return val
def SetLabel(self,arg0):
val = controlsc.wxControl_SetLabel(self.this,arg0)
return val
def __repr__(self):
return "<C wxControl instance>"
class wxControl(wxControlPtr):
def __init__(self,this):
self.this = this
class wxButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetDefault(self):
val = controlsc.wxButton_SetDefault(self.this)
return val
def __repr__(self):
return "<C wxButton instance>"
class wxButton(wxButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxButton,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxBitmapButtonPtr(wxButtonPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBitmapLabel(self):
val = controlsc.wxBitmapButton_GetBitmapLabel(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapDisabled(self):
val = controlsc.wxBitmapButton_GetBitmapDisabled(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapFocus(self):
val = controlsc.wxBitmapButton_GetBitmapFocus(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapSelected(self):
val = controlsc.wxBitmapButton_GetBitmapSelected(self.this)
val = wxBitmapPtr(val)
return val
def SetBitmapDisabled(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapDisabled(self.this,arg0.this)
return val
def SetBitmapFocus(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapFocus(self.this,arg0.this)
return val
def SetBitmapSelected(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapSelected(self.this,arg0.this)
return val
def SetBitmapLabel(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapLabel(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxBitmapButton instance>"
class wxBitmapButton(wxBitmapButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxBitmapButton,(arg0.this,arg1,arg2.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxCheckBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = controlsc.wxCheckBox_GetValue(self.this)
return val
def SetValue(self,arg0):
val = controlsc.wxCheckBox_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxCheckBox instance>"
class wxCheckBox(wxCheckBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxCheckBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxChoicePtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxChoice_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxChoice_Clear(self.this)
return val
def FindString(self,arg0):
val = controlsc.wxChoice_FindString(self.this,arg0)
return val
def GetColumns(self):
val = controlsc.wxChoice_GetColumns(self.this)
return val
def GetSelection(self):
val = controlsc.wxChoice_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxChoice_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxChoice_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxChoice_Number(self.this)
return val
def SetColumns(self,*args):
val = apply(controlsc.wxChoice_SetColumns,(self.this,)+args)
return val
def SetSelection(self,arg0):
val = controlsc.wxChoice_SetSelection(self.this,arg0)
return val
def SetStringSelection(self,arg0):
val = controlsc.wxChoice_SetStringSelection(self.this,arg0)
return val
def __repr__(self):
return "<C wxChoice instance>"
class wxChoice(wxChoicePtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxChoice,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxComboBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxComboBox_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxComboBox_Clear(self.this)
return val
def Copy(self):
val = controlsc.wxComboBox_Copy(self.this)
return val
def Cut(self):
val = controlsc.wxComboBox_Cut(self.this)
return val
def Delete(self,arg0):
val = controlsc.wxComboBox_Delete(self.this,arg0)
return val
def FindString(self,arg0):
val = controlsc.wxComboBox_FindString(self.this,arg0)
return val
def GetInsertionPoint(self):
val = controlsc.wxComboBox_GetInsertionPoint(self.this)
return val
def GetLastPosition(self):
val = controlsc.wxComboBox_GetLastPosition(self.this)
return val
def GetSelection(self):
val = controlsc.wxComboBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxComboBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxComboBox_GetStringSelection(self.this)
return val
def GetValue(self):
val = controlsc.wxComboBox_GetValue(self.this)
return val
def Number(self):
val = controlsc.wxComboBox_Number(self.this)
return val
def Paste(self):
val = controlsc.wxComboBox_Paste(self.this)
return val
def Replace(self,arg0,arg1,arg2):
val = controlsc.wxComboBox_Replace(self.this,arg0,arg1,arg2)
return val
def Remove(self,arg0,arg1):
val = controlsc.wxComboBox_Remove(self.this,arg0,arg1)
return val
def SetInsertionPoint(self,arg0):
val = controlsc.wxComboBox_SetInsertionPoint(self.this,arg0)
return val
def SetInsertionPointEnd(self):
val = controlsc.wxComboBox_SetInsertionPointEnd(self.this)
return val
def SetSelection(self,arg0,*args):
val = apply(controlsc.wxComboBox_SetSelection,(self.this,arg0,)+args)
return val
def SetMark(self,arg0,arg1):
val = controlsc.wxComboBox_SetMark(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxComboBox_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxComboBox instance>"
class wxComboBox(wxComboBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxComboBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxGaugePtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBezelFace(self):
val = controlsc.wxGauge_GetBezelFace(self.this)
return val
def GetRange(self):
val = controlsc.wxGauge_GetRange(self.this)
return val
def GetShadowWidth(self):
val = controlsc.wxGauge_GetShadowWidth(self.this)
return val
def GetValue(self):
val = controlsc.wxGauge_GetValue(self.this)
return val
def SetBezelFace(self,arg0):
val = controlsc.wxGauge_SetBezelFace(self.this,arg0)
return val
def SetRange(self,arg0):
val = controlsc.wxGauge_SetRange(self.this,arg0)
return val
def SetShadowWidth(self,arg0):
val = controlsc.wxGauge_SetShadowWidth(self.this,arg0)
return val
def SetValue(self,arg0):
val = controlsc.wxGauge_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxGauge instance>"
class wxGauge(wxGaugePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxGauge,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxStaticBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxStaticBox instance>"
class wxStaticBox(wxStaticBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
class wxStaticTextPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetLabel(self):
val = controlsc.wxStaticText_GetLabel(self.this)
return val
def SetLabel(self,arg0):
val = controlsc.wxStaticText_SetLabel(self.this,arg0)
return val
def __repr__(self):
return "<C wxStaticText instance>"
class wxStaticText(wxStaticTextPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticText,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxListBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxListBox_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxListBox_Clear(self.this)
return val
def Delete(self,arg0):
val = controlsc.wxListBox_Delete(self.this,arg0)
return val
def Deselect(self,arg0):
val = controlsc.wxListBox_Deselect(self.this,arg0)
return val
def FindString(self,arg0):
val = controlsc.wxListBox_FindString(self.this,arg0)
return val
def GetSelection(self):
val = controlsc.wxListBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxListBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxListBox_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxListBox_Number(self.this)
return val
def Selected(self,arg0):
val = controlsc.wxListBox_Selected(self.this,arg0)
return val
def Set(self,arg0,*args):
val = apply(controlsc.wxListBox_Set,(self.this,arg0,)+args)
return val
def SetFirstItem(self,arg0):
val = controlsc.wxListBox_SetFirstItem(self.this,arg0)
return val
def SetFirstItemStr(self,arg0):
val = controlsc.wxListBox_SetFirstItemStr(self.this,arg0)
return val
def SetSelection(self,arg0,*args):
val = apply(controlsc.wxListBox_SetSelection,(self.this,arg0,)+args)
return val
def SetString(self,arg0,arg1):
val = controlsc.wxListBox_SetString(self.this,arg0,arg1)
return val
def SetStringSelection(self,arg0,*args):
val = apply(controlsc.wxListBox_SetStringSelection,(self.this,arg0,)+args)
return val
def __repr__(self):
return "<C wxListBox instance>"
class wxListBox(wxListBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxListBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxCheckListBoxPtr(wxListBoxPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def IsChecked(self,arg0):
val = controlsc.wxCheckListBox_IsChecked(self.this,arg0)
return val
def Check(self,arg0,*args):
val = apply(controlsc.wxCheckListBox_Check,(self.this,arg0,)+args)
return val
def GetItemHeight(self):
val = controlsc.wxCheckListBox_GetItemHeight(self.this)
return val
def __repr__(self):
return "<C wxCheckListBox instance>"
class wxCheckListBox(wxCheckListBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxCheckListBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxTextCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Clear(self):
val = controlsc.wxTextCtrl_Clear(self.this)
return val
def Copy(self):
val = controlsc.wxTextCtrl_Copy(self.this)
return val
def Cut(self):
val = controlsc.wxTextCtrl_Cut(self.this)
return val
def DiscardEdits(self):
val = controlsc.wxTextCtrl_DiscardEdits(self.this)
return val
def GetInsertionPoint(self):
val = controlsc.wxTextCtrl_GetInsertionPoint(self.this)
return val
def GetLastPosition(self):
val = controlsc.wxTextCtrl_GetLastPosition(self.this)
return val
def GetLineLength(self,arg0):
val = controlsc.wxTextCtrl_GetLineLength(self.this,arg0)
return val
def GetLineText(self,arg0):
val = controlsc.wxTextCtrl_GetLineText(self.this,arg0)
return val
def GetNumberOfLines(self):
val = controlsc.wxTextCtrl_GetNumberOfLines(self.this)
return val
def GetValue(self):
val = controlsc.wxTextCtrl_GetValue(self.this)
return val
def IsModified(self):
val = controlsc.wxTextCtrl_IsModified(self.this)
return val
def LoadFile(self,arg0):
val = controlsc.wxTextCtrl_LoadFile(self.this,arg0)
return val
def Paste(self):
val = controlsc.wxTextCtrl_Paste(self.this)
return val
def PositionToXY(self,arg0):
val = controlsc.wxTextCtrl_PositionToXY(self.this,arg0)
return val
def Remove(self,arg0,arg1):
val = controlsc.wxTextCtrl_Remove(self.this,arg0,arg1)
return val
def Replace(self,arg0,arg1,arg2):
val = controlsc.wxTextCtrl_Replace(self.this,arg0,arg1,arg2)
return val
def SaveFile(self,arg0):
val = controlsc.wxTextCtrl_SaveFile(self.this,arg0)
return val
def SetEditable(self,arg0):
val = controlsc.wxTextCtrl_SetEditable(self.this,arg0)
return val
def SetInsertionPoint(self,arg0):
val = controlsc.wxTextCtrl_SetInsertionPoint(self.this,arg0)
return val
def SetInsertionPointEnd(self):
val = controlsc.wxTextCtrl_SetInsertionPointEnd(self.this)
return val
def SetSelection(self,arg0,arg1):
val = controlsc.wxTextCtrl_SetSelection(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxTextCtrl_SetValue(self.this,arg0)
return val
def ShowPosition(self,arg0):
val = controlsc.wxTextCtrl_ShowPosition(self.this,arg0)
return val
def WriteText(self,arg0):
val = controlsc.wxTextCtrl_WriteText(self.this,arg0)
return val
def XYToPosition(self,arg0,arg1):
val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxTextCtrl instance>"
class wxTextCtrl(wxTextCtrlPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxTextCtrl,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxScrollBarPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetRange(self):
val = controlsc.wxScrollBar_GetRange(self.this)
return val
def GetPageSize(self):
val = controlsc.wxScrollBar_GetPageSize(self.this)
return val
def GetThumbPosition(self):
val = controlsc.wxScrollBar_GetThumbPosition(self.this)
return val
def GetThumbSize(self):
val = controlsc.wxScrollBar_GetThumbSize(self.this)
return val
def SetThumbPosition(self,arg0):
val = controlsc.wxScrollBar_SetThumbPosition(self.this,arg0)
return val
def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
val = apply(controlsc.wxScrollBar_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def __repr__(self):
return "<C wxScrollBar instance>"
class wxScrollBar(wxScrollBarPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxScrollBar,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSpinButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMax(self):
val = controlsc.wxSpinButton_GetMax(self.this)
return val
def GetMin(self):
val = controlsc.wxSpinButton_GetMin(self.this)
return val
def GetValue(self):
val = controlsc.wxSpinButton_GetValue(self.this)
return val
def SetRange(self,arg0,arg1):
val = controlsc.wxSpinButton_SetRange(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxSpinButton_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxSpinButton instance>"
class wxSpinButton(wxSpinButtonPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args)
self.thisown = 1
class wxStaticBitmapPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBitmap(self):
val = controlsc.wxStaticBitmap_GetBitmap(self.this)
val = wxBitmapPtr(val)
return val
def SetBitmap(self,arg0):
val = controlsc.wxStaticBitmap_SetBitmap(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxStaticBitmap instance>"
class wxStaticBitmap(wxStaticBitmapPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticBitmap,(arg0.this,arg1,arg2.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxRadioBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def EnableBox(self,arg0):
val = controlsc.wxRadioBox_EnableBox(self.this,arg0)
return val
def Enable(self,arg0,arg1):
val = controlsc.wxRadioBox_Enable(self.this,arg0,arg1)
return val
def FindString(self,arg0):
val = controlsc.wxRadioBox_FindString(self.this,arg0)
return val
def GetLabel(self,arg0):
val = controlsc.wxRadioBox_GetLabel(self.this,arg0)
return val
def GetSelection(self):
val = controlsc.wxRadioBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxRadioBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxRadioBox_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxRadioBox_Number(self.this)
return val
def SetBoxLabel(self,arg0):
val = controlsc.wxRadioBox_SetBoxLabel(self.this,arg0)
return val
def SetLabel(self,arg0,arg1):
val = controlsc.wxRadioBox_SetLabel(self.this,arg0,arg1)
return val
def SetSelection(self,arg0):
val = controlsc.wxRadioBox_SetSelection(self.this,arg0)
return val
def SetStringSelection(self,arg0):
val = controlsc.wxRadioBox_SetStringSelection(self.this,arg0)
return val
def Show(self,arg0):
val = controlsc.wxRadioBox_Show(self.this,arg0)
return val
def ShowItem(self,arg0,arg1):
val = controlsc.wxRadioBox_ShowItem(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxRadioBox instance>"
class wxRadioBox(wxRadioBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxRadioBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxRadioButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = controlsc.wxRadioButton_GetValue(self.this)
return val
def SetValue(self,arg0):
val = controlsc.wxRadioButton_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxRadioButton instance>"
class wxRadioButton(wxRadioButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxRadioButton,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSliderPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ClearSel(self):
val = controlsc.wxSlider_ClearSel(self.this)
return val
def ClearTicks(self):
val = controlsc.wxSlider_ClearTicks(self.this)
return val
def GetLineSize(self):
val = controlsc.wxSlider_GetLineSize(self.this)
return val
def GetMax(self):
val = controlsc.wxSlider_GetMax(self.this)
return val
def GetMin(self):
val = controlsc.wxSlider_GetMin(self.this)
return val
def GetPageSize(self):
val = controlsc.wxSlider_GetPageSize(self.this)
return val
def GetSelEnd(self):
val = controlsc.wxSlider_GetSelEnd(self.this)
return val
def GetSelStart(self):
val = controlsc.wxSlider_GetSelStart(self.this)
return val
def GetThumbLength(self):
val = controlsc.wxSlider_GetThumbLength(self.this)
return val
def GetTickFreq(self):
val = controlsc.wxSlider_GetTickFreq(self.this)
return val
def GetValue(self):
val = controlsc.wxSlider_GetValue(self.this)
return val
def SetRange(self,arg0,arg1):
val = controlsc.wxSlider_SetRange(self.this,arg0,arg1)
return val
def SetTickFreq(self,arg0,arg1):
val = controlsc.wxSlider_SetTickFreq(self.this,arg0,arg1)
return val
def SetLineSize(self,arg0):
val = controlsc.wxSlider_SetLineSize(self.this,arg0)
return val
def SetPageSize(self,arg0):
val = controlsc.wxSlider_SetPageSize(self.this,arg0)
return val
def SetSelection(self,arg0,arg1):
val = controlsc.wxSlider_SetSelection(self.this,arg0,arg1)
return val
def SetThumbLength(self,arg0):
val = controlsc.wxSlider_SetThumbLength(self.this,arg0)
return val
def SetTick(self,arg0):
val = controlsc.wxSlider_SetTick(self.this,arg0)
return val
def SetValue(self,arg0):
val = controlsc.wxSlider_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxSlider instance>"
class wxSlider(wxSliderPtr):
def __init__(self,arg0,arg1,arg2,arg3,arg4,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSlider,(arg0.this,arg1,arg2,arg3,arg4,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,606 +0,0 @@
# This file was created automatically by SWIG.
import controls2c
from misc import *
from windows import *
from gdi import *
from events import *
from controls import *
import wx
class wxListItemPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxListItem(self.this)
def __setattr__(self,name,value):
if name == "m_mask" :
controls2c.wxListItem_m_mask_set(self.this,value)
return
if name == "m_itemId" :
controls2c.wxListItem_m_itemId_set(self.this,value)
return
if name == "m_col" :
controls2c.wxListItem_m_col_set(self.this,value)
return
if name == "m_state" :
controls2c.wxListItem_m_state_set(self.this,value)
return
if name == "m_stateMask" :
controls2c.wxListItem_m_stateMask_set(self.this,value)
return
if name == "m_text" :
controls2c.wxListItem_m_text_set(self.this,value)
return
if name == "m_image" :
controls2c.wxListItem_m_image_set(self.this,value)
return
if name == "m_data" :
controls2c.wxListItem_m_data_set(self.this,value)
return
if name == "m_format" :
controls2c.wxListItem_m_format_set(self.this,value)
return
if name == "m_width" :
controls2c.wxListItem_m_width_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_mask" :
return controls2c.wxListItem_m_mask_get(self.this)
if name == "m_itemId" :
return controls2c.wxListItem_m_itemId_get(self.this)
if name == "m_col" :
return controls2c.wxListItem_m_col_get(self.this)
if name == "m_state" :
return controls2c.wxListItem_m_state_get(self.this)
if name == "m_stateMask" :
return controls2c.wxListItem_m_stateMask_get(self.this)
if name == "m_text" :
return controls2c.wxListItem_m_text_get(self.this)
if name == "m_image" :
return controls2c.wxListItem_m_image_get(self.this)
if name == "m_data" :
return controls2c.wxListItem_m_data_get(self.this)
if name == "m_format" :
return controls2c.wxListItem_m_format_get(self.this)
if name == "m_width" :
return controls2c.wxListItem_m_width_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxListItem instance>"
class wxListItem(wxListItemPtr):
def __init__(self) :
self.this = controls2c.new_wxListItem()
self.thisown = 1
class wxListEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "m_code" :
controls2c.wxListEvent_m_code_set(self.this,value)
return
if name == "m_itemIndex" :
controls2c.wxListEvent_m_itemIndex_set(self.this,value)
return
if name == "m_oldItemIndex" :
controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
return
if name == "m_col" :
controls2c.wxListEvent_m_col_set(self.this,value)
return
if name == "m_cancelled" :
controls2c.wxListEvent_m_cancelled_set(self.this,value)
return
if name == "m_pointDrag" :
controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
return
if name == "m_item" :
controls2c.wxListEvent_m_item_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_code" :
return controls2c.wxListEvent_m_code_get(self.this)
if name == "m_itemIndex" :
return controls2c.wxListEvent_m_itemIndex_get(self.this)
if name == "m_oldItemIndex" :
return controls2c.wxListEvent_m_oldItemIndex_get(self.this)
if name == "m_col" :
return controls2c.wxListEvent_m_col_get(self.this)
if name == "m_cancelled" :
return controls2c.wxListEvent_m_cancelled_get(self.this)
if name == "m_pointDrag" :
return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self.this))
if name == "m_item" :
return wxListItemPtr(controls2c.wxListEvent_m_item_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxListEvent instance>"
class wxListEvent(wxListEventPtr):
def __init__(self,this):
self.this = this
class wxListCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Arrange(self,*args):
val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
return val
def DeleteItem(self,arg0):
val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
return val
def DeleteAllItems(self):
val = controls2c.wxListCtrl_DeleteAllItems(self.this)
return val
def DeleteColumn(self,arg0):
val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
return val
def DeleteAllColumns(self):
val = controls2c.wxListCtrl_DeleteAllColumns(self.this)
return val
def ClearAll(self):
val = controls2c.wxListCtrl_ClearAll(self.this)
return val
def EnsureVisible(self,arg0):
val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
return val
def FindItem(self,arg0,arg1,*args):
val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
return val
def FindItemData(self,arg0,arg1):
val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
return val
def FindItemAtPos(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
return val
def GetColumn(self,arg0,arg1):
val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
return val
def GetColumnWidth(self,arg0):
val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
return val
def GetCountPerPage(self):
val = controls2c.wxListCtrl_GetCountPerPage(self.this)
return val
def GetImageList(self,arg0):
val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
return val
def GetItemData(self,arg0):
val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
return val
def GetItem(self):
val = controls2c.wxListCtrl_GetItem(self.this)
val = wxListItemPtr(val)
val.thisown = 1
return val
def GetItemPosition(self,arg0):
val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetItemRect(self,arg0,*args):
val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetItemState(self,arg0,arg1):
val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
return val
def GetItemCount(self):
val = controls2c.wxListCtrl_GetItemCount(self.this)
return val
def GetItemSpacing(self,arg0):
val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
return val
def GetItemText(self,arg0):
val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
return val
def GetNextItem(self,arg0,*args):
val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
return val
def GetSelectedItemCount(self):
val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
return val
def GetTopItem(self):
val = controls2c.wxListCtrl_GetTopItem(self.this)
return val
def HitTest(self,arg0):
val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
return val
def InsertColumnWithInfo(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this)
return val
def InsertColumn(self,arg0,arg1,*args):
val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
return val
def InsertItem(self,arg0):
val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
return val
def InsertStringItem(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
return val
def InsertImageItem(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
return val
def InsertImageStringItem(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
return val
def ScrollList(self,arg0,arg1):
val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
return val
def SetBackgroundColour(self,arg0):
val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
return val
def SetColumn(self,arg0,arg1):
val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
return val
def SetColumnWidth(self,arg0,arg1):
val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
return val
def SetImageList(self,arg0,arg1):
val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1)
return val
def SetItem(self,arg0):
val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
return val
def SetItemString(self,arg0,arg1,arg2,*args):
val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args)
return val
def SetItemData(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
return val
def SetItemImage(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
return val
def SetItemPosition(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
return val
def SetItemState(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
return val
def SetItemText(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
return val
def SetSingleStyle(self,arg0,*args):
val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
return val
def SetWindowStyleFlag(self,arg0):
val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
return val
def __repr__(self):
return "<C wxListCtrl instance>"
class wxListCtrl(wxListCtrlPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxTreeItemIdPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxTreeItemId(self.this)
def IsOk(self):
val = controls2c.wxTreeItemId_IsOk(self.this)
return val
def __repr__(self):
return "<C wxTreeItemId instance>"
class wxTreeItemId(wxTreeItemIdPtr):
def __init__(self) :
self.this = controls2c.new_wxTreeItemId()
self.thisown = 1
class wxTreeItemDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxTreeItemData(self.this)
def GetId(self):
val = controls2c.wxTreeItemData_GetId(self.this)
val = wxTreeItemIdPtr(val)
return val
def SetId(self,arg0):
val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxTreeItemData instance>"
class wxTreeItemData(wxTreeItemDataPtr):
def __init__(self) :
self.this = controls2c.new_wxTreeItemData()
self.thisown = 1
class wxTreeEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetItem(self):
val = controls2c.wxTreeEvent_GetItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetOldItem(self):
val = controls2c.wxTreeEvent_GetOldItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPoint(self):
val = controls2c.wxTreeEvent_GetPoint(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetCode(self):
val = controls2c.wxTreeEvent_GetCode(self.this)
return val
def Veto(self):
val = controls2c.wxTreeEvent_Veto(self.this)
return val
def __repr__(self):
return "<C wxTreeEvent instance>"
class wxTreeEvent(wxTreeEventPtr):
def __init__(self,this):
self.this = this
class wxTreeCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetCount(self):
val = controls2c.wxTreeCtrl_GetCount(self.this)
return val
def GetIndent(self):
val = controls2c.wxTreeCtrl_GetIndent(self.this)
return val
def SetIndent(self,arg0):
val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
return val
def GetImageList(self):
val = controls2c.wxTreeCtrl_GetImageList(self.this)
return val
def GetStateImageList(self):
val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
return val
def SetImageList(self,arg0):
val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0)
return val
def SetStateImageList(self,arg0):
val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0)
return val
def GetItemText(self,arg0):
val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
return val
def GetItemImage(self,arg0):
val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
return val
def GetItemSelectedImage(self,arg0):
val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
return val
def GetItemData(self,arg0):
val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
val = wxTreeItemDataPtr(val)
return val
def SetItemText(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
return val
def SetItemImage(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
return val
def SetItemSelectedImage(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
return val
def SetItemData(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
return val
def SetItemHasChildren(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
return val
def IsVisible(self,arg0):
val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
return val
def ItemHasChildren(self,arg0):
val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
return val
def IsExpanded(self,arg0):
val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
return val
def IsSelected(self,arg0):
val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
return val
def GetRootItem(self):
val = controls2c.wxTreeCtrl_GetRootItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetSelection(self):
val = controls2c.wxTreeCtrl_GetSelection(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetParent(self,arg0):
val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetFirstChild(self,arg0,arg1):
val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
return val
def GetNextChild(self,arg0,arg1):
val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
return val
def GetNextSibling(self,arg0):
val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPrevSibling(self,arg0):
val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetFirstVisibleItem(self):
val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetNextVisible(self,arg0):
val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPrevVisible(self,arg0):
val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def AddRoot(self,arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def PrependItem(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def InsertItem(self,arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def AppendItem(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def Delete(self,arg0):
val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
return val
def DeleteChildren(self,arg0):
val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
return val
def DeleteAllItems(self):
val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
return val
def Expand(self,arg0):
val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
return val
def Collapse(self,arg0):
val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
return val
def CollapseAndReset(self,arg0):
val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
return val
def Toggle(self,arg0):
val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
return val
def Unselect(self):
val = controls2c.wxTreeCtrl_Unselect(self.this)
return val
def SelectItem(self,arg0):
val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
return val
def EnsureVisible(self,arg0):
val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
return val
def ScrollTo(self,arg0):
val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
return val
def EditLabel(self,arg0):
val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
val = wxTextCtrlPtr(val)
return val
def GetEditControl(self):
val = controls2c.wxTreeCtrl_GetEditControl(self.this)
val = wxTextCtrlPtr(val)
return val
def EndEditLabel(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
return val
def SetItemBold(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
return val
def IsBold(self,arg0):
val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
return val
def HitTest(self,arg0):
val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxTreeCtrl instance>"
class wxTreeCtrl(wxTreeCtrlPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,630 +0,0 @@
# This file was created automatically by SWIG.
import eventsc
from misc import *
class wxEventPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetEventObject(self):
val = eventsc.wxEvent_GetEventObject(self.this)
return val
def GetEventType(self):
val = eventsc.wxEvent_GetEventType(self.this)
return val
def GetId(self):
val = eventsc.wxEvent_GetId(self.this)
return val
def GetSkipped(self):
val = eventsc.wxEvent_GetSkipped(self.this)
return val
def GetTimestamp(self):
val = eventsc.wxEvent_GetTimestamp(self.this)
return val
def SetEventObject(self,arg0):
val = eventsc.wxEvent_SetEventObject(self.this,arg0)
return val
def SetEventType(self,arg0):
val = eventsc.wxEvent_SetEventType(self.this,arg0)
return val
def SetId(self,arg0):
val = eventsc.wxEvent_SetId(self.this,arg0)
return val
def SetTimestamp(self,arg0):
val = eventsc.wxEvent_SetTimestamp(self.this,arg0)
return val
def Skip(self,*args):
val = apply(eventsc.wxEvent_Skip,(self.this,)+args)
return val
def __repr__(self):
return "<C wxEvent instance>"
class wxEvent(wxEventPtr):
def __init__(self,this):
self.this = this
class wxSizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSize(self):
val = eventsc.wxSizeEvent_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxSizeEvent instance>"
class wxSizeEvent(wxSizeEventPtr):
def __init__(self,this):
self.this = this
class wxCloseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def CanVeto(self):
val = eventsc.wxCloseEvent_CanVeto(self.this)
return val
def GetLoggingOff(self):
val = eventsc.wxCloseEvent_GetLoggingOff(self.this)
return val
def Veto(self,*args):
val = apply(eventsc.wxCloseEvent_Veto,(self.this,)+args)
return val
def GetVeto(self):
val = eventsc.wxCloseEvent_GetVeto(self.this)
return val
def SetForce(self,arg0):
val = eventsc.wxCloseEvent_SetForce(self.this,arg0)
return val
def SetCanVeto(self,arg0):
val = eventsc.wxCloseEvent_SetCanVeto(self.this,arg0)
return val
def SetLoggingOff(self,arg0):
val = eventsc.wxCloseEvent_SetLoggingOff(self.this,arg0)
return val
def GetForce(self):
val = eventsc.wxCloseEvent_GetForce(self.this)
return val
def __repr__(self):
return "<C wxCloseEvent instance>"
class wxCloseEvent(wxCloseEventPtr):
def __init__(self,this):
self.this = this
class wxCommandEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Checked(self):
val = eventsc.wxCommandEvent_Checked(self.this)
return val
def GetExtraLong(self):
val = eventsc.wxCommandEvent_GetExtraLong(self.this)
return val
def GetInt(self):
val = eventsc.wxCommandEvent_GetInt(self.this)
return val
def GetSelection(self):
val = eventsc.wxCommandEvent_GetSelection(self.this)
return val
def GetString(self):
val = eventsc.wxCommandEvent_GetString(self.this)
return val
def IsSelection(self):
val = eventsc.wxCommandEvent_IsSelection(self.this)
return val
def __repr__(self):
return "<C wxCommandEvent instance>"
class wxCommandEvent(wxCommandEventPtr):
def __init__(self,this):
self.this = this
class wxScrollEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetOrientation(self):
val = eventsc.wxScrollEvent_GetOrientation(self.this)
return val
def GetPosition(self):
val = eventsc.wxScrollEvent_GetPosition(self.this)
return val
def __repr__(self):
return "<C wxScrollEvent instance>"
class wxScrollEvent(wxScrollEventPtr):
def __init__(self,this):
self.this = this
class wxSpinEventPtr(wxScrollEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxSpinEvent instance>"
class wxSpinEvent(wxSpinEventPtr):
def __init__(self,this):
self.this = this
class wxMouseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def IsButton(self):
val = eventsc.wxMouseEvent_IsButton(self.this)
return val
def ButtonDown(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonDown,(self.this,)+args)
return val
def ButtonDClick(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonDClick,(self.this,)+args)
return val
def ButtonUp(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonUp,(self.this,)+args)
return val
def Button(self,arg0):
val = eventsc.wxMouseEvent_Button(self.this,arg0)
return val
def ButtonIsDown(self,arg0):
val = eventsc.wxMouseEvent_ButtonIsDown(self.this,arg0)
return val
def ControlDown(self):
val = eventsc.wxMouseEvent_ControlDown(self.this)
return val
def MetaDown(self):
val = eventsc.wxMouseEvent_MetaDown(self.this)
return val
def AltDown(self):
val = eventsc.wxMouseEvent_AltDown(self.this)
return val
def ShiftDown(self):
val = eventsc.wxMouseEvent_ShiftDown(self.this)
return val
def LeftDown(self):
val = eventsc.wxMouseEvent_LeftDown(self.this)
return val
def MiddleDown(self):
val = eventsc.wxMouseEvent_MiddleDown(self.this)
return val
def RightDown(self):
val = eventsc.wxMouseEvent_RightDown(self.this)
return val
def LeftUp(self):
val = eventsc.wxMouseEvent_LeftUp(self.this)
return val
def MiddleUp(self):
val = eventsc.wxMouseEvent_MiddleUp(self.this)
return val
def RightUp(self):
val = eventsc.wxMouseEvent_RightUp(self.this)
return val
def LeftDClick(self):
val = eventsc.wxMouseEvent_LeftDClick(self.this)
return val
def MiddleDClick(self):
val = eventsc.wxMouseEvent_MiddleDClick(self.this)
return val
def RightDClick(self):
val = eventsc.wxMouseEvent_RightDClick(self.this)
return val
def LeftIsDown(self):
val = eventsc.wxMouseEvent_LeftIsDown(self.this)
return val
def MiddleIsDown(self):
val = eventsc.wxMouseEvent_MiddleIsDown(self.this)
return val
def RightIsDown(self):
val = eventsc.wxMouseEvent_RightIsDown(self.this)
return val
def Dragging(self):
val = eventsc.wxMouseEvent_Dragging(self.this)
return val
def Moving(self):
val = eventsc.wxMouseEvent_Moving(self.this)
return val
def Entering(self):
val = eventsc.wxMouseEvent_Entering(self.this)
return val
def Leaving(self):
val = eventsc.wxMouseEvent_Leaving(self.this)
return val
def Position(self):
val = eventsc.wxMouseEvent_Position(self.this)
return val
def GetPosition(self):
val = eventsc.wxMouseEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetLogicalPosition(self,arg0):
val = eventsc.wxMouseEvent_GetLogicalPosition(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetX(self):
val = eventsc.wxMouseEvent_GetX(self.this)
return val
def GetY(self):
val = eventsc.wxMouseEvent_GetY(self.this)
return val
def __repr__(self):
return "<C wxMouseEvent instance>"
class wxMouseEvent(wxMouseEventPtr):
def __init__(self,this):
self.this = this
class wxKeyEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ControlDown(self):
val = eventsc.wxKeyEvent_ControlDown(self.this)
return val
def MetaDown(self):
val = eventsc.wxKeyEvent_MetaDown(self.this)
return val
def AltDown(self):
val = eventsc.wxKeyEvent_AltDown(self.this)
return val
def ShiftDown(self):
val = eventsc.wxKeyEvent_ShiftDown(self.this)
return val
def KeyCode(self):
val = eventsc.wxKeyEvent_KeyCode(self.this)
return val
def Position(self):
val = eventsc.wxKeyEvent_Position(self.this)
return val
def GetX(self):
val = eventsc.wxKeyEvent_GetX(self.this)
return val
def GetY(self):
val = eventsc.wxKeyEvent_GetY(self.this)
return val
def __repr__(self):
return "<C wxKeyEvent instance>"
class wxKeyEvent(wxKeyEventPtr):
def __init__(self,this):
self.this = this
class wxMoveEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxMoveEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxMoveEvent instance>"
class wxMoveEvent(wxMoveEventPtr):
def __init__(self,this):
self.this = this
class wxPaintEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPaintEvent instance>"
class wxPaintEvent(wxPaintEventPtr):
def __init__(self,this):
self.this = this
class wxEraseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDC(self):
val = eventsc.wxEraseEvent_GetDC(self.this)
val = wxDCPtr(val)
return val
def __repr__(self):
return "<C wxEraseEvent instance>"
class wxEraseEvent(wxEraseEventPtr):
def __init__(self,this):
self.this = this
class wxFocusEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxFocusEvent instance>"
class wxFocusEvent(wxFocusEventPtr):
def __init__(self,this):
self.this = this
class wxActivateEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetActive(self):
val = eventsc.wxActivateEvent_GetActive(self.this)
return val
def __repr__(self):
return "<C wxActivateEvent instance>"
class wxActivateEvent(wxActivateEventPtr):
def __init__(self,this):
self.this = this
class wxInitDialogEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxInitDialogEvent instance>"
class wxInitDialogEvent(wxInitDialogEventPtr):
def __init__(self,this):
self.this = this
class wxMenuEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMenuId(self):
val = eventsc.wxMenuEvent_GetMenuId(self.this)
return val
def __repr__(self):
return "<C wxMenuEvent instance>"
class wxMenuEvent(wxMenuEventPtr):
def __init__(self,this):
self.this = this
class wxShowEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetShow(self,arg0):
val = eventsc.wxShowEvent_SetShow(self.this,arg0)
return val
def GetShow(self):
val = eventsc.wxShowEvent_GetShow(self.this)
return val
def __repr__(self):
return "<C wxShowEvent instance>"
class wxShowEvent(wxShowEventPtr):
def __init__(self,this):
self.this = this
class wxIconizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxIconizeEvent instance>"
class wxIconizeEvent(wxIconizeEventPtr):
def __init__(self,this):
self.this = this
class wxMaximizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMaximizeEvent instance>"
class wxMaximizeEvent(wxMaximizeEventPtr):
def __init__(self,this):
self.this = this
class wxJoystickEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxJoystickEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetZPosition(self):
val = eventsc.wxJoystickEvent_GetZPosition(self.this)
return val
def GetButtonState(self):
val = eventsc.wxJoystickEvent_GetButtonState(self.this)
return val
def GetButtonChange(self):
val = eventsc.wxJoystickEvent_GetButtonChange(self.this)
return val
def GetJoystick(self):
val = eventsc.wxJoystickEvent_GetJoystick(self.this)
return val
def SetJoystick(self,arg0):
val = eventsc.wxJoystickEvent_SetJoystick(self.this,arg0)
return val
def SetButtonState(self,arg0):
val = eventsc.wxJoystickEvent_SetButtonState(self.this,arg0)
return val
def SetButtonChange(self,arg0):
val = eventsc.wxJoystickEvent_SetButtonChange(self.this,arg0)
return val
def SetPosition(self,arg0):
val = eventsc.wxJoystickEvent_SetPosition(self.this,arg0.this)
return val
def SetZPosition(self,arg0):
val = eventsc.wxJoystickEvent_SetZPosition(self.this,arg0)
return val
def IsButton(self):
val = eventsc.wxJoystickEvent_IsButton(self.this)
return val
def IsMove(self):
val = eventsc.wxJoystickEvent_IsMove(self.this)
return val
def IsZMove(self):
val = eventsc.wxJoystickEvent_IsZMove(self.this)
return val
def ButtonDown(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonDown,(self.this,)+args)
return val
def ButtonUp(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonUp,(self.this,)+args)
return val
def ButtonIsDown(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self.this,)+args)
return val
def __repr__(self):
return "<C wxJoystickEvent instance>"
class wxJoystickEvent(wxJoystickEventPtr):
def __init__(self,this):
self.this = this
class wxDropFilesEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxDropFilesEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetNumberOfFiles(self):
val = eventsc.wxDropFilesEvent_GetNumberOfFiles(self.this)
return val
def GetFiles(self):
val = eventsc.wxDropFilesEvent_GetFiles(self.this)
return val
def __repr__(self):
return "<C wxDropFilesEvent instance>"
class wxDropFilesEvent(wxDropFilesEventPtr):
def __init__(self,this):
self.this = this
class wxIdleEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def RequestMore(self,*args):
val = apply(eventsc.wxIdleEvent_RequestMore,(self.this,)+args)
return val
def MoreRequested(self):
val = eventsc.wxIdleEvent_MoreRequested(self.this)
return val
def __repr__(self):
return "<C wxIdleEvent instance>"
class wxIdleEvent(wxIdleEventPtr):
def __init__(self,this):
self.this = this
class wxUpdateUIEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetChecked(self):
val = eventsc.wxUpdateUIEvent_GetChecked(self.this)
return val
def GetEnabled(self):
val = eventsc.wxUpdateUIEvent_GetEnabled(self.this)
return val
def GetText(self):
val = eventsc.wxUpdateUIEvent_GetText(self.this)
return val
def GetSetText(self):
val = eventsc.wxUpdateUIEvent_GetSetText(self.this)
return val
def GetSetChecked(self):
val = eventsc.wxUpdateUIEvent_GetSetChecked(self.this)
return val
def GetSetEnabled(self):
val = eventsc.wxUpdateUIEvent_GetSetEnabled(self.this)
return val
def Check(self,arg0):
val = eventsc.wxUpdateUIEvent_Check(self.this,arg0)
return val
def Enable(self,arg0):
val = eventsc.wxUpdateUIEvent_Enable(self.this,arg0)
return val
def SetText(self,arg0):
val = eventsc.wxUpdateUIEvent_SetText(self.this,arg0)
return val
def __repr__(self):
return "<C wxUpdateUIEvent instance>"
class wxUpdateUIEvent(wxUpdateUIEventPtr):
def __init__(self,this):
self.this = this
class wxSysColourChangedEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxSysColourChangedEvent instance>"
class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
def __init__(self,this):
self.this = this
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,124 +0,0 @@
# This file was created automatically by SWIG.
import framesc
from misc import *
from gdi import *
from windows import *
from stattool import *
from controls import *
from events import *
import wx
class wxFramePtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Centre(self,*args):
val = apply(framesc.wxFrame_Centre,(self.this,)+args)
return val
def CreateStatusBar(self,*args):
val = apply(framesc.wxFrame_CreateStatusBar,(self.this,)+args)
val = wxStatusBarPtr(val)
return val
def CreateToolBar(self,*args):
val = apply(framesc.wxFrame_CreateToolBar,(self.this,)+args)
val = wxToolBarPtr(val)
return val
def GetMenuBar(self):
val = framesc.wxFrame_GetMenuBar(self.this)
val = wxMenuBarPtr(val)
return val
def GetStatusBar(self):
val = framesc.wxFrame_GetStatusBar(self.this)
val = wxStatusBarPtr(val)
return val
def GetTitle(self):
val = framesc.wxFrame_GetTitle(self.this)
return val
def GetToolBar(self):
val = framesc.wxFrame_GetToolBar(self.this)
val = wxToolBarPtr(val)
return val
def Iconize(self,arg0):
val = framesc.wxFrame_Iconize(self.this,arg0)
return val
def IsIconized(self):
val = framesc.wxFrame_IsIconized(self.this)
return val
def Maximize(self,arg0):
val = framesc.wxFrame_Maximize(self.this,arg0)
return val
def SetAcceleratorTable(self,arg0):
val = framesc.wxFrame_SetAcceleratorTable(self.this,arg0.this)
return val
def SetIcon(self,arg0):
val = framesc.wxFrame_SetIcon(self.this,arg0.this)
return val
def SetMenuBar(self,arg0):
val = framesc.wxFrame_SetMenuBar(self.this,arg0.this)
return val
def SetStatusBar(self,arg0):
val = framesc.wxFrame_SetStatusBar(self.this,arg0.this)
return val
def SetStatusText(self,arg0,*args):
val = apply(framesc.wxFrame_SetStatusText,(self.this,arg0,)+args)
return val
def SetStatusWidths(self,arg0,*args):
val = apply(framesc.wxFrame_SetStatusWidths,(self.this,arg0,)+args)
return val
def SetTitle(self,arg0):
val = framesc.wxFrame_SetTitle(self.this,arg0)
return val
def SetToolBar(self,arg0):
val = framesc.wxFrame_SetToolBar(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxFrame instance>"
class wxFrame(wxFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(framesc.new_wxFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMiniFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMiniFrame instance>"
class wxMiniFrame(wxMiniFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(framesc.new_wxMiniFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,758 +0,0 @@
# This file was created automatically by SWIG.
import gdic
from misc import *
class wxBitmapPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxBitmap(self.this)
def GetDepth(self):
val = gdic.wxBitmap_GetDepth(self.this)
return val
def GetHeight(self):
val = gdic.wxBitmap_GetHeight(self.this)
return val
def GetPalette(self):
val = gdic.wxBitmap_GetPalette(self.this)
val = wxPalettePtr(val)
return val
def GetMask(self):
val = gdic.wxBitmap_GetMask(self.this)
val = wxMaskPtr(val)
return val
def GetWidth(self):
val = gdic.wxBitmap_GetWidth(self.this)
return val
def LoadFile(self,arg0,arg1):
val = gdic.wxBitmap_LoadFile(self.this,arg0,arg1)
return val
def Ok(self):
val = gdic.wxBitmap_Ok(self.this)
return val
def SaveFile(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxBitmap_SaveFile,(self.this,arg0,arg1,)+args)
return val
def SetDepth(self,arg0):
val = gdic.wxBitmap_SetDepth(self.this,arg0)
return val
def SetHeight(self,arg0):
val = gdic.wxBitmap_SetHeight(self.this,arg0)
return val
def SetMask(self,arg0):
val = gdic.wxBitmap_SetMask(self.this,arg0.this)
return val
def SetWidth(self,arg0):
val = gdic.wxBitmap_SetWidth(self.this,arg0)
return val
def __repr__(self):
return "<C wxBitmap instance>"
class wxBitmap(wxBitmapPtr):
def __init__(self,arg0,arg1) :
self.this = gdic.new_wxBitmap(arg0,arg1)
self.thisown = 1
class wxMaskPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxMask(self.this)
def __repr__(self):
return "<C wxMask instance>"
class wxMask(wxMaskPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxMask(arg0.this)
self.thisown = 1
class wxIconPtr(wxBitmapPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxIcon(self.this)
def GetDepth(self):
val = gdic.wxIcon_GetDepth(self.this)
return val
def GetHeight(self):
val = gdic.wxIcon_GetHeight(self.this)
return val
def GetWidth(self):
val = gdic.wxIcon_GetWidth(self.this)
return val
def LoadFile(self,arg0,arg1):
val = gdic.wxIcon_LoadFile(self.this,arg0,arg1)
return val
def Ok(self):
val = gdic.wxIcon_Ok(self.this)
return val
def SetDepth(self,arg0):
val = gdic.wxIcon_SetDepth(self.this,arg0)
return val
def SetHeight(self,arg0):
val = gdic.wxIcon_SetHeight(self.this,arg0)
return val
def SetWidth(self,arg0):
val = gdic.wxIcon_SetWidth(self.this,arg0)
return val
def __repr__(self):
return "<C wxIcon instance>"
class wxIcon(wxIconPtr):
def __init__(self,this):
self.this = this
class wxCursorPtr(wxBitmapPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxCursor(self.this)
def Ok(self):
val = gdic.wxCursor_Ok(self.this)
return val
def __repr__(self):
return "<C wxCursor instance>"
class wxCursor(wxCursorPtr):
def __init__(self,this):
self.this = this
class wxFontPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFaceName(self):
val = gdic.wxFont_GetFaceName(self.this)
return val
def GetFamily(self):
val = gdic.wxFont_GetFamily(self.this)
return val
def GetPointSize(self):
val = gdic.wxFont_GetPointSize(self.this)
return val
def GetStyle(self):
val = gdic.wxFont_GetStyle(self.this)
return val
def GetUnderlined(self):
val = gdic.wxFont_GetUnderlined(self.this)
return val
def GetWeight(self):
val = gdic.wxFont_GetWeight(self.this)
return val
def SetFaceName(self,arg0):
val = gdic.wxFont_SetFaceName(self.this,arg0)
return val
def SetFamily(self,arg0):
val = gdic.wxFont_SetFamily(self.this,arg0)
return val
def SetPointSize(self,arg0):
val = gdic.wxFont_SetPointSize(self.this,arg0)
return val
def SetStyle(self,arg0):
val = gdic.wxFont_SetStyle(self.this,arg0)
return val
def SetUnderlined(self,arg0):
val = gdic.wxFont_SetUnderlined(self.this,arg0)
return val
def SetWeight(self,arg0):
val = gdic.wxFont_SetWeight(self.this,arg0)
return val
def __repr__(self):
return "<C wxFont instance>"
class wxFont(wxFontPtr):
def __init__(self,arg0,arg1,arg2,arg3,*args) :
self.this = apply(gdic.new_wxFont,(arg0,arg1,arg2,arg3,)+args)
self.thisown = 1
class wxColourPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxColour(self.this)
def Red(self):
val = gdic.wxColour_Red(self.this)
return val
def Green(self):
val = gdic.wxColour_Green(self.this)
return val
def Blue(self):
val = gdic.wxColour_Blue(self.this)
return val
def Ok(self):
val = gdic.wxColour_Ok(self.this)
return val
def Set(self,arg0,arg1,arg2):
val = gdic.wxColour_Set(self.this,arg0,arg1,arg2)
return val
def Get(self):
val = gdic.wxColour_Get(self.this)
return val
def __repr__(self):
return "<C wxColour instance>"
class wxColour(wxColourPtr):
def __init__(self,*args) :
self.this = apply(gdic.new_wxColour,()+args)
self.thisown = 1
class wxPenPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetCap(self):
val = gdic.wxPen_GetCap(self.this)
return val
def GetColour(self):
val = gdic.wxPen_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetJoin(self):
val = gdic.wxPen_GetJoin(self.this)
return val
def GetStyle(self):
val = gdic.wxPen_GetStyle(self.this)
return val
def GetWidth(self):
val = gdic.wxPen_GetWidth(self.this)
return val
def Ok(self):
val = gdic.wxPen_Ok(self.this)
return val
def SetCap(self,arg0):
val = gdic.wxPen_SetCap(self.this,arg0)
return val
def SetColour(self,arg0):
val = gdic.wxPen_SetColour(self.this,arg0.this)
return val
def SetJoin(self,arg0):
val = gdic.wxPen_SetJoin(self.this,arg0)
return val
def SetStyle(self,arg0):
val = gdic.wxPen_SetStyle(self.this,arg0)
return val
def SetWidth(self,arg0):
val = gdic.wxPen_SetWidth(self.this,arg0)
return val
def __repr__(self):
return "<C wxPen instance>"
class wxPen(wxPenPtr):
def __init__(self,arg0,*args) :
self.this = apply(gdic.new_wxPen,(arg0.this,)+args)
self.thisown = 1
class wxBrushPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetColour(self):
val = gdic.wxBrush_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetStipple(self):
val = gdic.wxBrush_GetStipple(self.this)
val = wxBitmapPtr(val)
return val
def GetStyle(self):
val = gdic.wxBrush_GetStyle(self.this)
return val
def Ok(self):
val = gdic.wxBrush_Ok(self.this)
return val
def SetColour(self,arg0):
val = gdic.wxBrush_SetColour(self.this,arg0.this)
return val
def SetStipple(self,arg0):
val = gdic.wxBrush_SetStipple(self.this,arg0.this)
return val
def SetStyle(self,arg0):
val = gdic.wxBrush_SetStyle(self.this,arg0)
return val
def __repr__(self):
return "<C wxBrush instance>"
class wxBrush(wxBrushPtr):
def __init__(self,arg0,*args) :
self.this = apply(gdic.new_wxBrush,(arg0.this,)+args)
self.thisown = 1
class wxDCPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxDC(self.this)
def BeginDrawing(self):
val = gdic.wxDC_BeginDrawing(self.this)
return val
def Blit(self,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7):
val = gdic.wxDC_Blit(self.this,arg0,arg1,arg2,arg3,arg4.this,arg5,arg6,arg7)
return val
def Clear(self):
val = gdic.wxDC_Clear(self.this)
return val
def CrossHair(self,arg0,arg1):
val = gdic.wxDC_CrossHair(self.this,arg0,arg1)
return val
def DestroyClippingRegion(self):
val = gdic.wxDC_DestroyClippingRegion(self.this)
return val
def DeviceToLogicalX(self,arg0):
val = gdic.wxDC_DeviceToLogicalX(self.this,arg0)
return val
def DeviceToLogicalXRel(self,arg0):
val = gdic.wxDC_DeviceToLogicalXRel(self.this,arg0)
return val
def DeviceToLogicalY(self,arg0):
val = gdic.wxDC_DeviceToLogicalY(self.this,arg0)
return val
def DeviceToLogicalYRel(self,arg0):
val = gdic.wxDC_DeviceToLogicalYRel(self.this,arg0)
return val
def DrawArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
val = gdic.wxDC_DrawArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
return val
def DrawEllipse(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3)
return val
def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
return val
def DrawIcon(self,arg0,arg1,arg2):
val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2)
return val
def DrawLine(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3)
return val
def DrawLines(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args)
return val
def DrawPolygon(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args)
return val
def DrawPoint(self,arg0,arg1):
val = gdic.wxDC_DrawPoint(self.this,arg0,arg1)
return val
def DrawRectangle(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3)
return val
def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args):
val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def DrawSpline(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args)
return val
def DrawText(self,arg0,arg1,arg2):
val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2)
return val
def EndDoc(self):
val = gdic.wxDC_EndDoc(self.this)
return val
def EndDrawing(self):
val = gdic.wxDC_EndDrawing(self.this)
return val
def EndPage(self):
val = gdic.wxDC_EndPage(self.this)
return val
def FloodFill(self,arg0,arg1,arg2,*args):
val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
return val
def GetBackground(self):
val = gdic.wxDC_GetBackground(self.this)
val = wxBrushPtr(val)
return val
def GetBrush(self):
val = gdic.wxDC_GetBrush(self.this)
val = wxBrushPtr(val)
return val
def GetCharHeight(self):
val = gdic.wxDC_GetCharHeight(self.this)
return val
def GetCharWidth(self):
val = gdic.wxDC_GetCharWidth(self.this)
return val
def GetClippingBox(self):
val = gdic.wxDC_GetClippingBox(self.this)
return val
def GetFont(self):
val = gdic.wxDC_GetFont(self.this)
val = wxFontPtr(val)
return val
def GetLogicalFunction(self):
val = gdic.wxDC_GetLogicalFunction(self.this)
return val
def GetMapMode(self):
val = gdic.wxDC_GetMapMode(self.this)
return val
def GetOptimization(self):
val = gdic.wxDC_GetOptimization(self.this)
return val
def GetPen(self):
val = gdic.wxDC_GetPen(self.this)
val = wxPenPtr(val)
return val
def GetPixel(self,arg0,arg1):
val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetSize(self):
val = gdic.wxDC_GetSize(self.this)
return val
def GetTextBackground(self):
val = gdic.wxDC_GetTextBackground(self.this)
val = wxColourPtr(val)
return val
def GetTextExtent(self,arg0):
val = gdic.wxDC_GetTextExtent(self.this,arg0)
return val
def GetTextForeground(self):
val = gdic.wxDC_GetTextForeground(self.this)
val = wxColourPtr(val)
return val
def LogicalToDeviceX(self,arg0):
val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
return val
def LogicalToDeviceXRel(self,arg0):
val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
return val
def LogicalToDeviceY(self,arg0):
val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
return val
def LogicalToDeviceYRel(self,arg0):
val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
return val
def MaxX(self):
val = gdic.wxDC_MaxX(self.this)
return val
def MaxY(self):
val = gdic.wxDC_MaxY(self.this)
return val
def MinX(self):
val = gdic.wxDC_MinX(self.this)
return val
def MinY(self):
val = gdic.wxDC_MinY(self.this)
return val
def Ok(self):
val = gdic.wxDC_Ok(self.this)
return val
def SetDeviceOrigin(self,arg0,arg1):
val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
return val
def SetBackground(self,arg0):
val = gdic.wxDC_SetBackground(self.this,arg0.this)
return val
def SetBackgroundMode(self,arg0):
val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
return val
def SetClippingRegion(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
return val
def SetPalette(self,arg0):
val = gdic.wxDC_SetPalette(self.this,arg0.this)
return val
def SetBrush(self,arg0):
val = gdic.wxDC_SetBrush(self.this,arg0.this)
return val
def SetFont(self,arg0):
val = gdic.wxDC_SetFont(self.this,arg0.this)
return val
def SetLogicalFunction(self,arg0):
val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
return val
def SetMapMode(self,arg0):
val = gdic.wxDC_SetMapMode(self.this,arg0)
return val
def SetOptimization(self,arg0):
val = gdic.wxDC_SetOptimization(self.this,arg0)
return val
def SetPen(self,arg0):
val = gdic.wxDC_SetPen(self.this,arg0.this)
return val
def SetTextBackground(self,arg0):
val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
return val
def SetTextForeground(self,arg0):
val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
return val
def SetUserScale(self,arg0,arg1):
val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
return val
def StartDoc(self,arg0):
val = gdic.wxDC_StartDoc(self.this,arg0)
return val
def StartPage(self):
val = gdic.wxDC_StartPage(self.this)
return val
def DrawBitmap(self,arg0,arg1,arg2,*args):
val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
return val
def __repr__(self):
return "<C wxDC instance>"
class wxDC(wxDCPtr):
def __init__(self,this):
self.this = this
class wxMemoryDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SelectObject(self,arg0):
val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxMemoryDC instance>"
class wxMemoryDC(wxMemoryDCPtr):
def __init__(self) :
self.this = gdic.new_wxMemoryDC()
self.thisown = 1
class wxScreenDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def StartDrawingOnTop(self,arg0):
val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
return val
def StartDrawingOnTopRect(self,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
return val
def EndDrawingOnTop(self):
val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
return val
def __repr__(self):
return "<C wxScreenDC instance>"
class wxScreenDC(wxScreenDCPtr):
def __init__(self) :
self.this = gdic.new_wxScreenDC()
self.thisown = 1
class wxClientDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxClientDC instance>"
class wxClientDC(wxClientDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxClientDC(arg0.this)
self.thisown = 1
class wxPaintDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPaintDC instance>"
class wxPaintDC(wxPaintDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxPaintDC(arg0.this)
self.thisown = 1
class wxWindowDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxWindowDC instance>"
class wxWindowDC(wxWindowDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxWindowDC(arg0.this)
self.thisown = 1
class wxPostScriptDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPostScriptDC instance>"
class wxPostScriptDC(wxPostScriptDCPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(gdic.new_wxPostScriptDC,(arg0,)+args)
self.thisown = 1
class wxPalettePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxPalette(self.this)
def GetPixel(self,arg0,arg1,arg2):
val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
return val
def GetRGB(self,arg0,arg1,arg2,arg3):
val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
return val
def Ok(self):
val = gdic.wxPalette_Ok(self.this)
return val
def __repr__(self):
return "<C wxPalette instance>"
class wxPalette(wxPalettePtr):
def __init__(self,arg0,arg1,arg2) :
self.this = gdic.new_wxPalette(arg0,arg1,arg2)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
def wxEmptyBitmap(arg0,arg1,*args):
val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
val = wxBitmapPtr(val)
val.thisown = 1
return val
def wxNoRefBitmap(arg0,arg1):
val = gdic.wxNoRefBitmap(arg0,arg1)
val = wxBitmapPtr(val)
return val
def wxMaskColour(arg0,arg1):
val = gdic.wxMaskColour(arg0.this,arg1.this)
val = wxMaskPtr(val)
val.thisown = 1
return val
def wxStockCursor(arg0):
val = gdic.wxStockCursor(arg0)
val = wxCursorPtr(val)
val.thisown = 1
return val
def wxNamedColour(arg0):
val = gdic.wxNamedColour(arg0)
val = wxColourPtr(val)
val.thisown = 1
return val
def wxMemoryDCFromDC(arg0):
val = gdic.wxMemoryDCFromDC(arg0.this)
val = wxMemoryDCPtr(val)
val.thisown = 1
return val
#-------------- VARIABLE WRAPPERS ------------------
cvar = gdic.cvar
wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
wxRED = wxColourPtr(gdic.cvar.wxRED)
wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)

View File

@@ -1,964 +0,0 @@
/*
* FILE : gtk/mdi.cpp
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator (SWIG)
* Version 1.1 (Patch 5)
*
* Portions Copyright (c) 1995-1998
* The University of Utah and The Regents of the University of California.
* Permission is granted to distribute this file in any manner provided
* this notice remains intact.
*
* Do not make changes to this file--changes will be lost!
*
*/
#define SWIGCODE
/* Implementation : PYTHON */
#define SWIGPYTHON
#include <string.h>
#include <stdlib.h>
/* Definitions for Windows/Unix exporting */
#if defined(__WIN32__)
# if defined(_MSC_VER)
# define SWIGEXPORT(a,b) __declspec(dllexport) a b
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a,b) a _export b
# else
# define SWIGEXPORT(a,b) a b
# endif
# endif
#else
# define SWIGEXPORT(a,b) a b
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
extern void SWIG_MakePtr(char *, void *, char *);
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
extern char *SWIG_GetPtr(char *, void **, char *);
extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
extern PyObject *SWIG_newvarlink(void);
#ifdef __cplusplus
}
#endif
#define SWIG_init initmdic
#define SWIG_name "mdic"
#include "helpers.h"
static PyObject* l_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
PyObject* o3;
if (!target) {
target = o;
} else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
} else {
if (!PyList_Check(target)) {
o2 = target;
target = PyList_New(0);
PyList_Append(target, o2);
Py_XDECREF(o2);
}
PyList_Append(target,o);
Py_XDECREF(o);
}
return target;
}
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
PyObject* o3;
if (!target) {
target = o;
} else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
} else {
if (!PyTuple_Check(target)) {
o2 = target;
target = PyTuple_New(1);
PyTuple_SetItem(target, 0, o2);
}
o3 = PyTuple_New(1);
PyTuple_SetItem(o3, 0, o);
o2 = target;
target = PySequence_Concat(o2, o3);
Py_DECREF(o2);
Py_DECREF(o3);
}
return target;
}
extern byte* byte_LIST_helper(PyObject* source);
extern int* int_LIST_helper(PyObject* source);
extern long* long_LIST_helper(PyObject* source);
extern char** string_LIST_helper(PyObject* source);
extern wxPoint* wxPoint_LIST_helper(PyObject* source);
extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
extern wxString* wxString_LIST_helper(PyObject* source);
extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
static char* wxStringErrorMsg = "string type is required for parameter";
static void *SwigwxMDIParentFrameTowxFrame(void *ptr) {
wxMDIParentFrame *src;
wxFrame *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxFrame *) src;
return (void *) dest;
}
static void *SwigwxMDIParentFrameTowxWindow(void *ptr) {
wxMDIParentFrame *src;
wxWindow *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) {
wxMDIParentFrame *src;
wxEvtHandler *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _result;
wxWindow * _arg0;
wxWindowID _arg1;
wxString * _arg2;
wxPoint * _arg3 = &wxPyDefaultPosition;
wxSize * _arg4 = &wxPyDefaultSize;
long _arg5 = (wxDEFAULT_FRAME_STYLE)|(wxVSCROLL)|(wxHSCROLL);
char * _arg6 = "frame";
char * _argc0 = 0;
PyObject * _obj2 = 0;
char * _argc3 = 0;
char * _argc4 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIParentFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
return NULL;
}
}
{
if (!PyString_Check(_obj2)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
_arg2 = new wxString(PyString_AsString(_obj2));
}
if (_argc3) {
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIParentFrame. Expected _wxPoint_p.");
return NULL;
}
}
if (_argc4) {
if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIParentFrame. Expected _wxSize_p.");
return NULL;
}
}
_result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
{
if (_obj2)
delete _arg2;
}
return _resultobj;
}
#define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivateNext",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ActivateNext(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivatePrevious",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ActivatePrevious(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ArrangeIcons",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ArrangeIcons(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Cascade",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_Cascade(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_GetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIParentFrame_GetClientSize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
int * _arg1;
int temp;
int * _arg2;
int temp0;
char * _argc0 = 0;
self = self;
{
_arg1 = &temp;
}
{
_arg2 = &temp0;
}
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientSize",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientSize. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_GetClientSize(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg1));
_resultobj = t_output_helper(_resultobj, o);
}
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg2));
_resultobj = t_output_helper(_resultobj, o);
}
return _resultobj;
}
#define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetActiveChild",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIClientWindow * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientWindow",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxWindow * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetToolBar",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Tile",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_Tile(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static void *SwigwxMDIChildFrameTowxFrame(void *ptr) {
wxMDIChildFrame *src;
wxFrame *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxFrame *) src;
return (void *) dest;
}
static void *SwigwxMDIChildFrameTowxWindow(void *ptr) {
wxMDIChildFrame *src;
wxWindow *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) {
wxMDIChildFrame *src;
wxEvtHandler *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _result;
wxMDIParentFrame * _arg0;
wxWindowID _arg1;
wxString * _arg2;
wxPoint * _arg3 = &wxPyDefaultPosition;
wxSize * _arg4 = &wxPyDefaultSize;
long _arg5 = (wxDEFAULT_FRAME_STYLE);
char * _arg6 = "frame";
char * _argc0 = 0;
PyObject * _obj2 = 0;
char * _argc3 = 0;
char * _argc4 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIChildFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
{
if (!PyString_Check(_obj2)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
_arg2 = new wxString(PyString_AsString(_obj2));
}
if (_argc3) {
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIChildFrame. Expected _wxPoint_p.");
return NULL;
}
}
if (_argc4) {
if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIChildFrame. Expected _wxSize_p.");
return NULL;
}
}
_result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
{
if (_obj2)
delete _arg2;
}
return _resultobj;
}
#define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Activate",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Activate(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_Maximize(_swigobj) (_swigobj->Maximize())
static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Maximize",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Maximize(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Restore",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Restore(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
static PyObject *_wrap_wxMDIChildFrame_SetMenuBar(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
wxMenuBar * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:wxMDIChildFrame_SetMenuBar",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetMenuBar. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMenuBar_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_SetMenuBar. Expected _wxMenuBar_p.");
return NULL;
}
}
wxMDIChildFrame_SetMenuBar(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_SetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIChildFrame_SetClientSize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
int _arg1;
int _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sii:wxMDIChildFrame_SetClientSize",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetClientSize. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_SetClientSize(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_GetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIChildFrame_GetPosition(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
int * _arg1;
int temp;
int * _arg2;
int temp0;
char * _argc0 = 0;
self = self;
{
_arg1 = &temp;
}
{
_arg2 = &temp0;
}
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_GetPosition",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_GetPosition. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_GetPosition(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg1));
_resultobj = t_output_helper(_resultobj, o);
}
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg2));
_resultobj = t_output_helper(_resultobj, o);
}
return _resultobj;
}
static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
wxMDIClientWindow *src;
wxWindow *dest;
src = (wxMDIClientWindow *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
wxMDIClientWindow *src;
wxEvtHandler *dest;
src = (wxMDIClientWindow *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIClientWindow * _result;
wxMDIParentFrame * _arg0;
long _arg1 = 0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s|l:new_wxMDIClientWindow",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyMethodDef mdicMethods[] = {
{ "new_wxMDIClientWindow", _wrap_new_wxMDIClientWindow, 1 },
{ "wxMDIChildFrame_GetPosition", _wrap_wxMDIChildFrame_GetPosition, 1 },
{ "wxMDIChildFrame_SetClientSize", _wrap_wxMDIChildFrame_SetClientSize, 1 },
{ "wxMDIChildFrame_SetMenuBar", _wrap_wxMDIChildFrame_SetMenuBar, 1 },
{ "wxMDIChildFrame_Restore", _wrap_wxMDIChildFrame_Restore, 1 },
{ "wxMDIChildFrame_Maximize", _wrap_wxMDIChildFrame_Maximize, 1 },
{ "wxMDIChildFrame_Activate", _wrap_wxMDIChildFrame_Activate, 1 },
{ "new_wxMDIChildFrame", _wrap_new_wxMDIChildFrame, 1 },
{ "wxMDIParentFrame_Tile", _wrap_wxMDIParentFrame_Tile, 1 },
{ "wxMDIParentFrame_GetToolBar", _wrap_wxMDIParentFrame_GetToolBar, 1 },
{ "wxMDIParentFrame_GetClientWindow", _wrap_wxMDIParentFrame_GetClientWindow, 1 },
{ "wxMDIParentFrame_GetActiveChild", _wrap_wxMDIParentFrame_GetActiveChild, 1 },
{ "wxMDIParentFrame_GetClientSize", _wrap_wxMDIParentFrame_GetClientSize, 1 },
{ "wxMDIParentFrame_Cascade", _wrap_wxMDIParentFrame_Cascade, 1 },
{ "wxMDIParentFrame_ArrangeIcons", _wrap_wxMDIParentFrame_ArrangeIcons, 1 },
{ "wxMDIParentFrame_ActivatePrevious", _wrap_wxMDIParentFrame_ActivatePrevious, 1 },
{ "wxMDIParentFrame_ActivateNext", _wrap_wxMDIParentFrame_ActivateNext, 1 },
{ "new_wxMDIParentFrame", _wrap_new_wxMDIParentFrame, 1 },
{ NULL, NULL }
};
static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT(void,initmdic)() {
PyObject *m, *d;
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("mdic", mdicMethods);
d = PyModule_GetDict(m);
/*
* These are the pointer type-equivalency mappings.
* (Used by the SWIG pointer type-checker).
*/
SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0);
SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0);
SWIG_RegisterMapping("_signed_long","_long",0);
SWIG_RegisterMapping("_wxMenuEvent","_class_wxMenuEvent",0);
SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0);
SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
SWIG_RegisterMapping("_wxPaintEvent","_class_wxPaintEvent",0);
SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
SWIG_RegisterMapping("_wxUpdateUIEvent","_class_wxUpdateUIEvent",0);
SWIG_RegisterMapping("_byte","_unsigned_char",0);
SWIG_RegisterMapping("_wxStaticBox","_class_wxStaticBox",0);
SWIG_RegisterMapping("_wxChoice","_class_wxChoice",0);
SWIG_RegisterMapping("_wxSlider","_class_wxSlider",0);
SWIG_RegisterMapping("_long","_wxDash",0);
SWIG_RegisterMapping("_long","_unsigned_long",0);
SWIG_RegisterMapping("_long","_signed_long",0);
SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0);
SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0);
SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0);
SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
SWIG_RegisterMapping("_wxSpinEvent","_class_wxSpinEvent",0);
SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0);
SWIG_RegisterMapping("_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0);
SWIG_RegisterMapping("_class_wxStatusBar","_wxStatusBar",0);
SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0);
SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
SWIG_RegisterMapping("_wxIdleEvent","_class_wxIdleEvent",0);
SWIG_RegisterMapping("_class_wxUpdateUIEvent","_wxUpdateUIEvent",0);
SWIG_RegisterMapping("_wxToolBar","_class_wxToolBar",0);
SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
SWIG_RegisterMapping("_wxMiniFrame","_class_wxMiniFrame",0);
SWIG_RegisterMapping("_wxShowEvent","_class_wxShowEvent",0);
SWIG_RegisterMapping("_uint","_unsigned_int",0);
SWIG_RegisterMapping("_uint","_int",0);
SWIG_RegisterMapping("_uint","_wxWindowID",0);
SWIG_RegisterMapping("_class_wxEvent","_wxEvent",0);
SWIG_RegisterMapping("_wxCheckListBox","_class_wxCheckListBox",0);
SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
SWIG_RegisterMapping("_wxCommandEvent","_class_wxCommandEvent",0);
SWIG_RegisterMapping("_wxSizeEvent","_class_wxSizeEvent",0);
SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
SWIG_RegisterMapping("_class_wxButton","_wxButton",0);
SWIG_RegisterMapping("_wxRadioBox","_class_wxRadioBox",0);
SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0);
SWIG_RegisterMapping("_wxScrollBar","_class_wxScrollBar",0);
SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0);
SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0);
SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0);
SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0);
SWIG_RegisterMapping("_EBool","_signed_int",0);
SWIG_RegisterMapping("_EBool","_int",0);
SWIG_RegisterMapping("_EBool","_wxWindowID",0);
SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0);
SWIG_RegisterMapping("_class_wxDropFilesEvent","_wxDropFilesEvent",0);
SWIG_RegisterMapping("_wxStaticText","_class_wxStaticText",0);
SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
SWIG_RegisterMapping("_wxCloseEvent","_class_wxCloseEvent",0);
SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
SWIG_RegisterMapping("_unsigned_long","_long",0);
SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
SWIG_RegisterMapping("_wxMDIParentFrame","_class_wxMDIParentFrame",0);
SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0);
SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0);
SWIG_RegisterMapping("_class_wxSpinButton","_wxSpinButton",0);
SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0);
SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0);
SWIG_RegisterMapping("_wxRadioButton","_class_wxRadioButton",0);
SWIG_RegisterMapping("_signed_int","_EBool",0);
SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
SWIG_RegisterMapping("_signed_int","_int",0);
SWIG_RegisterMapping("_class_wxTextCtrl","_wxTextCtrl",0);
SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
SWIG_RegisterMapping("_class_wxMoveEvent","_wxMoveEvent",0);
SWIG_RegisterMapping("_wxListBox","_class_wxListBox",0);
SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
SWIG_RegisterMapping("_class_wxMDIChildFrame","_wxMDIChildFrame",0);
SWIG_RegisterMapping("_WXTYPE","_short",0);
SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
SWIG_RegisterMapping("_class_wxMDIClientWindow","_wxMDIClientWindow",0);
SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
SWIG_RegisterMapping("_unsigned_short","_short",0);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
SWIG_RegisterMapping("_class_wxStaticText","_wxStaticText",0);
SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
SWIG_RegisterMapping("_class_wxCloseEvent","_wxCloseEvent",0);
SWIG_RegisterMapping("_class_wxMenuEvent","_wxMenuEvent",0);
SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
SWIG_RegisterMapping("_wxMouseEvent","_class_wxMouseEvent",0);
SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
SWIG_RegisterMapping("_class_wxRadioBox","_wxRadioBox",0);
SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
SWIG_RegisterMapping("_signed_short","_short",0);
SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0);
SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0);
SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0);
SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0);
SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0);
SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
SWIG_RegisterMapping("_unsigned_char","_byte",0);
SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
SWIG_RegisterMapping("_wxControl","_class_wxControl",0);
SWIG_RegisterMapping("_class_wxListBox","_wxListBox",0);
SWIG_RegisterMapping("_unsigned_int","_uint",0);
SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
SWIG_RegisterMapping("_unsigned_int","_int",0);
SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
SWIG_RegisterMapping("_short","_WXTYPE",0);
SWIG_RegisterMapping("_short","_unsigned_short",0);
SWIG_RegisterMapping("_short","_signed_short",0);
SWIG_RegisterMapping("_class_wxStaticBox","_wxStaticBox",0);
SWIG_RegisterMapping("_class_wxScrollEvent","_wxScrollEvent",0);
SWIG_RegisterMapping("_wxJoystickEvent","_class_wxJoystickEvent",0);
SWIG_RegisterMapping("_class_wxChoice","_wxChoice",0);
SWIG_RegisterMapping("_class_wxSlider","_wxSlider",0);
SWIG_RegisterMapping("_class_wxBitmapButton","_wxBitmapButton",0);
SWIG_RegisterMapping("_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0);
SWIG_RegisterMapping("_wxWindowID","_EBool",0);
SWIG_RegisterMapping("_wxWindowID","_uint",0);
SWIG_RegisterMapping("_wxWindowID","_int",0);
SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
SWIG_RegisterMapping("_int","_EBool",0);
SWIG_RegisterMapping("_int","_uint",0);
SWIG_RegisterMapping("_int","_wxWindowID",0);
SWIG_RegisterMapping("_int","_unsigned_int",0);
SWIG_RegisterMapping("_int","_signed_int",0);
SWIG_RegisterMapping("_class_wxMouseEvent","_wxMouseEvent",0);
SWIG_RegisterMapping("_class_wxSpinEvent","_wxSpinEvent",0);
SWIG_RegisterMapping("_wxButton","_class_wxButton",0);
SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0);
SWIG_RegisterMapping("_class_wxMDIParentFrame","_wxMDIParentFrame",0);
SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
SWIG_RegisterMapping("_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0);
SWIG_RegisterMapping("_class_wxInitDialogEvent","_wxInitDialogEvent",0);
SWIG_RegisterMapping("_class_wxComboBox","_wxComboBox",0);
SWIG_RegisterMapping("_class_wxRadioButton","_wxRadioButton",0);
SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
SWIG_RegisterMapping("_wxIconizeEvent","_class_wxIconizeEvent",0);
SWIG_RegisterMapping("_class_wxControl","_wxControl",0);
SWIG_RegisterMapping("_wxStaticBitmap","_class_wxStaticBitmap",0);
SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0);
SWIG_RegisterMapping("_class_wxIdleEvent","_wxIdleEvent",0);
SWIG_RegisterMapping("_wxEraseEvent","_class_wxEraseEvent",0);
SWIG_RegisterMapping("_class_wxJoystickEvent","_wxJoystickEvent",0);
SWIG_RegisterMapping("_class_wxMiniFrame","_wxMiniFrame",0);
SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0);
SWIG_RegisterMapping("_class_wxShowEvent","_wxShowEvent",0);
SWIG_RegisterMapping("_wxActivateEvent","_class_wxActivateEvent",0);
SWIG_RegisterMapping("_wxGauge","_class_wxGauge",0);
SWIG_RegisterMapping("_class_wxCheckListBox","_wxCheckListBox",0);
SWIG_RegisterMapping("_class_wxCommandEvent","_wxCommandEvent",0);
SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
SWIG_RegisterMapping("_class_wxSizeEvent","_wxSizeEvent",0);
SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
SWIG_RegisterMapping("_class_wxScrollBar","_wxScrollBar",0);
SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
SWIG_RegisterMapping("_wxDash","_long",0);
SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
SWIG_RegisterMapping("_wxKeyEvent","_class_wxKeyEvent",0);
SWIG_RegisterMapping("_wxMoveEvent","_class_wxMoveEvent",0);
SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0);
SWIG_RegisterMapping("_class_wxEraseEvent","_wxEraseEvent",0);
SWIG_RegisterMapping("_wxMDIClientWindow","_class_wxMDIClientWindow",0);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxFrame",0);
}

View File

@@ -1,131 +0,0 @@
# This file was created automatically by SWIG.
import mdic
from misc import *
from windows import *
from gdi import *
from frames import *
from stattool import *
from controls import *
from events import *
import wx
class wxMDIParentFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ActivateNext(self):
val = mdic.wxMDIParentFrame_ActivateNext(self.this)
return val
def ActivatePrevious(self):
val = mdic.wxMDIParentFrame_ActivatePrevious(self.this)
return val
def ArrangeIcons(self):
val = mdic.wxMDIParentFrame_ArrangeIcons(self.this)
return val
def Cascade(self):
val = mdic.wxMDIParentFrame_Cascade(self.this)
return val
def GetClientSize(self):
val = mdic.wxMDIParentFrame_GetClientSize(self.this)
return val
def GetActiveChild(self):
val = mdic.wxMDIParentFrame_GetActiveChild(self.this)
val = wxMDIChildFramePtr(val)
return val
def GetClientWindow(self):
val = mdic.wxMDIParentFrame_GetClientWindow(self.this)
val = wxMDIClientWindowPtr(val)
return val
def GetToolBar(self):
val = mdic.wxMDIParentFrame_GetToolBar(self.this)
val = wxWindowPtr(val)
return val
def Tile(self):
val = mdic.wxMDIParentFrame_Tile(self.this)
return val
def __repr__(self):
return "<C wxMDIParentFrame instance>"
class wxMDIParentFrame(wxMDIParentFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(mdic.new_wxMDIParentFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMDIChildFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Activate(self):
val = mdic.wxMDIChildFrame_Activate(self.this)
return val
def Maximize(self):
val = mdic.wxMDIChildFrame_Maximize(self.this)
return val
def Restore(self):
val = mdic.wxMDIChildFrame_Restore(self.this)
return val
def SetMenuBar(self,arg0):
val = mdic.wxMDIChildFrame_SetMenuBar(self.this,arg0.this)
return val
def SetClientSize(self,arg0,arg1):
val = mdic.wxMDIChildFrame_SetClientSize(self.this,arg0,arg1)
return val
def GetPosition(self):
val = mdic.wxMDIChildFrame_GetPosition(self.this)
return val
def __repr__(self):
return "<C wxMDIChildFrame instance>"
class wxMDIChildFrame(wxMDIChildFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(mdic.new_wxMDIChildFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMDIClientWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMDIClientWindow instance>"
class wxMDIClientWindow(wxMDIClientWindowPtr):
def __init__(self,arg0,*args) :
self.this = apply(mdic.new_wxMDIClientWindow,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._StdOnScrollCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,617 +0,0 @@
# This file was created automatically by SWIG.
import miscc
class wxSizePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxSize(self.this)
def Set(self,arg0,arg1):
val = miscc.wxSize_Set(self.this,arg0,arg1)
return val
def GetWidth(self):
val = miscc.wxSize_GetWidth(self.this)
return val
def GetHeight(self):
val = miscc.wxSize_GetHeight(self.this)
return val
def __str__(self):
val = miscc.wxSize___str__(self.this)
return val
def __setattr__(self,name,value):
if name == "width" :
miscc.wxSize_width_set(self.this,value)
return
if name == "height" :
miscc.wxSize_height_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "width" :
return miscc.wxSize_width_get(self.this)
if name == "height" :
return miscc.wxSize_height_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxSize instance>"
class wxSize(wxSizePtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxSize,()+args)
self.thisown = 1
class wxRealPointPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRealPoint(self.this)
def __setattr__(self,name,value):
if name == "x" :
miscc.wxRealPoint_x_set(self.this,value)
return
if name == "y" :
miscc.wxRealPoint_y_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxRealPoint_x_get(self.this)
if name == "y" :
return miscc.wxRealPoint_y_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxRealPoint instance>"
class wxRealPoint(wxRealPointPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxRealPoint,()+args)
self.thisown = 1
class wxPointPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxPoint(self.this)
def Set(self,arg0,arg1):
val = miscc.wxPoint_Set(self.this,arg0,arg1)
return val
def __str__(self):
val = miscc.wxPoint___str__(self.this)
return val
def __setattr__(self,name,value):
if name == "x" :
miscc.wxPoint_x_set(self.this,value)
return
if name == "y" :
miscc.wxPoint_y_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxPoint_x_get(self.this)
if name == "y" :
return miscc.wxPoint_y_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxPoint instance>"
class wxPoint(wxPointPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxPoint,()+args)
self.thisown = 1
class wxRectPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRect(self.this)
def GetX(self):
val = miscc.wxRect_GetX(self.this)
return val
def SetX(self,arg0):
val = miscc.wxRect_SetX(self.this,arg0)
return val
def GetY(self):
val = miscc.wxRect_GetY(self.this)
return val
def SetY(self,arg0):
val = miscc.wxRect_SetY(self.this,arg0)
return val
def GetWidth(self):
val = miscc.wxRect_GetWidth(self.this)
return val
def SetWidth(self,arg0):
val = miscc.wxRect_SetWidth(self.this,arg0)
return val
def GetHeight(self):
val = miscc.wxRect_GetHeight(self.this)
return val
def SetHeight(self,arg0):
val = miscc.wxRect_SetHeight(self.this,arg0)
return val
def GetPosition(self):
val = miscc.wxRect_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetSize(self):
val = miscc.wxRect_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetLeft(self):
val = miscc.wxRect_GetLeft(self.this)
return val
def GetTop(self):
val = miscc.wxRect_GetTop(self.this)
return val
def GetBottom(self):
val = miscc.wxRect_GetBottom(self.this)
return val
def GetRight(self):
val = miscc.wxRect_GetRight(self.this)
return val
def __setattr__(self,name,value):
if name == "x" :
miscc.wxRect_x_set(self.this,value)
return
if name == "y" :
miscc.wxRect_y_set(self.this,value)
return
if name == "width" :
miscc.wxRect_width_set(self.this,value)
return
if name == "height" :
miscc.wxRect_height_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxRect_x_get(self.this)
if name == "y" :
return miscc.wxRect_y_get(self.this)
if name == "width" :
return miscc.wxRect_width_get(self.this)
if name == "height" :
return miscc.wxRect_height_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxRect instance>"
class wxRect(wxRectPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxRect,()+args)
self.thisown = 1
class wxPyTimerPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxPyTimer(self.this)
def Interval(self):
val = miscc.wxPyTimer_Interval(self.this)
return val
def Start(self,*args):
val = apply(miscc.wxPyTimer_Start,(self.this,)+args)
return val
def Stop(self):
val = miscc.wxPyTimer_Stop(self.this)
return val
def __repr__(self):
return "<C wxPyTimer instance>"
class wxPyTimer(wxPyTimerPtr):
def __init__(self,arg0) :
self.this = miscc.new_wxPyTimer(arg0)
self.thisown = 1
class wxIndividualLayoutConstraintPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Above(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Above,(self.this,arg0.this,)+args)
return val
def Absolute(self,arg0):
val = miscc.wxIndividualLayoutConstraint_Absolute(self.this,arg0)
return val
def AsIs(self):
val = miscc.wxIndividualLayoutConstraint_AsIs(self.this)
return val
def Below(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Below,(self.this,arg0.this,)+args)
return val
def Unconstrained(self):
val = miscc.wxIndividualLayoutConstraint_Unconstrained(self.this)
return val
def LeftOf(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self.this,arg0.this,)+args)
return val
def PercentOf(self,arg0,arg1,arg2):
val = miscc.wxIndividualLayoutConstraint_PercentOf(self.this,arg0.this,arg1,arg2)
return val
def RightOf(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self.this,arg0.this,)+args)
return val
def SameAs(self,arg0,arg1,*args):
val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self.this,arg0.this,arg1,)+args)
return val
def Set(self,arg0,arg1,arg2,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Set,(self.this,arg0,arg1.this,arg2,)+args)
return val
def __repr__(self):
return "<C wxIndividualLayoutConstraint instance>"
class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
def __init__(self,this):
self.this = this
class wxLayoutConstraintsPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "bottom" :
miscc.wxLayoutConstraints_bottom_set(self.this,value.this)
return
if name == "centreX" :
miscc.wxLayoutConstraints_centreX_set(self.this,value.this)
return
if name == "centreY" :
miscc.wxLayoutConstraints_centreY_set(self.this,value.this)
return
if name == "height" :
miscc.wxLayoutConstraints_height_set(self.this,value.this)
return
if name == "left" :
miscc.wxLayoutConstraints_left_set(self.this,value.this)
return
if name == "right" :
miscc.wxLayoutConstraints_right_set(self.this,value.this)
return
if name == "top" :
miscc.wxLayoutConstraints_top_set(self.this,value.this)
return
if name == "width" :
miscc.wxLayoutConstraints_width_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "bottom" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self.this))
if name == "centreX" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self.this))
if name == "centreY" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self.this))
if name == "height" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self.this))
if name == "left" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self.this))
if name == "right" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self.this))
if name == "top" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self.this))
if name == "width" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxLayoutConstraints instance>"
class wxLayoutConstraints(wxLayoutConstraintsPtr):
def __init__(self) :
self.this = miscc.new_wxLayoutConstraints()
self.thisown = 1
class wxRegionPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRegion(self.this)
def Clear(self):
val = miscc.wxRegion_Clear(self.this)
return val
def Contains(self,arg0,arg1):
val = miscc.wxRegion_Contains(self.this,arg0,arg1)
return val
def ContainsPoint(self,arg0):
val = miscc.wxRegion_ContainsPoint(self.this,arg0.this)
return val
def ContainsRect(self,arg0):
val = miscc.wxRegion_ContainsRect(self.this,arg0.this)
return val
def GetBox(self):
val = miscc.wxRegion_GetBox(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def Intersect(self,arg0):
val = miscc.wxRegion_Intersect(self.this,arg0.this)
return val
def Subtract(self,arg0):
val = miscc.wxRegion_Subtract(self.this,arg0.this)
return val
def Union(self,arg0):
val = miscc.wxRegion_Union(self.this,arg0.this)
return val
def Xor(self,arg0):
val = miscc.wxRegion_Xor(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxRegion instance>"
class wxRegion(wxRegionPtr):
def __init__(self) :
self.this = miscc.new_wxRegion()
self.thisown = 1
class wxRegionIteratorPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRegionIterator(self.this)
def GetX(self):
val = miscc.wxRegionIterator_GetX(self.this)
return val
def GetY(self):
val = miscc.wxRegionIterator_GetY(self.this)
return val
def GetW(self):
val = miscc.wxRegionIterator_GetW(self.this)
return val
def GetWidth(self):
val = miscc.wxRegionIterator_GetWidth(self.this)
return val
def GetH(self):
val = miscc.wxRegionIterator_GetH(self.this)
return val
def GetHeight(self):
val = miscc.wxRegionIterator_GetHeight(self.this)
return val
def GetRect(self):
val = miscc.wxRegionIterator_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def HaveRects(self):
val = miscc.wxRegionIterator_HaveRects(self.this)
return val
def Reset(self):
val = miscc.wxRegionIterator_Reset(self.this)
return val
def Next(self):
val = miscc.wxRegionIterator_Next(self.this)
return val
def __repr__(self):
return "<C wxRegionIterator instance>"
class wxRegionIterator(wxRegionIteratorPtr):
def __init__(self,arg0) :
self.this = miscc.new_wxRegionIterator(arg0.this)
self.thisown = 1
class wxAcceleratorEntryPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Set(self,arg0,arg1,arg2):
val = miscc.wxAcceleratorEntry_Set(self.this,arg0,arg1,arg2)
return val
def GetFlags(self):
val = miscc.wxAcceleratorEntry_GetFlags(self.this)
return val
def GetKeyCode(self):
val = miscc.wxAcceleratorEntry_GetKeyCode(self.this)
return val
def GetCommand(self):
val = miscc.wxAcceleratorEntry_GetCommand(self.this)
return val
def __repr__(self):
return "<C wxAcceleratorEntry instance>"
class wxAcceleratorEntry(wxAcceleratorEntryPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxAcceleratorEntry,()+args)
self.thisown = 1
class wxAcceleratorTablePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxAcceleratorTable instance>"
class wxAcceleratorTable(wxAcceleratorTablePtr):
def __init__(self,arg0) :
self.this = miscc.new_wxAcceleratorTable(arg0.this)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
def wxFileSelector(arg0,*args):
argl = map(None,args)
try: argl[5] = argl[5].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFileSelector,(arg0,)+args)
return val
def wxGetTextFromUser(arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetTextFromUser,(arg0,)+args)
return val
def wxGetSingleChoice(arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetSingleChoice,(arg0,arg1,arg2,)+args)
return val
def wxGetSingleChoiceIndex(arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetSingleChoiceIndex,(arg0,arg1,arg2,)+args)
return val
def wxMessageBox(arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(miscc.wxMessageBox,(arg0,)+args)
return val
wxColourDisplay = miscc.wxColourDisplay
wxDisplayDepth = miscc.wxDisplayDepth
def wxSetCursor(arg0):
val = miscc.wxSetCursor(arg0.this)
return val
NewId = miscc.NewId
RegisterId = miscc.RegisterId
def wxBeginBusyCursor(*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxBeginBusyCursor,()+args)
return val
wxBell = miscc.wxBell
wxDisplaySize = miscc.wxDisplaySize
wxEndBusyCursor = miscc.wxEndBusyCursor
wxExecute = miscc.wxExecute
def wxFindWindowByLabel(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFindWindowByLabel,(arg0,)+args)
val = wxWindowPtr(val)
return val
def wxFindWindowByName(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFindWindowByName,(arg0,)+args)
val = wxWindowPtr(val)
return val
wxGetMousePosition = miscc.wxGetMousePosition
wxIsBusy = miscc.wxIsBusy
wxNow = miscc.wxNow
wxYield = miscc.wxYield
wxGetResource = miscc.wxGetResource
wxResourceAddIdentifier = miscc.wxResourceAddIdentifier
wxResourceClear = miscc.wxResourceClear
def wxResourceCreateBitmap(arg0):
val = miscc.wxResourceCreateBitmap(arg0)
val = wxBitmapPtr(val)
val.thisown = 1
return val
def wxResourceCreateIcon(arg0):
val = miscc.wxResourceCreateIcon(arg0)
val = wxIconPtr(val)
val.thisown = 1
return val
def wxResourceCreateMenuBar(arg0):
val = miscc.wxResourceCreateMenuBar(arg0)
val = wxMenuBarPtr(val)
return val
wxResourceGetIdentifier = miscc.wxResourceGetIdentifier
wxResourceParseData = miscc.wxResourceParseData
wxResourceParseFile = miscc.wxResourceParseFile
wxResourceParseString = miscc.wxResourceParseString
#-------------- VARIABLE WRAPPERS ------------------
wxLeft = miscc.wxLeft
wxTop = miscc.wxTop
wxRight = miscc.wxRight
wxBottom = miscc.wxBottom
wxWidth = miscc.wxWidth
wxHeight = miscc.wxHeight
wxCentre = miscc.wxCentre
wxCenter = miscc.wxCenter
wxCentreX = miscc.wxCentreX
wxCentreY = miscc.wxCentreY
wxUnconstrained = miscc.wxUnconstrained
wxAsIs = miscc.wxAsIs
wxPercentOf = miscc.wxPercentOf
wxAbove = miscc.wxAbove
wxBelow = miscc.wxBelow
wxLeftOf = miscc.wxLeftOf
wxRightOf = miscc.wxRightOf
wxSameAs = miscc.wxSameAs
wxAbsolute = miscc.wxAbsolute
wxOutRegion = miscc.wxOutRegion
wxPartRegion = miscc.wxPartRegion
wxInRegion = miscc.wxInRegion

File diff suppressed because it is too large Load Diff

View File

@@ -1,230 +0,0 @@
# This file was created automatically by SWIG.
import stattoolc
from misc import *
from windows import *
from gdi import *
from controls import *
from events import *
import wx
class wxStatusBarPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFieldRect(self,arg0):
val = stattoolc.wxStatusBar_GetFieldRect(self.this,arg0)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetFieldsCount(self):
val = stattoolc.wxStatusBar_GetFieldsCount(self.this)
return val
def GetStatusText(self,*args):
val = apply(stattoolc.wxStatusBar_GetStatusText,(self.this,)+args)
return val
def DrawField(self,arg0,arg1):
val = stattoolc.wxStatusBar_DrawField(self.this,arg0.this,arg1)
return val
def DrawFieldText(self,arg0,arg1):
val = stattoolc.wxStatusBar_DrawFieldText(self.this,arg0.this,arg1)
return val
def InitColours(self):
val = stattoolc.wxStatusBar_InitColours(self.this)
return val
def SetFieldsCount(self,*args):
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self.this,)+args)
return val
def SetStatusText(self,arg0,*args):
val = apply(stattoolc.wxStatusBar_SetStatusText,(self.this,arg0,)+args)
return val
def SetStatusWidths(self,arg0,*args):
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self.this,arg0,)+args)
return val
def __repr__(self):
return "<C wxStatusBar instance>"
class wxStatusBar(wxStatusBarPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(stattoolc.new_wxStatusBar,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxToolBarToolPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
stattoolc.delete_wxToolBarTool(self.this)
def __setattr__(self,name,value):
if name == "m_toolStyle" :
stattoolc.wxToolBarTool_m_toolStyle_set(self.this,value)
return
if name == "m_clientData" :
stattoolc.wxToolBarTool_m_clientData_set(self.this,value)
return
if name == "m_index" :
stattoolc.wxToolBarTool_m_index_set(self.this,value)
return
if name == "m_toggleState" :
stattoolc.wxToolBarTool_m_toggleState_set(self.this,value)
return
if name == "m_isToggle" :
stattoolc.wxToolBarTool_m_isToggle_set(self.this,value)
return
if name == "m_deleteSecondBitmap" :
stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self.this,value)
return
if name == "m_enabled" :
stattoolc.wxToolBarTool_m_enabled_set(self.this,value)
return
if name == "m_bitmap1" :
stattoolc.wxToolBarTool_m_bitmap1_set(self.this,value.this)
return
if name == "m_bitmap2" :
stattoolc.wxToolBarTool_m_bitmap2_set(self.this,value.this)
return
if name == "m_isMenuCommand" :
stattoolc.wxToolBarTool_m_isMenuCommand_set(self.this,value)
return
if name == "m_shortHelpString" :
stattoolc.wxToolBarTool_m_shortHelpString_set(self.this,value)
return
if name == "m_longHelpString" :
stattoolc.wxToolBarTool_m_longHelpString_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_toolStyle" :
return stattoolc.wxToolBarTool_m_toolStyle_get(self.this)
if name == "m_clientData" :
return stattoolc.wxToolBarTool_m_clientData_get(self.this)
if name == "m_index" :
return stattoolc.wxToolBarTool_m_index_get(self.this)
if name == "m_toggleState" :
return stattoolc.wxToolBarTool_m_toggleState_get(self.this)
if name == "m_isToggle" :
return stattoolc.wxToolBarTool_m_isToggle_get(self.this)
if name == "m_deleteSecondBitmap" :
return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self.this)
if name == "m_enabled" :
return stattoolc.wxToolBarTool_m_enabled_get(self.this)
if name == "m_bitmap1" :
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self.this))
if name == "m_bitmap2" :
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self.this))
if name == "m_isMenuCommand" :
return stattoolc.wxToolBarTool_m_isMenuCommand_get(self.this)
if name == "m_shortHelpString" :
return stattoolc.wxToolBarTool_m_shortHelpString_get(self.this)
if name == "m_longHelpString" :
return stattoolc.wxToolBarTool_m_longHelpString_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxToolBarTool instance>"
class wxToolBarTool(wxToolBarToolPtr):
def __init__(self) :
self.this = stattoolc.new_wxToolBarTool()
self.thisown = 1
class wxToolBarPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AddSeparator(self):
val = stattoolc.wxToolBar_AddSeparator(self.this)
return val
def AddTool(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(stattoolc.wxToolBar_AddTool,(self.this,arg0,arg1.this,)+args)
val = wxToolBarToolPtr(val)
return val
def AddSimpleTool(self,arg0,arg1,*args):
val = apply(stattoolc.wxToolBar_AddSimpleTool,(self.this,arg0,arg1.this,)+args)
val = wxToolBarToolPtr(val)
return val
def EnableTool(self,arg0,arg1):
val = stattoolc.wxToolBar_EnableTool(self.this,arg0,arg1)
return val
def GetToolEnabled(self,arg0):
val = stattoolc.wxToolBar_GetToolEnabled(self.this,arg0)
return val
def GetToolLongHelp(self,arg0):
val = stattoolc.wxToolBar_GetToolLongHelp(self.this,arg0)
return val
def GetToolPacking(self):
val = stattoolc.wxToolBar_GetToolPacking(self.this)
return val
def GetToolSeparation(self):
val = stattoolc.wxToolBar_GetToolSeparation(self.this)
return val
def GetToolShortHelp(self,arg0):
val = stattoolc.wxToolBar_GetToolShortHelp(self.this,arg0)
return val
def GetToolState(self,arg0):
val = stattoolc.wxToolBar_GetToolState(self.this,arg0)
return val
def Realize(self):
val = stattoolc.wxToolBar_Realize(self.this)
return val
def SetToolLongHelp(self,arg0,arg1):
val = stattoolc.wxToolBar_SetToolLongHelp(self.this,arg0,arg1)
return val
def SetToolShortHelp(self,arg0,arg1):
val = stattoolc.wxToolBar_SetToolShortHelp(self.this,arg0,arg1)
return val
def SetMargins(self,arg0):
val = stattoolc.wxToolBar_SetMargins(self.this,arg0.this)
return val
def SetToolPacking(self,arg0):
val = stattoolc.wxToolBar_SetToolPacking(self.this,arg0)
return val
def SetToolSeparation(self,arg0):
val = stattoolc.wxToolBar_SetToolSeparation(self.this,arg0)
return val
def ToggleTool(self,arg0,arg1):
val = stattoolc.wxToolBar_ToggleTool(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxToolBar instance>"
class wxToolBar(wxToolBarPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,114 +0,0 @@
# This file was created automatically by SWIG.
import utilsc
class wxConfigPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
utilsc.delete_wxConfig(self.this)
def DontCreateOnDemand(self):
val = utilsc.wxConfig_DontCreateOnDemand(self.this)
return val
def DeleteEntry(self,arg0,*args):
val = apply(utilsc.wxConfig_DeleteEntry,(self.this,arg0,)+args)
return val
def DeleteGroup(self,arg0):
val = utilsc.wxConfig_DeleteGroup(self.this,arg0)
return val
def Exists(self,arg0):
val = utilsc.wxConfig_Exists(self.this,arg0)
return val
def Flush(self,*args):
val = apply(utilsc.wxConfig_Flush,(self.this,)+args)
return val
def GetAppName(self):
val = utilsc.wxConfig_GetAppName(self.this)
return val
def GetFirstGroup(self):
val = utilsc.wxConfig_GetFirstGroup(self.this)
return val
def GetFirstEntry(self):
val = utilsc.wxConfig_GetFirstEntry(self.this)
return val
def GetNextGroup(self,arg0):
val = utilsc.wxConfig_GetNextGroup(self.this,arg0)
return val
def GetNextEntry(self,arg0):
val = utilsc.wxConfig_GetNextEntry(self.this,arg0)
return val
def GetNumberOfEntries(self,*args):
val = apply(utilsc.wxConfig_GetNumberOfEntries,(self.this,)+args)
return val
def GetNumberOfGroups(self,*args):
val = apply(utilsc.wxConfig_GetNumberOfGroups,(self.this,)+args)
return val
def GetPath(self):
val = utilsc.wxConfig_GetPath(self.this)
return val
def GetVendorName(self):
val = utilsc.wxConfig_GetVendorName(self.this)
return val
def HasEntry(self,arg0):
val = utilsc.wxConfig_HasEntry(self.this,arg0)
return val
def HasGroup(self,arg0):
val = utilsc.wxConfig_HasGroup(self.this,arg0)
return val
def IsExpandingEnvVars(self):
val = utilsc.wxConfig_IsExpandingEnvVars(self.this)
return val
def IsRecordingDefaults(self):
val = utilsc.wxConfig_IsRecordingDefaults(self.this)
return val
def Read(self,arg0,*args):
val = apply(utilsc.wxConfig_Read,(self.this,arg0,)+args)
return val
def ReadInt(self,arg0,*args):
val = apply(utilsc.wxConfig_ReadInt,(self.this,arg0,)+args)
return val
def ReadFloat(self,arg0,*args):
val = apply(utilsc.wxConfig_ReadFloat,(self.this,arg0,)+args)
return val
def SetAppName(self,arg0):
val = utilsc.wxConfig_SetAppName(self.this,arg0)
return val
def SetExpandEnvVars(self,*args):
val = apply(utilsc.wxConfig_SetExpandEnvVars,(self.this,)+args)
return val
def SetPath(self,arg0):
val = utilsc.wxConfig_SetPath(self.this,arg0)
return val
def SetRecordDefaults(self,*args):
val = apply(utilsc.wxConfig_SetRecordDefaults,(self.this,)+args)
return val
def SetVendorName(self,arg0):
val = utilsc.wxConfig_SetVendorName(self.this,arg0)
return val
def Write(self,arg0,arg1):
val = utilsc.wxConfig_Write(self.this,arg0,arg1)
return val
def WriteInt(self,arg0,arg1):
val = utilsc.wxConfig_WriteInt(self.this,arg0,arg1)
return val
def WriteFloat(self,arg0,arg1):
val = utilsc.wxConfig_WriteFloat(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxConfig instance>"
class wxConfig(wxConfigPtr):
def __init__(self,*args) :
self.this = apply(utilsc.new_wxConfig,()+args)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,627 +0,0 @@
# This file was created automatically by SWIG.
import windowsc
from misc import *
from gdi import *
import wx
def wxDLG_PNT(win, point):
return win.ConvertDialogPointToPixels(point)
def wxDLG_SZE(win, size):
return win.ConvertDialogPointToPixels(size)
class wxEvtHandlerPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Connect(self,arg0,arg1,arg2,arg3):
val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
return val
def __repr__(self):
return "<C wxEvtHandler instance>"
class wxEvtHandler(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
class wxWindowPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def CaptureMouse(self):
val = windowsc.wxWindow_CaptureMouse(self.this)
return val
def Center(self,*args):
val = apply(windowsc.wxWindow_Center,(self.this,)+args)
return val
def Centre(self,*args):
val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
return val
def ClientToScreen(self,arg0,arg1):
val = windowsc.wxWindow_ClientToScreen(self.this,arg0,arg1)
return val
def Close(self,*args):
val = apply(windowsc.wxWindow_Close,(self.this,)+args)
return val
def Destroy(self):
val = windowsc.wxWindow_Destroy(self.this)
return val
def DestroyChildren(self):
val = windowsc.wxWindow_DestroyChildren(self.this)
return val
def Enable(self,arg0):
val = windowsc.wxWindow_Enable(self.this,arg0)
return val
def FindWindowByID(self,arg0):
val = windowsc.wxWindow_FindWindowByID(self.this,arg0)
val = wxWindowPtr(val)
return val
def FindWindowByName(self,arg0):
val = windowsc.wxWindow_FindWindowByName(self.this,arg0)
val = wxWindowPtr(val)
return val
def Fit(self):
val = windowsc.wxWindow_Fit(self.this)
return val
def GetBackgroundColour(self):
val = windowsc.wxWindow_GetBackgroundColour(self.this)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetCharHeight(self):
val = windowsc.wxWindow_GetCharHeight(self.this)
return val
def GetCharWidth(self):
val = windowsc.wxWindow_GetCharWidth(self.this)
return val
def GetClientSizeTuple(self):
val = windowsc.wxWindow_GetClientSizeTuple(self.this)
return val
def GetClientSize(self):
val = windowsc.wxWindow_GetClientSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetConstraints(self):
val = windowsc.wxWindow_GetConstraints(self.this)
val = wxLayoutConstraintsPtr(val)
return val
def GetFont(self):
val = windowsc.wxWindow_GetFont(self.this)
val = wxFontPtr(val)
return val
def GetForegroundColour(self):
val = windowsc.wxWindow_GetForegroundColour(self.this)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetGrandParent(self):
val = windowsc.wxWindow_GetGrandParent(self.this)
val = wxWindowPtr(val)
return val
def GetId(self):
val = windowsc.wxWindow_GetId(self.this)
return val
def GetLabel(self):
val = windowsc.wxWindow_GetLabel(self.this)
return val
def GetName(self):
val = windowsc.wxWindow_GetName(self.this)
return val
def GetParent(self):
val = windowsc.wxWindow_GetParent(self.this)
val = wxWindowPtr(val)
return val
def GetPositionTuple(self):
val = windowsc.wxWindow_GetPositionTuple(self.this)
return val
def GetPosition(self):
val = windowsc.wxWindow_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetRect(self):
val = windowsc.wxWindow_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetReturnCode(self):
val = windowsc.wxWindow_GetReturnCode(self.this)
return val
def GetScrollThumb(self,arg0):
val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
return val
def GetScrollPos(self,arg0):
val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
return val
def GetScrollRange(self,arg0):
val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
return val
def GetSizeTuple(self):
val = windowsc.wxWindow_GetSizeTuple(self.this)
return val
def GetSize(self):
val = windowsc.wxWindow_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetTextExtent(self,arg0):
val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxWindow_GetTitle(self.this)
return val
def GetWindowStyleFlag(self):
val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
return val
def InitDialog(self):
val = windowsc.wxWindow_InitDialog(self.this)
return val
def IsEnabled(self):
val = windowsc.wxWindow_IsEnabled(self.this)
return val
def IsRetained(self):
val = windowsc.wxWindow_IsRetained(self.this)
return val
def IsShown(self):
val = windowsc.wxWindow_IsShown(self.this)
return val
def Layout(self):
val = windowsc.wxWindow_Layout(self.this)
return val
def LoadFromResource(self,arg0,arg1,*args):
val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
return val
def Lower(self):
val = windowsc.wxWindow_Lower(self.this)
return val
def MakeModal(self,arg0):
val = windowsc.wxWindow_MakeModal(self.this,arg0)
return val
def Move(self,arg0,arg1):
val = windowsc.wxWindow_Move(self.this,arg0,arg1)
return val
def PopupMenu(self,arg0,arg1,arg2):
val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
return val
def Raise(self):
val = windowsc.wxWindow_Raise(self.this)
return val
def Refresh(self,*args):
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
return val
def ReleaseMouse(self):
val = windowsc.wxWindow_ReleaseMouse(self.this)
return val
def ScreenToClient(self,arg0,arg1):
val = windowsc.wxWindow_ScreenToClient(self.this,arg0,arg1)
return val
def ScrollWindow(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
return val
def SetAcceleratorTable(self,arg0):
val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
return val
def SetAutoLayout(self,arg0):
val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
return val
def SetBackgroundColour(self,arg0):
val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
return val
def SetConstraints(self,arg0):
val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
return val
def SetDoubleClick(self,arg0):
val = windowsc.wxWindow_SetDoubleClick(self.this,arg0)
return val
def SetFocus(self):
val = windowsc.wxWindow_SetFocus(self.this)
return val
def SetFont(self,arg0):
val = windowsc.wxWindow_SetFont(self.this,arg0.this)
return val
def SetForegroundColour(self,arg0):
val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
return val
def SetId(self,arg0):
val = windowsc.wxWindow_SetId(self.this,arg0)
return val
def SetName(self,arg0):
val = windowsc.wxWindow_SetName(self.this,arg0)
return val
def SetReturnCode(self,arg0):
val = windowsc.wxWindow_SetReturnCode(self.this,arg0)
return val
def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def SetScrollPos(self,arg0,arg1,*args):
val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
return val
def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def SetSize(self,arg0):
val = windowsc.wxWindow_SetSize(self.this,arg0.this)
return val
def SetPosition(self,arg0):
val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
return val
def SetSizeHints(self,*args):
val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
return val
def SetClientSize(self,arg0,arg1):
val = windowsc.wxWindow_SetClientSize(self.this,arg0,arg1)
return val
def SetCursor(self,arg0):
val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxWindow_SetTitle(self.this,arg0)
return val
def Show(self,arg0):
val = windowsc.wxWindow_Show(self.this,arg0)
return val
def TransferDataFromWindow(self):
val = windowsc.wxWindow_TransferDataFromWindow(self.this)
return val
def TransferDataToWindow(self):
val = windowsc.wxWindow_TransferDataToWindow(self.this)
return val
def Validate(self):
val = windowsc.wxWindow_Validate(self.this)
return val
def WarpPointer(self,arg0,arg1):
val = windowsc.wxWindow_WarpPointer(self.this,arg0,arg1)
return val
def ConvertDialogPointToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertDialogSizeToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def ConvertPixelPointToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertPixelSizeToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxWindow instance>"
class wxWindow(wxWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxPanelPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def InitDialog(self):
val = windowsc.wxPanel_InitDialog(self.this)
return val
def __repr__(self):
return "<C wxPanel instance>"
class wxPanel(wxPanelPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxDialogPtr(wxPanelPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Centre(self,*args):
val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
return val
def EndModal(self,arg0):
val = windowsc.wxDialog_EndModal(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxDialog_GetTitle(self.this)
return val
def Iconize(self,arg0):
val = windowsc.wxDialog_Iconize(self.this,arg0)
return val
def IsIconized(self):
val = windowsc.wxDialog_IsIconized(self.this)
return val
def SetModal(self,arg0):
val = windowsc.wxDialog_SetModal(self.this,arg0)
return val
def IsModal(self):
val = windowsc.wxDialog_IsModal(self.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxDialog_SetTitle(self.this,arg0)
return val
def Show(self,arg0):
val = windowsc.wxDialog_Show(self.this,arg0)
return val
def ShowModal(self):
val = windowsc.wxDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxDialog instance>"
class wxDialog(wxDialogPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxScrolledWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def EnableScrolling(self,arg0,arg1):
val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
return val
def GetScrollPixelsPerUnit(self):
val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
return val
def GetVirtualSize(self):
val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
return val
def IsRetained(self):
val = windowsc.wxScrolledWindow_IsRetained(self.this)
return val
def PrepareDC(self,arg0):
val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
return val
def Scroll(self,arg0,arg1):
val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
return val
def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def ViewStart(self):
val = windowsc.wxScrolledWindow_ViewStart(self.this)
return val
def __repr__(self):
return "<C wxScrolledWindow instance>"
class wxScrolledWindow(wxScrolledWindowPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._StdOnScrollCallbacks(self)
class wxMenuPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0,arg1,*args):
val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
return val
def AppendMenu(self,arg0,arg1,arg2,*args):
val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
return val
def AppendSeparator(self):
val = windowsc.wxMenu_AppendSeparator(self.this)
return val
def Break(self):
val = windowsc.wxMenu_Break(self.this)
return val
def Check(self,arg0,arg1):
val = windowsc.wxMenu_Check(self.this,arg0,arg1)
return val
def Enable(self,arg0,arg1):
val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
return val
def FindItem(self,arg0):
val = windowsc.wxMenu_FindItem(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxMenu_GetTitle(self.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxMenu_SetTitle(self.this,arg0)
return val
def FindItemForId(self,arg0):
val = windowsc.wxMenu_FindItemForId(self.this,arg0)
val = wxMenuItemPtr(val)
return val
def GetHelpString(self,arg0):
val = windowsc.wxMenu_GetHelpString(self.this,arg0)
return val
def GetLabel(self,arg0):
val = windowsc.wxMenu_GetLabel(self.this,arg0)
return val
def SetHelpString(self,arg0,arg1):
val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
return val
def IsChecked(self,arg0):
val = windowsc.wxMenu_IsChecked(self.this,arg0)
return val
def IsEnabled(self,arg0):
val = windowsc.wxMenu_IsEnabled(self.this,arg0)
return val
def SetLabel(self,arg0,arg1):
val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxMenu instance>"
class wxMenu(wxMenuPtr):
def __init__(self,*args) :
self.this = apply(windowsc.new_wxMenu,()+args)
self.thisown = 1
class wxPyMenuPtr(wxMenuPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windowsc.delete_wxPyMenu(self.this)
def __repr__(self):
return "<C wxPyMenu instance>"
class wxPyMenu(wxPyMenuPtr):
def __init__(self,*args) :
self.this = apply(windowsc.new_wxPyMenu,()+args)
self.thisown = 1
class wxMenuBarPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0,arg1):
val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
return val
def Check(self,arg0,arg1):
val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
return val
def Checked(self,arg0):
val = windowsc.wxMenuBar_Checked(self.this,arg0)
return val
def Enable(self,arg0,arg1):
val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
return val
def Enabled(self,arg0):
val = windowsc.wxMenuBar_Enabled(self.this,arg0)
return val
def FindMenuItem(self,arg0,arg1):
val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
return val
def FindItemForId(self,arg0):
val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
val = wxMenuItemPtr(val)
return val
def GetMenuCount(self):
val = windowsc.wxMenuBar_GetMenuCount(self.this)
return val
def GetMenu(self,arg0):
val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
val = wxMenuPtr(val)
return val
def __repr__(self):
return "<C wxMenuBar instance>"
class wxMenuBar(wxMenuBarPtr):
def __init__(self) :
self.this = windowsc.new_wxMenuBar()
self.thisown = 1
class wxMenuItemPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def IsSeparator(self):
val = windowsc.wxMenuItem_IsSeparator(self.this)
return val
def IsEnabled(self):
val = windowsc.wxMenuItem_IsEnabled(self.this)
return val
def IsChecked(self):
val = windowsc.wxMenuItem_IsChecked(self.this)
return val
def IsCheckable(self):
val = windowsc.wxMenuItem_IsCheckable(self.this)
return val
def GetId(self):
val = windowsc.wxMenuItem_GetId(self.this)
return val
def GetSubMenu(self):
val = windowsc.wxMenuItem_GetSubMenu(self.this)
val = wxMenuPtr(val)
return val
def SetName(self,arg0):
val = windowsc.wxMenuItem_SetName(self.this,arg0)
return val
def GetName(self):
val = windowsc.wxMenuItem_GetName(self.this)
return val
def GetHelp(self):
val = windowsc.wxMenuItem_GetHelp(self.this)
return val
def SetHelp(self,arg0):
val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
return val
def Enable(self,*args):
val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
return val
def Check(self,*args):
val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
return val
def __repr__(self):
return "<C wxMenuItem instance>"
class wxMenuItem(wxMenuItemPtr):
def __init__(self,this):
self.this = this
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,545 +0,0 @@
# This file was created automatically by SWIG.
import windows2c
from misc import *
from gdi import *
from windows import *
from controls import *
from events import *
import wx
class wxGridCellPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windows2c.delete_wxGridCell(self.this)
def GetTextValue(self):
val = windows2c.wxGridCell_GetTextValue(self.this)
return val
def SetTextValue(self,arg0):
val = windows2c.wxGridCell_SetTextValue(self.this,arg0)
return val
def GetFont(self):
val = windows2c.wxGridCell_GetFont(self.this)
val = wxFontPtr(val)
return val
def SetFont(self,arg0):
val = windows2c.wxGridCell_SetFont(self.this,arg0.this)
return val
def GetTextColour(self):
val = windows2c.wxGridCell_GetTextColour(self.this)
val = wxColourPtr(val)
return val
def SetTextColour(self,arg0):
val = windows2c.wxGridCell_SetTextColour(self.this,arg0.this)
return val
def GetBackgroundColour(self):
val = windows2c.wxGridCell_GetBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def SetBackgroundColour(self,arg0):
val = windows2c.wxGridCell_SetBackgroundColour(self.this,arg0.this)
return val
def GetBackgroundBrush(self):
val = windows2c.wxGridCell_GetBackgroundBrush(self.this)
val = wxBrushPtr(val)
return val
def GetAlignment(self):
val = windows2c.wxGridCell_GetAlignment(self.this)
return val
def SetAlignment(self,arg0):
val = windows2c.wxGridCell_SetAlignment(self.this,arg0)
return val
def GetCellBitmap(self):
val = windows2c.wxGridCell_GetCellBitmap(self.this)
val = wxBitmapPtr(val)
return val
def SetCellBitmap(self,arg0):
val = windows2c.wxGridCell_SetCellBitmap(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxGridCell instance>"
class wxGridCell(wxGridCellPtr):
def __init__(self) :
self.this = windows2c.new_wxGridCell()
self.thisown = 1
class wxGridPtr(wxPanelPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AdjustScrollbars(self):
val = windows2c.wxGrid_AdjustScrollbars(self.this)
return val
def AppendCols(self,*args):
val = apply(windows2c.wxGrid_AppendCols,(self.this,)+args)
return val
def AppendRows(self,*args):
val = apply(windows2c.wxGrid_AppendRows,(self.this,)+args)
return val
def BeginBatch(self):
val = windows2c.wxGrid_BeginBatch(self.this)
return val
def CellHitTest(self,arg0,arg1):
val = windows2c.wxGrid_CellHitTest(self.this,arg0,arg1)
return val
def CreateGrid(self,arg0,arg1,*args):
val = apply(windows2c.wxGrid_CreateGrid,(self.this,arg0,arg1,)+args)
return val
def CurrentCellVisible(self):
val = windows2c.wxGrid_CurrentCellVisible(self.this)
return val
def DeleteCols(self,*args):
val = apply(windows2c.wxGrid_DeleteCols,(self.this,)+args)
return val
def DeleteRows(self,*args):
val = apply(windows2c.wxGrid_DeleteRows,(self.this,)+args)
return val
def EndBatch(self):
val = windows2c.wxGrid_EndBatch(self.this)
return val
def GetBatchCount(self):
val = windows2c.wxGrid_GetBatchCount(self.this)
return val
def GetCell(self,arg0,arg1):
val = windows2c.wxGrid_GetCell(self.this,arg0,arg1)
val = wxGridCellPtr(val)
return val
def GetCellAlignment(self,arg0,arg1):
val = windows2c.wxGrid_GetCellAlignment(self.this,arg0,arg1)
return val
def GetDefCellAlignment(self):
val = windows2c.wxGrid_GetDefCellAlignment(self.this)
return val
def GetCellBackgroundColour(self,arg0,arg1):
val = windows2c.wxGrid_GetCellBackgroundColour(self.this,arg0,arg1)
val = wxColourPtr(val)
return val
def GetDefCellBackgroundColour(self):
val = windows2c.wxGrid_GetDefCellBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def GetCellTextColour(self,arg0,arg1):
val = windows2c.wxGrid_GetCellTextColour(self.this,arg0,arg1)
val = wxColourPtr(val)
return val
def GetDefCellTextColour(self):
val = windows2c.wxGrid_GetDefCellTextColour(self.this)
val = wxColourPtr(val)
return val
def GetCellTextFont(self,arg0,arg1):
val = windows2c.wxGrid_GetCellTextFont(self.this,arg0,arg1)
val = wxFontPtr(val)
return val
def GetDefCellTextFont(self):
val = windows2c.wxGrid_GetDefCellTextFont(self.this)
val = wxFontPtr(val)
return val
def GetCellValue(self,arg0,arg1):
val = windows2c.wxGrid_GetCellValue(self.this,arg0,arg1)
return val
def GetCols(self):
val = windows2c.wxGrid_GetCols(self.this)
return val
def GetColumnWidth(self,arg0):
val = windows2c.wxGrid_GetColumnWidth(self.this,arg0)
return val
def GetCurrentRect(self):
val = windows2c.wxGrid_GetCurrentRect(self.this)
val = wxRectPtr(val)
return val
def GetCursorColumn(self):
val = windows2c.wxGrid_GetCursorColumn(self.this)
return val
def GetCursorRow(self):
val = windows2c.wxGrid_GetCursorRow(self.this)
return val
def GetEditable(self):
val = windows2c.wxGrid_GetEditable(self.this)
return val
def GetHorizScrollBar(self):
val = windows2c.wxGrid_GetHorizScrollBar(self.this)
val = wxScrollBarPtr(val)
return val
def GetLabelAlignment(self,arg0):
val = windows2c.wxGrid_GetLabelAlignment(self.this,arg0)
return val
def GetLabelBackgroundColour(self):
val = windows2c.wxGrid_GetLabelBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def GetLabelSize(self,arg0):
val = windows2c.wxGrid_GetLabelSize(self.this,arg0)
return val
def GetLabelTextColour(self):
val = windows2c.wxGrid_GetLabelTextColour(self.this)
val = wxColourPtr(val)
return val
def GetLabelTextFont(self):
val = windows2c.wxGrid_GetLabelTextFont(self.this)
val = wxFontPtr(val)
return val
def GetLabelValue(self,arg0,arg1):
val = windows2c.wxGrid_GetLabelValue(self.this,arg0,arg1)
return val
def GetRowHeight(self,arg0):
val = windows2c.wxGrid_GetRowHeight(self.this,arg0)
return val
def GetRows(self):
val = windows2c.wxGrid_GetRows(self.this)
return val
def GetScrollPosX(self):
val = windows2c.wxGrid_GetScrollPosX(self.this)
return val
def GetScrollPosY(self):
val = windows2c.wxGrid_GetScrollPosY(self.this)
return val
def GetTextItem(self):
val = windows2c.wxGrid_GetTextItem(self.this)
val = wxTextCtrlPtr(val)
return val
def GetVertScrollBar(self):
val = windows2c.wxGrid_GetVertScrollBar(self.this)
val = wxScrollBarPtr(val)
return val
def InsertCols(self,*args):
val = apply(windows2c.wxGrid_InsertCols,(self.this,)+args)
return val
def InsertRows(self,*args):
val = apply(windows2c.wxGrid_InsertRows,(self.this,)+args)
return val
def OnActivate(self,arg0):
val = windows2c.wxGrid_OnActivate(self.this,arg0)
return val
def SetCellAlignment(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellAlignment(self.this,arg0,arg1,arg2)
return val
def SetDefCellAlignment(self,arg0):
val = windows2c.wxGrid_SetDefCellAlignment(self.this,arg0)
return val
def SetCellBackgroundColour(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellBackgroundColour(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellBackgroundColour(self,arg0):
val = windows2c.wxGrid_SetDefCellBackgroundColour(self.this,arg0.this)
return val
def SetCellTextColour(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellTextColour(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellTextColour(self,arg0):
val = windows2c.wxGrid_SetDefCellTextColour(self.this,arg0.this)
return val
def SetCellTextFont(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellTextFont(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellTextFont(self,arg0):
val = windows2c.wxGrid_SetDefCellTextFont(self.this,arg0.this)
return val
def SetCellValue(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellValue(self.this,arg0,arg1,arg2)
return val
def SetColumnWidth(self,arg0,arg1):
val = windows2c.wxGrid_SetColumnWidth(self.this,arg0,arg1)
return val
def SetDividerPen(self,arg0):
val = windows2c.wxGrid_SetDividerPen(self.this,arg0.this)
return val
def SetEditable(self,arg0):
val = windows2c.wxGrid_SetEditable(self.this,arg0)
return val
def SetGridCursor(self,arg0,arg1):
val = windows2c.wxGrid_SetGridCursor(self.this,arg0,arg1)
return val
def SetLabelAlignment(self,arg0,arg1):
val = windows2c.wxGrid_SetLabelAlignment(self.this,arg0,arg1)
return val
def SetLabelBackgroundColour(self,arg0):
val = windows2c.wxGrid_SetLabelBackgroundColour(self.this,arg0.this)
return val
def SetLabelSize(self,arg0,arg1):
val = windows2c.wxGrid_SetLabelSize(self.this,arg0,arg1)
return val
def SetLabelTextColour(self,arg0):
val = windows2c.wxGrid_SetLabelTextColour(self.this,arg0.this)
return val
def SetLabelTextFont(self,arg0):
val = windows2c.wxGrid_SetLabelTextFont(self.this,arg0.this)
return val
def SetLabelValue(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetLabelValue(self.this,arg0,arg1,arg2)
return val
def SetRowHeight(self,arg0,arg1):
val = windows2c.wxGrid_SetRowHeight(self.this,arg0,arg1)
return val
def UpdateDimensions(self):
val = windows2c.wxGrid_UpdateDimensions(self.this)
return val
def __repr__(self):
return "<C wxGrid instance>"
class wxGrid(wxGridPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxGrid,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
class wxGridEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "m_row" :
windows2c.wxGridEvent_m_row_set(self.this,value)
return
if name == "m_col" :
windows2c.wxGridEvent_m_col_set(self.this,value)
return
if name == "m_x" :
windows2c.wxGridEvent_m_x_set(self.this,value)
return
if name == "m_y" :
windows2c.wxGridEvent_m_y_set(self.this,value)
return
if name == "m_control" :
windows2c.wxGridEvent_m_control_set(self.this,value)
return
if name == "m_shift" :
windows2c.wxGridEvent_m_shift_set(self.this,value)
return
if name == "m_cell" :
windows2c.wxGridEvent_m_cell_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_row" :
return windows2c.wxGridEvent_m_row_get(self.this)
if name == "m_col" :
return windows2c.wxGridEvent_m_col_get(self.this)
if name == "m_x" :
return windows2c.wxGridEvent_m_x_get(self.this)
if name == "m_y" :
return windows2c.wxGridEvent_m_y_get(self.this)
if name == "m_control" :
return windows2c.wxGridEvent_m_control_get(self.this)
if name == "m_shift" :
return windows2c.wxGridEvent_m_shift_get(self.this)
if name == "m_cell" :
return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxGridEvent instance>"
class wxGridEvent(wxGridEventPtr):
def __init__(self,this):
self.this = this
class wxNotebookEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSelection(self):
val = windows2c.wxNotebookEvent_GetSelection(self.this)
return val
def GetOldSelection(self):
val = windows2c.wxNotebookEvent_GetOldSelection(self.this)
return val
def __repr__(self):
return "<C wxNotebookEvent instance>"
class wxNotebookEvent(wxNotebookEventPtr):
def __init__(self,this):
self.this = this
class wxNotebookPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPageCount(self):
val = windows2c.wxNotebook_GetPageCount(self.this)
return val
def SetSelection(self,arg0):
val = windows2c.wxNotebook_SetSelection(self.this,arg0)
return val
def AdvanceSelection(self,*args):
val = apply(windows2c.wxNotebook_AdvanceSelection,(self.this,)+args)
return val
def GetSelection(self):
val = windows2c.wxNotebook_GetSelection(self.this)
return val
def SetPageText(self,arg0,arg1):
val = windows2c.wxNotebook_SetPageText(self.this,arg0,arg1)
return val
def GetPageText(self,arg0):
val = windows2c.wxNotebook_GetPageText(self.this,arg0)
return val
def SetImageList(self,arg0):
val = windows2c.wxNotebook_SetImageList(self.this,arg0)
return val
def GetImageList(self):
val = windows2c.wxNotebook_GetImageList(self.this)
return val
def GetPageImage(self,arg0):
val = windows2c.wxNotebook_GetPageImage(self.this,arg0)
return val
def SetPageImage(self,arg0,arg1):
val = windows2c.wxNotebook_SetPageImage(self.this,arg0,arg1)
return val
def GetRowCount(self):
val = windows2c.wxNotebook_GetRowCount(self.this)
return val
def DeletePage(self,arg0):
val = windows2c.wxNotebook_DeletePage(self.this,arg0)
return val
def DeleteAllPages(self):
val = windows2c.wxNotebook_DeleteAllPages(self.this)
return val
def AddPage(self,arg0,arg1,*args):
val = apply(windows2c.wxNotebook_AddPage,(self.this,arg0.this,arg1,)+args)
return val
def GetPage(self,arg0):
val = windows2c.wxNotebook_GetPage(self.this,arg0)
return val
def __repr__(self):
return "<C wxNotebook instance>"
class wxNotebook(wxNotebookPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSplitterWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBorderSize(self):
val = windows2c.wxSplitterWindow_GetBorderSize(self.this)
return val
def GetMinimumPaneSize(self):
val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self.this)
return val
def GetSashPosition(self):
val = windows2c.wxSplitterWindow_GetSashPosition(self.this)
return val
def GetSashSize(self):
val = windows2c.wxSplitterWindow_GetSashSize(self.this)
return val
def GetSplitMode(self):
val = windows2c.wxSplitterWindow_GetSplitMode(self.this)
return val
def GetWindow1(self):
val = windows2c.wxSplitterWindow_GetWindow1(self.this)
val = wxWindowPtr(val)
return val
def GetWindow2(self):
val = windows2c.wxSplitterWindow_GetWindow2(self.this)
val = wxWindowPtr(val)
return val
def Initialize(self,arg0):
val = windows2c.wxSplitterWindow_Initialize(self.this,arg0.this)
return val
def IsSplit(self):
val = windows2c.wxSplitterWindow_IsSplit(self.this)
return val
def SetBorderSize(self,arg0):
val = windows2c.wxSplitterWindow_SetBorderSize(self.this,arg0)
return val
def SetSashPosition(self,arg0,*args):
val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self.this,arg0,)+args)
return val
def SetSashSize(self,arg0):
val = windows2c.wxSplitterWindow_SetSashSize(self.this,arg0)
return val
def SetMinimumPaneSize(self,arg0):
val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self.this,arg0)
return val
def SetSplitMode(self,arg0):
val = windows2c.wxSplitterWindow_SetSplitMode(self.this,arg0)
return val
def SplitHorizontally(self,arg0,arg1,*args):
val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self.this,arg0.this,arg1.this,)+args)
return val
def SplitVertically(self,arg0,arg1,*args):
val = apply(windows2c.wxSplitterWindow_SplitVertically,(self.this,arg0.this,arg1.this,)+args)
return val
def Unsplit(self,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows2c.wxSplitterWindow_Unsplit,(self.this,)+args)
return val
def __repr__(self):
return "<C wxSplitterWindow instance>"
class wxSplitterWindow(wxSplitterWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL
wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL
wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL
wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL
wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL
wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS
wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL
wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE
wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK
wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK
wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK
wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK

File diff suppressed because it is too large Load Diff

View File

@@ -1,293 +0,0 @@
# This file was created automatically by SWIG.
import windows3c
from misc import *
from gdi import *
from windows import *
from windows2 import *
from controls import *
from events import *
from mdi import *
from frames import *
from stattool import *
import wx
class wxSashEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetEdge(self,arg0):
val = windows3c.wxSashEvent_SetEdge(self.this,arg0)
return val
def GetEdge(self):
val = windows3c.wxSashEvent_GetEdge(self.this)
return val
def SetDragRect(self,arg0):
val = windows3c.wxSashEvent_SetDragRect(self.this,arg0.this)
return val
def GetDragRect(self):
val = windows3c.wxSashEvent_GetDragRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def SetDragStatus(self,arg0):
val = windows3c.wxSashEvent_SetDragStatus(self.this,arg0)
return val
def GetDragStatus(self):
val = windows3c.wxSashEvent_GetDragStatus(self.this)
return val
def __repr__(self):
return "<C wxSashEvent instance>"
class wxSashEvent(wxSashEventPtr):
def __init__(self,this):
self.this = this
class wxSashWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSashVisible(self,arg0):
val = windows3c.wxSashWindow_GetSashVisible(self.this,arg0)
return val
def GetDefaultBorderSize(self):
val = windows3c.wxSashWindow_GetDefaultBorderSize(self.this)
return val
def GetEdgeMargin(self,arg0):
val = windows3c.wxSashWindow_GetEdgeMargin(self.this,arg0)
return val
def GetExtraBorderSize(self):
val = windows3c.wxSashWindow_GetExtraBorderSize(self.this)
return val
def GetMaximumSizeX(self):
val = windows3c.wxSashWindow_GetMaximumSizeX(self.this)
return val
def GetMaximumSizeY(self):
val = windows3c.wxSashWindow_GetMaximumSizeY(self.this)
return val
def GetMinimumSizeX(self):
val = windows3c.wxSashWindow_GetMinimumSizeX(self.this)
return val
def GetMinimumSizeY(self):
val = windows3c.wxSashWindow_GetMinimumSizeY(self.this)
return val
def HasBorder(self,arg0):
val = windows3c.wxSashWindow_HasBorder(self.this,arg0)
return val
def SetDefaultBorderSize(self,arg0):
val = windows3c.wxSashWindow_SetDefaultBorderSize(self.this,arg0)
return val
def SetExtraBorderSize(self,arg0):
val = windows3c.wxSashWindow_SetExtraBorderSize(self.this,arg0)
return val
def SetMaximumSizeX(self,arg0):
val = windows3c.wxSashWindow_SetMaximumSizeX(self.this,arg0)
return val
def SetMaximumSizeY(self,arg0):
val = windows3c.wxSashWindow_SetMaximumSizeY(self.this,arg0)
return val
def SetMinimumSizeX(self,arg0):
val = windows3c.wxSashWindow_SetMinimumSizeX(self.this,arg0)
return val
def SetMinimumSizeY(self,arg0):
val = windows3c.wxSashWindow_SetMinimumSizeY(self.this,arg0)
return val
def SetSashVisible(self,arg0,arg1):
val = windows3c.wxSashWindow_SetSashVisible(self.this,arg0,arg1)
return val
def SetSashBorder(self,arg0,arg1):
val = windows3c.wxSashWindow_SetSashBorder(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxSashWindow instance>"
class wxSashWindow(wxSashWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows3c.new_wxSashWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxQueryLayoutInfoEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetRequestedLength(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetRequestedLength(self.this,arg0)
return val
def GetRequestedLength(self):
val = windows3c.wxQueryLayoutInfoEvent_GetRequestedLength(self.this)
return val
def SetFlags(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetFlags(self.this,arg0)
return val
def GetFlags(self):
val = windows3c.wxQueryLayoutInfoEvent_GetFlags(self.this)
return val
def SetSize(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetSize(self.this,arg0.this)
return val
def GetSize(self):
val = windows3c.wxQueryLayoutInfoEvent_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def SetOrientation(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetOrientation(self.this,arg0)
return val
def GetOrientation(self):
val = windows3c.wxQueryLayoutInfoEvent_GetOrientation(self.this)
return val
def SetAlignment(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetAlignment(self.this,arg0)
return val
def GetAlignment(self):
val = windows3c.wxQueryLayoutInfoEvent_GetAlignment(self.this)
return val
def __repr__(self):
return "<C wxQueryLayoutInfoEvent instance>"
class wxQueryLayoutInfoEvent(wxQueryLayoutInfoEventPtr):
def __init__(self,this):
self.this = this
class wxCalculateLayoutEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetFlags(self,arg0):
val = windows3c.wxCalculateLayoutEvent_SetFlags(self.this,arg0)
return val
def GetFlags(self):
val = windows3c.wxCalculateLayoutEvent_GetFlags(self.this)
return val
def SetRect(self,arg0):
val = windows3c.wxCalculateLayoutEvent_SetRect(self.this,arg0.this)
return val
def GetRect(self):
val = windows3c.wxCalculateLayoutEvent_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxCalculateLayoutEvent instance>"
class wxCalculateLayoutEvent(wxCalculateLayoutEventPtr):
def __init__(self,this):
self.this = this
class wxSashLayoutWindowPtr(wxSashWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetAlignment(self):
val = windows3c.wxSashLayoutWindow_GetAlignment(self.this)
return val
def GetOrientation(self):
val = windows3c.wxSashLayoutWindow_GetOrientation(self.this)
return val
def SetAlignment(self,arg0):
val = windows3c.wxSashLayoutWindow_SetAlignment(self.this,arg0)
return val
def SetDefaultSize(self,arg0):
val = windows3c.wxSashLayoutWindow_SetDefaultSize(self.this,arg0.this)
return val
def SetOrientation(self,arg0):
val = windows3c.wxSashLayoutWindow_SetOrientation(self.this,arg0)
return val
def __repr__(self):
return "<C wxSashLayoutWindow instance>"
class wxSashLayoutWindow(wxSashLayoutWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows3c.new_wxSashLayoutWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)
wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)
class wxLayoutAlgorithmPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windows3c.delete_wxLayoutAlgorithm(self.this)
def LayoutMDIFrame(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self.this,arg0.this,)+args)
return val
def LayoutFrame(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows3c.wxLayoutAlgorithm_LayoutFrame,(self.this,arg0.this,)+args)
return val
def __repr__(self):
return "<C wxLayoutAlgorithm instance>"
class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
def __init__(self) :
self.this = windows3c.new_wxLayoutAlgorithm()
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxSASH_TOP = windows3c.wxSASH_TOP
wxSASH_RIGHT = windows3c.wxSASH_RIGHT
wxSASH_BOTTOM = windows3c.wxSASH_BOTTOM
wxSASH_LEFT = windows3c.wxSASH_LEFT
wxSASH_NONE = windows3c.wxSASH_NONE
wxEVT_SASH_DRAGGED = windows3c.wxEVT_SASH_DRAGGED
wxSW_3D = windows3c.wxSW_3D
wxSASH_STATUS_OK = windows3c.wxSASH_STATUS_OK
wxSASH_STATUS_OUT_OF_RANGE = windows3c.wxSASH_STATUS_OUT_OF_RANGE
wxLAYOUT_HORIZONTAL = windows3c.wxLAYOUT_HORIZONTAL
wxLAYOUT_VERTICAL = windows3c.wxLAYOUT_VERTICAL
wxLAYOUT_NONE = windows3c.wxLAYOUT_NONE
wxLAYOUT_TOP = windows3c.wxLAYOUT_TOP
wxLAYOUT_LEFT = windows3c.wxLAYOUT_LEFT
wxLAYOUT_RIGHT = windows3c.wxLAYOUT_RIGHT
wxLAYOUT_BOTTOM = windows3c.wxLAYOUT_BOTTOM
wxEVT_QUERY_LAYOUT_INFO = windows3c.wxEVT_QUERY_LAYOUT_INFO
wxEVT_CALCULATE_LAYOUT = windows3c.wxEVT_CALCULATE_LAYOUT

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,680 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: helpers.cpp
// Purpose: Helper functions/classes for the wxPython extension module
//
// Author: Robin Dunn
//
// Created: 7/1/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __WXMSW__
#include <windows.h>
#undef FindWindow
#undef GetCharWidth
#undef LoadAccelerators
#endif
#ifdef __WXGTK__
#include "gtk/gtk.h"
#endif
#undef DEBUG
#include <Python.h>
#include "helpers.h"
#include <wx/module.h>
//---------------------------------------------------------------------------
//wxHashTable* wxPyWindows = NULL;
wxPoint wxPyDefaultPosition; //wxDefaultPosition);
wxSize wxPyDefaultSize; //wxDefaultSize);
wxString wxPyEmptyStr("");
#ifdef __WXMSW__ // If building for win32...
extern HINSTANCE wxhInstance;
//----------------------------------------------------------------------
// This gets run when the DLL is loaded. We just need to save a handle.
//----------------------------------------------------------------------
BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpvReserved // reserved
)
{
wxhInstance = hinstDLL;
return 1;
}
#endif
//----------------------------------------------------------------------
// Class for implementing the wxp main application shell.
//----------------------------------------------------------------------
wxPyApp *wxPythonApp = NULL; // Global instance of application object
// This one isn't acutally called... See __wxStart()
bool wxPyApp::OnInit(void) {
return false;
}
int wxPyApp::MainLoop(void) {
int retval = wxApp::MainLoop();
AfterMainLoop();
return retval;
}
void wxPyApp::AfterMainLoop(void) {
// more stuff from wxEntry...
if (wxPythonApp->GetTopWindow()) {
// Forcibly delete the window.
if (wxPythonApp->GetTopWindow()->IsKindOf(CLASSINFO(wxFrame)) ||
wxPythonApp->GetTopWindow()->IsKindOf(CLASSINFO(wxDialog))) {
wxPythonApp->GetTopWindow()->Close(TRUE);
wxPythonApp->DeletePendingObjects();
}
else {
delete wxPythonApp->GetTopWindow();
wxPythonApp->SetTopWindow(NULL);
}
}
#ifdef __WXGTK__
wxPythonApp->DeletePendingObjects();
#endif
wxPythonApp->OnExit();
wxApp::CleanUp();
// delete wxPythonApp;
}
//---------------------------------------------------------------------
// a few native methods to add to the module
//----------------------------------------------------------------------
// This is where we pick up the first part of the wxEntry functionality...
// The rest is in __wxStart and AfterMainLoop. This function is called when
// wxpc is imported. (Before there is a wxApp object.)
void __wxPreStart()
{
// Bail out if there is already windows created. This means that the
// toolkit has already been initialized, as in embedding wxPython in
// a C++ wxWindows app.
if (wxTopLevelWindows.Number() > 0)
return;
#ifdef __WXMSW__
wxApp::Initialize();
#endif
#ifdef __WXGTK__
PyObject* sysargv = PySys_GetObject("argv");
int argc = PyList_Size(sysargv);
char** argv = new char*[argc+1];
int x;
for(x=0; x<argc; x++)
argv[x] = PyString_AsString(PyList_GetItem(sysargv, x));
argv[argc] = NULL;
gtk_set_locale();
gtk_init( &argc, &argv );
delete [] argv;
wxApp::Initialize(); // may return FALSE. Should we check?
#endif
}
static char* __nullArgv[1] = { 0 };
// Start the user application, user App's OnInit method is a parameter here
PyObject* __wxStart(PyObject* /* self */, PyObject* args)
{
PyObject* onInitFunc = NULL;
PyObject* arglist;
PyObject* result;
long bResult;
if (!PyArg_ParseTuple(args, "O", &onInitFunc))
return NULL;
if (wxTopLevelWindows.Number() > 0) {
PyErr_SetString(PyExc_TypeError, "Only 1 wxApp per process!");
return NULL;
}
// This is the next part of the wxEntry functionality...
wxPythonApp->argc = 0;
wxPythonApp->argv = __nullArgv;
wxPythonApp->OnInitGui();
// Call the Python App's OnInit function
arglist = PyTuple_New(0);
result = PyEval_CallObject(onInitFunc, arglist);
if (!result) {
PyErr_Print();
exit(1);
}
if (! PyInt_Check(result)) {
PyErr_SetString(PyExc_TypeError, "OnInit should return a boolean value");
return NULL;
}
bResult = PyInt_AS_LONG(result);
if (! bResult) {
wxPythonApp->DeletePendingObjects();
wxPythonApp->OnExit();
wxApp::CleanUp();
PyErr_SetString(PyExc_SystemExit, "OnInit returned false, exiting...");
return NULL;
}
#ifdef __WXGTK__
wxTheApp->m_initialized = (wxTopLevelWindows.Number() > 0);
#endif
Py_INCREF(Py_None);
return Py_None;
}
PyObject* wxPython_dict;
PyObject* __wxSetDictionary(PyObject* /* self */, PyObject* args)
{
if (!PyArg_ParseTuple(args, "O", &wxPython_dict))
return NULL;
if (!PyDict_Check(wxPython_dict)) {
PyErr_SetString(PyExc_TypeError, "_wxSetDictionary must have dictionary object!");
return NULL;
}
#ifdef __WXMOTIF__
#define wxPlatform "__WXMOTIF__"
#endif
#ifdef __WXQT__
#define wxPlatform "__WXQT__"
#endif
#ifdef __WXGTK__
#define wxPlatform "__WXGTK__"
#endif
#if defined(__WIN32__) || defined(__WXMSW__)
#define wxPlatform "__WXMSW__"
#endif
#ifdef __WXMAC__
#define wxPlatform "__WXMAC__"
#endif
PyDict_SetItemString(wxPython_dict, "wxPlatform", PyString_FromString(wxPlatform));
Py_INCREF(Py_None);
return Py_None;
}
//---------------------------------------------------------------------------
static
PyObject* wxPyConstructObject(void* ptr, char* className)
{
char buff[64]; // should always be big enough...
char swigptr[64];
sprintf(buff, "_%s_p", className);
SWIG_MakePtr(swigptr, ptr, buff);
sprintf(buff, "%sPtr", className);
PyObject* classobj = PyDict_GetItemString(wxPython_dict, buff);
if (! classobj) {
Py_INCREF(Py_None);
return Py_None;
}
PyObject* arg = Py_BuildValue("(s)", swigptr);
PyObject* obj = PyInstance_New(classobj, arg, NULL);
Py_DECREF(arg);
return obj;
}
// This function is used for all events destined for Python event handlers.
void wxPyCallback::EventThunker(wxEvent& event) {
wxPyCallback* cb = (wxPyCallback*)event.m_callbackUserData;
PyObject* func = cb->m_func;
PyObject* result;
PyObject* arg;
PyObject* tuple;
arg = wxPyConstructObject((void*)&event, event.GetClassInfo()->GetClassName());
tuple = PyTuple_New(1);
PyTuple_SET_ITEM(tuple, 0, arg);
result = PyEval_CallObject(func, tuple);
Py_DECREF(tuple);
if (result) {
Py_DECREF(result);
PyErr_Clear();
} else {
PyErr_Print();
}
}
//---------------------------------------------------------------------------
wxPyMenu::wxPyMenu(const wxString& title, PyObject* _func)
: wxMenu(title, (wxFunction)(func ? MenuCallback : NULL)), func(0) {
if (_func) {
func = _func;
Py_INCREF(func);
}
}
wxPyMenu::~wxPyMenu() {
if (func)
Py_DECREF(func);
}
void wxPyMenu::MenuCallback(wxMenu& menu, wxCommandEvent& evt) {
PyObject* evtobj = wxPyConstructObject((void*)&evt, "wxCommandEvent");
PyObject* menuobj = wxPyConstructObject((void*)&menu, "wxMenu");
if (PyErr_Occurred()) {
// bail out if a problem
PyErr_Print();
return;
}
// Now call the callback...
PyObject* func = ((wxPyMenu*)&menu)->func;
PyObject* args = PyTuple_New(2);
PyTuple_SET_ITEM(args, 0, menuobj);
PyTuple_SET_ITEM(args, 1, evtobj);
PyObject* res = PyEval_CallObject(func, args);
Py_DECREF(args);
Py_XDECREF(res); /* In case res is a NULL pointer */
}
//---------------------------------------------------------------------------
wxPyTimer::wxPyTimer(PyObject* callback) {
func = callback;
Py_INCREF(func);
}
wxPyTimer::~wxPyTimer() {
Py_DECREF(func);
}
void wxPyTimer::Notify() {
PyObject* result;
PyObject* args = Py_BuildValue("()");
result = PyEval_CallObject(func, args);
Py_DECREF(args);
if (result) {
Py_DECREF(result);
PyErr_Clear();
} else {
PyErr_Print();
}
}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Some helper functions for typemaps in my_typemaps.i, so they won't be
// imcluded in every file...
byte* byte_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
byte* temp = new byte[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (! PyInt_Check(o)) {
PyErr_SetString(PyExc_TypeError, "Expected a list of integers.");
return NULL;
}
temp[x] = (byte)PyInt_AsLong(o);
}
return temp;
}
int* int_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
int* temp = new int[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (! PyInt_Check(o)) {
PyErr_SetString(PyExc_TypeError, "Expected a list of integers.");
return NULL;
}
temp[x] = PyInt_AsLong(o);
}
return temp;
}
long* long_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
long* temp = new long[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (! PyInt_Check(o)) {
PyErr_SetString(PyExc_TypeError, "Expected a list of integers.");
return NULL;
}
temp[x] = PyInt_AsLong(o);
}
return temp;
}
char** string_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
char** temp = new char*[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (! PyString_Check(o)) {
PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
return NULL;
}
temp[x] = PyString_AsString(o);
}
return temp;
}
wxPoint* wxPoint_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
wxPoint* temp = new wxPoint[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (PyString_Check(o)) {
char* st = PyString_AsString(o);
wxPoint* pt;
if (SWIG_GetPtr(st,(void **) &pt,"_wxPoint_p")) {
PyErr_SetString(PyExc_TypeError,"Expected _wxPoint_p.");
return NULL;
}
temp[x] = *pt;
}
else if (PyTuple_Check(o)) {
PyObject* o1 = PyTuple_GetItem(o, 0);
PyObject* o2 = PyTuple_GetItem(o, 1);
temp[x].x = PyInt_AsLong(o1);
temp[x].y = PyInt_AsLong(o2);
}
else {
PyErr_SetString(PyExc_TypeError, "Expected a list of 2-tuples or wxPoints.");
return NULL;
}
}
return temp;
}
wxBitmap** wxBitmap_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
wxBitmap** temp = new wxBitmap*[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (PyString_Check(o)) {
char* st = PyString_AsString(o);
wxBitmap* pt;
if (SWIG_GetPtr(st,(void **) &pt,"_wxBitmap_p")) {
PyErr_SetString(PyExc_TypeError,"Expected _wxBitmap_p.");
return NULL;
}
temp[x] = pt;
}
else {
PyErr_SetString(PyExc_TypeError, "Expected a list of wxBitmaps.");
return NULL;
}
}
return temp;
}
wxString* wxString_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
wxString* temp = new wxString[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (! PyString_Check(o)) {
PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
return NULL;
}
temp[x] = PyString_AsString(o);
}
return temp;
}
wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source) {
if (!PyList_Check(source)) {
PyErr_SetString(PyExc_TypeError, "Expected a list object.");
return NULL;
}
int count = PyList_Size(source);
wxAcceleratorEntry* temp = new wxAcceleratorEntry[count];
if (! temp) {
PyErr_SetString(PyExc_MemoryError, "Unable to allocate temporary array");
return NULL;
}
for (int x=0; x<count; x++) {
PyObject* o = PyList_GetItem(source, x);
if (PyString_Check(o)) {
char* st = PyString_AsString(o);
wxAcceleratorEntry* ae;
if (SWIG_GetPtr(st,(void **) &ae,"_wxAcceleratorEntry_p")) {
PyErr_SetString(PyExc_TypeError,"Expected _wxAcceleratorEntry_p.");
return NULL;
}
temp[x] = *ae;
}
else if (PyTuple_Check(o)) {
PyObject* o1 = PyTuple_GetItem(o, 0);
PyObject* o2 = PyTuple_GetItem(o, 1);
PyObject* o3 = PyTuple_GetItem(o, 2);
temp[x].m_flags = PyInt_AsLong(o1);
temp[x].m_keyCode = PyInt_AsLong(o2);
temp[x].m_command = PyInt_AsLong(o3);
}
else {
PyErr_SetString(PyExc_TypeError, "Expected a list of 3-tuples or wxAcceleratorEntry objects.");
return NULL;
}
}
return temp;
}
//----------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.18 1999/01/30 08:17:27 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.17 1999/01/30 07:30:12 RD
//
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.16 1998/12/17 14:07:39 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.15 1998/12/15 20:41:19 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.14 1998/11/25 08:45:25 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.13 1998/11/15 23:03:45 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.12 1998/11/03 09:21:08 RD
// fixed a typo
//
// Revision 1.11 1998/10/20 06:43:58 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.10 1998/10/02 06:40:39 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.9 1998/09/25 13:28:52 VZ
//
// USE_xxx constants renamed to wxUSE_xxx. This is an incompatible change, you
// must recompile everything after upgrading!
//
// Revision 1.8 1998/08/27 21:59:08 RD
// Some chicken-and-egg problems solved for wxPython on wxGTK
//
// Revision 1.7 1998/08/27 00:00:26 RD
// - more tweaks
// - have discovered some problems but not yet discovered solutions...
//
// Revision 1.6 1998/08/18 21:54:12 RD
//
// ifdef out some wxGTK specific code
//
// Revision 1.5 1998/08/18 19:48:17 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.4 1998/08/16 04:31:06 RD
// More wxGTK work.
//
// Revision 1.3 1998/08/15 07:36:36 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.2 1998/08/14 23:36:36 RD
// Beginings of wxGTK compatibility
//
// Revision 1.1 1998/08/09 08:25:51 RD
// Initial version
//
//

View File

@@ -1,131 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: helpers.h
// Purpose: Helper functions/classes for the wxPython extenaion module
//
// Author: Robin Dunn
//
// Created: 7/1/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifndef __wxp_helpers__
#define __wxp_helpers__
#include <wx/wx.h>
//----------------------------------------------------------------------
class wxPyApp: public wxApp
{
public:
int MainLoop(void);
bool OnInit(void);
void AfterMainLoop(void);
};
extern wxPyApp *wxPythonApp;
//----------------------------------------------------------------------
void __wxPreStart();
PyObject* __wxStart(PyObject*, PyObject* args);
extern PyObject* wxPython_dict;
PyObject* __wxSetDictionary(PyObject*, PyObject* args);
extern wxHashTable* wxPyWindows; // keep track of all windows so we
// don't accidentally delete them twice.
void wxPyEventThunker(wxObject*, wxEvent& event);
//----------------------------------------------------------------------
#ifndef SWIGCODE
extern "C" void SWIG_MakePtr(char *, void *, char *);
extern "C" char *SWIG_GetPtr(char *, void **, char *);
#endif
#ifdef _MSC_VER
# pragma warning(disable:4800)
#endif
typedef unsigned char byte;
// Non-const versions to keep SWIG happy.
extern wxPoint wxPyDefaultPosition;
extern wxSize wxPyDefaultSize;
extern wxString wxPyEmptyStr;
//----------------------------------------------------------------------
class wxPyCallback : public wxObject {
public:
wxPyCallback(PyObject* func) { m_func = func; Py_INCREF(m_func); }
~wxPyCallback() { Py_DECREF(m_func); }
void EventThunker(wxEvent& event);
PyObject* m_func;
};
//---------------------------------------------------------------------------
class wxPyMenu : public wxMenu {
public:
wxPyMenu(const wxString& title = "", PyObject* func=NULL);
~wxPyMenu();
private:
static void MenuCallback(wxMenu& menu, wxCommandEvent& evt);
PyObject* func;
};
//---------------------------------------------------------------------------
class wxPyTimer : public wxTimer {
public:
wxPyTimer(PyObject* callback);
~wxPyTimer();
void Notify();
private:
PyObject* func;
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.6 1998/11/25 08:45:26 RD
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.5 1998/10/02 06:40:40 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.4 1998/08/27 21:59:09 RD
// Some chicken-and-egg problems solved for wxPython on wxGTK
//
// Revision 1.3 1998/08/16 04:31:09 RD
// More wxGTK work.
//
// Revision 1.2 1998/08/14 23:36:37 RD
// Beginings of wxGTK compatibility
//
// Revision 1.1 1998/08/09 08:25:51 RD
// Initial version
//
//
#endif

View File

@@ -1,328 +0,0 @@
#----------------------------------------------------------------------------
# Name: makefile.nt
# Purpose: Win32, VC++ 5 makefile for wxPython
#
# Author: Robin Dunn
#
# Created: 3/27/97
# RCS-ID: $Id$
# Copyright: (c) 1998 by Total Control Software
# Licence: wxWindows license
#----------------------------------------------------------------------------
VERSION=0.5.4
# Set WXDIR to the root wxWindows directory for your system
WXDIR = $(WXWIN)
# Set this to the root of the Python installation
PYTHONDIR=e:\Tools\Python15
# Set this to 1 for a non-debug, optimised compile
FINAL=0
# Set this to where you want the stuff installed at. It should
# be a directory contained in a PYTHONPATH directory, and should be
# named wxPython
TARGETDIR=..
# Set this to 1 for make to pre-compile the Python modules, 0 to
# just copy the sources and let Python compile them at the first
# runtime.
COMPILEPY=0
SEPARATE=0
#----------------------------------------------------------------------
WXUSINGDLL=0
NOPCH=1
THISDIR=$(WXDIR)\utils\wxPython
EXTRALIBS=$(PYTHONDIR)\libs\python15.lib
EXTRAINC=-I$(PYTHONDIR)\include -I.
EXTRAFLAGS=/Fpwxp.pch /YXhelpers.h -DSWIG_GLOBAL -DHAVE_CONFIG_H
OVERRIDEFLAGS=/GX-
SWIGFLAGS=-c++ -shadow -python -dnone -D__WXMSW__
GENCODEDIR=msw
!include $(WXDIR)\src\ntwxwin.mak
#----------------------------------------------------------------------
TARGET = wxc
OBJECTS = wx.obj helpers.obj windows.obj events.obj \
misc.obj gdi.obj mdi.obj controls.obj \
controls2.obj windows2.obj cmndlgs.obj stattool.obj \
frames.obj windows3.obj \
!if "$(SEPARATE)" == "0"
utils.obj
!else
TARGET2 = utilsc
OBJECTS2 = utils.obj
target2=$(TARGETDIR)\$(TARGET2).pyd
!endif
PYMODULES = $(TARGETDIR)\wx.py $(TARGETDIR)\events.py \
$(TARGETDIR)\windows.py $(TARGETDIR)\misc.py \
$(TARGETDIR)\gdi.py $(TARGETDIR)\mdi.py \
$(TARGETDIR)\controls.py $(TARGETDIR)\controls2.py \
$(TARGETDIR)\windows2.py $(TARGETDIR)\cmndlgs.py \
$(TARGETDIR)\stattool.py $(TARGETDIR)\frames.py \
$(TARGETDIR)\utils.py $(TARGETDIR)\windows3.py \
$(TARGETDIR)\__init__.py
#----------------------------------------------------------------------
!if "$(FINAL)" == "0"
DEBUGLFLAGS = /DEBUG /INCREMENTAL:YES
!else
DEBUGLFLAGS = /INCREMENTAL:NO
!endif
LFLAGS= $(DEBUGLFLAGS) /DLL /def:$(TARGET).def /subsystem:windows,3.50 \
/machine:I386 /implib:./$(TARGET).lib /nologo
LFLAGS2=$(DEBUGLFLAGS) /DLL /def:$(TARGET2).def /subsystem:windows,3.50 \
/machine:I386 /implib:./$(TARGET2).lib /nologo
#----------------------------------------------------------------------
default: $(TARGETDIR)\$(TARGET).pyd $(target2) pycfiles
all: wx $(TARGET) $(TARGET2)
wx:
cd $(WXDIR)\src\msw
nmake -f makefile.nt FINAL=$(FINAL)
cd $(THISDIR)
wxclean:
cd $(WXDIR)\src\msw
nmake -f makefile.nt clean
cd $(THISDIR)
pycfiles : $(PYMODULES)
!if "$(COMPILEPY)" == "1"
$(PYTHONDIR)\python $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
$(PYTHONDIR)\python -O $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR)
!endif
#----------------------------------------------------------------------
$(TARGETDIR)\$(TARGET).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(TARGET).res
$(link) @<<
/out:$@ /dll
$(LFLAGS)
$(DUMMYOBJ) $(OBJECTS) $(TARGET).res
$(LIBS)
<<
$(TARGETDIR)\$(TARGET2).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS2)
$(link) @<<
/out:$@ /dll
$(LFLAGS2)
$(DUMMYOBJ) $(OBJECTS2)
$(LIBS)
<<
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
$(rc) -r /i$(WXDIR)\include -fo$@ $(TARGET).rc
# implicit rule for compiling .cpp files
{}.cpp{}.obj:
$(cc) @<<
$(CPPFLAGS) /c /Tp $<
<<
{$(GENCODEDIR)}.cpp{}.obj:
$(cc) @<<
$(CPPFLAGS) /c /Tp $<
<<
clean:
-erase *.obj
-erase *.exe
-erase *.res
-erase *.map
-erase *.sbr
-erase *.pdb
-erase *.pch
-erase $(TARGET).exp
-erase $(TARGET).lib
-erase $(TARGETDIR)\$(TARGET).*
!if "$(SEPARATE)" != "0"
-erase $(TARGET2).exp
-erase $(TARGET2).lib
-erase $(TARGETDIR)\$(TARGET2).*
!endif
-erase $(TARGETDIR)\$(TARGET).pyd
-erase $(TARGETDIR)\*.py
-erase $(TARGETDIR)\*.pyc
-erase $(TARGETDIR)\*.pyo
#------------------------------------------------------------------------
.SUFFIXES : .i .py
# Implicit rules to run SWIG
{}.i{$(GENCODEDIR)}.cpp:
swig $(SWIGFLAGS) -c -o $@ $<
{}.i{$(GENCODEDIR)}.py:
swig $(SWIGFLAGS) -c -o $@ $<
{$(GENCODEDIR)}.py{$(TARGETDIR)}.py:
copy $< $@
{}.py{$(TARGETDIR)}.py:
copy $< $@
#{}.py{$(TARGETDIR)}.$(PYEXT):
# $(PYTHON) -c "import py_compile; py_compile.compile('$<', '$@')"
# This one must leave out the -c flag so we define the whole rule
$(GENCODEDIR)\wx.cpp $(GENCODEDIR)\wx.py : wx.i my_typemaps.i _defs.i _extras.py
swig $(SWIGFLAGS) -o $(GENCODEDIR)/wx.cpp wx.i
# Define some dependencies. These MUST use forward slashes so SWIG
# will write the shadow file to the right directory.
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py : windows2.i my_typemaps.i _defs.i
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py : windows3.i my_typemaps.i _defs.i
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py : events.i my_typemaps.i _defs.i
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py : misc.i my_typemaps.i _defs.i
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py : gdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py : mdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemaps.i _defs.i
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemaps.i _defs.i
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
!if "$(SEPARATE)" == "1"
$(GENCODEDIR)\utils.cpp $(GENCODEDIR)\utils.py : utils.i my_typemaps.i
swig $(SWIGFLAGS) -o $(GENCODEDIR)/utils.cpp utils.i
!else
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
!endif
$(TARGETDIR)\wx.py : $(GENCODEDIR)\wx.py
$(TARGETDIR)\windows.py : $(GENCODEDIR)\windows.py
$(TARGETDIR)\windows2.py : $(GENCODEDIR)\windows2.py
$(TARGETDIR)\windows3.py : $(GENCODEDIR)\windows3.py
$(TARGETDIR)\events.py : $(GENCODEDIR)\events.py
$(TARGETDIR)\misc.py : $(GENCODEDIR)\misc.py
$(TARGETDIR)\gdi.py : $(GENCODEDIR)\gdi.py
$(TARGETDIR)\mdi.py : $(GENCODEDIR)\mdi.py
$(TARGETDIR)\controls.py : $(GENCODEDIR)\controls.py
$(TARGETDIR)\controls2.py : $(GENCODEDIR)\controls2.py
$(TARGETDIR)\cmndlgs.py : $(GENCODEDIR)\cmndlgs.py
$(TARGETDIR)\frames.py : $(GENCODEDIR)\frames.py
$(TARGETDIR)\stattool.py : $(GENCODEDIR)\stattool.py
$(TARGETDIR)\utils.py : $(GENCODEDIR)\utils.py
$(TARGETDIR)\__init__.py : __init__.py
SOURCES = $(GENCODEDIR)\wx.cpp $(GENCODEDIR)\wx.py \
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py \
$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py \
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py \
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py \
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py \
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py \
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py \
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py \
$(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py\
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py \
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py \
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py \
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py \
sources : $(SOURCES)
dist:
cd ..\..
wxPython\distrib\zipit.bat $(VERSION)
#------------------------------------------------------------------------
#
# $Log$
# Revision 1.10 1999/02/01 00:10:40 RD
# Added the missing EVT_LIST_ITEM_SELECTED and friends.
#
# Revision 1.9 1999/01/30 07:30:13 RD
#
# Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
#
# Various cleanup, tweaks, minor additions, etc. to maintain
# compatibility with the current wxWindows.
#
# Revision 1.8 1998/12/21 19:58:06 RD
#
# Now compiles with /GX- on MSW.
#
# Revision 1.7 1998/12/15 20:41:20 RD
# Changed the import semantics from "from wxPython import *" to "from
# wxPython.wx import *" This is for people who are worried about
# namespace pollution, they can use "from wxPython import wx" and then
# prefix all the wxPython identifiers with "wx."
#
# Added wxTaskbarIcon for wxMSW.
#
# Made the events work for wxGrid.
#
# Added wxConfig.
#
# Added wxMiniFrame for wxGTK, (untested.)
#
# Changed many of the args and return values that were pointers to gdi
# objects to references to reflect changes in the wxWindows API.
#
# Other assorted fixes and additions.
#
# Revision 1.6 1998/10/02 06:40:41 RD
#
# Version 0.4 of wxPython for MSW.
#
# Revision 1.5 1998/08/19 00:38:23 RD
#
# A few tweaks
#
# Revision 1.4 1998/08/18 21:55:10 RD
#
# New build directory structure
#
# Revision 1.3 1998/08/15 07:36:37 RD
# - Moved the header in the .i files out of the code that gets put into
# the .cpp files. It caused CVS conflicts because of the RCS ID being
# different each time.
#
# - A few minor fixes.
#
# Revision 1.2 1998/08/14 03:34:23 RD
# made pre-compiling the python files optional
#
# Revision 1.1 1998/08/09 08:25:51 RD
# Initial version
#

View File

@@ -1,141 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: mdi.i
// Purpose: MDI related class definitions for wxPython
//
// Author: Robin Dunn
//
// Created: 5/26/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module mdi
%{
#include "helpers.h"
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import windows.i
%import frames.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
class wxMDIParentFrame : public wxFrame {
public:
wxMDIParentFrame(wxWindow *parent,
const wxWindowID id,
const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
void ActivateNext();
void ActivatePrevious();
void ArrangeIcons();
void Cascade();
void GetClientSize(int* OUTPUT, int* OUTPUT);
wxMDIChildFrame* GetActiveChild();
wxMDIClientWindow* GetClientWindow();
wxWindow* GetToolBar();
// TODO: This isn't handled by the standard event-table system...
//wxMDIClientWindow* OnCreateClient();
#ifdef __WXMSW__
void SetToolBar(wxToolBar* toolbar);
#endif
void Tile();
};
//---------------------------------------------------------------------------
class wxMDIChildFrame : public wxFrame {
public:
wxMDIChildFrame(wxMDIParentFrame* parent,
const wxWindowID id,
const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
void Activate();
void Maximize();
void Restore();
void SetMenuBar(wxMenuBar *menu_bar);
void SetClientSize(int width, int height);
void GetPosition(int* OUTPUT, int* OUTPUT) const ;
};
//---------------------------------------------------------------------------
class wxMDIClientWindow : public wxWindow {
public:
wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)"
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.5 1998/12/15 20:41:21 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.4 1998/10/02 06:40:41 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:18 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:39 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:51 RD
// Initial version
//
//

View File

@@ -1,426 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: misc.i
// Purpose: Definitions of miscelaneous functions and classes
//
// Author: Robin Dunn
//
// Created: 7/3/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module misc
%{
#include "helpers.h"
#include <wx/resource.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
//---------------------------------------------------------------------------
class wxSize {
public:
%name(width) long x;
%name(height)long y;
wxSize(long w=0, long h=0);
~wxSize();
void Set(long w, long h);
%name(GetWidth) long GetX();
%name(GetHeight)long GetY();
%addmethods {
PyObject* __str__() {
PyObject* tup = PyTuple_New(2);
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
return tup;
}
}
};
//---------------------------------------------------------------------------
class wxRealPoint {
public:
double x;
double y;
wxRealPoint(double x=0.0, double y=0.0);
~wxRealPoint();
};
class wxPoint {
public:
long x;
long y;
wxPoint(long x=0, long y=0);
~wxPoint();
%addmethods {
void Set(long x, long y) {
self->x = x;
self->y = y;
}
PyObject* __str__() {
PyObject* tup = PyTuple_New(2);
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
return tup;
}
}
};
//---------------------------------------------------------------------------
class wxRect {
public:
wxRect(long x=0, long y=0, long w=0, long h=0);
// TODO: do this one too... wxRect(const wxPoint& pos, const wxSize& size);
~wxRect();
long GetX();
void SetX(long X);
long GetY();
void SetY(long Y);
long GetWidth();
void SetWidth(long w);
long GetHeight();
void SetHeight(long h);
wxPoint GetPosition();
wxSize GetSize();
long GetLeft();
long GetTop();
long GetBottom();
long GetRight();
long x, y, width, height;
};
//---------------------------------------------------------------------------
// Dialog Functions
wxString wxFileSelector(char* message,
char* default_path = NULL,
char* default_filename = NULL,
char* default_extension = NULL,
char* wildcard = "*.*",
int flags = 0,
wxWindow *parent = NULL,
int x = -1, int y = -1);
wxString wxGetTextFromUser(const wxString& message,
const wxString& caption = wxPyEmptyStr,
const wxString& default_value = wxPyEmptyStr,
wxWindow *parent = NULL,
int x = -1, int y = -1,
bool centre = TRUE);
// TODO: Need to custom wrap this one...
// int wxGetMultipleChoice(char* message, char* caption,
// int LCOUNT, char** LIST,
// int nsel, int *selection,
// wxWindow *parent = NULL, int x = -1, int y = -1,
// bool centre = TRUE, int width=150, int height=200);
wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
int LCOUNT, wxString* LIST,
wxWindow *parent = NULL,
int x = -1, int y = -1,
bool centre = TRUE,
int width=150, int height=200);
int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
int LCOUNT, wxString* LIST,
wxWindow *parent = NULL,
int x = -1, int y = -1,
bool centre = TRUE,
int width=150, int height=200);
int wxMessageBox(const wxString& message,
const wxString& caption = wxPyEmptyStr,
int style = wxOK | wxCENTRE,
wxWindow *parent = NULL,
int x = -1, int y = -1);
//---------------------------------------------------------------------------
// GDI Functions
bool wxColourDisplay();
int wxDisplayDepth();
void wxSetCursor(wxCursor& cursor);
//---------------------------------------------------------------------------
// Miscellaneous functions
long NewId();
void RegisterId(long id);
void wxBeginBusyCursor(wxCursor *cursor = wxHOURGLASS_CURSOR);
void wxBell();
void wxDisplaySize(int *OUTPUT, int *OUTPUT);
void wxEndBusyCursor();
long wxExecute(const wxString& command, bool sync = FALSE);
wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL);
wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
#ifdef __WXMSW__
wxWindow * wxGetActiveWindow();
long wxGetElapsedTime(bool resetTimer = TRUE);
long wxGetFreeMemory();
#endif
void wxGetMousePosition(int* OUTPUT, int* OUTPUT);
bool wxIsBusy();
wxString wxNow();
#ifdef __WXMSW__
bool wxShell(const wxString& command = wxPyEmptyStr);
void wxStartTimer();
int wxGetOsVersion(int *OUTPUT, int *OUTPUT);
#endif
bool wxYield();
%inline %{
char* wxGetResource(char *section, char *entry, char *file = NULL) {
char * retval;
wxGetResource(section, entry, &retval, file);
return retval;
}
%}
//---------------------------------------------------------------------------
// Resource System
bool wxResourceAddIdentifier(char *name, int value);
void wxResourceClear(void);
wxBitmap wxResourceCreateBitmap(char *resource);
wxIcon wxResourceCreateIcon(char *resource);
wxMenuBar * wxResourceCreateMenuBar(char *resource);
int wxResourceGetIdentifier(char *name);
bool wxResourceParseData(char *resource, wxResourceTable *table = NULL);
bool wxResourceParseFile(char *filename, wxResourceTable *table = NULL);
bool wxResourceParseString(char *resource, wxResourceTable *table = NULL);
//----------------------------------------------------------------------
class wxPyTimer {
public:
wxPyTimer(PyObject* notify);
~wxPyTimer();
int Interval();
void Start(int milliseconds=-1, int oneShot=FALSE);
void Stop();
};
//---------------------------------------------------------------------------
enum wxEdge { wxLeft, wxTop, wxRight, wxBottom, wxWidth, wxHeight,
wxCentre, wxCenter = wxCentre, wxCentreX, wxCentreY };
enum wxRelationship { wxUnconstrained = 0,
wxAsIs,
wxPercentOf,
wxAbove,
wxBelow,
wxLeftOf,
wxRightOf,
wxSameAs,
wxAbsolute };
class wxIndividualLayoutConstraint {
public:
// wxIndividualLayoutConstraint();
// ~wxIndividualLayoutConstraint();
void Above(wxWindow *otherWin, int margin=0);
void Absolute(int value);
void AsIs();
void Below(wxWindow *otherWin, int margin=0);
void Unconstrained();
void LeftOf(wxWindow *otherWin, int margin=0);
void PercentOf(wxWindow *otherWin, wxEdge edge, int percent);
void RightOf(wxWindow *otherWin, int margin=0);
void SameAs(wxWindow *otherWin, wxEdge edge, int margin=0);
void Set(wxRelationship rel, wxWindow *otherWin, wxEdge otherEdge, int value=0, int margin=0);
};
class wxLayoutConstraints {
public:
wxLayoutConstraints();
%readonly
wxIndividualLayoutConstraint bottom;
wxIndividualLayoutConstraint centreX;
wxIndividualLayoutConstraint centreY;
wxIndividualLayoutConstraint height;
wxIndividualLayoutConstraint left;
wxIndividualLayoutConstraint right;
wxIndividualLayoutConstraint top;
wxIndividualLayoutConstraint width;
%readwrite
}
//---------------------------------------------------------------------------
// Regions, etc.
enum wxRegionContain {
wxOutRegion, wxPartRegion, wxInRegion
};
class wxRegion {
public:
wxRegion();
~wxRegion();
void Clear();
wxRegionContain Contains(long x, long y);
%name(ContainsPoint)wxRegionContain Contains(const wxPoint& pt);
%name(ContainsRect)wxRegionContain Contains(const wxRect& rect);
wxRect GetBox();
bool Intersect(const wxRect& rect);
#ifdef __WXMSW__
bool IsEmpty();
#endif
bool Subtract(const wxRect& rect);
bool Union(const wxRect& rect);
bool Xor(const wxRect& rect);
};
class wxRegionIterator {
public:
wxRegionIterator(const wxRegion& region);
~wxRegionIterator();
long GetX();
long GetY();
long GetW();
long GetWidth();
long GetH();
long GetHeight();
wxRect GetRect();
bool HaveRects();
void Reset();
%addmethods {
void Next() {
(*self) ++;
}
};
};
//---------------------------------------------------------------------------
// Accelerator Entry and Table
class wxAcceleratorEntry {
public:
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0);
//~wxAcceleratorEntry(); *** ?
void Set(int flags, int keyCode, int Cmd);
int GetFlags();
int GetKeyCode();
int GetCommand();
};
class wxAcceleratorTable {
public:
// Can also accept a list of 3-tuples
wxAcceleratorTable(int LCOUNT, wxAcceleratorEntry* LIST);
// ~wxAcceleratorEntry(); *** ?
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.10 1999/01/30 07:30:14 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.9 1998/12/16 22:10:55 RD
//
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.8 1998/12/15 20:41:22 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.7 1998/11/25 08:45:27 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.6 1998/11/15 23:03:46 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.5 1998/10/20 06:43:59 RD
// New wxTreeCtrl wrappers (untested)
// some changes in helpers
// etc.
//
// Revision 1.4 1998/08/18 19:48:19 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.3 1998/08/16 04:31:10 RD
// More wxGTK work.
//
// Revision 1.2 1998/08/15 07:36:41 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:51 RD
// Initial version
//
//

File diff suppressed because it is too large Load Diff

View File

@@ -1,592 +0,0 @@
# This file was created automatically by SWIG.
import cmndlgsc
from misc import *
from gdi import *
from windows import *
import wx
class wxColourDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxColourData(self.this)
def GetChooseFull(self):
val = cmndlgsc.wxColourData_GetChooseFull(self.this)
return val
def GetColour(self):
val = cmndlgsc.wxColourData_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetCustomColour(self,arg0):
val = cmndlgsc.wxColourData_GetCustomColour(self.this,arg0)
val = wxColourPtr(val)
val.thisown = 1
return val
def SetChooseFull(self,arg0):
val = cmndlgsc.wxColourData_SetChooseFull(self.this,arg0)
return val
def SetColour(self,arg0):
val = cmndlgsc.wxColourData_SetColour(self.this,arg0.this)
return val
def SetCustomColour(self,arg0,arg1):
val = cmndlgsc.wxColourData_SetCustomColour(self.this,arg0,arg1.this)
return val
def __repr__(self):
return "<C wxColourData instance>"
class wxColourData(wxColourDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxColourData()
self.thisown = 1
class wxColourDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetColourData(self):
val = cmndlgsc.wxColourDialog_GetColourData(self.this)
val = wxColourDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxColourDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxColourDialog instance>"
class wxColourDialog(wxColourDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxDirDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPath(self):
val = cmndlgsc.wxDirDialog_GetPath(self.this)
return val
def GetMessage(self):
val = cmndlgsc.wxDirDialog_GetMessage(self.this)
return val
def GetStyle(self):
val = cmndlgsc.wxDirDialog_GetStyle(self.this)
return val
def SetMessage(self,arg0):
val = cmndlgsc.wxDirDialog_SetMessage(self.this,arg0)
return val
def SetPath(self,arg0):
val = cmndlgsc.wxDirDialog_SetPath(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxDirDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxDirDialog instance>"
class wxDirDialog(wxDirDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[3] = argl[3].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxFileDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDirectory(self):
val = cmndlgsc.wxFileDialog_GetDirectory(self.this)
return val
def GetFilename(self):
val = cmndlgsc.wxFileDialog_GetFilename(self.this)
return val
def GetFilterIndex(self):
val = cmndlgsc.wxFileDialog_GetFilterIndex(self.this)
return val
def GetMessage(self):
val = cmndlgsc.wxFileDialog_GetMessage(self.this)
return val
def GetPath(self):
val = cmndlgsc.wxFileDialog_GetPath(self.this)
return val
def GetStyle(self):
val = cmndlgsc.wxFileDialog_GetStyle(self.this)
return val
def GetWildcard(self):
val = cmndlgsc.wxFileDialog_GetWildcard(self.this)
return val
def SetDirectory(self,arg0):
val = cmndlgsc.wxFileDialog_SetDirectory(self.this,arg0)
return val
def SetFilename(self,arg0):
val = cmndlgsc.wxFileDialog_SetFilename(self.this,arg0)
return val
def SetFilterIndex(self,arg0):
val = cmndlgsc.wxFileDialog_SetFilterIndex(self.this,arg0)
return val
def SetMessage(self,arg0):
val = cmndlgsc.wxFileDialog_SetMessage(self.this,arg0)
return val
def SetPath(self,arg0):
val = cmndlgsc.wxFileDialog_SetPath(self.this,arg0)
return val
def SetStyle(self,arg0):
val = cmndlgsc.wxFileDialog_SetStyle(self.this,arg0)
return val
def SetWildcard(self,arg0):
val = cmndlgsc.wxFileDialog_SetWildcard(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxFileDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxFileDialog instance>"
class wxFileDialog(wxFileDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[5] = argl[5].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxSingleChoiceDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSelection(self):
val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self.this)
return val
def GetStringSelection(self):
val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self.this)
return val
def SetSelection(self,arg0):
val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxSingleChoiceDialog instance>"
class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
def __init__(self,arg0,arg1,arg2,arg3,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxTextEntryDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = cmndlgsc.wxTextEntryDialog_GetValue(self.this)
return val
def SetValue(self,arg0):
val = cmndlgsc.wxTextEntryDialog_SetValue(self.this,arg0)
return val
def ShowModal(self):
val = cmndlgsc.wxTextEntryDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxTextEntryDialog instance>"
class wxTextEntryDialog(wxTextEntryDialogPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[3] = argl[3].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxFontDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxFontData(self.this)
def EnableEffects(self,arg0):
val = cmndlgsc.wxFontData_EnableEffects(self.this,arg0)
return val
def GetAllowSymbols(self):
val = cmndlgsc.wxFontData_GetAllowSymbols(self.this)
return val
def GetColour(self):
val = cmndlgsc.wxFontData_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetChosenFont(self):
val = cmndlgsc.wxFontData_GetChosenFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetEnableEffects(self):
val = cmndlgsc.wxFontData_GetEnableEffects(self.this)
return val
def GetInitialFont(self):
val = cmndlgsc.wxFontData_GetInitialFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetShowHelp(self):
val = cmndlgsc.wxFontData_GetShowHelp(self.this)
return val
def SetAllowSymbols(self,arg0):
val = cmndlgsc.wxFontData_SetAllowSymbols(self.this,arg0)
return val
def SetChosenFont(self,arg0):
val = cmndlgsc.wxFontData_SetChosenFont(self.this,arg0.this)
return val
def SetColour(self,arg0):
val = cmndlgsc.wxFontData_SetColour(self.this,arg0.this)
return val
def SetInitialFont(self,arg0):
val = cmndlgsc.wxFontData_SetInitialFont(self.this,arg0.this)
return val
def SetRange(self,arg0,arg1):
val = cmndlgsc.wxFontData_SetRange(self.this,arg0,arg1)
return val
def SetShowHelp(self,arg0):
val = cmndlgsc.wxFontData_SetShowHelp(self.this,arg0)
return val
def __repr__(self):
return "<C wxFontData instance>"
class wxFontData(wxFontDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxFontData()
self.thisown = 1
class wxFontDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFontData(self):
val = cmndlgsc.wxFontDialog_GetFontData(self.this)
val = wxFontDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxFontDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxFontDialog instance>"
class wxFontDialog(wxFontDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxPageSetupDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxPageSetupData(self.this)
def EnableHelp(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableHelp(self.this,arg0)
return val
def EnableMargins(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableMargins(self.this,arg0)
return val
def EnableOrientation(self,arg0):
val = cmndlgsc.wxPageSetupData_EnableOrientation(self.this,arg0)
return val
def EnablePaper(self,arg0):
val = cmndlgsc.wxPageSetupData_EnablePaper(self.this,arg0)
return val
def EnablePrinter(self,arg0):
val = cmndlgsc.wxPageSetupData_EnablePrinter(self.this,arg0)
return val
def GetPaperSize(self):
val = cmndlgsc.wxPageSetupData_GetPaperSize(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMarginTopLeft(self):
val = cmndlgsc.wxPageSetupData_GetMarginTopLeft(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMarginBottomRight(self):
val = cmndlgsc.wxPageSetupData_GetMarginBottomRight(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMinMarginTopLeft(self):
val = cmndlgsc.wxPageSetupData_GetMinMarginTopLeft(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetMinMarginBottomRight(self):
val = cmndlgsc.wxPageSetupData_GetMinMarginBottomRight(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetOrientation(self):
val = cmndlgsc.wxPageSetupData_GetOrientation(self.this)
return val
def GetDefaultMinMargins(self):
val = cmndlgsc.wxPageSetupData_GetDefaultMinMargins(self.this)
return val
def GetEnableMargins(self):
val = cmndlgsc.wxPageSetupData_GetEnableMargins(self.this)
return val
def GetEnableOrientation(self):
val = cmndlgsc.wxPageSetupData_GetEnableOrientation(self.this)
return val
def GetEnablePaper(self):
val = cmndlgsc.wxPageSetupData_GetEnablePaper(self.this)
return val
def GetEnablePrinter(self):
val = cmndlgsc.wxPageSetupData_GetEnablePrinter(self.this)
return val
def GetEnableHelp(self):
val = cmndlgsc.wxPageSetupData_GetEnableHelp(self.this)
return val
def GetDefaultInfo(self):
val = cmndlgsc.wxPageSetupData_GetDefaultInfo(self.this)
return val
def SetPaperSize(self,arg0):
val = cmndlgsc.wxPageSetupData_SetPaperSize(self.this,arg0.this)
return val
def SetMarginTopLeft(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMarginTopLeft(self.this,arg0.this)
return val
def SetMarginBottomRight(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMarginBottomRight(self.this,arg0.this)
return val
def SetMinMarginTopLeft(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMinMarginTopLeft(self.this,arg0.this)
return val
def SetMinMarginBottomRight(self,arg0):
val = cmndlgsc.wxPageSetupData_SetMinMarginBottomRight(self.this,arg0.this)
return val
def SetOrientation(self,arg0):
val = cmndlgsc.wxPageSetupData_SetOrientation(self.this,arg0)
return val
def SetDefaultMinMargins(self,arg0):
val = cmndlgsc.wxPageSetupData_SetDefaultMinMargins(self.this,arg0)
return val
def SetDefaultInfo(self,arg0):
val = cmndlgsc.wxPageSetupData_SetDefaultInfo(self.this,arg0)
return val
def __repr__(self):
return "<C wxPageSetupData instance>"
class wxPageSetupData(wxPageSetupDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxPageSetupData()
self.thisown = 1
class wxPageSetupDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPageSetupData(self):
val = cmndlgsc.wxPageSetupDialog_GetPageSetupData(self.this)
val = wxPageSetupDataPtr(val)
return val
def ShowModal(self):
val = cmndlgsc.wxPageSetupDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxPageSetupDialog instance>"
class wxPageSetupDialog(wxPageSetupDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxPrintDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
cmndlgsc.delete_wxPrintData(self.this)
def EnableHelp(self,arg0):
val = cmndlgsc.wxPrintData_EnableHelp(self.this,arg0)
return val
def EnablePageNumbers(self,arg0):
val = cmndlgsc.wxPrintData_EnablePageNumbers(self.this,arg0)
return val
def EnablePrintToFile(self,arg0):
val = cmndlgsc.wxPrintData_EnablePrintToFile(self.this,arg0)
return val
def EnableSelection(self,arg0):
val = cmndlgsc.wxPrintData_EnableSelection(self.this,arg0)
return val
def GetAllPages(self):
val = cmndlgsc.wxPrintData_GetAllPages(self.this)
return val
def GetCollate(self):
val = cmndlgsc.wxPrintData_GetCollate(self.this)
return val
def GetFromPage(self):
val = cmndlgsc.wxPrintData_GetFromPage(self.this)
return val
def GetMaxPage(self):
val = cmndlgsc.wxPrintData_GetMaxPage(self.this)
return val
def GetMinPage(self):
val = cmndlgsc.wxPrintData_GetMinPage(self.this)
return val
def GetNoCopies(self):
val = cmndlgsc.wxPrintData_GetNoCopies(self.this)
return val
def GetOrientation(self):
val = cmndlgsc.wxPrintData_GetOrientation(self.this)
return val
def GetToPage(self):
val = cmndlgsc.wxPrintData_GetToPage(self.this)
return val
def SetCollate(self,arg0):
val = cmndlgsc.wxPrintData_SetCollate(self.this,arg0)
return val
def SetFromPage(self,arg0):
val = cmndlgsc.wxPrintData_SetFromPage(self.this,arg0)
return val
def SetMaxPage(self,arg0):
val = cmndlgsc.wxPrintData_SetMaxPage(self.this,arg0)
return val
def SetMinPage(self,arg0):
val = cmndlgsc.wxPrintData_SetMinPage(self.this,arg0)
return val
def SetOrientation(self,arg0):
val = cmndlgsc.wxPrintData_SetOrientation(self.this,arg0)
return val
def SetNoCopies(self,arg0):
val = cmndlgsc.wxPrintData_SetNoCopies(self.this,arg0)
return val
def SetPrintToFile(self,arg0):
val = cmndlgsc.wxPrintData_SetPrintToFile(self.this,arg0)
return val
def SetSetupDialog(self,arg0):
val = cmndlgsc.wxPrintData_SetSetupDialog(self.this,arg0)
return val
def SetToPage(self,arg0):
val = cmndlgsc.wxPrintData_SetToPage(self.this,arg0)
return val
def __repr__(self):
return "<C wxPrintData instance>"
class wxPrintData(wxPrintDataPtr):
def __init__(self) :
self.this = cmndlgsc.new_wxPrintData()
self.thisown = 1
class wxPrintDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPrintData(self):
val = cmndlgsc.wxPrintDialog_GetPrintData(self.this)
val = wxPrintDataPtr(val)
return val
def GetPrintDC(self):
val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this)
val = wxDCPtr(val)
val.thisown = 1
return val
def ShowModal(self):
val = cmndlgsc.wxPrintDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxPrintDialog instance>"
class wxPrintDialog(wxPrintDialogPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxMessageDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ShowModal(self):
val = cmndlgsc.wxMessageDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxMessageDialog instance>"
class wxMessageDialog(wxMessageDialogPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,839 +0,0 @@
# This file was created automatically by SWIG.
import controlsc
from misc import *
from windows import *
from gdi import *
from events import *
import wx
class wxControlPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Command(self,arg0):
val = controlsc.wxControl_Command(self.this,arg0.this)
return val
def GetLabel(self):
val = controlsc.wxControl_GetLabel(self.this)
return val
def SetLabel(self,arg0):
val = controlsc.wxControl_SetLabel(self.this,arg0)
return val
def __repr__(self):
return "<C wxControl instance>"
class wxControl(wxControlPtr):
def __init__(self,this):
self.this = this
class wxButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetDefault(self):
val = controlsc.wxButton_SetDefault(self.this)
return val
def __repr__(self):
return "<C wxButton instance>"
class wxButton(wxButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxButton,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxBitmapButtonPtr(wxButtonPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBitmapLabel(self):
val = controlsc.wxBitmapButton_GetBitmapLabel(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapDisabled(self):
val = controlsc.wxBitmapButton_GetBitmapDisabled(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapFocus(self):
val = controlsc.wxBitmapButton_GetBitmapFocus(self.this)
val = wxBitmapPtr(val)
return val
def GetBitmapSelected(self):
val = controlsc.wxBitmapButton_GetBitmapSelected(self.this)
val = wxBitmapPtr(val)
return val
def SetBitmapDisabled(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapDisabled(self.this,arg0.this)
return val
def SetBitmapFocus(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapFocus(self.this,arg0.this)
return val
def SetBitmapSelected(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapSelected(self.this,arg0.this)
return val
def SetBitmapLabel(self,arg0):
val = controlsc.wxBitmapButton_SetBitmapLabel(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxBitmapButton instance>"
class wxBitmapButton(wxBitmapButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxBitmapButton,(arg0.this,arg1,arg2.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxCheckBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = controlsc.wxCheckBox_GetValue(self.this)
return val
def SetValue(self,arg0):
val = controlsc.wxCheckBox_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxCheckBox instance>"
class wxCheckBox(wxCheckBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxCheckBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxChoicePtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxChoice_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxChoice_Clear(self.this)
return val
def FindString(self,arg0):
val = controlsc.wxChoice_FindString(self.this,arg0)
return val
def GetColumns(self):
val = controlsc.wxChoice_GetColumns(self.this)
return val
def GetSelection(self):
val = controlsc.wxChoice_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxChoice_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxChoice_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxChoice_Number(self.this)
return val
def SetColumns(self,*args):
val = apply(controlsc.wxChoice_SetColumns,(self.this,)+args)
return val
def SetSelection(self,arg0):
val = controlsc.wxChoice_SetSelection(self.this,arg0)
return val
def SetStringSelection(self,arg0):
val = controlsc.wxChoice_SetStringSelection(self.this,arg0)
return val
def __repr__(self):
return "<C wxChoice instance>"
class wxChoice(wxChoicePtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxChoice,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxComboBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxComboBox_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxComboBox_Clear(self.this)
return val
def Copy(self):
val = controlsc.wxComboBox_Copy(self.this)
return val
def Cut(self):
val = controlsc.wxComboBox_Cut(self.this)
return val
def Delete(self,arg0):
val = controlsc.wxComboBox_Delete(self.this,arg0)
return val
def FindString(self,arg0):
val = controlsc.wxComboBox_FindString(self.this,arg0)
return val
def GetInsertionPoint(self):
val = controlsc.wxComboBox_GetInsertionPoint(self.this)
return val
def GetLastPosition(self):
val = controlsc.wxComboBox_GetLastPosition(self.this)
return val
def GetSelection(self):
val = controlsc.wxComboBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxComboBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxComboBox_GetStringSelection(self.this)
return val
def GetValue(self):
val = controlsc.wxComboBox_GetValue(self.this)
return val
def Number(self):
val = controlsc.wxComboBox_Number(self.this)
return val
def Paste(self):
val = controlsc.wxComboBox_Paste(self.this)
return val
def Replace(self,arg0,arg1,arg2):
val = controlsc.wxComboBox_Replace(self.this,arg0,arg1,arg2)
return val
def Remove(self,arg0,arg1):
val = controlsc.wxComboBox_Remove(self.this,arg0,arg1)
return val
def SetInsertionPoint(self,arg0):
val = controlsc.wxComboBox_SetInsertionPoint(self.this,arg0)
return val
def SetInsertionPointEnd(self):
val = controlsc.wxComboBox_SetInsertionPointEnd(self.this)
return val
def SetSelection(self,arg0,*args):
val = apply(controlsc.wxComboBox_SetSelection,(self.this,arg0,)+args)
return val
def SetMark(self,arg0,arg1):
val = controlsc.wxComboBox_SetMark(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxComboBox_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxComboBox instance>"
class wxComboBox(wxComboBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxComboBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxGaugePtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBezelFace(self):
val = controlsc.wxGauge_GetBezelFace(self.this)
return val
def GetRange(self):
val = controlsc.wxGauge_GetRange(self.this)
return val
def GetShadowWidth(self):
val = controlsc.wxGauge_GetShadowWidth(self.this)
return val
def GetValue(self):
val = controlsc.wxGauge_GetValue(self.this)
return val
def SetBezelFace(self,arg0):
val = controlsc.wxGauge_SetBezelFace(self.this,arg0)
return val
def SetRange(self,arg0):
val = controlsc.wxGauge_SetRange(self.this,arg0)
return val
def SetShadowWidth(self,arg0):
val = controlsc.wxGauge_SetShadowWidth(self.this,arg0)
return val
def SetValue(self,arg0):
val = controlsc.wxGauge_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxGauge instance>"
class wxGauge(wxGaugePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxGauge,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxStaticBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxStaticBox instance>"
class wxStaticBox(wxStaticBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
class wxStaticTextPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetLabel(self):
val = controlsc.wxStaticText_GetLabel(self.this)
return val
def SetLabel(self,arg0):
val = controlsc.wxStaticText_SetLabel(self.this,arg0)
return val
def __repr__(self):
return "<C wxStaticText instance>"
class wxStaticText(wxStaticTextPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticText,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxListBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0):
val = controlsc.wxListBox_Append(self.this,arg0)
return val
def Clear(self):
val = controlsc.wxListBox_Clear(self.this)
return val
def Delete(self,arg0):
val = controlsc.wxListBox_Delete(self.this,arg0)
return val
def Deselect(self,arg0):
val = controlsc.wxListBox_Deselect(self.this,arg0)
return val
def FindString(self,arg0):
val = controlsc.wxListBox_FindString(self.this,arg0)
return val
def GetSelection(self):
val = controlsc.wxListBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxListBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxListBox_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxListBox_Number(self.this)
return val
def Selected(self,arg0):
val = controlsc.wxListBox_Selected(self.this,arg0)
return val
def Set(self,arg0,*args):
val = apply(controlsc.wxListBox_Set,(self.this,arg0,)+args)
return val
def SetFirstItem(self,arg0):
val = controlsc.wxListBox_SetFirstItem(self.this,arg0)
return val
def SetFirstItemStr(self,arg0):
val = controlsc.wxListBox_SetFirstItemStr(self.this,arg0)
return val
def SetSelection(self,arg0,*args):
val = apply(controlsc.wxListBox_SetSelection,(self.this,arg0,)+args)
return val
def SetString(self,arg0,arg1):
val = controlsc.wxListBox_SetString(self.this,arg0,arg1)
return val
def SetStringSelection(self,arg0,*args):
val = apply(controlsc.wxListBox_SetStringSelection,(self.this,arg0,)+args)
return val
def __repr__(self):
return "<C wxListBox instance>"
class wxListBox(wxListBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxListBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxCheckListBoxPtr(wxListBoxPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def IsChecked(self,arg0):
val = controlsc.wxCheckListBox_IsChecked(self.this,arg0)
return val
def Check(self,arg0,*args):
val = apply(controlsc.wxCheckListBox_Check,(self.this,arg0,)+args)
return val
def GetItemHeight(self):
val = controlsc.wxCheckListBox_GetItemHeight(self.this)
return val
def __repr__(self):
return "<C wxCheckListBox instance>"
class wxCheckListBox(wxCheckListBoxPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxCheckListBox,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxTextCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Clear(self):
val = controlsc.wxTextCtrl_Clear(self.this)
return val
def Copy(self):
val = controlsc.wxTextCtrl_Copy(self.this)
return val
def Cut(self):
val = controlsc.wxTextCtrl_Cut(self.this)
return val
def DiscardEdits(self):
val = controlsc.wxTextCtrl_DiscardEdits(self.this)
return val
def GetInsertionPoint(self):
val = controlsc.wxTextCtrl_GetInsertionPoint(self.this)
return val
def GetLastPosition(self):
val = controlsc.wxTextCtrl_GetLastPosition(self.this)
return val
def GetLineLength(self,arg0):
val = controlsc.wxTextCtrl_GetLineLength(self.this,arg0)
return val
def GetLineText(self,arg0):
val = controlsc.wxTextCtrl_GetLineText(self.this,arg0)
return val
def GetNumberOfLines(self):
val = controlsc.wxTextCtrl_GetNumberOfLines(self.this)
return val
def GetValue(self):
val = controlsc.wxTextCtrl_GetValue(self.this)
return val
def IsModified(self):
val = controlsc.wxTextCtrl_IsModified(self.this)
return val
def LoadFile(self,arg0):
val = controlsc.wxTextCtrl_LoadFile(self.this,arg0)
return val
def Paste(self):
val = controlsc.wxTextCtrl_Paste(self.this)
return val
def PositionToXY(self,arg0):
val = controlsc.wxTextCtrl_PositionToXY(self.this,arg0)
return val
def Remove(self,arg0,arg1):
val = controlsc.wxTextCtrl_Remove(self.this,arg0,arg1)
return val
def Replace(self,arg0,arg1,arg2):
val = controlsc.wxTextCtrl_Replace(self.this,arg0,arg1,arg2)
return val
def SaveFile(self,arg0):
val = controlsc.wxTextCtrl_SaveFile(self.this,arg0)
return val
def SetEditable(self,arg0):
val = controlsc.wxTextCtrl_SetEditable(self.this,arg0)
return val
def SetInsertionPoint(self,arg0):
val = controlsc.wxTextCtrl_SetInsertionPoint(self.this,arg0)
return val
def SetInsertionPointEnd(self):
val = controlsc.wxTextCtrl_SetInsertionPointEnd(self.this)
return val
def SetSelection(self,arg0,arg1):
val = controlsc.wxTextCtrl_SetSelection(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxTextCtrl_SetValue(self.this,arg0)
return val
def ShowPosition(self,arg0):
val = controlsc.wxTextCtrl_ShowPosition(self.this,arg0)
return val
def WriteText(self,arg0):
val = controlsc.wxTextCtrl_WriteText(self.this,arg0)
return val
def XYToPosition(self,arg0,arg1):
val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxTextCtrl instance>"
class wxTextCtrl(wxTextCtrlPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxTextCtrl,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxScrollBarPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetRange(self):
val = controlsc.wxScrollBar_GetRange(self.this)
return val
def GetPageSize(self):
val = controlsc.wxScrollBar_GetPageSize(self.this)
return val
def GetThumbPosition(self):
val = controlsc.wxScrollBar_GetThumbPosition(self.this)
return val
def GetThumbSize(self):
val = controlsc.wxScrollBar_GetThumbSize(self.this)
return val
def SetThumbPosition(self,arg0):
val = controlsc.wxScrollBar_SetThumbPosition(self.this,arg0)
return val
def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
val = apply(controlsc.wxScrollBar_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def __repr__(self):
return "<C wxScrollBar instance>"
class wxScrollBar(wxScrollBarPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxScrollBar,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSpinButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMax(self):
val = controlsc.wxSpinButton_GetMax(self.this)
return val
def GetMin(self):
val = controlsc.wxSpinButton_GetMin(self.this)
return val
def GetValue(self):
val = controlsc.wxSpinButton_GetValue(self.this)
return val
def SetRange(self,arg0,arg1):
val = controlsc.wxSpinButton_SetRange(self.this,arg0,arg1)
return val
def SetValue(self,arg0):
val = controlsc.wxSpinButton_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxSpinButton instance>"
class wxSpinButton(wxSpinButtonPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args)
self.thisown = 1
class wxStaticBitmapPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBitmap(self):
val = controlsc.wxStaticBitmap_GetBitmap(self.this)
val = wxBitmapPtr(val)
return val
def SetBitmap(self,arg0):
val = controlsc.wxStaticBitmap_SetBitmap(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxStaticBitmap instance>"
class wxStaticBitmap(wxStaticBitmapPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxStaticBitmap,(arg0.this,arg1,arg2.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxRadioBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def EnableBox(self,arg0):
val = controlsc.wxRadioBox_EnableBox(self.this,arg0)
return val
def Enable(self,arg0,arg1):
val = controlsc.wxRadioBox_Enable(self.this,arg0,arg1)
return val
def FindString(self,arg0):
val = controlsc.wxRadioBox_FindString(self.this,arg0)
return val
def GetBoxLabel(self):
val = controlsc.wxRadioBox_GetBoxLabel(self.this)
return val
def GetLabel(self,arg0):
val = controlsc.wxRadioBox_GetLabel(self.this,arg0)
return val
def GetSelection(self):
val = controlsc.wxRadioBox_GetSelection(self.this)
return val
def GetString(self,arg0):
val = controlsc.wxRadioBox_GetString(self.this,arg0)
return val
def GetStringSelection(self):
val = controlsc.wxRadioBox_GetStringSelection(self.this)
return val
def Number(self):
val = controlsc.wxRadioBox_Number(self.this)
return val
def SetBoxLabel(self,arg0):
val = controlsc.wxRadioBox_SetBoxLabel(self.this,arg0)
return val
def SetLabel(self,arg0,arg1):
val = controlsc.wxRadioBox_SetLabel(self.this,arg0,arg1)
return val
def SetSelection(self,arg0):
val = controlsc.wxRadioBox_SetSelection(self.this,arg0)
return val
def SetStringSelection(self,arg0):
val = controlsc.wxRadioBox_SetStringSelection(self.this,arg0)
return val
def Show(self,arg0):
val = controlsc.wxRadioBox_Show(self.this,arg0)
return val
def ShowItem(self,arg0,arg1):
val = controlsc.wxRadioBox_ShowItem(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxRadioBox instance>"
class wxRadioBox(wxRadioBoxPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxRadioBox,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxRadioButtonPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self):
val = controlsc.wxRadioButton_GetValue(self.this)
return val
def SetValue(self,arg0):
val = controlsc.wxRadioButton_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxRadioButton instance>"
class wxRadioButton(wxRadioButtonPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxRadioButton,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSliderPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ClearSel(self):
val = controlsc.wxSlider_ClearSel(self.this)
return val
def ClearTicks(self):
val = controlsc.wxSlider_ClearTicks(self.this)
return val
def GetLineSize(self):
val = controlsc.wxSlider_GetLineSize(self.this)
return val
def GetMax(self):
val = controlsc.wxSlider_GetMax(self.this)
return val
def GetMin(self):
val = controlsc.wxSlider_GetMin(self.this)
return val
def GetPageSize(self):
val = controlsc.wxSlider_GetPageSize(self.this)
return val
def GetSelEnd(self):
val = controlsc.wxSlider_GetSelEnd(self.this)
return val
def GetSelStart(self):
val = controlsc.wxSlider_GetSelStart(self.this)
return val
def GetThumbLength(self):
val = controlsc.wxSlider_GetThumbLength(self.this)
return val
def GetTickFreq(self):
val = controlsc.wxSlider_GetTickFreq(self.this)
return val
def GetValue(self):
val = controlsc.wxSlider_GetValue(self.this)
return val
def SetRange(self,arg0,arg1):
val = controlsc.wxSlider_SetRange(self.this,arg0,arg1)
return val
def SetTickFreq(self,arg0,arg1):
val = controlsc.wxSlider_SetTickFreq(self.this,arg0,arg1)
return val
def SetLineSize(self,arg0):
val = controlsc.wxSlider_SetLineSize(self.this,arg0)
return val
def SetPageSize(self,arg0):
val = controlsc.wxSlider_SetPageSize(self.this,arg0)
return val
def SetSelection(self,arg0,arg1):
val = controlsc.wxSlider_SetSelection(self.this,arg0,arg1)
return val
def SetThumbLength(self,arg0):
val = controlsc.wxSlider_SetThumbLength(self.this,arg0)
return val
def SetTick(self,arg0):
val = controlsc.wxSlider_SetTick(self.this,arg0)
return val
def SetValue(self,arg0):
val = controlsc.wxSlider_SetValue(self.this,arg0)
return val
def __repr__(self):
return "<C wxSlider instance>"
class wxSlider(wxSliderPtr):
def __init__(self,arg0,arg1,arg2,arg3,arg4,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controlsc.new_wxSlider,(arg0.this,arg1,arg2,arg3,arg4,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,625 +0,0 @@
# This file was created automatically by SWIG.
import controls2c
from misc import *
from windows import *
from gdi import *
from events import *
from controls import *
import wx
class wxListItemPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxListItem(self.this)
def __setattr__(self,name,value):
if name == "m_mask" :
controls2c.wxListItem_m_mask_set(self.this,value)
return
if name == "m_itemId" :
controls2c.wxListItem_m_itemId_set(self.this,value)
return
if name == "m_col" :
controls2c.wxListItem_m_col_set(self.this,value)
return
if name == "m_state" :
controls2c.wxListItem_m_state_set(self.this,value)
return
if name == "m_stateMask" :
controls2c.wxListItem_m_stateMask_set(self.this,value)
return
if name == "m_text" :
controls2c.wxListItem_m_text_set(self.this,value)
return
if name == "m_image" :
controls2c.wxListItem_m_image_set(self.this,value)
return
if name == "m_data" :
controls2c.wxListItem_m_data_set(self.this,value)
return
if name == "m_format" :
controls2c.wxListItem_m_format_set(self.this,value)
return
if name == "m_width" :
controls2c.wxListItem_m_width_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_mask" :
return controls2c.wxListItem_m_mask_get(self.this)
if name == "m_itemId" :
return controls2c.wxListItem_m_itemId_get(self.this)
if name == "m_col" :
return controls2c.wxListItem_m_col_get(self.this)
if name == "m_state" :
return controls2c.wxListItem_m_state_get(self.this)
if name == "m_stateMask" :
return controls2c.wxListItem_m_stateMask_get(self.this)
if name == "m_text" :
return controls2c.wxListItem_m_text_get(self.this)
if name == "m_image" :
return controls2c.wxListItem_m_image_get(self.this)
if name == "m_data" :
return controls2c.wxListItem_m_data_get(self.this)
if name == "m_format" :
return controls2c.wxListItem_m_format_get(self.this)
if name == "m_width" :
return controls2c.wxListItem_m_width_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxListItem instance>"
class wxListItem(wxListItemPtr):
def __init__(self) :
self.this = controls2c.new_wxListItem()
self.thisown = 1
class wxListEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "m_code" :
controls2c.wxListEvent_m_code_set(self.this,value)
return
if name == "m_itemIndex" :
controls2c.wxListEvent_m_itemIndex_set(self.this,value)
return
if name == "m_oldItemIndex" :
controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
return
if name == "m_col" :
controls2c.wxListEvent_m_col_set(self.this,value)
return
if name == "m_cancelled" :
controls2c.wxListEvent_m_cancelled_set(self.this,value)
return
if name == "m_pointDrag" :
controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
return
if name == "m_item" :
controls2c.wxListEvent_m_item_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_code" :
return controls2c.wxListEvent_m_code_get(self.this)
if name == "m_itemIndex" :
return controls2c.wxListEvent_m_itemIndex_get(self.this)
if name == "m_oldItemIndex" :
return controls2c.wxListEvent_m_oldItemIndex_get(self.this)
if name == "m_col" :
return controls2c.wxListEvent_m_col_get(self.this)
if name == "m_cancelled" :
return controls2c.wxListEvent_m_cancelled_get(self.this)
if name == "m_pointDrag" :
return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self.this))
if name == "m_item" :
return wxListItemPtr(controls2c.wxListEvent_m_item_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxListEvent instance>"
class wxListEvent(wxListEventPtr):
def __init__(self,this):
self.this = this
class wxListCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Arrange(self,*args):
val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
return val
def DeleteItem(self,arg0):
val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
return val
def DeleteAllItems(self):
val = controls2c.wxListCtrl_DeleteAllItems(self.this)
return val
def DeleteColumn(self,arg0):
val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
return val
def DeleteAllColumns(self):
val = controls2c.wxListCtrl_DeleteAllColumns(self.this)
return val
def ClearAll(self):
val = controls2c.wxListCtrl_ClearAll(self.this)
return val
def EditLabel(self,arg0):
val = controls2c.wxListCtrl_EditLabel(self.this,arg0)
val = wxTextCtrlPtr(val)
return val
def EndEditLabel(self,arg0):
val = controls2c.wxListCtrl_EndEditLabel(self.this,arg0)
return val
def GetEditControl(self):
val = controls2c.wxListCtrl_GetEditControl(self.this)
val = wxTextCtrlPtr(val)
return val
def EnsureVisible(self,arg0):
val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
return val
def FindItem(self,arg0,arg1,*args):
val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
return val
def FindItemData(self,arg0,arg1):
val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
return val
def FindItemAtPos(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
return val
def GetColumn(self,arg0,arg1):
val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
return val
def GetColumnWidth(self,arg0):
val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
return val
def GetCountPerPage(self):
val = controls2c.wxListCtrl_GetCountPerPage(self.this)
return val
def GetImageList(self,arg0):
val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
return val
def GetItemData(self,arg0):
val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
return val
def GetItem(self):
val = controls2c.wxListCtrl_GetItem(self.this)
val = wxListItemPtr(val)
val.thisown = 1
return val
def GetItemPosition(self,arg0):
val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetItemRect(self,arg0,*args):
val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetItemState(self,arg0,arg1):
val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
return val
def GetItemCount(self):
val = controls2c.wxListCtrl_GetItemCount(self.this)
return val
def GetItemSpacing(self,arg0):
val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
return val
def GetItemText(self,arg0):
val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
return val
def GetNextItem(self,arg0,*args):
val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
return val
def GetSelectedItemCount(self):
val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
return val
def GetTextColour(self):
val = controls2c.wxListCtrl_GetTextColour(self.this)
val = wxColourPtr(val)
val.thisown = 1
return val
def SetTextColour(self,arg0):
val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
return val
def GetTopItem(self):
val = controls2c.wxListCtrl_GetTopItem(self.this)
return val
def HitTest(self,arg0):
val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
return val
def InsertColumnWithInfo(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this)
return val
def InsertColumn(self,arg0,arg1,*args):
val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
return val
def InsertItem(self,arg0):
val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
return val
def InsertStringItem(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
return val
def InsertImageItem(self,arg0,arg1):
val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
return val
def InsertImageStringItem(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
return val
def ScrollList(self,arg0,arg1):
val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
return val
def SetBackgroundColour(self,arg0):
val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
return val
def SetColumn(self,arg0,arg1):
val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
return val
def SetColumnWidth(self,arg0,arg1):
val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
return val
def SetImageList(self,arg0,arg1):
val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1)
return val
def SetItem(self,arg0):
val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
return val
def SetItemString(self,arg0,arg1,arg2,*args):
val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args)
return val
def SetItemData(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
return val
def SetItemImage(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
return val
def SetItemPosition(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
return val
def SetItemState(self,arg0,arg1,arg2):
val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
return val
def SetItemText(self,arg0,arg1):
val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
return val
def SetSingleStyle(self,arg0,*args):
val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
return val
def SetWindowStyleFlag(self,arg0):
val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
return val
def __repr__(self):
return "<C wxListCtrl instance>"
class wxListCtrl(wxListCtrlPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxTreeItemIdPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxTreeItemId(self.this)
def IsOk(self):
val = controls2c.wxTreeItemId_IsOk(self.this)
return val
def __repr__(self):
return "<C wxTreeItemId instance>"
class wxTreeItemId(wxTreeItemIdPtr):
def __init__(self) :
self.this = controls2c.new_wxTreeItemId()
self.thisown = 1
class wxTreeItemDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
controls2c.delete_wxTreeItemData(self.this)
def GetId(self):
val = controls2c.wxTreeItemData_GetId(self.this)
val = wxTreeItemIdPtr(val)
return val
def SetId(self,arg0):
val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxTreeItemData instance>"
class wxTreeItemData(wxTreeItemDataPtr):
def __init__(self) :
self.this = controls2c.new_wxTreeItemData()
self.thisown = 1
class wxTreeEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetItem(self):
val = controls2c.wxTreeEvent_GetItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetOldItem(self):
val = controls2c.wxTreeEvent_GetOldItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPoint(self):
val = controls2c.wxTreeEvent_GetPoint(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetCode(self):
val = controls2c.wxTreeEvent_GetCode(self.this)
return val
def Veto(self):
val = controls2c.wxTreeEvent_Veto(self.this)
return val
def __repr__(self):
return "<C wxTreeEvent instance>"
class wxTreeEvent(wxTreeEventPtr):
def __init__(self,this):
self.this = this
class wxTreeCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetCount(self):
val = controls2c.wxTreeCtrl_GetCount(self.this)
return val
def GetIndent(self):
val = controls2c.wxTreeCtrl_GetIndent(self.this)
return val
def SetIndent(self,arg0):
val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
return val
def GetImageList(self):
val = controls2c.wxTreeCtrl_GetImageList(self.this)
return val
def GetStateImageList(self):
val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
return val
def SetImageList(self,arg0):
val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0)
return val
def SetStateImageList(self,arg0):
val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0)
return val
def GetItemText(self,arg0):
val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
return val
def GetItemImage(self,arg0):
val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
return val
def GetItemSelectedImage(self,arg0):
val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
return val
def GetItemData(self,arg0):
val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
val = wxTreeItemDataPtr(val)
return val
def SetItemText(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
return val
def SetItemImage(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
return val
def SetItemSelectedImage(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
return val
def SetItemData(self,arg0,arg1):
val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
return val
def SetItemHasChildren(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
return val
def IsVisible(self,arg0):
val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
return val
def ItemHasChildren(self,arg0):
val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
return val
def IsExpanded(self,arg0):
val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
return val
def IsSelected(self,arg0):
val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
return val
def GetRootItem(self):
val = controls2c.wxTreeCtrl_GetRootItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetSelection(self):
val = controls2c.wxTreeCtrl_GetSelection(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetParent(self,arg0):
val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetFirstChild(self,arg0,arg1):
val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
return val
def GetNextChild(self,arg0,arg1):
val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
return val
def GetNextSibling(self,arg0):
val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPrevSibling(self,arg0):
val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetFirstVisibleItem(self):
val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetNextVisible(self,arg0):
val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def GetPrevVisible(self,arg0):
val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def AddRoot(self,arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def PrependItem(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def InsertItem(self,arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def AppendItem(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def Delete(self,arg0):
val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
return val
def DeleteChildren(self,arg0):
val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
return val
def DeleteAllItems(self):
val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
return val
def Expand(self,arg0):
val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
return val
def Collapse(self,arg0):
val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
return val
def CollapseAndReset(self,arg0):
val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
return val
def Toggle(self,arg0):
val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
return val
def Unselect(self):
val = controls2c.wxTreeCtrl_Unselect(self.this)
return val
def SelectItem(self,arg0):
val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
return val
def EnsureVisible(self,arg0):
val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
return val
def ScrollTo(self,arg0):
val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
return val
def EditLabel(self,arg0):
val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
val = wxTextCtrlPtr(val)
return val
def GetEditControl(self):
val = controls2c.wxTreeCtrl_GetEditControl(self.this)
val = wxTextCtrlPtr(val)
return val
def EndEditLabel(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
return val
def SetItemBold(self,arg0,*args):
val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
return val
def IsBold(self,arg0):
val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
return val
def HitTest(self,arg0):
val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
val = wxTreeItemIdPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxTreeCtrl instance>"
class wxTreeCtrl(wxTreeCtrlPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,630 +0,0 @@
# This file was created automatically by SWIG.
import eventsc
from misc import *
class wxEventPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetEventObject(self):
val = eventsc.wxEvent_GetEventObject(self.this)
return val
def GetEventType(self):
val = eventsc.wxEvent_GetEventType(self.this)
return val
def GetId(self):
val = eventsc.wxEvent_GetId(self.this)
return val
def GetSkipped(self):
val = eventsc.wxEvent_GetSkipped(self.this)
return val
def GetTimestamp(self):
val = eventsc.wxEvent_GetTimestamp(self.this)
return val
def SetEventObject(self,arg0):
val = eventsc.wxEvent_SetEventObject(self.this,arg0)
return val
def SetEventType(self,arg0):
val = eventsc.wxEvent_SetEventType(self.this,arg0)
return val
def SetId(self,arg0):
val = eventsc.wxEvent_SetId(self.this,arg0)
return val
def SetTimestamp(self,arg0):
val = eventsc.wxEvent_SetTimestamp(self.this,arg0)
return val
def Skip(self,*args):
val = apply(eventsc.wxEvent_Skip,(self.this,)+args)
return val
def __repr__(self):
return "<C wxEvent instance>"
class wxEvent(wxEventPtr):
def __init__(self,this):
self.this = this
class wxSizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSize(self):
val = eventsc.wxSizeEvent_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxSizeEvent instance>"
class wxSizeEvent(wxSizeEventPtr):
def __init__(self,this):
self.this = this
class wxCloseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def CanVeto(self):
val = eventsc.wxCloseEvent_CanVeto(self.this)
return val
def GetLoggingOff(self):
val = eventsc.wxCloseEvent_GetLoggingOff(self.this)
return val
def Veto(self,*args):
val = apply(eventsc.wxCloseEvent_Veto,(self.this,)+args)
return val
def GetVeto(self):
val = eventsc.wxCloseEvent_GetVeto(self.this)
return val
def SetForce(self,arg0):
val = eventsc.wxCloseEvent_SetForce(self.this,arg0)
return val
def SetCanVeto(self,arg0):
val = eventsc.wxCloseEvent_SetCanVeto(self.this,arg0)
return val
def SetLoggingOff(self,arg0):
val = eventsc.wxCloseEvent_SetLoggingOff(self.this,arg0)
return val
def GetForce(self):
val = eventsc.wxCloseEvent_GetForce(self.this)
return val
def __repr__(self):
return "<C wxCloseEvent instance>"
class wxCloseEvent(wxCloseEventPtr):
def __init__(self,this):
self.this = this
class wxCommandEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Checked(self):
val = eventsc.wxCommandEvent_Checked(self.this)
return val
def GetExtraLong(self):
val = eventsc.wxCommandEvent_GetExtraLong(self.this)
return val
def GetInt(self):
val = eventsc.wxCommandEvent_GetInt(self.this)
return val
def GetSelection(self):
val = eventsc.wxCommandEvent_GetSelection(self.this)
return val
def GetString(self):
val = eventsc.wxCommandEvent_GetString(self.this)
return val
def IsSelection(self):
val = eventsc.wxCommandEvent_IsSelection(self.this)
return val
def __repr__(self):
return "<C wxCommandEvent instance>"
class wxCommandEvent(wxCommandEventPtr):
def __init__(self,this):
self.this = this
class wxScrollEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetOrientation(self):
val = eventsc.wxScrollEvent_GetOrientation(self.this)
return val
def GetPosition(self):
val = eventsc.wxScrollEvent_GetPosition(self.this)
return val
def __repr__(self):
return "<C wxScrollEvent instance>"
class wxScrollEvent(wxScrollEventPtr):
def __init__(self,this):
self.this = this
class wxSpinEventPtr(wxScrollEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxSpinEvent instance>"
class wxSpinEvent(wxSpinEventPtr):
def __init__(self,this):
self.this = this
class wxMouseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def IsButton(self):
val = eventsc.wxMouseEvent_IsButton(self.this)
return val
def ButtonDown(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonDown,(self.this,)+args)
return val
def ButtonDClick(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonDClick,(self.this,)+args)
return val
def ButtonUp(self,*args):
val = apply(eventsc.wxMouseEvent_ButtonUp,(self.this,)+args)
return val
def Button(self,arg0):
val = eventsc.wxMouseEvent_Button(self.this,arg0)
return val
def ButtonIsDown(self,arg0):
val = eventsc.wxMouseEvent_ButtonIsDown(self.this,arg0)
return val
def ControlDown(self):
val = eventsc.wxMouseEvent_ControlDown(self.this)
return val
def MetaDown(self):
val = eventsc.wxMouseEvent_MetaDown(self.this)
return val
def AltDown(self):
val = eventsc.wxMouseEvent_AltDown(self.this)
return val
def ShiftDown(self):
val = eventsc.wxMouseEvent_ShiftDown(self.this)
return val
def LeftDown(self):
val = eventsc.wxMouseEvent_LeftDown(self.this)
return val
def MiddleDown(self):
val = eventsc.wxMouseEvent_MiddleDown(self.this)
return val
def RightDown(self):
val = eventsc.wxMouseEvent_RightDown(self.this)
return val
def LeftUp(self):
val = eventsc.wxMouseEvent_LeftUp(self.this)
return val
def MiddleUp(self):
val = eventsc.wxMouseEvent_MiddleUp(self.this)
return val
def RightUp(self):
val = eventsc.wxMouseEvent_RightUp(self.this)
return val
def LeftDClick(self):
val = eventsc.wxMouseEvent_LeftDClick(self.this)
return val
def MiddleDClick(self):
val = eventsc.wxMouseEvent_MiddleDClick(self.this)
return val
def RightDClick(self):
val = eventsc.wxMouseEvent_RightDClick(self.this)
return val
def LeftIsDown(self):
val = eventsc.wxMouseEvent_LeftIsDown(self.this)
return val
def MiddleIsDown(self):
val = eventsc.wxMouseEvent_MiddleIsDown(self.this)
return val
def RightIsDown(self):
val = eventsc.wxMouseEvent_RightIsDown(self.this)
return val
def Dragging(self):
val = eventsc.wxMouseEvent_Dragging(self.this)
return val
def Moving(self):
val = eventsc.wxMouseEvent_Moving(self.this)
return val
def Entering(self):
val = eventsc.wxMouseEvent_Entering(self.this)
return val
def Leaving(self):
val = eventsc.wxMouseEvent_Leaving(self.this)
return val
def Position(self):
val = eventsc.wxMouseEvent_Position(self.this)
return val
def GetPosition(self):
val = eventsc.wxMouseEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetLogicalPosition(self,arg0):
val = eventsc.wxMouseEvent_GetLogicalPosition(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetX(self):
val = eventsc.wxMouseEvent_GetX(self.this)
return val
def GetY(self):
val = eventsc.wxMouseEvent_GetY(self.this)
return val
def __repr__(self):
return "<C wxMouseEvent instance>"
class wxMouseEvent(wxMouseEventPtr):
def __init__(self,this):
self.this = this
class wxKeyEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ControlDown(self):
val = eventsc.wxKeyEvent_ControlDown(self.this)
return val
def MetaDown(self):
val = eventsc.wxKeyEvent_MetaDown(self.this)
return val
def AltDown(self):
val = eventsc.wxKeyEvent_AltDown(self.this)
return val
def ShiftDown(self):
val = eventsc.wxKeyEvent_ShiftDown(self.this)
return val
def KeyCode(self):
val = eventsc.wxKeyEvent_KeyCode(self.this)
return val
def Position(self):
val = eventsc.wxKeyEvent_Position(self.this)
return val
def GetX(self):
val = eventsc.wxKeyEvent_GetX(self.this)
return val
def GetY(self):
val = eventsc.wxKeyEvent_GetY(self.this)
return val
def __repr__(self):
return "<C wxKeyEvent instance>"
class wxKeyEvent(wxKeyEventPtr):
def __init__(self,this):
self.this = this
class wxMoveEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxMoveEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxMoveEvent instance>"
class wxMoveEvent(wxMoveEventPtr):
def __init__(self,this):
self.this = this
class wxPaintEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPaintEvent instance>"
class wxPaintEvent(wxPaintEventPtr):
def __init__(self,this):
self.this = this
class wxEraseEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDC(self):
val = eventsc.wxEraseEvent_GetDC(self.this)
val = wxDCPtr(val)
return val
def __repr__(self):
return "<C wxEraseEvent instance>"
class wxEraseEvent(wxEraseEventPtr):
def __init__(self,this):
self.this = this
class wxFocusEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxFocusEvent instance>"
class wxFocusEvent(wxFocusEventPtr):
def __init__(self,this):
self.this = this
class wxActivateEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetActive(self):
val = eventsc.wxActivateEvent_GetActive(self.this)
return val
def __repr__(self):
return "<C wxActivateEvent instance>"
class wxActivateEvent(wxActivateEventPtr):
def __init__(self,this):
self.this = this
class wxInitDialogEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxInitDialogEvent instance>"
class wxInitDialogEvent(wxInitDialogEventPtr):
def __init__(self,this):
self.this = this
class wxMenuEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMenuId(self):
val = eventsc.wxMenuEvent_GetMenuId(self.this)
return val
def __repr__(self):
return "<C wxMenuEvent instance>"
class wxMenuEvent(wxMenuEventPtr):
def __init__(self,this):
self.this = this
class wxShowEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetShow(self,arg0):
val = eventsc.wxShowEvent_SetShow(self.this,arg0)
return val
def GetShow(self):
val = eventsc.wxShowEvent_GetShow(self.this)
return val
def __repr__(self):
return "<C wxShowEvent instance>"
class wxShowEvent(wxShowEventPtr):
def __init__(self,this):
self.this = this
class wxIconizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxIconizeEvent instance>"
class wxIconizeEvent(wxIconizeEventPtr):
def __init__(self,this):
self.this = this
class wxMaximizeEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMaximizeEvent instance>"
class wxMaximizeEvent(wxMaximizeEventPtr):
def __init__(self,this):
self.this = this
class wxJoystickEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxJoystickEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetZPosition(self):
val = eventsc.wxJoystickEvent_GetZPosition(self.this)
return val
def GetButtonState(self):
val = eventsc.wxJoystickEvent_GetButtonState(self.this)
return val
def GetButtonChange(self):
val = eventsc.wxJoystickEvent_GetButtonChange(self.this)
return val
def GetJoystick(self):
val = eventsc.wxJoystickEvent_GetJoystick(self.this)
return val
def SetJoystick(self,arg0):
val = eventsc.wxJoystickEvent_SetJoystick(self.this,arg0)
return val
def SetButtonState(self,arg0):
val = eventsc.wxJoystickEvent_SetButtonState(self.this,arg0)
return val
def SetButtonChange(self,arg0):
val = eventsc.wxJoystickEvent_SetButtonChange(self.this,arg0)
return val
def SetPosition(self,arg0):
val = eventsc.wxJoystickEvent_SetPosition(self.this,arg0.this)
return val
def SetZPosition(self,arg0):
val = eventsc.wxJoystickEvent_SetZPosition(self.this,arg0)
return val
def IsButton(self):
val = eventsc.wxJoystickEvent_IsButton(self.this)
return val
def IsMove(self):
val = eventsc.wxJoystickEvent_IsMove(self.this)
return val
def IsZMove(self):
val = eventsc.wxJoystickEvent_IsZMove(self.this)
return val
def ButtonDown(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonDown,(self.this,)+args)
return val
def ButtonUp(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonUp,(self.this,)+args)
return val
def ButtonIsDown(self,*args):
val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self.this,)+args)
return val
def __repr__(self):
return "<C wxJoystickEvent instance>"
class wxJoystickEvent(wxJoystickEventPtr):
def __init__(self,this):
self.this = this
class wxDropFilesEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPosition(self):
val = eventsc.wxDropFilesEvent_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetNumberOfFiles(self):
val = eventsc.wxDropFilesEvent_GetNumberOfFiles(self.this)
return val
def GetFiles(self):
val = eventsc.wxDropFilesEvent_GetFiles(self.this)
return val
def __repr__(self):
return "<C wxDropFilesEvent instance>"
class wxDropFilesEvent(wxDropFilesEventPtr):
def __init__(self,this):
self.this = this
class wxIdleEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def RequestMore(self,*args):
val = apply(eventsc.wxIdleEvent_RequestMore,(self.this,)+args)
return val
def MoreRequested(self):
val = eventsc.wxIdleEvent_MoreRequested(self.this)
return val
def __repr__(self):
return "<C wxIdleEvent instance>"
class wxIdleEvent(wxIdleEventPtr):
def __init__(self,this):
self.this = this
class wxUpdateUIEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetChecked(self):
val = eventsc.wxUpdateUIEvent_GetChecked(self.this)
return val
def GetEnabled(self):
val = eventsc.wxUpdateUIEvent_GetEnabled(self.this)
return val
def GetText(self):
val = eventsc.wxUpdateUIEvent_GetText(self.this)
return val
def GetSetText(self):
val = eventsc.wxUpdateUIEvent_GetSetText(self.this)
return val
def GetSetChecked(self):
val = eventsc.wxUpdateUIEvent_GetSetChecked(self.this)
return val
def GetSetEnabled(self):
val = eventsc.wxUpdateUIEvent_GetSetEnabled(self.this)
return val
def Check(self,arg0):
val = eventsc.wxUpdateUIEvent_Check(self.this,arg0)
return val
def Enable(self,arg0):
val = eventsc.wxUpdateUIEvent_Enable(self.this,arg0)
return val
def SetText(self,arg0):
val = eventsc.wxUpdateUIEvent_SetText(self.this,arg0)
return val
def __repr__(self):
return "<C wxUpdateUIEvent instance>"
class wxUpdateUIEvent(wxUpdateUIEventPtr):
def __init__(self,this):
self.this = this
class wxSysColourChangedEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxSysColourChangedEvent instance>"
class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
def __init__(self,this):
self.this = this
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,127 +0,0 @@
# This file was created automatically by SWIG.
import framesc
from misc import *
from gdi import *
from windows import *
from stattool import *
from controls import *
from events import *
import wx
class wxFramePtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Centre(self,*args):
val = apply(framesc.wxFrame_Centre,(self.this,)+args)
return val
def Command(self,arg0):
val = framesc.wxFrame_Command(self.this,arg0)
return val
def CreateStatusBar(self,*args):
val = apply(framesc.wxFrame_CreateStatusBar,(self.this,)+args)
val = wxStatusBarPtr(val)
return val
def CreateToolBar(self,*args):
val = apply(framesc.wxFrame_CreateToolBar,(self.this,)+args)
val = wxToolBarPtr(val)
return val
def GetMenuBar(self):
val = framesc.wxFrame_GetMenuBar(self.this)
val = wxMenuBarPtr(val)
return val
def GetStatusBar(self):
val = framesc.wxFrame_GetStatusBar(self.this)
val = wxStatusBarPtr(val)
return val
def GetTitle(self):
val = framesc.wxFrame_GetTitle(self.this)
return val
def GetToolBar(self):
val = framesc.wxFrame_GetToolBar(self.this)
val = wxToolBarPtr(val)
return val
def Iconize(self,arg0):
val = framesc.wxFrame_Iconize(self.this,arg0)
return val
def IsIconized(self):
val = framesc.wxFrame_IsIconized(self.this)
return val
def Maximize(self,arg0):
val = framesc.wxFrame_Maximize(self.this,arg0)
return val
def SetAcceleratorTable(self,arg0):
val = framesc.wxFrame_SetAcceleratorTable(self.this,arg0.this)
return val
def SetIcon(self,arg0):
val = framesc.wxFrame_SetIcon(self.this,arg0.this)
return val
def SetMenuBar(self,arg0):
val = framesc.wxFrame_SetMenuBar(self.this,arg0.this)
return val
def SetStatusBar(self,arg0):
val = framesc.wxFrame_SetStatusBar(self.this,arg0.this)
return val
def SetStatusText(self,arg0,*args):
val = apply(framesc.wxFrame_SetStatusText,(self.this,arg0,)+args)
return val
def SetStatusWidths(self,arg0,*args):
val = apply(framesc.wxFrame_SetStatusWidths,(self.this,arg0,)+args)
return val
def SetTitle(self,arg0):
val = framesc.wxFrame_SetTitle(self.this,arg0)
return val
def SetToolBar(self,arg0):
val = framesc.wxFrame_SetToolBar(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxFrame instance>"
class wxFrame(wxFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(framesc.new_wxFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMiniFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMiniFrame instance>"
class wxMiniFrame(wxMiniFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(framesc.new_wxMiniFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,795 +0,0 @@
# This file was created automatically by SWIG.
import gdic
from misc import *
class wxBitmapPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxBitmap(self.this)
def Create(self,arg0,arg1,*args):
val = apply(gdic.wxBitmap_Create,(self.this,arg0,arg1,)+args)
return val
def GetDepth(self):
val = gdic.wxBitmap_GetDepth(self.this)
return val
def GetHeight(self):
val = gdic.wxBitmap_GetHeight(self.this)
return val
def GetPalette(self):
val = gdic.wxBitmap_GetPalette(self.this)
val = wxPalettePtr(val)
return val
def GetMask(self):
val = gdic.wxBitmap_GetMask(self.this)
val = wxMaskPtr(val)
return val
def GetWidth(self):
val = gdic.wxBitmap_GetWidth(self.this)
return val
def LoadFile(self,arg0,arg1):
val = gdic.wxBitmap_LoadFile(self.this,arg0,arg1)
return val
def Ok(self):
val = gdic.wxBitmap_Ok(self.this)
return val
def SaveFile(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxBitmap_SaveFile,(self.this,arg0,arg1,)+args)
return val
def SetDepth(self,arg0):
val = gdic.wxBitmap_SetDepth(self.this,arg0)
return val
def SetHeight(self,arg0):
val = gdic.wxBitmap_SetHeight(self.this,arg0)
return val
def SetMask(self,arg0):
val = gdic.wxBitmap_SetMask(self.this,arg0.this)
return val
def SetPalette(self,arg0):
val = gdic.wxBitmap_SetPalette(self.this,arg0.this)
return val
def SetWidth(self,arg0):
val = gdic.wxBitmap_SetWidth(self.this,arg0)
return val
def __repr__(self):
return "<C wxBitmap instance>"
class wxBitmap(wxBitmapPtr):
def __init__(self,arg0,arg1) :
self.this = gdic.new_wxBitmap(arg0,arg1)
self.thisown = 1
class wxMaskPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxMask(self.this)
def __repr__(self):
return "<C wxMask instance>"
class wxMask(wxMaskPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxMask(arg0.this)
self.thisown = 1
class wxIconPtr(wxBitmapPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxIcon(self.this)
def GetDepth(self):
val = gdic.wxIcon_GetDepth(self.this)
return val
def GetHeight(self):
val = gdic.wxIcon_GetHeight(self.this)
return val
def GetWidth(self):
val = gdic.wxIcon_GetWidth(self.this)
return val
def LoadFile(self,arg0,arg1):
val = gdic.wxIcon_LoadFile(self.this,arg0,arg1)
return val
def Ok(self):
val = gdic.wxIcon_Ok(self.this)
return val
def SetDepth(self,arg0):
val = gdic.wxIcon_SetDepth(self.this,arg0)
return val
def SetHeight(self,arg0):
val = gdic.wxIcon_SetHeight(self.this,arg0)
return val
def SetWidth(self,arg0):
val = gdic.wxIcon_SetWidth(self.this,arg0)
return val
def __repr__(self):
return "<C wxIcon instance>"
class wxIcon(wxIconPtr):
def __init__(self,arg0,arg1,*args) :
self.this = apply(gdic.new_wxIcon,(arg0,arg1,)+args)
self.thisown = 1
class wxCursorPtr(wxBitmapPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxCursor(self.this)
def Ok(self):
val = gdic.wxCursor_Ok(self.this)
return val
def __repr__(self):
return "<C wxCursor instance>"
class wxCursor(wxCursorPtr):
def __init__(self,arg0,arg1,*args) :
self.this = apply(gdic.new_wxCursor,(arg0,arg1,)+args)
self.thisown = 1
class wxFontPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFaceName(self):
val = gdic.wxFont_GetFaceName(self.this)
return val
def GetFamily(self):
val = gdic.wxFont_GetFamily(self.this)
return val
def GetFontId(self):
val = gdic.wxFont_GetFontId(self.this)
return val
def GetPointSize(self):
val = gdic.wxFont_GetPointSize(self.this)
return val
def GetStyle(self):
val = gdic.wxFont_GetStyle(self.this)
return val
def GetUnderlined(self):
val = gdic.wxFont_GetUnderlined(self.this)
return val
def GetWeight(self):
val = gdic.wxFont_GetWeight(self.this)
return val
def SetFaceName(self,arg0):
val = gdic.wxFont_SetFaceName(self.this,arg0)
return val
def SetFamily(self,arg0):
val = gdic.wxFont_SetFamily(self.this,arg0)
return val
def SetPointSize(self,arg0):
val = gdic.wxFont_SetPointSize(self.this,arg0)
return val
def SetStyle(self,arg0):
val = gdic.wxFont_SetStyle(self.this,arg0)
return val
def SetUnderlined(self,arg0):
val = gdic.wxFont_SetUnderlined(self.this,arg0)
return val
def SetWeight(self,arg0):
val = gdic.wxFont_SetWeight(self.this,arg0)
return val
def __repr__(self):
return "<C wxFont instance>"
class wxFont(wxFontPtr):
def __init__(self,arg0,arg1,arg2,arg3,*args) :
self.this = apply(gdic.new_wxFont,(arg0,arg1,arg2,arg3,)+args)
self.thisown = 1
class wxColourPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxColour(self.this)
def Red(self):
val = gdic.wxColour_Red(self.this)
return val
def Green(self):
val = gdic.wxColour_Green(self.this)
return val
def Blue(self):
val = gdic.wxColour_Blue(self.this)
return val
def Ok(self):
val = gdic.wxColour_Ok(self.this)
return val
def Set(self,arg0,arg1,arg2):
val = gdic.wxColour_Set(self.this,arg0,arg1,arg2)
return val
def Get(self):
val = gdic.wxColour_Get(self.this)
return val
def __repr__(self):
return "<C wxColour instance>"
class wxColour(wxColourPtr):
def __init__(self,*args) :
self.this = apply(gdic.new_wxColour,()+args)
self.thisown = 1
class wxPenPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetCap(self):
val = gdic.wxPen_GetCap(self.this)
return val
def GetColour(self):
val = gdic.wxPen_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetJoin(self):
val = gdic.wxPen_GetJoin(self.this)
return val
def GetStyle(self):
val = gdic.wxPen_GetStyle(self.this)
return val
def GetWidth(self):
val = gdic.wxPen_GetWidth(self.this)
return val
def Ok(self):
val = gdic.wxPen_Ok(self.this)
return val
def SetCap(self,arg0):
val = gdic.wxPen_SetCap(self.this,arg0)
return val
def SetColour(self,arg0):
val = gdic.wxPen_SetColour(self.this,arg0.this)
return val
def SetJoin(self,arg0):
val = gdic.wxPen_SetJoin(self.this,arg0)
return val
def SetStyle(self,arg0):
val = gdic.wxPen_SetStyle(self.this,arg0)
return val
def SetWidth(self,arg0):
val = gdic.wxPen_SetWidth(self.this,arg0)
return val
def GetDashes(self,arg0):
val = gdic.wxPen_GetDashes(self.this,arg0)
return val
def GetStipple(self):
val = gdic.wxPen_GetStipple(self.this)
val = wxBitmapPtr(val)
return val
def SetDashes(self,arg0,*args):
val = apply(gdic.wxPen_SetDashes,(self.this,arg0,)+args)
return val
def SetStipple(self,arg0):
val = gdic.wxPen_SetStipple(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxPen instance>"
class wxPen(wxPenPtr):
def __init__(self,arg0,*args) :
self.this = apply(gdic.new_wxPen,(arg0.this,)+args)
self.thisown = 1
class wxBrushPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetColour(self):
val = gdic.wxBrush_GetColour(self.this)
val = wxColourPtr(val)
return val
def GetStipple(self):
val = gdic.wxBrush_GetStipple(self.this)
val = wxBitmapPtr(val)
return val
def GetStyle(self):
val = gdic.wxBrush_GetStyle(self.this)
return val
def Ok(self):
val = gdic.wxBrush_Ok(self.this)
return val
def SetColour(self,arg0):
val = gdic.wxBrush_SetColour(self.this,arg0.this)
return val
def SetStipple(self,arg0):
val = gdic.wxBrush_SetStipple(self.this,arg0.this)
return val
def SetStyle(self,arg0):
val = gdic.wxBrush_SetStyle(self.this,arg0)
return val
def __repr__(self):
return "<C wxBrush instance>"
class wxBrush(wxBrushPtr):
def __init__(self,arg0,*args) :
self.this = apply(gdic.new_wxBrush,(arg0.this,)+args)
self.thisown = 1
class wxDCPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxDC(self.this)
def BeginDrawing(self):
val = gdic.wxDC_BeginDrawing(self.this)
return val
def Blit(self,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7):
val = gdic.wxDC_Blit(self.this,arg0,arg1,arg2,arg3,arg4.this,arg5,arg6,arg7)
return val
def Clear(self):
val = gdic.wxDC_Clear(self.this)
return val
def CrossHair(self,arg0,arg1):
val = gdic.wxDC_CrossHair(self.this,arg0,arg1)
return val
def DestroyClippingRegion(self):
val = gdic.wxDC_DestroyClippingRegion(self.this)
return val
def DeviceToLogicalX(self,arg0):
val = gdic.wxDC_DeviceToLogicalX(self.this,arg0)
return val
def DeviceToLogicalXRel(self,arg0):
val = gdic.wxDC_DeviceToLogicalXRel(self.this,arg0)
return val
def DeviceToLogicalY(self,arg0):
val = gdic.wxDC_DeviceToLogicalY(self.this,arg0)
return val
def DeviceToLogicalYRel(self,arg0):
val = gdic.wxDC_DeviceToLogicalYRel(self.this,arg0)
return val
def DrawArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
val = gdic.wxDC_DrawArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
return val
def DrawEllipse(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3)
return val
def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
return val
def DrawIcon(self,arg0,arg1,arg2):
val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2)
return val
def DrawLine(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3)
return val
def DrawLines(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args)
return val
def DrawPolygon(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args)
return val
def DrawPoint(self,arg0,arg1):
val = gdic.wxDC_DrawPoint(self.this,arg0,arg1)
return val
def DrawRectangle(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3)
return val
def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args):
val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def DrawSpline(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args)
return val
def DrawText(self,arg0,arg1,arg2):
val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2)
return val
def EndDoc(self):
val = gdic.wxDC_EndDoc(self.this)
return val
def EndDrawing(self):
val = gdic.wxDC_EndDrawing(self.this)
return val
def EndPage(self):
val = gdic.wxDC_EndPage(self.this)
return val
def FloodFill(self,arg0,arg1,arg2,*args):
val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
return val
def GetBackground(self):
val = gdic.wxDC_GetBackground(self.this)
val = wxBrushPtr(val)
return val
def GetBrush(self):
val = gdic.wxDC_GetBrush(self.this)
val = wxBrushPtr(val)
return val
def GetCharHeight(self):
val = gdic.wxDC_GetCharHeight(self.this)
return val
def GetCharWidth(self):
val = gdic.wxDC_GetCharWidth(self.this)
return val
def GetClippingBox(self):
val = gdic.wxDC_GetClippingBox(self.this)
return val
def GetFont(self):
val = gdic.wxDC_GetFont(self.this)
val = wxFontPtr(val)
return val
def GetLogicalFunction(self):
val = gdic.wxDC_GetLogicalFunction(self.this)
return val
def GetMapMode(self):
val = gdic.wxDC_GetMapMode(self.this)
return val
def GetOptimization(self):
val = gdic.wxDC_GetOptimization(self.this)
return val
def GetPen(self):
val = gdic.wxDC_GetPen(self.this)
val = wxPenPtr(val)
return val
def GetPixel(self,arg0,arg1):
val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetSize(self):
val = gdic.wxDC_GetSize(self.this)
return val
def GetTextBackground(self):
val = gdic.wxDC_GetTextBackground(self.this)
val = wxColourPtr(val)
return val
def GetTextExtent(self,arg0):
val = gdic.wxDC_GetTextExtent(self.this,arg0)
return val
def GetTextForeground(self):
val = gdic.wxDC_GetTextForeground(self.this)
val = wxColourPtr(val)
return val
def LogicalToDeviceX(self,arg0):
val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
return val
def LogicalToDeviceXRel(self,arg0):
val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
return val
def LogicalToDeviceY(self,arg0):
val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
return val
def LogicalToDeviceYRel(self,arg0):
val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
return val
def MaxX(self):
val = gdic.wxDC_MaxX(self.this)
return val
def MaxY(self):
val = gdic.wxDC_MaxY(self.this)
return val
def MinX(self):
val = gdic.wxDC_MinX(self.this)
return val
def MinY(self):
val = gdic.wxDC_MinY(self.this)
return val
def Ok(self):
val = gdic.wxDC_Ok(self.this)
return val
def SetDeviceOrigin(self,arg0,arg1):
val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
return val
def SetBackground(self,arg0):
val = gdic.wxDC_SetBackground(self.this,arg0.this)
return val
def SetBackgroundMode(self,arg0):
val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
return val
def SetClippingRegion(self,arg0,arg1,arg2,arg3):
val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
return val
def SetPalette(self,arg0):
val = gdic.wxDC_SetPalette(self.this,arg0.this)
return val
def SetBrush(self,arg0):
val = gdic.wxDC_SetBrush(self.this,arg0.this)
return val
def SetFont(self,arg0):
val = gdic.wxDC_SetFont(self.this,arg0.this)
return val
def SetLogicalFunction(self,arg0):
val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
return val
def SetMapMode(self,arg0):
val = gdic.wxDC_SetMapMode(self.this,arg0)
return val
def SetOptimization(self,arg0):
val = gdic.wxDC_SetOptimization(self.this,arg0)
return val
def SetPen(self,arg0):
val = gdic.wxDC_SetPen(self.this,arg0.this)
return val
def SetTextBackground(self,arg0):
val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
return val
def SetTextForeground(self,arg0):
val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
return val
def SetUserScale(self,arg0,arg1):
val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
return val
def StartDoc(self,arg0):
val = gdic.wxDC_StartDoc(self.this,arg0)
return val
def StartPage(self):
val = gdic.wxDC_StartPage(self.this)
return val
def DrawBitmap(self,arg0,arg1,arg2,*args):
val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
return val
def __repr__(self):
return "<C wxDC instance>"
class wxDC(wxDCPtr):
def __init__(self,this):
self.this = this
class wxMemoryDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SelectObject(self,arg0):
val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxMemoryDC instance>"
class wxMemoryDC(wxMemoryDCPtr):
def __init__(self) :
self.this = gdic.new_wxMemoryDC()
self.thisown = 1
class wxScreenDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def StartDrawingOnTop(self,arg0):
val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
return val
def StartDrawingOnTopRect(self,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
return val
def EndDrawingOnTop(self):
val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
return val
def __repr__(self):
return "<C wxScreenDC instance>"
class wxScreenDC(wxScreenDCPtr):
def __init__(self) :
self.this = gdic.new_wxScreenDC()
self.thisown = 1
class wxClientDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxClientDC instance>"
class wxClientDC(wxClientDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxClientDC(arg0.this)
self.thisown = 1
class wxPaintDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPaintDC instance>"
class wxPaintDC(wxPaintDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxPaintDC(arg0.this)
self.thisown = 1
class wxWindowDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxWindowDC instance>"
class wxWindowDC(wxWindowDCPtr):
def __init__(self,arg0) :
self.this = gdic.new_wxWindowDC(arg0.this)
self.thisown = 1
class wxPrinterDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPrinterDC instance>"
class wxPrinterDC(wxPrinterDCPtr):
def __init__(self,arg0,arg1,arg2,*args) :
self.this = apply(gdic.new_wxPrinterDC,(arg0,arg1,arg2,)+args)
self.thisown = 1
class wxMetaFileDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Close(self):
val = gdic.wxMetaFileDC_Close(self.this)
return val
def __repr__(self):
return "<C wxMetaFileDC instance>"
class wxMetaFileDC(wxMetaFileDCPtr):
def __init__(self,*args) :
self.this = apply(gdic.new_wxMetaFileDC,()+args)
self.thisown = 1
class wxPalettePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
gdic.delete_wxPalette(self.this)
def GetPixel(self,arg0,arg1,arg2):
val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
return val
def GetRGB(self,arg0,arg1,arg2,arg3):
val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
return val
def Ok(self):
val = gdic.wxPalette_Ok(self.this)
return val
def __repr__(self):
return "<C wxPalette instance>"
class wxPalette(wxPalettePtr):
def __init__(self,arg0,arg1,arg2) :
self.this = gdic.new_wxPalette(arg0,arg1,arg2)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
def wxEmptyBitmap(arg0,arg1,*args):
val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
val = wxBitmapPtr(val)
val.thisown = 1
return val
def wxNoRefBitmap(arg0,arg1):
val = gdic.wxNoRefBitmap(arg0,arg1)
val = wxBitmapPtr(val)
return val
def wxMaskColour(arg0,arg1):
val = gdic.wxMaskColour(arg0.this,arg1.this)
val = wxMaskPtr(val)
val.thisown = 1
return val
def wxStockCursor(arg0):
val = gdic.wxStockCursor(arg0)
val = wxCursorPtr(val)
val.thisown = 1
return val
def wxNamedColour(arg0):
val = gdic.wxNamedColour(arg0)
val = wxColourPtr(val)
val.thisown = 1
return val
def wxMemoryDCFromDC(arg0):
val = gdic.wxMemoryDCFromDC(arg0.this)
val = wxMemoryDCPtr(val)
val.thisown = 1
return val
#-------------- VARIABLE WRAPPERS ------------------
cvar = gdic.cvar
wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
wxRED = wxColourPtr(gdic.cvar.wxRED)
wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)

View File

@@ -1,995 +0,0 @@
/*
* FILE : msw/mdi.cpp
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator (SWIG)
* Version 1.1 (Patch 5)
*
* Portions Copyright (c) 1995-1998
* The University of Utah and The Regents of the University of California.
* Permission is granted to distribute this file in any manner provided
* this notice remains intact.
*
* Do not make changes to this file--changes will be lost!
*
*/
#define SWIGCODE
/* Implementation : PYTHON */
#define SWIGPYTHON
#include <string.h>
#include <stdlib.h>
/* Definitions for Windows/Unix exporting */
#if defined(__WIN32__)
# if defined(_MSC_VER)
# define SWIGEXPORT(a,b) __declspec(dllexport) a b
# else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a,b) a _export b
# else
# define SWIGEXPORT(a,b) a b
# endif
# endif
#else
# define SWIGEXPORT(a,b) a b
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
extern void SWIG_MakePtr(char *, void *, char *);
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
extern char *SWIG_GetPtr(char *, void **, char *);
extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
extern PyObject *SWIG_newvarlink(void);
#ifdef __cplusplus
}
#endif
#define SWIG_init initmdic
#define SWIG_name "mdic"
#include "helpers.h"
static PyObject* l_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
if (!target) {
target = o;
} else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
} else {
if (!PyList_Check(target)) {
o2 = target;
target = PyList_New(0);
PyList_Append(target, o2);
Py_XDECREF(o2);
}
PyList_Append(target,o);
Py_XDECREF(o);
}
return target;
}
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
PyObject* o3;
if (!target) {
target = o;
} else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
} else {
if (!PyTuple_Check(target)) {
o2 = target;
target = PyTuple_New(1);
PyTuple_SetItem(target, 0, o2);
}
o3 = PyTuple_New(1);
PyTuple_SetItem(o3, 0, o);
o2 = target;
target = PySequence_Concat(o2, o3);
Py_DECREF(o2);
Py_DECREF(o3);
}
return target;
}
extern byte* byte_LIST_helper(PyObject* source);
extern int* int_LIST_helper(PyObject* source);
extern long* long_LIST_helper(PyObject* source);
extern char** string_LIST_helper(PyObject* source);
extern wxPoint* wxPoint_LIST_helper(PyObject* source);
extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
extern wxString* wxString_LIST_helper(PyObject* source);
extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
static char* wxStringErrorMsg = "string type is required for parameter";
static void *SwigwxMDIParentFrameTowxFrame(void *ptr) {
wxMDIParentFrame *src;
wxFrame *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxFrame *) src;
return (void *) dest;
}
static void *SwigwxMDIParentFrameTowxWindow(void *ptr) {
wxMDIParentFrame *src;
wxWindow *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) {
wxMDIParentFrame *src;
wxEvtHandler *dest;
src = (wxMDIParentFrame *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _result;
wxWindow * _arg0;
wxWindowID _arg1;
wxString * _arg2;
wxPoint * _arg3 = &wxPyDefaultPosition;
wxSize * _arg4 = &wxPyDefaultSize;
long _arg5 = (wxDEFAULT_FRAME_STYLE)|(wxVSCROLL)|(wxHSCROLL);
char * _arg6 = "frame";
char * _argc0 = 0;
PyObject * _obj2 = 0;
char * _argc3 = 0;
char * _argc4 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIParentFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
return NULL;
}
}
{
if (!PyString_Check(_obj2)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
_arg2 = new wxString(PyString_AsString(_obj2));
}
if (_argc3) {
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIParentFrame. Expected _wxPoint_p.");
return NULL;
}
}
if (_argc4) {
if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIParentFrame. Expected _wxSize_p.");
return NULL;
}
}
_result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
{
if (_obj2)
delete _arg2;
}
return _resultobj;
}
#define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivateNext",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ActivateNext(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivatePrevious",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ActivatePrevious(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ArrangeIcons",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_ArrangeIcons(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Cascade",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_Cascade(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_GetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIParentFrame_GetClientSize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
int * _arg1;
int temp;
int * _arg2;
int temp0;
char * _argc0 = 0;
self = self;
{
_arg1 = &temp;
}
{
_arg2 = &temp0;
}
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientSize",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientSize. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_GetClientSize(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg1));
_resultobj = t_output_helper(_resultobj, o);
}
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg2));
_resultobj = t_output_helper(_resultobj, o);
}
return _resultobj;
}
#define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetActiveChild",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIClientWindow * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientWindow",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxWindow * _result;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetToolBar",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
#define wxMDIParentFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
static PyObject *_wrap_wxMDIParentFrame_SetToolBar(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
wxToolBar * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:wxMDIParentFrame_SetToolBar",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_SetToolBar. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxToolBar_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_SetToolBar. Expected _wxToolBar_p.");
return NULL;
}
}
wxMDIParentFrame_SetToolBar(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Tile",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
wxMDIParentFrame_Tile(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
static void *SwigwxMDIChildFrameTowxFrame(void *ptr) {
wxMDIChildFrame *src;
wxFrame *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxFrame *) src;
return (void *) dest;
}
static void *SwigwxMDIChildFrameTowxWindow(void *ptr) {
wxMDIChildFrame *src;
wxWindow *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) {
wxMDIChildFrame *src;
wxEvtHandler *dest;
src = (wxMDIChildFrame *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _result;
wxMDIParentFrame * _arg0;
wxWindowID _arg1;
wxString * _arg2;
wxPoint * _arg3 = &wxPyDefaultPosition;
wxSize * _arg4 = &wxPyDefaultSize;
long _arg5 = (wxDEFAULT_FRAME_STYLE);
char * _arg6 = "frame";
char * _argc0 = 0;
PyObject * _obj2 = 0;
char * _argc3 = 0;
char * _argc4 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIChildFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
{
if (!PyString_Check(_obj2)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
_arg2 = new wxString(PyString_AsString(_obj2));
}
if (_argc3) {
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIChildFrame. Expected _wxPoint_p.");
return NULL;
}
}
if (_argc4) {
if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIChildFrame. Expected _wxSize_p.");
return NULL;
}
}
_result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
_resultobj = Py_BuildValue("s",_ptemp);
{
if (_obj2)
delete _arg2;
}
return _resultobj;
}
#define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Activate",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Activate(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_Maximize(_swigobj) (_swigobj->Maximize())
static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Maximize",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Maximize(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Restore",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_Restore(_arg0);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
static PyObject *_wrap_wxMDIChildFrame_SetMenuBar(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
wxMenuBar * _arg1;
char * _argc0 = 0;
char * _argc1 = 0;
self = self;
if(!PyArg_ParseTuple(args,"ss:wxMDIChildFrame_SetMenuBar",&_argc0,&_argc1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetMenuBar. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
if (_argc1) {
if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMenuBar_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_SetMenuBar. Expected _wxMenuBar_p.");
return NULL;
}
}
wxMDIChildFrame_SetMenuBar(_arg0,_arg1);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_SetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIChildFrame_SetClientSize(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
int _arg1;
int _arg2;
char * _argc0 = 0;
self = self;
if(!PyArg_ParseTuple(args,"sii:wxMDIChildFrame_SetClientSize",&_argc0,&_arg1,&_arg2))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetClientSize. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_SetClientSize(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
#define wxMDIChildFrame_GetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
static PyObject *_wrap_wxMDIChildFrame_GetPosition(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIChildFrame * _arg0;
int * _arg1;
int temp;
int * _arg2;
int temp0;
char * _argc0 = 0;
self = self;
{
_arg1 = &temp;
}
{
_arg2 = &temp0;
}
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_GetPosition",&_argc0))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_GetPosition. Expected _wxMDIChildFrame_p.");
return NULL;
}
}
wxMDIChildFrame_GetPosition(_arg0,_arg1,_arg2);
Py_INCREF(Py_None);
_resultobj = Py_None;
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg1));
_resultobj = t_output_helper(_resultobj, o);
}
{
PyObject *o;
o = PyInt_FromLong((long) (*_arg2));
_resultobj = t_output_helper(_resultobj, o);
}
return _resultobj;
}
static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
wxMDIClientWindow *src;
wxWindow *dest;
src = (wxMDIClientWindow *) ptr;
dest = (wxWindow *) src;
return (void *) dest;
}
static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
wxMDIClientWindow *src;
wxEvtHandler *dest;
src = (wxMDIClientWindow *) ptr;
dest = (wxEvtHandler *) src;
return (void *) dest;
}
#define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) {
PyObject * _resultobj;
wxMDIClientWindow * _result;
wxMDIParentFrame * _arg0;
long _arg1 = 0;
char * _argc0 = 0;
char _ptemp[128];
self = self;
if(!PyArg_ParseTuple(args,"s|l:new_wxMDIClientWindow",&_argc0,&_arg1))
return NULL;
if (_argc0) {
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
return NULL;
}
}
_result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
_resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
static PyMethodDef mdicMethods[] = {
{ "new_wxMDIClientWindow", _wrap_new_wxMDIClientWindow, 1 },
{ "wxMDIChildFrame_GetPosition", _wrap_wxMDIChildFrame_GetPosition, 1 },
{ "wxMDIChildFrame_SetClientSize", _wrap_wxMDIChildFrame_SetClientSize, 1 },
{ "wxMDIChildFrame_SetMenuBar", _wrap_wxMDIChildFrame_SetMenuBar, 1 },
{ "wxMDIChildFrame_Restore", _wrap_wxMDIChildFrame_Restore, 1 },
{ "wxMDIChildFrame_Maximize", _wrap_wxMDIChildFrame_Maximize, 1 },
{ "wxMDIChildFrame_Activate", _wrap_wxMDIChildFrame_Activate, 1 },
{ "new_wxMDIChildFrame", _wrap_new_wxMDIChildFrame, 1 },
{ "wxMDIParentFrame_Tile", _wrap_wxMDIParentFrame_Tile, 1 },
{ "wxMDIParentFrame_SetToolBar", _wrap_wxMDIParentFrame_SetToolBar, 1 },
{ "wxMDIParentFrame_GetToolBar", _wrap_wxMDIParentFrame_GetToolBar, 1 },
{ "wxMDIParentFrame_GetClientWindow", _wrap_wxMDIParentFrame_GetClientWindow, 1 },
{ "wxMDIParentFrame_GetActiveChild", _wrap_wxMDIParentFrame_GetActiveChild, 1 },
{ "wxMDIParentFrame_GetClientSize", _wrap_wxMDIParentFrame_GetClientSize, 1 },
{ "wxMDIParentFrame_Cascade", _wrap_wxMDIParentFrame_Cascade, 1 },
{ "wxMDIParentFrame_ArrangeIcons", _wrap_wxMDIParentFrame_ArrangeIcons, 1 },
{ "wxMDIParentFrame_ActivatePrevious", _wrap_wxMDIParentFrame_ActivatePrevious, 1 },
{ "wxMDIParentFrame_ActivateNext", _wrap_wxMDIParentFrame_ActivateNext, 1 },
{ "new_wxMDIParentFrame", _wrap_new_wxMDIParentFrame, 1 },
{ NULL, NULL }
};
static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT(void,initmdic)() {
PyObject *m, *d;
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("mdic", mdicMethods);
d = PyModule_GetDict(m);
/*
* These are the pointer type-equivalency mappings.
* (Used by the SWIG pointer type-checker).
*/
SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0);
SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0);
SWIG_RegisterMapping("_signed_long","_long",0);
SWIG_RegisterMapping("_wxMenuEvent","_class_wxMenuEvent",0);
SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0);
SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
SWIG_RegisterMapping("_wxPaintEvent","_class_wxPaintEvent",0);
SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
SWIG_RegisterMapping("_wxUpdateUIEvent","_class_wxUpdateUIEvent",0);
SWIG_RegisterMapping("_byte","_unsigned_char",0);
SWIG_RegisterMapping("_wxStaticBox","_class_wxStaticBox",0);
SWIG_RegisterMapping("_wxChoice","_class_wxChoice",0);
SWIG_RegisterMapping("_wxSlider","_class_wxSlider",0);
SWIG_RegisterMapping("_long","_wxDash",0);
SWIG_RegisterMapping("_long","_unsigned_long",0);
SWIG_RegisterMapping("_long","_signed_long",0);
SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0);
SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0);
SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0);
SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
SWIG_RegisterMapping("_wxSpinEvent","_class_wxSpinEvent",0);
SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
SWIG_RegisterMapping("_wxPrinterDC","_class_wxPrinterDC",0);
SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0);
SWIG_RegisterMapping("_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0);
SWIG_RegisterMapping("_class_wxStatusBar","_wxStatusBar",0);
SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0);
SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
SWIG_RegisterMapping("_wxIdleEvent","_class_wxIdleEvent",0);
SWIG_RegisterMapping("_class_wxUpdateUIEvent","_wxUpdateUIEvent",0);
SWIG_RegisterMapping("_wxToolBar","_class_wxToolBar",0);
SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
SWIG_RegisterMapping("_wxMiniFrame","_class_wxMiniFrame",0);
SWIG_RegisterMapping("_wxShowEvent","_class_wxShowEvent",0);
SWIG_RegisterMapping("_uint","_unsigned_int",0);
SWIG_RegisterMapping("_uint","_int",0);
SWIG_RegisterMapping("_uint","_wxWindowID",0);
SWIG_RegisterMapping("_class_wxEvent","_wxEvent",0);
SWIG_RegisterMapping("_wxCheckListBox","_class_wxCheckListBox",0);
SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
SWIG_RegisterMapping("_wxCommandEvent","_class_wxCommandEvent",0);
SWIG_RegisterMapping("_wxSizeEvent","_class_wxSizeEvent",0);
SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
SWIG_RegisterMapping("_class_wxButton","_wxButton",0);
SWIG_RegisterMapping("_wxRadioBox","_class_wxRadioBox",0);
SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0);
SWIG_RegisterMapping("_wxScrollBar","_class_wxScrollBar",0);
SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0);
SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0);
SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0);
SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0);
SWIG_RegisterMapping("_EBool","_signed_int",0);
SWIG_RegisterMapping("_EBool","_int",0);
SWIG_RegisterMapping("_EBool","_wxWindowID",0);
SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0);
SWIG_RegisterMapping("_class_wxDropFilesEvent","_wxDropFilesEvent",0);
SWIG_RegisterMapping("_wxStaticText","_class_wxStaticText",0);
SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
SWIG_RegisterMapping("_wxCloseEvent","_class_wxCloseEvent",0);
SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
SWIG_RegisterMapping("_unsigned_long","_long",0);
SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
SWIG_RegisterMapping("_wxMDIParentFrame","_class_wxMDIParentFrame",0);
SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0);
SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0);
SWIG_RegisterMapping("_class_wxSpinButton","_wxSpinButton",0);
SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0);
SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0);
SWIG_RegisterMapping("_wxRadioButton","_class_wxRadioButton",0);
SWIG_RegisterMapping("_signed_int","_EBool",0);
SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
SWIG_RegisterMapping("_signed_int","_int",0);
SWIG_RegisterMapping("_class_wxTextCtrl","_wxTextCtrl",0);
SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
SWIG_RegisterMapping("_wxMetaFileDC","_class_wxMetaFileDC",0);
SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
SWIG_RegisterMapping("_class_wxMoveEvent","_wxMoveEvent",0);
SWIG_RegisterMapping("_wxListBox","_class_wxListBox",0);
SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
SWIG_RegisterMapping("_class_wxMDIChildFrame","_wxMDIChildFrame",0);
SWIG_RegisterMapping("_WXTYPE","_short",0);
SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
SWIG_RegisterMapping("_class_wxMDIClientWindow","_wxMDIClientWindow",0);
SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
SWIG_RegisterMapping("_unsigned_short","_short",0);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
SWIG_RegisterMapping("_class_wxStaticText","_wxStaticText",0);
SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
SWIG_RegisterMapping("_class_wxCloseEvent","_wxCloseEvent",0);
SWIG_RegisterMapping("_class_wxMenuEvent","_wxMenuEvent",0);
SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
SWIG_RegisterMapping("_wxMouseEvent","_class_wxMouseEvent",0);
SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
SWIG_RegisterMapping("_class_wxRadioBox","_wxRadioBox",0);
SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
SWIG_RegisterMapping("_signed_short","_short",0);
SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0);
SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0);
SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0);
SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0);
SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0);
SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
SWIG_RegisterMapping("_unsigned_char","_byte",0);
SWIG_RegisterMapping("_class_wxMetaFileDC","_wxMetaFileDC",0);
SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
SWIG_RegisterMapping("_wxControl","_class_wxControl",0);
SWIG_RegisterMapping("_class_wxListBox","_wxListBox",0);
SWIG_RegisterMapping("_unsigned_int","_uint",0);
SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
SWIG_RegisterMapping("_unsigned_int","_int",0);
SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
SWIG_RegisterMapping("_short","_WXTYPE",0);
SWIG_RegisterMapping("_short","_unsigned_short",0);
SWIG_RegisterMapping("_short","_signed_short",0);
SWIG_RegisterMapping("_class_wxStaticBox","_wxStaticBox",0);
SWIG_RegisterMapping("_class_wxScrollEvent","_wxScrollEvent",0);
SWIG_RegisterMapping("_wxJoystickEvent","_class_wxJoystickEvent",0);
SWIG_RegisterMapping("_class_wxChoice","_wxChoice",0);
SWIG_RegisterMapping("_class_wxSlider","_wxSlider",0);
SWIG_RegisterMapping("_class_wxBitmapButton","_wxBitmapButton",0);
SWIG_RegisterMapping("_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0);
SWIG_RegisterMapping("_wxWindowID","_EBool",0);
SWIG_RegisterMapping("_wxWindowID","_uint",0);
SWIG_RegisterMapping("_wxWindowID","_int",0);
SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
SWIG_RegisterMapping("_int","_EBool",0);
SWIG_RegisterMapping("_int","_uint",0);
SWIG_RegisterMapping("_int","_wxWindowID",0);
SWIG_RegisterMapping("_int","_unsigned_int",0);
SWIG_RegisterMapping("_int","_signed_int",0);
SWIG_RegisterMapping("_class_wxMouseEvent","_wxMouseEvent",0);
SWIG_RegisterMapping("_class_wxSpinEvent","_wxSpinEvent",0);
SWIG_RegisterMapping("_wxButton","_class_wxButton",0);
SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0);
SWIG_RegisterMapping("_class_wxPrinterDC","_wxPrinterDC",0);
SWIG_RegisterMapping("_class_wxMDIParentFrame","_wxMDIParentFrame",0);
SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
SWIG_RegisterMapping("_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0);
SWIG_RegisterMapping("_class_wxInitDialogEvent","_wxInitDialogEvent",0);
SWIG_RegisterMapping("_class_wxComboBox","_wxComboBox",0);
SWIG_RegisterMapping("_class_wxRadioButton","_wxRadioButton",0);
SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
SWIG_RegisterMapping("_wxIconizeEvent","_class_wxIconizeEvent",0);
SWIG_RegisterMapping("_class_wxControl","_wxControl",0);
SWIG_RegisterMapping("_wxStaticBitmap","_class_wxStaticBitmap",0);
SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0);
SWIG_RegisterMapping("_class_wxIdleEvent","_wxIdleEvent",0);
SWIG_RegisterMapping("_wxEraseEvent","_class_wxEraseEvent",0);
SWIG_RegisterMapping("_class_wxJoystickEvent","_wxJoystickEvent",0);
SWIG_RegisterMapping("_class_wxMiniFrame","_wxMiniFrame",0);
SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0);
SWIG_RegisterMapping("_class_wxShowEvent","_wxShowEvent",0);
SWIG_RegisterMapping("_wxActivateEvent","_class_wxActivateEvent",0);
SWIG_RegisterMapping("_wxGauge","_class_wxGauge",0);
SWIG_RegisterMapping("_class_wxCheckListBox","_wxCheckListBox",0);
SWIG_RegisterMapping("_class_wxCommandEvent","_wxCommandEvent",0);
SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
SWIG_RegisterMapping("_class_wxSizeEvent","_wxSizeEvent",0);
SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
SWIG_RegisterMapping("_class_wxScrollBar","_wxScrollBar",0);
SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
SWIG_RegisterMapping("_wxDash","_long",0);
SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
SWIG_RegisterMapping("_wxKeyEvent","_class_wxKeyEvent",0);
SWIG_RegisterMapping("_wxMoveEvent","_class_wxMoveEvent",0);
SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0);
SWIG_RegisterMapping("_class_wxEraseEvent","_wxEraseEvent",0);
SWIG_RegisterMapping("_wxMDIClientWindow","_class_wxMDIClientWindow",0);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
SWIG_RegisterMapping("_class_wxFrame","_wxFrame",0);
}

View File

@@ -1,134 +0,0 @@
# This file was created automatically by SWIG.
import mdic
from misc import *
from windows import *
from gdi import *
from frames import *
from stattool import *
from controls import *
from events import *
import wx
class wxMDIParentFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ActivateNext(self):
val = mdic.wxMDIParentFrame_ActivateNext(self.this)
return val
def ActivatePrevious(self):
val = mdic.wxMDIParentFrame_ActivatePrevious(self.this)
return val
def ArrangeIcons(self):
val = mdic.wxMDIParentFrame_ArrangeIcons(self.this)
return val
def Cascade(self):
val = mdic.wxMDIParentFrame_Cascade(self.this)
return val
def GetClientSize(self):
val = mdic.wxMDIParentFrame_GetClientSize(self.this)
return val
def GetActiveChild(self):
val = mdic.wxMDIParentFrame_GetActiveChild(self.this)
val = wxMDIChildFramePtr(val)
return val
def GetClientWindow(self):
val = mdic.wxMDIParentFrame_GetClientWindow(self.this)
val = wxMDIClientWindowPtr(val)
return val
def GetToolBar(self):
val = mdic.wxMDIParentFrame_GetToolBar(self.this)
val = wxWindowPtr(val)
return val
def SetToolBar(self,arg0):
val = mdic.wxMDIParentFrame_SetToolBar(self.this,arg0.this)
return val
def Tile(self):
val = mdic.wxMDIParentFrame_Tile(self.this)
return val
def __repr__(self):
return "<C wxMDIParentFrame instance>"
class wxMDIParentFrame(wxMDIParentFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(mdic.new_wxMDIParentFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMDIChildFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Activate(self):
val = mdic.wxMDIChildFrame_Activate(self.this)
return val
def Maximize(self):
val = mdic.wxMDIChildFrame_Maximize(self.this)
return val
def Restore(self):
val = mdic.wxMDIChildFrame_Restore(self.this)
return val
def SetMenuBar(self,arg0):
val = mdic.wxMDIChildFrame_SetMenuBar(self.this,arg0.this)
return val
def SetClientSize(self,arg0,arg1):
val = mdic.wxMDIChildFrame_SetClientSize(self.this,arg0,arg1)
return val
def GetPosition(self):
val = mdic.wxMDIChildFrame_GetPosition(self.this)
return val
def __repr__(self):
return "<C wxMDIChildFrame instance>"
class wxMDIChildFrame(wxMDIChildFramePtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(mdic.new_wxMDIChildFrame,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdFrameCallbacks(self)
class wxMDIClientWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMDIClientWindow instance>"
class wxMDIClientWindow(wxMDIClientWindowPtr):
def __init__(self,arg0,*args) :
self.this = apply(mdic.new_wxMDIClientWindow,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._StdOnScrollCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,635 +0,0 @@
# This file was created automatically by SWIG.
import miscc
class wxSizePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxSize(self.this)
def Set(self,arg0,arg1):
val = miscc.wxSize_Set(self.this,arg0,arg1)
return val
def GetWidth(self):
val = miscc.wxSize_GetWidth(self.this)
return val
def GetHeight(self):
val = miscc.wxSize_GetHeight(self.this)
return val
def __str__(self):
val = miscc.wxSize___str__(self.this)
return val
def __setattr__(self,name,value):
if name == "width" :
miscc.wxSize_width_set(self.this,value)
return
if name == "height" :
miscc.wxSize_height_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "width" :
return miscc.wxSize_width_get(self.this)
if name == "height" :
return miscc.wxSize_height_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxSize instance>"
class wxSize(wxSizePtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxSize,()+args)
self.thisown = 1
class wxRealPointPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRealPoint(self.this)
def __setattr__(self,name,value):
if name == "x" :
miscc.wxRealPoint_x_set(self.this,value)
return
if name == "y" :
miscc.wxRealPoint_y_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxRealPoint_x_get(self.this)
if name == "y" :
return miscc.wxRealPoint_y_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxRealPoint instance>"
class wxRealPoint(wxRealPointPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxRealPoint,()+args)
self.thisown = 1
class wxPointPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxPoint(self.this)
def Set(self,arg0,arg1):
val = miscc.wxPoint_Set(self.this,arg0,arg1)
return val
def __str__(self):
val = miscc.wxPoint___str__(self.this)
return val
def __setattr__(self,name,value):
if name == "x" :
miscc.wxPoint_x_set(self.this,value)
return
if name == "y" :
miscc.wxPoint_y_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxPoint_x_get(self.this)
if name == "y" :
return miscc.wxPoint_y_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxPoint instance>"
class wxPoint(wxPointPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxPoint,()+args)
self.thisown = 1
class wxRectPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRect(self.this)
def GetX(self):
val = miscc.wxRect_GetX(self.this)
return val
def SetX(self,arg0):
val = miscc.wxRect_SetX(self.this,arg0)
return val
def GetY(self):
val = miscc.wxRect_GetY(self.this)
return val
def SetY(self,arg0):
val = miscc.wxRect_SetY(self.this,arg0)
return val
def GetWidth(self):
val = miscc.wxRect_GetWidth(self.this)
return val
def SetWidth(self,arg0):
val = miscc.wxRect_SetWidth(self.this,arg0)
return val
def GetHeight(self):
val = miscc.wxRect_GetHeight(self.this)
return val
def SetHeight(self,arg0):
val = miscc.wxRect_SetHeight(self.this,arg0)
return val
def GetPosition(self):
val = miscc.wxRect_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetSize(self):
val = miscc.wxRect_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetLeft(self):
val = miscc.wxRect_GetLeft(self.this)
return val
def GetTop(self):
val = miscc.wxRect_GetTop(self.this)
return val
def GetBottom(self):
val = miscc.wxRect_GetBottom(self.this)
return val
def GetRight(self):
val = miscc.wxRect_GetRight(self.this)
return val
def __setattr__(self,name,value):
if name == "x" :
miscc.wxRect_x_set(self.this,value)
return
if name == "y" :
miscc.wxRect_y_set(self.this,value)
return
if name == "width" :
miscc.wxRect_width_set(self.this,value)
return
if name == "height" :
miscc.wxRect_height_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return miscc.wxRect_x_get(self.this)
if name == "y" :
return miscc.wxRect_y_get(self.this)
if name == "width" :
return miscc.wxRect_width_get(self.this)
if name == "height" :
return miscc.wxRect_height_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxRect instance>"
class wxRect(wxRectPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxRect,()+args)
self.thisown = 1
class wxPyTimerPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxPyTimer(self.this)
def Interval(self):
val = miscc.wxPyTimer_Interval(self.this)
return val
def Start(self,*args):
val = apply(miscc.wxPyTimer_Start,(self.this,)+args)
return val
def Stop(self):
val = miscc.wxPyTimer_Stop(self.this)
return val
def __repr__(self):
return "<C wxPyTimer instance>"
class wxPyTimer(wxPyTimerPtr):
def __init__(self,arg0) :
self.this = miscc.new_wxPyTimer(arg0)
self.thisown = 1
class wxIndividualLayoutConstraintPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Above(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Above,(self.this,arg0.this,)+args)
return val
def Absolute(self,arg0):
val = miscc.wxIndividualLayoutConstraint_Absolute(self.this,arg0)
return val
def AsIs(self):
val = miscc.wxIndividualLayoutConstraint_AsIs(self.this)
return val
def Below(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Below,(self.this,arg0.this,)+args)
return val
def Unconstrained(self):
val = miscc.wxIndividualLayoutConstraint_Unconstrained(self.this)
return val
def LeftOf(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self.this,arg0.this,)+args)
return val
def PercentOf(self,arg0,arg1,arg2):
val = miscc.wxIndividualLayoutConstraint_PercentOf(self.this,arg0.this,arg1,arg2)
return val
def RightOf(self,arg0,*args):
val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self.this,arg0.this,)+args)
return val
def SameAs(self,arg0,arg1,*args):
val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self.this,arg0.this,arg1,)+args)
return val
def Set(self,arg0,arg1,arg2,*args):
val = apply(miscc.wxIndividualLayoutConstraint_Set,(self.this,arg0,arg1.this,arg2,)+args)
return val
def __repr__(self):
return "<C wxIndividualLayoutConstraint instance>"
class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
def __init__(self,this):
self.this = this
class wxLayoutConstraintsPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "bottom" :
miscc.wxLayoutConstraints_bottom_set(self.this,value.this)
return
if name == "centreX" :
miscc.wxLayoutConstraints_centreX_set(self.this,value.this)
return
if name == "centreY" :
miscc.wxLayoutConstraints_centreY_set(self.this,value.this)
return
if name == "height" :
miscc.wxLayoutConstraints_height_set(self.this,value.this)
return
if name == "left" :
miscc.wxLayoutConstraints_left_set(self.this,value.this)
return
if name == "right" :
miscc.wxLayoutConstraints_right_set(self.this,value.this)
return
if name == "top" :
miscc.wxLayoutConstraints_top_set(self.this,value.this)
return
if name == "width" :
miscc.wxLayoutConstraints_width_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "bottom" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self.this))
if name == "centreX" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self.this))
if name == "centreY" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self.this))
if name == "height" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self.this))
if name == "left" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self.this))
if name == "right" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self.this))
if name == "top" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self.this))
if name == "width" :
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxLayoutConstraints instance>"
class wxLayoutConstraints(wxLayoutConstraintsPtr):
def __init__(self) :
self.this = miscc.new_wxLayoutConstraints()
self.thisown = 1
class wxRegionPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRegion(self.this)
def Clear(self):
val = miscc.wxRegion_Clear(self.this)
return val
def Contains(self,arg0,arg1):
val = miscc.wxRegion_Contains(self.this,arg0,arg1)
return val
def ContainsPoint(self,arg0):
val = miscc.wxRegion_ContainsPoint(self.this,arg0.this)
return val
def ContainsRect(self,arg0):
val = miscc.wxRegion_ContainsRect(self.this,arg0.this)
return val
def GetBox(self):
val = miscc.wxRegion_GetBox(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def Intersect(self,arg0):
val = miscc.wxRegion_Intersect(self.this,arg0.this)
return val
def IsEmpty(self):
val = miscc.wxRegion_IsEmpty(self.this)
return val
def Subtract(self,arg0):
val = miscc.wxRegion_Subtract(self.this,arg0.this)
return val
def Union(self,arg0):
val = miscc.wxRegion_Union(self.this,arg0.this)
return val
def Xor(self,arg0):
val = miscc.wxRegion_Xor(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxRegion instance>"
class wxRegion(wxRegionPtr):
def __init__(self) :
self.this = miscc.new_wxRegion()
self.thisown = 1
class wxRegionIteratorPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
miscc.delete_wxRegionIterator(self.this)
def GetX(self):
val = miscc.wxRegionIterator_GetX(self.this)
return val
def GetY(self):
val = miscc.wxRegionIterator_GetY(self.this)
return val
def GetW(self):
val = miscc.wxRegionIterator_GetW(self.this)
return val
def GetWidth(self):
val = miscc.wxRegionIterator_GetWidth(self.this)
return val
def GetH(self):
val = miscc.wxRegionIterator_GetH(self.this)
return val
def GetHeight(self):
val = miscc.wxRegionIterator_GetHeight(self.this)
return val
def GetRect(self):
val = miscc.wxRegionIterator_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def HaveRects(self):
val = miscc.wxRegionIterator_HaveRects(self.this)
return val
def Reset(self):
val = miscc.wxRegionIterator_Reset(self.this)
return val
def Next(self):
val = miscc.wxRegionIterator_Next(self.this)
return val
def __repr__(self):
return "<C wxRegionIterator instance>"
class wxRegionIterator(wxRegionIteratorPtr):
def __init__(self,arg0) :
self.this = miscc.new_wxRegionIterator(arg0.this)
self.thisown = 1
class wxAcceleratorEntryPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Set(self,arg0,arg1,arg2):
val = miscc.wxAcceleratorEntry_Set(self.this,arg0,arg1,arg2)
return val
def GetFlags(self):
val = miscc.wxAcceleratorEntry_GetFlags(self.this)
return val
def GetKeyCode(self):
val = miscc.wxAcceleratorEntry_GetKeyCode(self.this)
return val
def GetCommand(self):
val = miscc.wxAcceleratorEntry_GetCommand(self.this)
return val
def __repr__(self):
return "<C wxAcceleratorEntry instance>"
class wxAcceleratorEntry(wxAcceleratorEntryPtr):
def __init__(self,*args) :
self.this = apply(miscc.new_wxAcceleratorEntry,()+args)
self.thisown = 1
class wxAcceleratorTablePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxAcceleratorTable instance>"
class wxAcceleratorTable(wxAcceleratorTablePtr):
def __init__(self,arg0) :
self.this = miscc.new_wxAcceleratorTable(arg0.this)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
def wxFileSelector(arg0,*args):
argl = map(None,args)
try: argl[5] = argl[5].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFileSelector,(arg0,)+args)
return val
def wxGetTextFromUser(arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetTextFromUser,(arg0,)+args)
return val
def wxGetSingleChoice(arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetSingleChoice,(arg0,arg1,arg2,)+args)
return val
def wxGetSingleChoiceIndex(arg0,arg1,arg2,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxGetSingleChoiceIndex,(arg0,arg1,arg2,)+args)
return val
def wxMessageBox(arg0,*args):
argl = map(None,args)
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
val = apply(miscc.wxMessageBox,(arg0,)+args)
return val
wxColourDisplay = miscc.wxColourDisplay
wxDisplayDepth = miscc.wxDisplayDepth
def wxSetCursor(arg0):
val = miscc.wxSetCursor(arg0.this)
return val
NewId = miscc.NewId
RegisterId = miscc.RegisterId
def wxBeginBusyCursor(*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxBeginBusyCursor,()+args)
return val
wxBell = miscc.wxBell
wxDisplaySize = miscc.wxDisplaySize
wxEndBusyCursor = miscc.wxEndBusyCursor
wxExecute = miscc.wxExecute
def wxFindWindowByLabel(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFindWindowByLabel,(arg0,)+args)
val = wxWindowPtr(val)
return val
def wxFindWindowByName(arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(miscc.wxFindWindowByName,(arg0,)+args)
val = wxWindowPtr(val)
return val
def wxGetActiveWindow():
val = miscc.wxGetActiveWindow()
val = wxWindowPtr(val)
return val
wxGetElapsedTime = miscc.wxGetElapsedTime
wxGetFreeMemory = miscc.wxGetFreeMemory
wxGetMousePosition = miscc.wxGetMousePosition
wxIsBusy = miscc.wxIsBusy
wxNow = miscc.wxNow
wxShell = miscc.wxShell
wxStartTimer = miscc.wxStartTimer
wxGetOsVersion = miscc.wxGetOsVersion
wxYield = miscc.wxYield
wxGetResource = miscc.wxGetResource
wxResourceAddIdentifier = miscc.wxResourceAddIdentifier
wxResourceClear = miscc.wxResourceClear
def wxResourceCreateBitmap(arg0):
val = miscc.wxResourceCreateBitmap(arg0)
val = wxBitmapPtr(val)
val.thisown = 1
return val
def wxResourceCreateIcon(arg0):
val = miscc.wxResourceCreateIcon(arg0)
val = wxIconPtr(val)
val.thisown = 1
return val
def wxResourceCreateMenuBar(arg0):
val = miscc.wxResourceCreateMenuBar(arg0)
val = wxMenuBarPtr(val)
return val
wxResourceGetIdentifier = miscc.wxResourceGetIdentifier
wxResourceParseData = miscc.wxResourceParseData
wxResourceParseFile = miscc.wxResourceParseFile
wxResourceParseString = miscc.wxResourceParseString
#-------------- VARIABLE WRAPPERS ------------------
wxLeft = miscc.wxLeft
wxTop = miscc.wxTop
wxRight = miscc.wxRight
wxBottom = miscc.wxBottom
wxWidth = miscc.wxWidth
wxHeight = miscc.wxHeight
wxCentre = miscc.wxCentre
wxCenter = miscc.wxCenter
wxCentreX = miscc.wxCentreX
wxCentreY = miscc.wxCentreY
wxUnconstrained = miscc.wxUnconstrained
wxAsIs = miscc.wxAsIs
wxPercentOf = miscc.wxPercentOf
wxAbove = miscc.wxAbove
wxBelow = miscc.wxBelow
wxLeftOf = miscc.wxLeftOf
wxRightOf = miscc.wxRightOf
wxSameAs = miscc.wxSameAs
wxAbsolute = miscc.wxAbsolute
wxOutRegion = miscc.wxOutRegion
wxPartRegion = miscc.wxPartRegion
wxInRegion = miscc.wxInRegion

File diff suppressed because it is too large Load Diff

View File

@@ -1,281 +0,0 @@
# This file was created automatically by SWIG.
import stattoolc
from misc import *
from windows import *
from gdi import *
from controls import *
from events import *
import wx
class wxStatusBarPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFieldRect(self,arg0):
val = stattoolc.wxStatusBar_GetFieldRect(self.this,arg0)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetFieldsCount(self):
val = stattoolc.wxStatusBar_GetFieldsCount(self.this)
return val
def GetStatusText(self,*args):
val = apply(stattoolc.wxStatusBar_GetStatusText,(self.this,)+args)
return val
def DrawField(self,arg0,arg1):
val = stattoolc.wxStatusBar_DrawField(self.this,arg0.this,arg1)
return val
def DrawFieldText(self,arg0,arg1):
val = stattoolc.wxStatusBar_DrawFieldText(self.this,arg0.this,arg1)
return val
def InitColours(self):
val = stattoolc.wxStatusBar_InitColours(self.this)
return val
def SetFieldsCount(self,*args):
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self.this,)+args)
return val
def SetStatusText(self,arg0,*args):
val = apply(stattoolc.wxStatusBar_SetStatusText,(self.this,arg0,)+args)
return val
def SetStatusWidths(self,arg0,*args):
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self.this,arg0,)+args)
return val
def __repr__(self):
return "<C wxStatusBar instance>"
class wxStatusBar(wxStatusBarPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(stattoolc.new_wxStatusBar,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxToolBarToolPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
stattoolc.delete_wxToolBarTool(self.this)
def SetSize(self,arg0,arg1):
val = stattoolc.wxToolBarTool_SetSize(self.this,arg0,arg1)
return val
def GetWidth(self):
val = stattoolc.wxToolBarTool_GetWidth(self.this)
return val
def GetHeight(self):
val = stattoolc.wxToolBarTool_GetHeight(self.this)
return val
def __setattr__(self,name,value):
if name == "m_toolStyle" :
stattoolc.wxToolBarTool_m_toolStyle_set(self.this,value)
return
if name == "m_clientData" :
stattoolc.wxToolBarTool_m_clientData_set(self.this,value)
return
if name == "m_index" :
stattoolc.wxToolBarTool_m_index_set(self.this,value)
return
if name == "m_x" :
stattoolc.wxToolBarTool_m_x_set(self.this,value)
return
if name == "m_y" :
stattoolc.wxToolBarTool_m_y_set(self.this,value)
return
if name == "m_width" :
stattoolc.wxToolBarTool_m_width_set(self.this,value)
return
if name == "m_height" :
stattoolc.wxToolBarTool_m_height_set(self.this,value)
return
if name == "m_toggleState" :
stattoolc.wxToolBarTool_m_toggleState_set(self.this,value)
return
if name == "m_isToggle" :
stattoolc.wxToolBarTool_m_isToggle_set(self.this,value)
return
if name == "m_deleteSecondBitmap" :
stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self.this,value)
return
if name == "m_enabled" :
stattoolc.wxToolBarTool_m_enabled_set(self.this,value)
return
if name == "m_bitmap1" :
stattoolc.wxToolBarTool_m_bitmap1_set(self.this,value.this)
return
if name == "m_bitmap2" :
stattoolc.wxToolBarTool_m_bitmap2_set(self.this,value.this)
return
if name == "m_isMenuCommand" :
stattoolc.wxToolBarTool_m_isMenuCommand_set(self.this,value)
return
if name == "m_shortHelpString" :
stattoolc.wxToolBarTool_m_shortHelpString_set(self.this,value)
return
if name == "m_longHelpString" :
stattoolc.wxToolBarTool_m_longHelpString_set(self.this,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_toolStyle" :
return stattoolc.wxToolBarTool_m_toolStyle_get(self.this)
if name == "m_clientData" :
return stattoolc.wxToolBarTool_m_clientData_get(self.this)
if name == "m_index" :
return stattoolc.wxToolBarTool_m_index_get(self.this)
if name == "m_x" :
return stattoolc.wxToolBarTool_m_x_get(self.this)
if name == "m_y" :
return stattoolc.wxToolBarTool_m_y_get(self.this)
if name == "m_width" :
return stattoolc.wxToolBarTool_m_width_get(self.this)
if name == "m_height" :
return stattoolc.wxToolBarTool_m_height_get(self.this)
if name == "m_toggleState" :
return stattoolc.wxToolBarTool_m_toggleState_get(self.this)
if name == "m_isToggle" :
return stattoolc.wxToolBarTool_m_isToggle_get(self.this)
if name == "m_deleteSecondBitmap" :
return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self.this)
if name == "m_enabled" :
return stattoolc.wxToolBarTool_m_enabled_get(self.this)
if name == "m_bitmap1" :
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self.this))
if name == "m_bitmap2" :
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self.this))
if name == "m_isMenuCommand" :
return stattoolc.wxToolBarTool_m_isMenuCommand_get(self.this)
if name == "m_shortHelpString" :
return stattoolc.wxToolBarTool_m_shortHelpString_get(self.this)
if name == "m_longHelpString" :
return stattoolc.wxToolBarTool_m_longHelpString_get(self.this)
raise AttributeError,name
def __repr__(self):
return "<C wxToolBarTool instance>"
class wxToolBarTool(wxToolBarToolPtr):
def __init__(self) :
self.this = stattoolc.new_wxToolBarTool()
self.thisown = 1
class wxToolBarPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AddSeparator(self):
val = stattoolc.wxToolBar_AddSeparator(self.this)
return val
def AddTool(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(stattoolc.wxToolBar_AddTool,(self.this,arg0,arg1.this,)+args)
val = wxToolBarToolPtr(val)
return val
def AddSimpleTool(self,arg0,arg1,*args):
val = apply(stattoolc.wxToolBar_AddSimpleTool,(self.this,arg0,arg1.this,)+args)
val = wxToolBarToolPtr(val)
return val
def EnableTool(self,arg0,arg1):
val = stattoolc.wxToolBar_EnableTool(self.this,arg0,arg1)
return val
def FindToolForPosition(self,arg0,arg1):
val = stattoolc.wxToolBar_FindToolForPosition(self.this,arg0,arg1)
val = wxToolBarToolPtr(val)
return val
def GetToolSize(self):
val = stattoolc.wxToolBar_GetToolSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetToolBitmapSize(self):
val = stattoolc.wxToolBar_GetToolBitmapSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def SetToolBitmapSize(self,arg0):
val = stattoolc.wxToolBar_SetToolBitmapSize(self.this,arg0.this)
return val
def GetMaxSize(self):
val = stattoolc.wxToolBar_GetMaxSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetToolEnabled(self,arg0):
val = stattoolc.wxToolBar_GetToolEnabled(self.this,arg0)
return val
def GetToolLongHelp(self,arg0):
val = stattoolc.wxToolBar_GetToolLongHelp(self.this,arg0)
return val
def GetToolPacking(self):
val = stattoolc.wxToolBar_GetToolPacking(self.this)
return val
def GetToolSeparation(self):
val = stattoolc.wxToolBar_GetToolSeparation(self.this)
return val
def GetToolShortHelp(self,arg0):
val = stattoolc.wxToolBar_GetToolShortHelp(self.this,arg0)
return val
def GetToolState(self,arg0):
val = stattoolc.wxToolBar_GetToolState(self.this,arg0)
return val
def Realize(self):
val = stattoolc.wxToolBar_Realize(self.this)
return val
def SetToolLongHelp(self,arg0,arg1):
val = stattoolc.wxToolBar_SetToolLongHelp(self.this,arg0,arg1)
return val
def SetToolShortHelp(self,arg0,arg1):
val = stattoolc.wxToolBar_SetToolShortHelp(self.this,arg0,arg1)
return val
def SetMargins(self,arg0):
val = stattoolc.wxToolBar_SetMargins(self.this,arg0.this)
return val
def SetToolPacking(self,arg0):
val = stattoolc.wxToolBar_SetToolPacking(self.this,arg0)
return val
def SetToolSeparation(self,arg0):
val = stattoolc.wxToolBar_SetToolSeparation(self.this,arg0)
return val
def ToggleTool(self,arg0,arg1):
val = stattoolc.wxToolBar_ToggleTool(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxToolBar instance>"
class wxToolBar(wxToolBarPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,114 +0,0 @@
# This file was created automatically by SWIG.
import utilsc
class wxConfigPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
utilsc.delete_wxConfig(self.this)
def DontCreateOnDemand(self):
val = utilsc.wxConfig_DontCreateOnDemand(self.this)
return val
def DeleteEntry(self,arg0,*args):
val = apply(utilsc.wxConfig_DeleteEntry,(self.this,arg0,)+args)
return val
def DeleteGroup(self,arg0):
val = utilsc.wxConfig_DeleteGroup(self.this,arg0)
return val
def Exists(self,arg0):
val = utilsc.wxConfig_Exists(self.this,arg0)
return val
def Flush(self,*args):
val = apply(utilsc.wxConfig_Flush,(self.this,)+args)
return val
def GetAppName(self):
val = utilsc.wxConfig_GetAppName(self.this)
return val
def GetFirstGroup(self):
val = utilsc.wxConfig_GetFirstGroup(self.this)
return val
def GetFirstEntry(self):
val = utilsc.wxConfig_GetFirstEntry(self.this)
return val
def GetNextGroup(self,arg0):
val = utilsc.wxConfig_GetNextGroup(self.this,arg0)
return val
def GetNextEntry(self,arg0):
val = utilsc.wxConfig_GetNextEntry(self.this,arg0)
return val
def GetNumberOfEntries(self,*args):
val = apply(utilsc.wxConfig_GetNumberOfEntries,(self.this,)+args)
return val
def GetNumberOfGroups(self,*args):
val = apply(utilsc.wxConfig_GetNumberOfGroups,(self.this,)+args)
return val
def GetPath(self):
val = utilsc.wxConfig_GetPath(self.this)
return val
def GetVendorName(self):
val = utilsc.wxConfig_GetVendorName(self.this)
return val
def HasEntry(self,arg0):
val = utilsc.wxConfig_HasEntry(self.this,arg0)
return val
def HasGroup(self,arg0):
val = utilsc.wxConfig_HasGroup(self.this,arg0)
return val
def IsExpandingEnvVars(self):
val = utilsc.wxConfig_IsExpandingEnvVars(self.this)
return val
def IsRecordingDefaults(self):
val = utilsc.wxConfig_IsRecordingDefaults(self.this)
return val
def Read(self,arg0,*args):
val = apply(utilsc.wxConfig_Read,(self.this,arg0,)+args)
return val
def ReadInt(self,arg0,*args):
val = apply(utilsc.wxConfig_ReadInt,(self.this,arg0,)+args)
return val
def ReadFloat(self,arg0,*args):
val = apply(utilsc.wxConfig_ReadFloat,(self.this,arg0,)+args)
return val
def SetAppName(self,arg0):
val = utilsc.wxConfig_SetAppName(self.this,arg0)
return val
def SetExpandEnvVars(self,*args):
val = apply(utilsc.wxConfig_SetExpandEnvVars,(self.this,)+args)
return val
def SetPath(self,arg0):
val = utilsc.wxConfig_SetPath(self.this,arg0)
return val
def SetRecordDefaults(self,*args):
val = apply(utilsc.wxConfig_SetRecordDefaults,(self.this,)+args)
return val
def SetVendorName(self,arg0):
val = utilsc.wxConfig_SetVendorName(self.this,arg0)
return val
def Write(self,arg0,arg1):
val = utilsc.wxConfig_Write(self.this,arg0,arg1)
return val
def WriteInt(self,arg0,arg1):
val = utilsc.wxConfig_WriteInt(self.this,arg0,arg1)
return val
def WriteFloat(self,arg0,arg1):
val = utilsc.wxConfig_WriteFloat(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxConfig instance>"
class wxConfig(wxConfigPtr):
def __init__(self,*args) :
self.this = apply(utilsc.new_wxConfig,()+args)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,663 +0,0 @@
# This file was created automatically by SWIG.
import windowsc
from misc import *
from gdi import *
import wx
def wxDLG_PNT(win, point):
return win.ConvertDialogPointToPixels(point)
def wxDLG_SZE(win, size):
return win.ConvertDialogPointToPixels(size)
class wxEvtHandlerPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Connect(self,arg0,arg1,arg2,arg3):
val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
return val
def __repr__(self):
return "<C wxEvtHandler instance>"
class wxEvtHandler(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
class wxWindowPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def CaptureMouse(self):
val = windowsc.wxWindow_CaptureMouse(self.this)
return val
def Center(self,*args):
val = apply(windowsc.wxWindow_Center,(self.this,)+args)
return val
def Centre(self,*args):
val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
return val
def ClientToScreen(self,arg0,arg1):
val = windowsc.wxWindow_ClientToScreen(self.this,arg0,arg1)
return val
def Close(self,*args):
val = apply(windowsc.wxWindow_Close,(self.this,)+args)
return val
def Destroy(self):
val = windowsc.wxWindow_Destroy(self.this)
return val
def DestroyChildren(self):
val = windowsc.wxWindow_DestroyChildren(self.this)
return val
def DragAcceptFiles(self,arg0):
val = windowsc.wxWindow_DragAcceptFiles(self.this,arg0)
return val
def Enable(self,arg0):
val = windowsc.wxWindow_Enable(self.this,arg0)
return val
def FindWindowByID(self,arg0):
val = windowsc.wxWindow_FindWindowByID(self.this,arg0)
val = wxWindowPtr(val)
return val
def FindWindowByName(self,arg0):
val = windowsc.wxWindow_FindWindowByName(self.this,arg0)
val = wxWindowPtr(val)
return val
def Fit(self):
val = windowsc.wxWindow_Fit(self.this)
return val
def GetBackgroundColour(self):
val = windowsc.wxWindow_GetBackgroundColour(self.this)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetCharHeight(self):
val = windowsc.wxWindow_GetCharHeight(self.this)
return val
def GetCharWidth(self):
val = windowsc.wxWindow_GetCharWidth(self.this)
return val
def GetClientSizeTuple(self):
val = windowsc.wxWindow_GetClientSizeTuple(self.this)
return val
def GetClientSize(self):
val = windowsc.wxWindow_GetClientSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetConstraints(self):
val = windowsc.wxWindow_GetConstraints(self.this)
val = wxLayoutConstraintsPtr(val)
return val
def GetDefaultItem(self):
val = windowsc.wxWindow_GetDefaultItem(self.this)
val = wxButtonPtr(val)
return val
def GetFont(self):
val = windowsc.wxWindow_GetFont(self.this)
val = wxFontPtr(val)
return val
def GetForegroundColour(self):
val = windowsc.wxWindow_GetForegroundColour(self.this)
val = wxColourPtr(val)
val.thisown = 1
return val
def GetGrandParent(self):
val = windowsc.wxWindow_GetGrandParent(self.this)
val = wxWindowPtr(val)
return val
def GetId(self):
val = windowsc.wxWindow_GetId(self.this)
return val
def GetLabel(self):
val = windowsc.wxWindow_GetLabel(self.this)
return val
def GetName(self):
val = windowsc.wxWindow_GetName(self.this)
return val
def GetParent(self):
val = windowsc.wxWindow_GetParent(self.this)
val = wxWindowPtr(val)
return val
def GetPositionTuple(self):
val = windowsc.wxWindow_GetPositionTuple(self.this)
return val
def GetPosition(self):
val = windowsc.wxWindow_GetPosition(self.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def GetRect(self):
val = windowsc.wxWindow_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def GetReturnCode(self):
val = windowsc.wxWindow_GetReturnCode(self.this)
return val
def GetScrollThumb(self,arg0):
val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
return val
def GetScrollPos(self,arg0):
val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
return val
def GetScrollRange(self,arg0):
val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
return val
def GetSizeTuple(self):
val = windowsc.wxWindow_GetSizeTuple(self.this)
return val
def GetSize(self):
val = windowsc.wxWindow_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetTextExtent(self,arg0):
val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxWindow_GetTitle(self.this)
return val
def GetWindowStyleFlag(self):
val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
return val
def InitDialog(self):
val = windowsc.wxWindow_InitDialog(self.this)
return val
def IsEnabled(self):
val = windowsc.wxWindow_IsEnabled(self.this)
return val
def IsRetained(self):
val = windowsc.wxWindow_IsRetained(self.this)
return val
def IsShown(self):
val = windowsc.wxWindow_IsShown(self.this)
return val
def Layout(self):
val = windowsc.wxWindow_Layout(self.this)
return val
def LoadFromResource(self,arg0,arg1,*args):
val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
return val
def Lower(self):
val = windowsc.wxWindow_Lower(self.this)
return val
def MakeModal(self,arg0):
val = windowsc.wxWindow_MakeModal(self.this,arg0)
return val
def Move(self,arg0,arg1):
val = windowsc.wxWindow_Move(self.this,arg0,arg1)
return val
def PopupMenu(self,arg0,arg1,arg2):
val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
return val
def Raise(self):
val = windowsc.wxWindow_Raise(self.this)
return val
def Refresh(self,*args):
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
return val
def ReleaseMouse(self):
val = windowsc.wxWindow_ReleaseMouse(self.this)
return val
def ScreenToClient(self,arg0,arg1):
val = windowsc.wxWindow_ScreenToClient(self.this,arg0,arg1)
return val
def ScrollWindow(self,arg0,arg1,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
return val
def SetAcceleratorTable(self,arg0):
val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
return val
def SetAutoLayout(self,arg0):
val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
return val
def SetBackgroundColour(self,arg0):
val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
return val
def SetConstraints(self,arg0):
val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
return val
def SetDoubleClick(self,arg0):
val = windowsc.wxWindow_SetDoubleClick(self.this,arg0)
return val
def SetFocus(self):
val = windowsc.wxWindow_SetFocus(self.this)
return val
def SetFont(self,arg0):
val = windowsc.wxWindow_SetFont(self.this,arg0.this)
return val
def SetForegroundColour(self,arg0):
val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
return val
def SetId(self,arg0):
val = windowsc.wxWindow_SetId(self.this,arg0)
return val
def SetName(self,arg0):
val = windowsc.wxWindow_SetName(self.this,arg0)
return val
def SetReturnCode(self,arg0):
val = windowsc.wxWindow_SetReturnCode(self.this,arg0)
return val
def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def SetScrollPos(self,arg0,arg1,*args):
val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
return val
def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def SetSize(self,arg0):
val = windowsc.wxWindow_SetSize(self.this,arg0.this)
return val
def SetPosition(self,arg0):
val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
return val
def SetSizeHints(self,*args):
val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
return val
def SetClientSize(self,arg0,arg1):
val = windowsc.wxWindow_SetClientSize(self.this,arg0,arg1)
return val
def SetCursor(self,arg0):
val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxWindow_SetTitle(self.this,arg0)
return val
def Show(self,arg0):
val = windowsc.wxWindow_Show(self.this,arg0)
return val
def TransferDataFromWindow(self):
val = windowsc.wxWindow_TransferDataFromWindow(self.this)
return val
def TransferDataToWindow(self):
val = windowsc.wxWindow_TransferDataToWindow(self.this)
return val
def Validate(self):
val = windowsc.wxWindow_Validate(self.this)
return val
def WarpPointer(self,arg0,arg1):
val = windowsc.wxWindow_WarpPointer(self.this,arg0,arg1)
return val
def ConvertDialogPointToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertDialogSizeToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def ConvertPixelPointToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertPixelSizeToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxWindow instance>"
class wxWindow(wxWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxPanelPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def InitDialog(self):
val = windowsc.wxPanel_InitDialog(self.this)
return val
def __repr__(self):
return "<C wxPanel instance>"
class wxPanel(wxPanelPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxDialogPtr(wxPanelPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Centre(self,*args):
val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
return val
def EndModal(self,arg0):
val = windowsc.wxDialog_EndModal(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxDialog_GetTitle(self.this)
return val
def Iconize(self,arg0):
val = windowsc.wxDialog_Iconize(self.this,arg0)
return val
def IsIconized(self):
val = windowsc.wxDialog_IsIconized(self.this)
return val
def SetModal(self,arg0):
val = windowsc.wxDialog_SetModal(self.this,arg0)
return val
def IsModal(self):
val = windowsc.wxDialog_IsModal(self.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxDialog_SetTitle(self.this,arg0)
return val
def Show(self,arg0):
val = windowsc.wxDialog_Show(self.this,arg0)
return val
def ShowModal(self):
val = windowsc.wxDialog_ShowModal(self.this)
return val
def __repr__(self):
return "<C wxDialog instance>"
class wxDialog(wxDialogPtr):
def __init__(self,arg0,arg1,arg2,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wx._StdDialogCallbacks(self)
class wxScrolledWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def EnableScrolling(self,arg0,arg1):
val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
return val
def GetScrollPixelsPerUnit(self):
val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
return val
def GetVirtualSize(self):
val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
return val
def IsRetained(self):
val = windowsc.wxScrolledWindow_IsRetained(self.this)
return val
def PrepareDC(self,arg0):
val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
return val
def Scroll(self,arg0,arg1):
val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
return val
def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
return val
def ViewStart(self):
val = windowsc.wxScrolledWindow_ViewStart(self.this)
return val
def __repr__(self):
return "<C wxScrolledWindow instance>"
class wxScrolledWindow(wxScrolledWindowPtr):
def __init__(self,arg0,*args) :
argl = map(None,args)
try: argl[1] = argl[1].this
except: pass
try: argl[2] = argl[2].this
except: pass
args = tuple(argl)
self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._StdOnScrollCallbacks(self)
class wxMenuPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0,arg1,*args):
val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
return val
def AppendMenu(self,arg0,arg1,arg2,*args):
val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
return val
def AppendSeparator(self):
val = windowsc.wxMenu_AppendSeparator(self.this)
return val
def Break(self):
val = windowsc.wxMenu_Break(self.this)
return val
def Check(self,arg0,arg1):
val = windowsc.wxMenu_Check(self.this,arg0,arg1)
return val
def Enable(self,arg0,arg1):
val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
return val
def FindItem(self,arg0):
val = windowsc.wxMenu_FindItem(self.this,arg0)
return val
def GetTitle(self):
val = windowsc.wxMenu_GetTitle(self.this)
return val
def SetTitle(self,arg0):
val = windowsc.wxMenu_SetTitle(self.this,arg0)
return val
def FindItemForId(self,arg0):
val = windowsc.wxMenu_FindItemForId(self.this,arg0)
val = wxMenuItemPtr(val)
return val
def GetHelpString(self,arg0):
val = windowsc.wxMenu_GetHelpString(self.this,arg0)
return val
def GetLabel(self,arg0):
val = windowsc.wxMenu_GetLabel(self.this,arg0)
return val
def SetHelpString(self,arg0,arg1):
val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
return val
def IsChecked(self,arg0):
val = windowsc.wxMenu_IsChecked(self.this,arg0)
return val
def IsEnabled(self,arg0):
val = windowsc.wxMenu_IsEnabled(self.this,arg0)
return val
def SetLabel(self,arg0,arg1):
val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxMenu instance>"
class wxMenu(wxMenuPtr):
def __init__(self,*args) :
self.this = apply(windowsc.new_wxMenu,()+args)
self.thisown = 1
class wxPyMenuPtr(wxMenuPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windowsc.delete_wxPyMenu(self.this)
def __repr__(self):
return "<C wxPyMenu instance>"
class wxPyMenu(wxPyMenuPtr):
def __init__(self,*args) :
self.this = apply(windowsc.new_wxPyMenu,()+args)
self.thisown = 1
class wxMenuBarPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Append(self,arg0,arg1):
val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
return val
def Check(self,arg0,arg1):
val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
return val
def Checked(self,arg0):
val = windowsc.wxMenuBar_Checked(self.this,arg0)
return val
def Enable(self,arg0,arg1):
val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
return val
def Enabled(self,arg0):
val = windowsc.wxMenuBar_Enabled(self.this,arg0)
return val
def FindMenuItem(self,arg0,arg1):
val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
return val
def FindItemForId(self,arg0):
val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
val = wxMenuItemPtr(val)
return val
def EnableTop(self,arg0,arg1):
val = windowsc.wxMenuBar_EnableTop(self.this,arg0,arg1)
return val
def GetHelpString(self,arg0):
val = windowsc.wxMenuBar_GetHelpString(self.this,arg0)
return val
def GetLabel(self,arg0):
val = windowsc.wxMenuBar_GetLabel(self.this,arg0)
return val
def SetHelpString(self,arg0,arg1):
val = windowsc.wxMenuBar_SetHelpString(self.this,arg0,arg1)
return val
def SetLabel(self,arg0,arg1):
val = windowsc.wxMenuBar_SetLabel(self.this,arg0,arg1)
return val
def GetLabelTop(self,arg0):
val = windowsc.wxMenuBar_GetLabelTop(self.this,arg0)
return val
def SetLabelTop(self,arg0,arg1):
val = windowsc.wxMenuBar_SetLabelTop(self.this,arg0,arg1)
return val
def GetMenuCount(self):
val = windowsc.wxMenuBar_GetMenuCount(self.this)
return val
def GetMenu(self,arg0):
val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
val = wxMenuPtr(val)
return val
def __repr__(self):
return "<C wxMenuBar instance>"
class wxMenuBar(wxMenuBarPtr):
def __init__(self) :
self.this = windowsc.new_wxMenuBar()
self.thisown = 1
class wxMenuItemPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def IsSeparator(self):
val = windowsc.wxMenuItem_IsSeparator(self.this)
return val
def IsEnabled(self):
val = windowsc.wxMenuItem_IsEnabled(self.this)
return val
def IsChecked(self):
val = windowsc.wxMenuItem_IsChecked(self.this)
return val
def IsCheckable(self):
val = windowsc.wxMenuItem_IsCheckable(self.this)
return val
def GetId(self):
val = windowsc.wxMenuItem_GetId(self.this)
return val
def GetSubMenu(self):
val = windowsc.wxMenuItem_GetSubMenu(self.this)
val = wxMenuPtr(val)
return val
def SetName(self,arg0):
val = windowsc.wxMenuItem_SetName(self.this,arg0)
return val
def GetName(self):
val = windowsc.wxMenuItem_GetName(self.this)
return val
def GetHelp(self):
val = windowsc.wxMenuItem_GetHelp(self.this)
return val
def SetHelp(self,arg0):
val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
return val
def Enable(self,*args):
val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
return val
def Check(self,*args):
val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
return val
def DeleteSubMenu(self):
val = windowsc.wxMenuItem_DeleteSubMenu(self.this)
return val
def __repr__(self):
return "<C wxMenuItem instance>"
class wxMenuItem(wxMenuItemPtr):
def __init__(self,this):
self.this = this
#-------------- FUNCTION WRAPPERS ------------------
def wxWindow_FindFocus():
val = windowsc.wxWindow_FindFocus()
val = wxWindowPtr(val)
return val
#-------------- VARIABLE WRAPPERS ------------------

File diff suppressed because it is too large Load Diff

View File

@@ -1,588 +0,0 @@
# This file was created automatically by SWIG.
import windows2c
from misc import *
from gdi import *
from windows import *
from controls import *
from events import *
import wx
class wxGridCellPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windows2c.delete_wxGridCell(self.this)
def GetTextValue(self):
val = windows2c.wxGridCell_GetTextValue(self.this)
return val
def SetTextValue(self,arg0):
val = windows2c.wxGridCell_SetTextValue(self.this,arg0)
return val
def GetFont(self):
val = windows2c.wxGridCell_GetFont(self.this)
val = wxFontPtr(val)
return val
def SetFont(self,arg0):
val = windows2c.wxGridCell_SetFont(self.this,arg0.this)
return val
def GetTextColour(self):
val = windows2c.wxGridCell_GetTextColour(self.this)
val = wxColourPtr(val)
return val
def SetTextColour(self,arg0):
val = windows2c.wxGridCell_SetTextColour(self.this,arg0.this)
return val
def GetBackgroundColour(self):
val = windows2c.wxGridCell_GetBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def SetBackgroundColour(self,arg0):
val = windows2c.wxGridCell_SetBackgroundColour(self.this,arg0.this)
return val
def GetBackgroundBrush(self):
val = windows2c.wxGridCell_GetBackgroundBrush(self.this)
val = wxBrushPtr(val)
return val
def GetAlignment(self):
val = windows2c.wxGridCell_GetAlignment(self.this)
return val
def SetAlignment(self,arg0):
val = windows2c.wxGridCell_SetAlignment(self.this,arg0)
return val
def GetCellBitmap(self):
val = windows2c.wxGridCell_GetCellBitmap(self.this)
val = wxBitmapPtr(val)
return val
def SetCellBitmap(self,arg0):
val = windows2c.wxGridCell_SetCellBitmap(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxGridCell instance>"
class wxGridCell(wxGridCellPtr):
def __init__(self) :
self.this = windows2c.new_wxGridCell()
self.thisown = 1
class wxGridPtr(wxPanelPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AdjustScrollbars(self):
val = windows2c.wxGrid_AdjustScrollbars(self.this)
return val
def AppendCols(self,*args):
val = apply(windows2c.wxGrid_AppendCols,(self.this,)+args)
return val
def AppendRows(self,*args):
val = apply(windows2c.wxGrid_AppendRows,(self.this,)+args)
return val
def BeginBatch(self):
val = windows2c.wxGrid_BeginBatch(self.this)
return val
def CellHitTest(self,arg0,arg1):
val = windows2c.wxGrid_CellHitTest(self.this,arg0,arg1)
return val
def CreateGrid(self,arg0,arg1,*args):
val = apply(windows2c.wxGrid_CreateGrid,(self.this,arg0,arg1,)+args)
return val
def CurrentCellVisible(self):
val = windows2c.wxGrid_CurrentCellVisible(self.this)
return val
def DeleteCols(self,*args):
val = apply(windows2c.wxGrid_DeleteCols,(self.this,)+args)
return val
def DeleteRows(self,*args):
val = apply(windows2c.wxGrid_DeleteRows,(self.this,)+args)
return val
def EndBatch(self):
val = windows2c.wxGrid_EndBatch(self.this)
return val
def GetBatchCount(self):
val = windows2c.wxGrid_GetBatchCount(self.this)
return val
def GetCell(self,arg0,arg1):
val = windows2c.wxGrid_GetCell(self.this,arg0,arg1)
val = wxGridCellPtr(val)
return val
def GetCellAlignment(self,arg0,arg1):
val = windows2c.wxGrid_GetCellAlignment(self.this,arg0,arg1)
return val
def GetDefCellAlignment(self):
val = windows2c.wxGrid_GetDefCellAlignment(self.this)
return val
def GetCellBackgroundColour(self,arg0,arg1):
val = windows2c.wxGrid_GetCellBackgroundColour(self.this,arg0,arg1)
val = wxColourPtr(val)
return val
def GetDefCellBackgroundColour(self):
val = windows2c.wxGrid_GetDefCellBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def GetCellTextColour(self,arg0,arg1):
val = windows2c.wxGrid_GetCellTextColour(self.this,arg0,arg1)
val = wxColourPtr(val)
return val
def GetDefCellTextColour(self):
val = windows2c.wxGrid_GetDefCellTextColour(self.this)
val = wxColourPtr(val)
return val
def GetCellTextFont(self,arg0,arg1):
val = windows2c.wxGrid_GetCellTextFont(self.this,arg0,arg1)
val = wxFontPtr(val)
return val
def GetDefCellTextFont(self):
val = windows2c.wxGrid_GetDefCellTextFont(self.this)
val = wxFontPtr(val)
return val
def GetCellValue(self,arg0,arg1):
val = windows2c.wxGrid_GetCellValue(self.this,arg0,arg1)
return val
def GetCols(self):
val = windows2c.wxGrid_GetCols(self.this)
return val
def GetColumnWidth(self,arg0):
val = windows2c.wxGrid_GetColumnWidth(self.this,arg0)
return val
def GetCurrentRect(self):
val = windows2c.wxGrid_GetCurrentRect(self.this)
val = wxRectPtr(val)
return val
def GetCursorColumn(self):
val = windows2c.wxGrid_GetCursorColumn(self.this)
return val
def GetCursorRow(self):
val = windows2c.wxGrid_GetCursorRow(self.this)
return val
def GetEditable(self):
val = windows2c.wxGrid_GetEditable(self.this)
return val
def GetHorizScrollBar(self):
val = windows2c.wxGrid_GetHorizScrollBar(self.this)
val = wxScrollBarPtr(val)
return val
def GetLabelAlignment(self,arg0):
val = windows2c.wxGrid_GetLabelAlignment(self.this,arg0)
return val
def GetLabelBackgroundColour(self):
val = windows2c.wxGrid_GetLabelBackgroundColour(self.this)
val = wxColourPtr(val)
return val
def GetLabelSize(self,arg0):
val = windows2c.wxGrid_GetLabelSize(self.this,arg0)
return val
def GetLabelTextColour(self):
val = windows2c.wxGrid_GetLabelTextColour(self.this)
val = wxColourPtr(val)
return val
def GetLabelTextFont(self):
val = windows2c.wxGrid_GetLabelTextFont(self.this)
val = wxFontPtr(val)
return val
def GetLabelValue(self,arg0,arg1):
val = windows2c.wxGrid_GetLabelValue(self.this,arg0,arg1)
return val
def GetRowHeight(self,arg0):
val = windows2c.wxGrid_GetRowHeight(self.this,arg0)
return val
def GetRows(self):
val = windows2c.wxGrid_GetRows(self.this)
return val
def GetScrollPosX(self):
val = windows2c.wxGrid_GetScrollPosX(self.this)
return val
def GetScrollPosY(self):
val = windows2c.wxGrid_GetScrollPosY(self.this)
return val
def GetTextItem(self):
val = windows2c.wxGrid_GetTextItem(self.this)
val = wxTextCtrlPtr(val)
return val
def GetVertScrollBar(self):
val = windows2c.wxGrid_GetVertScrollBar(self.this)
val = wxScrollBarPtr(val)
return val
def InsertCols(self,*args):
val = apply(windows2c.wxGrid_InsertCols,(self.this,)+args)
return val
def InsertRows(self,*args):
val = apply(windows2c.wxGrid_InsertRows,(self.this,)+args)
return val
def OnActivate(self,arg0):
val = windows2c.wxGrid_OnActivate(self.this,arg0)
return val
def SetCellAlignment(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellAlignment(self.this,arg0,arg1,arg2)
return val
def SetDefCellAlignment(self,arg0):
val = windows2c.wxGrid_SetDefCellAlignment(self.this,arg0)
return val
def SetCellBackgroundColour(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellBackgroundColour(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellBackgroundColour(self,arg0):
val = windows2c.wxGrid_SetDefCellBackgroundColour(self.this,arg0.this)
return val
def SetCellTextColour(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellTextColour(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellTextColour(self,arg0):
val = windows2c.wxGrid_SetDefCellTextColour(self.this,arg0.this)
return val
def SetCellTextFont(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellTextFont(self.this,arg0.this,arg1,arg2)
return val
def SetDefCellTextFont(self,arg0):
val = windows2c.wxGrid_SetDefCellTextFont(self.this,arg0.this)
return val
def SetCellValue(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetCellValue(self.this,arg0,arg1,arg2)
return val
def SetColumnWidth(self,arg0,arg1):
val = windows2c.wxGrid_SetColumnWidth(self.this,arg0,arg1)
return val
def SetDividerPen(self,arg0):
val = windows2c.wxGrid_SetDividerPen(self.this,arg0.this)
return val
def SetEditable(self,arg0):
val = windows2c.wxGrid_SetEditable(self.this,arg0)
return val
def SetGridCursor(self,arg0,arg1):
val = windows2c.wxGrid_SetGridCursor(self.this,arg0,arg1)
return val
def SetLabelAlignment(self,arg0,arg1):
val = windows2c.wxGrid_SetLabelAlignment(self.this,arg0,arg1)
return val
def SetLabelBackgroundColour(self,arg0):
val = windows2c.wxGrid_SetLabelBackgroundColour(self.this,arg0.this)
return val
def SetLabelSize(self,arg0,arg1):
val = windows2c.wxGrid_SetLabelSize(self.this,arg0,arg1)
return val
def SetLabelTextColour(self,arg0):
val = windows2c.wxGrid_SetLabelTextColour(self.this,arg0.this)
return val
def SetLabelTextFont(self,arg0):
val = windows2c.wxGrid_SetLabelTextFont(self.this,arg0.this)
return val
def SetLabelValue(self,arg0,arg1,arg2):
val = windows2c.wxGrid_SetLabelValue(self.this,arg0,arg1,arg2)
return val
def SetRowHeight(self,arg0,arg1):
val = windows2c.wxGrid_SetRowHeight(self.this,arg0,arg1)
return val
def UpdateDimensions(self):
val = windows2c.wxGrid_UpdateDimensions(self.this)
return val
def __repr__(self):
return "<C wxGrid instance>"
class wxGrid(wxGridPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxGrid,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
class wxGridEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "m_row" :
windows2c.wxGridEvent_m_row_set(self.this,value)
return
if name == "m_col" :
windows2c.wxGridEvent_m_col_set(self.this,value)
return
if name == "m_x" :
windows2c.wxGridEvent_m_x_set(self.this,value)
return
if name == "m_y" :
windows2c.wxGridEvent_m_y_set(self.this,value)
return
if name == "m_control" :
windows2c.wxGridEvent_m_control_set(self.this,value)
return
if name == "m_shift" :
windows2c.wxGridEvent_m_shift_set(self.this,value)
return
if name == "m_cell" :
windows2c.wxGridEvent_m_cell_set(self.this,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_row" :
return windows2c.wxGridEvent_m_row_get(self.this)
if name == "m_col" :
return windows2c.wxGridEvent_m_col_get(self.this)
if name == "m_x" :
return windows2c.wxGridEvent_m_x_get(self.this)
if name == "m_y" :
return windows2c.wxGridEvent_m_y_get(self.this)
if name == "m_control" :
return windows2c.wxGridEvent_m_control_get(self.this)
if name == "m_shift" :
return windows2c.wxGridEvent_m_shift_get(self.this)
if name == "m_cell" :
return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self.this))
raise AttributeError,name
def __repr__(self):
return "<C wxGridEvent instance>"
class wxGridEvent(wxGridEventPtr):
def __init__(self,this):
self.this = this
class wxNotebookEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSelection(self):
val = windows2c.wxNotebookEvent_GetSelection(self.this)
return val
def GetOldSelection(self):
val = windows2c.wxNotebookEvent_GetOldSelection(self.this)
return val
def __repr__(self):
return "<C wxNotebookEvent instance>"
class wxNotebookEvent(wxNotebookEventPtr):
def __init__(self,this):
self.this = this
class wxNotebookPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPageCount(self):
val = windows2c.wxNotebook_GetPageCount(self.this)
return val
def SetSelection(self,arg0):
val = windows2c.wxNotebook_SetSelection(self.this,arg0)
return val
def AdvanceSelection(self,*args):
val = apply(windows2c.wxNotebook_AdvanceSelection,(self.this,)+args)
return val
def GetSelection(self):
val = windows2c.wxNotebook_GetSelection(self.this)
return val
def SetPageText(self,arg0,arg1):
val = windows2c.wxNotebook_SetPageText(self.this,arg0,arg1)
return val
def GetPageText(self,arg0):
val = windows2c.wxNotebook_GetPageText(self.this,arg0)
return val
def SetImageList(self,arg0):
val = windows2c.wxNotebook_SetImageList(self.this,arg0)
return val
def GetImageList(self):
val = windows2c.wxNotebook_GetImageList(self.this)
return val
def GetPageImage(self,arg0):
val = windows2c.wxNotebook_GetPageImage(self.this,arg0)
return val
def SetPageImage(self,arg0,arg1):
val = windows2c.wxNotebook_SetPageImage(self.this,arg0,arg1)
return val
def GetRowCount(self):
val = windows2c.wxNotebook_GetRowCount(self.this)
return val
def DeletePage(self,arg0):
val = windows2c.wxNotebook_DeletePage(self.this,arg0)
return val
def DeleteAllPages(self):
val = windows2c.wxNotebook_DeleteAllPages(self.this)
return val
def AddPage(self,arg0,arg1,*args):
val = apply(windows2c.wxNotebook_AddPage,(self.this,arg0.this,arg1,)+args)
return val
def InsertPage(self,arg0,arg1,arg2,*args):
val = apply(windows2c.wxNotebook_InsertPage,(self.this,arg0,arg1.this,arg2,)+args)
return val
def GetPage(self,arg0):
val = windows2c.wxNotebook_GetPage(self.this,arg0)
return val
def __repr__(self):
return "<C wxNotebook instance>"
class wxNotebook(wxNotebookPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxSplitterWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetBorderSize(self):
val = windows2c.wxSplitterWindow_GetBorderSize(self.this)
return val
def GetMinimumPaneSize(self):
val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self.this)
return val
def GetSashPosition(self):
val = windows2c.wxSplitterWindow_GetSashPosition(self.this)
return val
def GetSashSize(self):
val = windows2c.wxSplitterWindow_GetSashSize(self.this)
return val
def GetSplitMode(self):
val = windows2c.wxSplitterWindow_GetSplitMode(self.this)
return val
def GetWindow1(self):
val = windows2c.wxSplitterWindow_GetWindow1(self.this)
val = wxWindowPtr(val)
return val
def GetWindow2(self):
val = windows2c.wxSplitterWindow_GetWindow2(self.this)
val = wxWindowPtr(val)
return val
def Initialize(self,arg0):
val = windows2c.wxSplitterWindow_Initialize(self.this,arg0.this)
return val
def IsSplit(self):
val = windows2c.wxSplitterWindow_IsSplit(self.this)
return val
def SetBorderSize(self,arg0):
val = windows2c.wxSplitterWindow_SetBorderSize(self.this,arg0)
return val
def SetSashPosition(self,arg0,*args):
val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self.this,arg0,)+args)
return val
def SetSashSize(self,arg0):
val = windows2c.wxSplitterWindow_SetSashSize(self.this,arg0)
return val
def SetMinimumPaneSize(self,arg0):
val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self.this,arg0)
return val
def SetSplitMode(self,arg0):
val = windows2c.wxSplitterWindow_SetSplitMode(self.this,arg0)
return val
def SplitHorizontally(self,arg0,arg1,*args):
val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self.this,arg0.this,arg1.this,)+args)
return val
def SplitVertically(self,arg0,arg1,*args):
val = apply(windows2c.wxSplitterWindow_SplitVertically,(self.this,arg0.this,arg1.this,)+args)
return val
def Unsplit(self,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows2c.wxSplitterWindow_Unsplit,(self.this,)+args)
return val
def __repr__(self):
return "<C wxSplitterWindow instance>"
class wxSplitterWindow(wxSplitterWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxTaskBarIconPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windows2c.delete_wxTaskBarIcon(self.this)
def SetIcon(self,arg0,*args):
val = apply(windows2c.wxTaskBarIcon_SetIcon,(self.this,arg0.this,)+args)
return val
def RemoveIcon(self):
val = windows2c.wxTaskBarIcon_RemoveIcon(self.this)
return val
def PopupMenu(self,arg0):
val = windows2c.wxTaskBarIcon_PopupMenu(self.this,arg0.this)
return val
def __repr__(self):
return "<C wxTaskBarIcon instance>"
class wxTaskBarIcon(wxTaskBarIconPtr):
def __init__(self) :
self.this = windows2c.new_wxTaskBarIcon()
self.thisown = 1
wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)
wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)
wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)
wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)
wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)
wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)
wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL
wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL
wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL
wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL
wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL
wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS
wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL
wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE
wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK
wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK
wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK
wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK
wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE
wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN
wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP
wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN
wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP
wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK
wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK

File diff suppressed because it is too large Load Diff

View File

@@ -1,293 +0,0 @@
# This file was created automatically by SWIG.
import windows3c
from misc import *
from gdi import *
from windows import *
from windows2 import *
from controls import *
from events import *
from mdi import *
from frames import *
from stattool import *
import wx
class wxSashEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetEdge(self,arg0):
val = windows3c.wxSashEvent_SetEdge(self.this,arg0)
return val
def GetEdge(self):
val = windows3c.wxSashEvent_GetEdge(self.this)
return val
def SetDragRect(self,arg0):
val = windows3c.wxSashEvent_SetDragRect(self.this,arg0.this)
return val
def GetDragRect(self):
val = windows3c.wxSashEvent_GetDragRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def SetDragStatus(self,arg0):
val = windows3c.wxSashEvent_SetDragStatus(self.this,arg0)
return val
def GetDragStatus(self):
val = windows3c.wxSashEvent_GetDragStatus(self.this)
return val
def __repr__(self):
return "<C wxSashEvent instance>"
class wxSashEvent(wxSashEventPtr):
def __init__(self,this):
self.this = this
class wxSashWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSashVisible(self,arg0):
val = windows3c.wxSashWindow_GetSashVisible(self.this,arg0)
return val
def GetDefaultBorderSize(self):
val = windows3c.wxSashWindow_GetDefaultBorderSize(self.this)
return val
def GetEdgeMargin(self,arg0):
val = windows3c.wxSashWindow_GetEdgeMargin(self.this,arg0)
return val
def GetExtraBorderSize(self):
val = windows3c.wxSashWindow_GetExtraBorderSize(self.this)
return val
def GetMaximumSizeX(self):
val = windows3c.wxSashWindow_GetMaximumSizeX(self.this)
return val
def GetMaximumSizeY(self):
val = windows3c.wxSashWindow_GetMaximumSizeY(self.this)
return val
def GetMinimumSizeX(self):
val = windows3c.wxSashWindow_GetMinimumSizeX(self.this)
return val
def GetMinimumSizeY(self):
val = windows3c.wxSashWindow_GetMinimumSizeY(self.this)
return val
def HasBorder(self,arg0):
val = windows3c.wxSashWindow_HasBorder(self.this,arg0)
return val
def SetDefaultBorderSize(self,arg0):
val = windows3c.wxSashWindow_SetDefaultBorderSize(self.this,arg0)
return val
def SetExtraBorderSize(self,arg0):
val = windows3c.wxSashWindow_SetExtraBorderSize(self.this,arg0)
return val
def SetMaximumSizeX(self,arg0):
val = windows3c.wxSashWindow_SetMaximumSizeX(self.this,arg0)
return val
def SetMaximumSizeY(self,arg0):
val = windows3c.wxSashWindow_SetMaximumSizeY(self.this,arg0)
return val
def SetMinimumSizeX(self,arg0):
val = windows3c.wxSashWindow_SetMinimumSizeX(self.this,arg0)
return val
def SetMinimumSizeY(self,arg0):
val = windows3c.wxSashWindow_SetMinimumSizeY(self.this,arg0)
return val
def SetSashVisible(self,arg0,arg1):
val = windows3c.wxSashWindow_SetSashVisible(self.this,arg0,arg1)
return val
def SetSashBorder(self,arg0,arg1):
val = windows3c.wxSashWindow_SetSashBorder(self.this,arg0,arg1)
return val
def __repr__(self):
return "<C wxSashWindow instance>"
class wxSashWindow(wxSashWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows3c.new_wxSashWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
class wxQueryLayoutInfoEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetRequestedLength(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetRequestedLength(self.this,arg0)
return val
def GetRequestedLength(self):
val = windows3c.wxQueryLayoutInfoEvent_GetRequestedLength(self.this)
return val
def SetFlags(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetFlags(self.this,arg0)
return val
def GetFlags(self):
val = windows3c.wxQueryLayoutInfoEvent_GetFlags(self.this)
return val
def SetSize(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetSize(self.this,arg0.this)
return val
def GetSize(self):
val = windows3c.wxQueryLayoutInfoEvent_GetSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def SetOrientation(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetOrientation(self.this,arg0)
return val
def GetOrientation(self):
val = windows3c.wxQueryLayoutInfoEvent_GetOrientation(self.this)
return val
def SetAlignment(self,arg0):
val = windows3c.wxQueryLayoutInfoEvent_SetAlignment(self.this,arg0)
return val
def GetAlignment(self):
val = windows3c.wxQueryLayoutInfoEvent_GetAlignment(self.this)
return val
def __repr__(self):
return "<C wxQueryLayoutInfoEvent instance>"
class wxQueryLayoutInfoEvent(wxQueryLayoutInfoEventPtr):
def __init__(self,this):
self.this = this
class wxCalculateLayoutEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetFlags(self,arg0):
val = windows3c.wxCalculateLayoutEvent_SetFlags(self.this,arg0)
return val
def GetFlags(self):
val = windows3c.wxCalculateLayoutEvent_GetFlags(self.this)
return val
def SetRect(self,arg0):
val = windows3c.wxCalculateLayoutEvent_SetRect(self.this,arg0.this)
return val
def GetRect(self):
val = windows3c.wxCalculateLayoutEvent_GetRect(self.this)
val = wxRectPtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxCalculateLayoutEvent instance>"
class wxCalculateLayoutEvent(wxCalculateLayoutEventPtr):
def __init__(self,this):
self.this = this
class wxSashLayoutWindowPtr(wxSashWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetAlignment(self):
val = windows3c.wxSashLayoutWindow_GetAlignment(self.this)
return val
def GetOrientation(self):
val = windows3c.wxSashLayoutWindow_GetOrientation(self.this)
return val
def SetAlignment(self,arg0):
val = windows3c.wxSashLayoutWindow_SetAlignment(self.this,arg0)
return val
def SetDefaultSize(self,arg0):
val = windows3c.wxSashLayoutWindow_SetDefaultSize(self.this,arg0.this)
return val
def SetOrientation(self,arg0):
val = windows3c.wxSashLayoutWindow_SetOrientation(self.this,arg0)
return val
def __repr__(self):
return "<C wxSashLayoutWindow instance>"
class wxSashLayoutWindow(wxSashLayoutWindowPtr):
def __init__(self,arg0,arg1,*args) :
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
try: argl[1] = argl[1].this
except: pass
args = tuple(argl)
self.this = apply(windows3c.new_wxSashLayoutWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wx._StdWindowCallbacks(self)
wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)
wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)
class wxLayoutAlgorithmPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self):
if self.thisown == 1 :
windows3c.delete_wxLayoutAlgorithm(self.this)
def LayoutMDIFrame(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self.this,arg0.this,)+args)
return val
def LayoutFrame(self,arg0,*args):
argl = map(None,args)
try: argl[0] = argl[0].this
except: pass
args = tuple(argl)
val = apply(windows3c.wxLayoutAlgorithm_LayoutFrame,(self.this,arg0.this,)+args)
return val
def __repr__(self):
return "<C wxLayoutAlgorithm instance>"
class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
def __init__(self) :
self.this = windows3c.new_wxLayoutAlgorithm()
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxSASH_TOP = windows3c.wxSASH_TOP
wxSASH_RIGHT = windows3c.wxSASH_RIGHT
wxSASH_BOTTOM = windows3c.wxSASH_BOTTOM
wxSASH_LEFT = windows3c.wxSASH_LEFT
wxSASH_NONE = windows3c.wxSASH_NONE
wxEVT_SASH_DRAGGED = windows3c.wxEVT_SASH_DRAGGED
wxSW_3D = windows3c.wxSW_3D
wxSASH_STATUS_OK = windows3c.wxSASH_STATUS_OK
wxSASH_STATUS_OUT_OF_RANGE = windows3c.wxSASH_STATUS_OUT_OF_RANGE
wxLAYOUT_HORIZONTAL = windows3c.wxLAYOUT_HORIZONTAL
wxLAYOUT_VERTICAL = windows3c.wxLAYOUT_VERTICAL
wxLAYOUT_NONE = windows3c.wxLAYOUT_NONE
wxLAYOUT_TOP = windows3c.wxLAYOUT_TOP
wxLAYOUT_LEFT = windows3c.wxLAYOUT_LEFT
wxLAYOUT_RIGHT = windows3c.wxLAYOUT_RIGHT
wxLAYOUT_BOTTOM = windows3c.wxLAYOUT_BOTTOM
wxEVT_QUERY_LAYOUT_INFO = windows3c.wxEVT_QUERY_LAYOUT_INFO
wxEVT_CALCULATE_LAYOUT = windows3c.wxEVT_CALCULATE_LAYOUT

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,216 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: my_typemaps.i
// Purpose: Special typemaps specifically for wxPython.
//
// Author: Robin Dunn
//
// Created: 7/3/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------
// Here are some to map (int LCOUNT, int* LIST), etc. from a python list
%{
extern byte* byte_LIST_helper(PyObject* source);
extern int* int_LIST_helper(PyObject* source);
extern long* long_LIST_helper(PyObject* source);
extern char** string_LIST_helper(PyObject* source);
extern wxPoint* wxPoint_LIST_helper(PyObject* source);
extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
extern wxString* wxString_LIST_helper(PyObject* source);
extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
%}
//----------------------------------------------------------------------
%typemap(python,build) int LCOUNT {
$target = PyList_Size(_in_LIST);
}
%typemap(python,in) byte* LIST {
$target = byte_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) byte* LIST {
delete [] $source;
}
%typemap(python,in) int* LIST {
$target = int_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) int* LIST {
delete [] $source;
}
%typemap(python,in) long* LIST {
$target = long_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) long* LIST {
delete [] $source;
}
%typemap(python,in) unsigned long* LIST {
$target = (unsigned long*)long_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) unsigned long* LIST {
delete [] $source;
}
%typemap(python,in) wxDash* LIST = unsigned long* LIST;
%typemap(python,freearg) wxDash* LIST = unsigned long* LIST;
%typemap(python,in) char** LIST {
$target = string_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) char** LIST {
delete [] $source;
}
%typemap(python,in) wxPoint* LIST {
$target = wxPoint_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) wxPoint* LIST {
delete [] $source;
}
%typemap(python,in) wxBitmap** LIST {
$target = wxBitmap_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) wxBitmap** LIST {
delete [] $source;
}
%typemap(python,in) wxString* LIST {
$target = wxString_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) wxString* LIST {
delete [] $source;
}
%typemap(python,in) wxAcceleratorEntry* LIST {
$target = wxAcceleratorEntry_LIST_helper($source);
if ($target == NULL) {
return NULL;
}
}
%typemap(python,freearg) wxAcceleratorEntry* LIST {
delete [] $source;
}
//---------------------------------------------------------------------------
%{
static char* wxStringErrorMsg = "string type is required for parameter";
%}
%typemap(python, in) wxString& {
if (!PyString_Check($source)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
$target = new wxString(PyString_AsString($source));
}
%typemap(python, freearg) wxString& {
if ($target)
delete $source;
}
%typemap(python, out) wxString {
$target = PyString_FromString(WXSTRINGCAST *($source));
}
%typemap(python, ret) wxString {
delete $source;
}
%typemap(python, out) wxString* {
$target = PyString_FromString(WXSTRINGCAST (*$source));
}
// --------------------------------------------------------------------
//---------------------------------------------------------------------------
// --------------------------------------------------------------------
// Map T_OUTPUTs for floats to return ints.
%typemap(python,ignore) float *T_OUTPUT_TOINT(float temp),
double *T_OUTPUT_TOINT(double temp)
{
$target = &temp;
}
%typemap(python,argout) float *T_OUTPUT_TOINT,
double *T_OUTPUT_TOINT
{
PyObject *o;
o = PyInt_FromLong((long) (*$source));
$target = t_output_helper($target, o);
}
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.4 1998/11/25 08:45:27 RD
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.3 1998/11/15 23:03:47 RD
// Removing some ifdef's for wxGTK
//
// Revision 1.2 1998/08/14 23:36:39 RD
// Beginings of wxGTK compatibility
//
// Revision 1.1 1998/08/09 08:25:52 RD
// Initial version
//
//

View File

@@ -1,257 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: stattool.i
// Purpose: SWIG definitions for StatusBar and ToolBar classes
//
// Author: Robin Dunn
//
// Created: 08/24/1998
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module stattool
%{
#include "helpers.h"
#include <wx/toolbar.h>
#include <wx/tbarsmpl.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import windows.i
%import controls.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
class wxStatusBar : public wxWindow {
public:
wxStatusBar(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxST_SIZEGRIP,
char* name = "statusBar");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%addmethods {
%new wxRect* GetFieldRect(long item) {
wxRect* rect= new wxRect;
self->GetFieldRect(item, *rect);
return rect;
}
}
int GetFieldsCount(void);
wxString GetStatusText(int ir = 0);
void DrawField(wxDC& dc, int i);
void DrawFieldText(wxDC& dc, int i);
void InitColours(void);
// OnSysColourChanged(wxSysColourChangedEvent& event);
void SetFieldsCount(int number = 1);
void SetStatusText(const wxString& text, int i = 0);
void SetStatusWidths(int LCOUNT, int* LIST);
};
//---------------------------------------------------------------------------
class wxToolBarTool {
public:
wxToolBarTool();
~wxToolBarTool();
#ifdef __WXMSW__
void SetSize( long w, long h ) { m_width = w; m_height = h; }
long GetWidth () const { return m_width; }
long GetHeight () const { return m_height; }
#endif
public:
int m_toolStyle;
wxObject * m_clientData;
int m_index;
#ifdef __WXMSW__
long m_x;
long m_y;
long m_width;
long m_height;
#endif
bool m_toggleState;
bool m_isToggle;
bool m_deleteSecondBitmap;
bool m_enabled;
wxBitmap m_bitmap1;
wxBitmap m_bitmap2;
bool m_isMenuCommand;
wxString m_shortHelpString;
wxString m_longHelpString;
};
// class wxToolBarBase : public wxControl {
// public:
class wxToolBar : public wxControl {
public:
wxToolBar(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxTB_HORIZONTAL | wxNO_BORDER,
char* name = "toolBar");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void AddSeparator();
// Ignoge the clientData for now...
%addmethods {
wxToolBarTool* AddTool(int toolIndex,
const wxBitmap& bitmap1,
const wxBitmap& bitmap2 = wxNullBitmap,
int isToggle = FALSE,
long xPos = -1,
long yPos = -1,
//wxObject* clientData = NULL,
const wxString& shortHelpString = wxPyEmptyStr,
const wxString& longHelpString = wxPyEmptyStr) {
return self->AddTool(toolIndex, bitmap1, bitmap2,
isToggle, xPos, yPos, NULL,
shortHelpString, longHelpString);
}
wxToolBarTool* AddSimpleTool(int toolIndex,
const wxBitmap& bitmap,
const wxString& shortHelpString = wxPyEmptyStr,
const wxString& longHelpString = wxPyEmptyStr) {
return self->AddTool(toolIndex, bitmap, wxNullBitmap,
FALSE, -1, -1, NULL,
shortHelpString, longHelpString);
}
}
// void DrawTool(wxMemoryDC& memDC, wxToolBarTool* tool);
void EnableTool(int toolIndex, const bool enable);
#ifdef __WXMSW__
wxToolBarTool* FindToolForPosition(const float x, const float y);
wxSize GetToolSize();
wxSize GetToolBitmapSize();
void SetToolBitmapSize(const wxSize& size);
// wxSize GetMargins();
wxSize GetMaxSize();
// wxObject* GetToolClientData(int toolIndex);
#endif
bool GetToolEnabled(int toolIndex);
wxString GetToolLongHelp(int toolIndex);
int GetToolPacking();
int GetToolSeparation();
wxString GetToolShortHelp(int toolIndex);
bool GetToolState(int toolIndex);
// TODO: figure out how to handle these
//bool OnLeftClick(int toolIndex, bool toggleDown);
//void OnMouseEnter(int toolIndex);
//void OnRightClick(int toolIndex, float x, float y);
bool Realize();
void SetToolLongHelp(int toolIndex, const wxString& helpString);
void SetToolShortHelp(int toolIndex, const wxString& helpString);
void SetMargins(const wxSize& size);
void SetToolPacking(int packing);
void SetToolSeparation(int separation);
void ToggleTool(int toolIndex, const bool toggle);
};
// // The Native Toolbar
// class wxToolBar : public wxToolBarBase {
// public:
// wxToolBar(wxWindow* parent, wxWindowID id,
// const wxPoint& pos = wxPyDefaultPosition,
// const wxSize& size = wxPyDefaultSize,
// long style = wxTB_HORIZONTAL | wxNO_BORDER,
// char* name = "toolBar");
// %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
// };
// // A generic toolbar
// class wxToolBarSimple : public wxToolBarBase {
// public:
// wxToolBarSimple(wxWindow* parent, wxWindowID id,
// const wxPoint& pos = wxPyDefaultPosition,
// const wxSize& size = wxPyDefaultSize,
// long style = wxTB_HORIZONTAL | wxNO_BORDER,
// char* name = "toolBar");
// %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
// };
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.5 1999/01/30 07:30:15 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.4 1998/12/17 14:07:43 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.3 1998/12/15 20:41:23 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.2 1998/10/07 07:34:34 RD
// Version 0.4.1 for wxGTK
//
// Revision 1.1 1998/10/02 06:40:42 RD
//
// Version 0.4 of wxPython for MSW.
//
//

View File

@@ -1,159 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: utils.i
// Purpose: SWIG definitions of various utility classes classes
//
// Author: Robin Dunn
//
// Created: 25-nov-1998
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module utils
%{
#include "helpers.h"
#include <wx/config.h>
%}
//---------------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
#ifdef SEPARATE
%{
static wxString wxPyEmptyStr("");
%}
#endif
%{
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
PyObject* ret = PyTuple_New(3);
if (ret) {
PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
PyTuple_SET_ITEM(ret, 1, PyString_FromString(str));
PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
}
return ret;
}
%}
//---------------------------------------------------------------------------
class wxConfig {
public:
wxConfig(const wxString& appName = wxPyEmptyStr,
const wxString& vendorName = wxPyEmptyStr,
const wxString& localFilename = wxPyEmptyStr,
const wxString& globalFilename = wxPyEmptyStr,
long style = 0);
~wxConfig();
//static wxConfigBase * Create();
//static wxConfigBase * Get();
//static wxConfigBase * Set(wxConfigBase *pConfig);
void DontCreateOnDemand();
// **** DANGER Will Robinson! DANGER! bool DeleteAll();
bool DeleteEntry(const wxString& key, bool bDeleteGroupIfEmpty = TRUE);
bool DeleteGroup(const wxString& key);
bool Exists(wxString& strName);
bool Flush(bool bCurrentOnly = FALSE);
wxString GetAppName();
// Each of these enumeration methods return a 3-tuple consisting of
// the continue flag, the value string, and the index for the next call.
%addmethods {
PyObject* GetFirstGroup() {
bool cont;
long index = 0;
wxString value;
cont = self->GetFirstGroup(value, index);
return __EnumerationHelper(cont, value, index);
}
PyObject* GetFirstEntry() {
bool cont;
long index = 0;
wxString value;
cont = self->GetFirstEntry(value, index);
return __EnumerationHelper(cont, value, index);
}
PyObject* GetNextGroup(long index) {
bool cont;
wxString value;
cont = self->GetNextGroup(value, index);
return __EnumerationHelper(cont, value, index);
}
PyObject* GetNextEntry(long index) {
bool cont;
wxString value;
cont = self->GetNextEntry(value, index);
return __EnumerationHelper(cont, value, index);
}
}
int GetNumberOfEntries(bool bRecursive = FALSE);
int GetNumberOfGroups(bool bRecursive = FALSE);
wxString GetPath();
wxString GetVendorName();
bool HasEntry(wxString& strName);
bool HasGroup(const wxString& strName);
bool IsExpandingEnvVars();
bool IsRecordingDefaults();
wxString Read(const wxString& key, const wxString& defaultVal = wxPyEmptyStr);
%name(ReadInt)long Read(const wxString& key, long defaultVal = 0);
%name(ReadFloat)double Read(const wxString& key, double defaultVal = 0.0);
void SetAppName(const wxString& appName);
void SetExpandEnvVars (bool bDoIt = TRUE);
void SetPath(const wxString& strPath);
void SetRecordDefaults(bool bDoIt = TRUE);
void SetVendorName(const wxString& vendorName);
bool Write(const wxString& key, const wxString& value);
%name(WriteInt)bool Write(const wxString& key, long value);
%name(WriteFloat)bool Write(const wxString& key, double value);
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.1 1998/12/15 20:41:23 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//

View File

@@ -1,2 +0,0 @@
EXPORTS
initutilsc

View File

@@ -1,417 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: windows.i
// Purpose: SWIG definitions of various window classes
//
// Author: Robin Dunn
//
// Created: 6/24/97
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module windows
%{
#include "helpers.h"
#include <wx/menuitem.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
class wxEvtHandler {
public:
%addmethods {
void Connect( int id, int lastId, int eventType, PyObject* func) {
if (PyCallable_Check(func)) {
self->Connect(id, lastId, eventType,
(wxObjectEventFunction) &wxPyCallback::EventThunker,
new wxPyCallback(func));
}
}
}
};
//----------------------------------------------------------------------
class wxWindow : public wxEvtHandler {
public:
wxWindow(wxWindow* parent, const wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "panel");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void CaptureMouse();
void Center(int direction = wxHORIZONTAL);
void Centre(int direction = wxHORIZONTAL);
void ClientToScreen(int *BOTH, int *BOTH);
bool Close(int force = FALSE);
bool Destroy();
void DestroyChildren();
#ifdef __WXMSW__
void DragAcceptFiles(bool accept);
#endif
void Enable(bool enable);
//bool FakePopupMenu(wxMenu* menu, int x, int y);
%name(FindWindowByID) wxWindow* FindWindow(long id);
%name(FindWindowByName) wxWindow* FindWindow(const wxString& name);
void Fit();
wxColour GetBackgroundColour();
int GetCharHeight();
int GetCharWidth();
%name(GetClientSizeTuple) void GetClientSize(int *OUTPUT, int *OUTPUT);
wxSize GetClientSize();
wxLayoutConstraints * GetConstraints();
#ifdef __WXMSW__
wxButton* GetDefaultItem();
#endif
//wxEvtHandler* GetEventHandler();
wxFont& GetFont();
wxColour GetForegroundColour();
wxWindow * GetGrandParent();
int GetId();
wxString GetLabel();
wxString GetName();
wxWindow * GetParent();
%name(GetPositionTuple) void GetPosition(int *OUTPUT, int *OUTPUT);
wxPoint GetPosition();
wxRect GetRect();
int GetReturnCode();
int GetScrollThumb(int orientation);
int GetScrollPos(int orientation);
int GetScrollRange(int orientation);
%name(GetSizeTuple) void GetSize(int *OUTPUT, int *OUTPUT);
wxSize GetSize();
void GetTextExtent(const wxString& string, int *OUTPUT, int *OUTPUT); // int* descent = NULL, int* externalLeading = NULL, const wxFont* font = NULL, bool use16 = FALSE)
wxString GetTitle();
long GetWindowStyleFlag();
void InitDialog();
bool IsEnabled();
bool IsRetained();
bool IsShown();
void Layout();
bool LoadFromResource(wxWindow* parent, const wxString& resourceName, const wxResourceTable* resourceTable = NULL);
void Lower();
void MakeModal(bool flag);
void Move(int x, int y);
//wxEvtHandler* PopEventHandler(bool deleteHandler = FALSE);
bool PopupMenu(wxMenu *menu, int x, int y);
//void PushEventHandler(wxEvtHandler* handler);
void Raise();
void Refresh(bool eraseBackground = TRUE, const wxRect* rect = NULL);
void ReleaseMouse();
void ScreenToClient(int *BOTH, int *BOTH);
void ScrollWindow(int dx, int dy, const wxRect* rect = NULL);
void SetAcceleratorTable(const wxAcceleratorTable& accel);
void SetAutoLayout(bool autoLayout);
void SetBackgroundColour(const wxColour& colour);
void SetConstraints(wxLayoutConstraints *constraints);
void SetDoubleClick(bool allowDoubleClick);
void SetFocus();
void SetFont(const wxFont& font);
void SetForegroundColour(const wxColour& colour);
void SetId(int id);
void SetName(const wxString& name);
void SetReturnCode(int retCode);
void SetScrollbar(int orientation, int position, int thumbSize, int range, bool refresh = TRUE);
void SetScrollPos(int orientation, int pos, bool refresh = TRUE);
//void SetSize(int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO);
//%name(SetSizeOnly) void SetSize(int width, int height);
%name(SetDimensions) void SetSize(int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO);
%addmethods {
void SetSize(const wxSize& size) {
self->SetSize(size.x, size.y);
}
void SetPosition(const wxPoint& pos) {
self->SetSize(pos.x, pos.y, -1, -1);
}
}
void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1);
void SetClientSize(int width, int height);
//void SetPalette(wxPalette* palette);
void SetCursor(const wxCursor&cursor);
//void SetEventHandler(wxEvtHandler* handler);
void SetTitle(const wxString& title);
bool Show(bool show);
bool TransferDataFromWindow();
bool TransferDataToWindow();
bool Validate();
void WarpPointer(int x, int y);
%name(ConvertDialogPointToPixels) wxPoint ConvertDialogToPixels(const wxPoint& pt);
%name(ConvertDialogSizeToPixels) wxSize ConvertDialogToPixels(const wxSize& sz);
%name(ConvertPixelPointToDialog) wxPoint ConvertPixelsToDialog(const wxPoint& pt);
%name(ConvertPixelSizeToDialog) wxSize ConvertPixelsToDialog(const wxSize& sz);
};
%pragma(python) code = "
def wxDLG_PNT(win, point):
return win.ConvertDialogPointToPixels(point)
def wxDLG_SZE(win, size):
return win.ConvertDialogPointToPixels(size)
"
// Static method(s)
#ifdef __WXMSW__
%inline %{
wxWindow* wxWindow_FindFocus() {
return wxWindow::FindFocus();
}
%}
#endif
//---------------------------------------------------------------------------
class wxPanel : public wxWindow {
public:
wxPanel(wxWindow* parent,
const wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxTAB_TRAVERSAL,
const char* name = "panel");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
void InitDialog();
};
//---------------------------------------------------------------------------
class wxDialog : public wxPanel {
public:
wxDialog(wxWindow* parent,
const wxWindowID id,
const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
const char* name = "dialogBox");
%pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
void Centre(int direction = wxBOTH);
void EndModal(int retCode);
wxString GetTitle();
void Iconize(bool iconize);
bool IsIconized();
void SetModal(bool flag);
bool IsModal();
void SetTitle(const wxString& title);
bool Show(bool show);
int ShowModal();
};
//---------------------------------------------------------------------------
class wxScrolledWindow : public wxWindow {
public:
wxScrolledWindow(wxWindow* parent,
const wxWindowID id = -1,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxHSCROLL | wxVSCROLL,
char* name = "scrolledWindow");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)"
void EnableScrolling(bool xScrolling, bool yScrolling);
void GetScrollPixelsPerUnit(int* OUTPUT, int* OUTPUT);
void GetVirtualSize(int* OUTPUT, int* OUTPUT);
bool IsRetained();
void PrepareDC(wxDC& dc);
void Scroll(int x, int y);
void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
int noUnitsX, int noUnitsY,
int xPos = 0, int yPos = 0);
void ViewStart(int* OUTPUT, int* OUTPUT);
};
//----------------------------------------------------------------------
class wxMenu : public wxEvtHandler {
public:
wxMenu(const wxString& title = wxPyEmptyStr);
void Append(int id, const wxString& item,
const wxString& helpString = wxPyEmptyStr,
int checkable = FALSE);
%name(AppendMenu)void Append(int id, const wxString& item, wxMenu *subMenu,
const wxString& helpString = wxPyEmptyStr);
void AppendSeparator();
void Break();
void Check(int id, bool flag);
void Enable(int id, bool enable);
int FindItem(const wxString& itemString);
wxString GetTitle();
void SetTitle(const wxString& title);
wxMenuItem* FindItemForId(int id);
wxString GetHelpString(int id);
wxString GetLabel(int id);
void SetHelpString(int id, const wxString& helpString);
bool IsChecked(int id);
bool IsEnabled(int id);
void SetLabel(int id, const wxString& label);
};
//
// This one knows how to set a callback and handle INC- and DECREFing it. To
// be used for PopupMenus, but you must retain a referece to it while using
// it.
//
class wxPyMenu : public wxMenu {
public:
wxPyMenu(const wxString& title = wxPyEmptyStr, PyObject* func = NULL);
~wxPyMenu();
};
//----------------------------------------------------------------------
class wxMenuBar : public wxEvtHandler {
public:
wxMenuBar();
void Append(wxMenu *menu, const wxString& title);
void Check(int id, bool flag);
bool Checked(int id);
void Enable(int id, bool enable);
bool Enabled(int id);
int FindMenuItem(const wxString& menuString, const wxString& itemString);
wxMenuItem * FindItemForId(int id);
#ifdef __WXMSW__
void EnableTop(int pos, bool enable);
wxString GetHelpString(int id);
wxString GetLabel(int id);
void SetHelpString(int id, const wxString& helpString);
void SetLabel(int id, const wxString& label);
wxString GetLabelTop(int pos);
void SetLabelTop(int pos, const wxString& label);
#endif
int GetMenuCount();
wxMenu* GetMenu(int i);
};
//----------------------------------------------------------------------
class wxMenuItem {
public:
bool IsSeparator();
bool IsEnabled();
bool IsChecked();
bool IsCheckable();
int GetId();
wxMenu* GetSubMenu();
void SetName(const wxString& strName);
const wxString& GetName();
const wxString& GetHelp();
void SetHelp(const wxString& strHelp);
void Enable(bool bDoEnable = TRUE);
void Check(bool bDoCheck = TRUE);
#ifdef __WXMSW__
void DeleteSubMenu();
#endif
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.11 1998/12/18 15:49:10 RR
// wxClipboard now serves the primary selection as well
// wxPython fixes
// warning mesages
//
// Revision 1.10 1998/12/17 17:52:20 RD
//
// wxPython 0.5.2
// Minor fixes and SWIG code generation for RR's changes. MSW and GTK
// versions are much closer now!
//
// Revision 1.9 1998/12/17 14:07:46 RR
//
// Removed minor differences between wxMSW and wxGTK
//
// Revision 1.8 1998/12/16 22:10:56 RD
//
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.7 1998/12/15 20:41:25 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.6 1998/10/02 06:40:43 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.5 1998/08/17 18:29:40 RD
// Removed an extra method definition
//
// Revision 1.4 1998/08/16 04:31:11 RD
// More wxGTK work.
//
// Revision 1.3 1998/08/15 07:36:47 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.2 1998/08/14 23:36:46 RD
// Beginings of wxGTK compatibility
//
// Revision 1.1 1998/08/09 08:25:52 RD
// Initial version
//
//

View File

@@ -1,388 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: windows2.i
// Purpose: SWIG definitions of MORE window classes
//
// Author: Robin Dunn
//
// Created: 6/2/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module windows2
%{
#include "helpers.h"
#include <wx/grid.h>
#include <wx/notebook.h>
#include <wx/splitter.h>
#ifdef __WXMSW__
#include <wx/msw/taskbar.h>
#endif
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import controls.i
%import events.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
enum {
wxGRID_TEXT_CTRL,
wxGRID_HSCROLL,
wxGRID_VSCROLL
};
class wxGridCell {
public:
wxGridCell();
~wxGridCell();
wxString& GetTextValue();
void SetTextValue(const wxString& str);
wxFont& GetFont();
void SetFont(wxFont& f);
wxColour& GetTextColour();
void SetTextColour(const wxColour& colour);
wxColour& GetBackgroundColour();
void SetBackgroundColour(const wxColour& colour);
wxBrush& GetBackgroundBrush();
int GetAlignment();
void SetAlignment(int align);
wxBitmap* GetCellBitmap();
void SetCellBitmap(wxBitmap* bitmap);
};
class wxGrid : public wxPanel {
public:
wxGrid(wxWindow* parent, wxWindowID id,
const wxPoint& pos=wxPyDefaultPosition,
const wxSize& size=wxPyDefaultSize,
long style=0,
char* name="grid");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)"
void AdjustScrollbars();
bool AppendCols(int n=1, bool updateLabels=TRUE);
bool AppendRows(int n=1, bool updateLabels=TRUE);
void BeginBatch();
bool CellHitTest(int x, int y, int *OUTPUT, int *OUTPUT);
%addmethods {
// TODO: For now we are just ignoring the initial cellValues
// and widths. Add support for loading them from
// Python sequence objects.
bool CreateGrid(int rows, int cols,
//PyObject* cellValues = NULL,
//PyObject* widths = NULL,
short defaultWidth = wxGRID_DEFAULT_CELL_WIDTH,
short defaultHeight = wxGRID_DEFAULT_CELL_HEIGHT) {
return self->CreateGrid(rows, cols, NULL, NULL,
defaultWidth, defaultHeight);
}
}
bool CurrentCellVisible();
bool DeleteCols(int pos=0, int n=1, bool updateLabels=TRUE);
bool DeleteRows(int pos=0, int n=1, bool updateLabels=TRUE);
void EndBatch();
int GetBatchCount();
wxGridCell* GetCell(int row, int col);
int GetCellAlignment(int row, int col);
%name(GetDefCellAlignment)int GetCellAlignment();
wxColour& GetCellBackgroundColour(int row, int col);
%name(GetDefCellBackgroundColour)
wxColour& GetCellBackgroundColour();
//wxGridCell *** GetCells();
wxColour& GetCellTextColour(int row, int col);
%name(GetDefCellTextColour)wxColour& GetCellTextColour();
wxFont& GetCellTextFont(int row, int col);
%name(GetDefCellTextFont)wxFont& GetCellTextFont();
wxString& GetCellValue(int row, int col);
int GetCols();
int GetColumnWidth(int col);
wxRect& GetCurrentRect();
int GetCursorColumn();
int GetCursorRow();
bool GetEditable();
wxScrollBar * GetHorizScrollBar();
int GetLabelAlignment(int orientation);
wxColour& GetLabelBackgroundColour();
int GetLabelSize(int orientation);
wxColour& GetLabelTextColour();
wxFont& GetLabelTextFont();
wxString& GetLabelValue(int orientation, int pos);
int GetRowHeight(int row);
int GetRows();
int GetScrollPosX();
int GetScrollPosY();
wxTextCtrl* GetTextItem();
wxScrollBar* GetVertScrollBar();
bool InsertCols(int pos=0, int n=1, bool updateLabels=TRUE);
bool InsertRows(int pos=0, int n=1, bool updateLabels=TRUE);
void OnActivate(bool active);
void SetCellAlignment(int alignment, int row, int col);
%name(SetDefCellAlignment)void SetCellAlignment(int alignment);
void SetCellBackgroundColour(const wxColour& colour, int row, int col);
%name(SetDefCellBackgroundColour)
void SetCellBackgroundColour(const wxColour& colour);
void SetCellTextColour(const wxColour& colour, int row, int col);
%name(SetDefCellTextColour)void SetCellTextColour(const wxColour& colour);
void SetCellTextFont(wxFont& font, int row, int col);
%name(SetDefCellTextFont)void SetCellTextFont(wxFont& font);
void SetCellValue(const wxString& val, int row, int col);
void SetColumnWidth(int col, int width);
void SetDividerPen(wxPen& pen);
void SetEditable(bool editable);
void SetGridCursor(int row, int col);
void SetLabelAlignment(int orientation, int alignment);
void SetLabelBackgroundColour(const wxColour& value);
void SetLabelSize(int orientation, int size);
void SetLabelTextColour(const wxColour& value);
void SetLabelTextFont(wxFont& font);
void SetLabelValue(int orientation, const wxString& value, int pos);
void SetRowHeight(int row, int height);
void UpdateDimensions();
};
class wxGridEvent : public wxEvent {
public:
int m_row;
int m_col;
int m_x;
int m_y;
bool m_control;
bool m_shift;
wxGridCell* m_cell;
};
enum {
wxEVT_GRID_SELECT_CELL,
wxEVT_GRID_CREATE_CELL,
wxEVT_GRID_CHANGE_LABELS,
wxEVT_GRID_CHANGE_SEL_LABEL,
wxEVT_GRID_CELL_CHANGE,
wxEVT_GRID_CELL_LCLICK,
wxEVT_GRID_CELL_RCLICK,
wxEVT_GRID_LABEL_LCLICK,
wxEVT_GRID_LABEL_RCLICK,
};
//---------------------------------------------------------------------------
class wxNotebookEvent : public wxCommandEvent {
public:
int GetSelection();
int GetOldSelection();
};
class wxNotebook : public wxControl {
public:
wxNotebook(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = 0,
char* name = "notebook");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
int GetPageCount();
int SetSelection(int nPage);
void AdvanceSelection(bool bForward = TRUE);
int GetSelection();
bool SetPageText(int nPage, const wxString& strText);
wxString GetPageText(int nPage) const;
void SetImageList(wxImageList* imageList);
wxImageList* GetImageList();
int GetPageImage(int nPage);
bool SetPageImage(int nPage, int nImage);
int GetRowCount();
// LINK ERROR: void SetPageSize(const wxSize& size);
// LINK ERROR: void SetPadding(const wxSize& padding);
bool DeletePage(int nPage);
bool DeleteAllPages();
bool AddPage(/*wxNotebookPage*/ wxWindow *pPage,
const wxString& strText,
bool bSelect = FALSE,
int imageId = -1);
#ifdef __WXMSW__
bool InsertPage(int nPage,
/*wxNotebookPage*/ wxWindow *pPage,
const wxString& strText,
bool bSelect = FALSE,
int imageId = -1);
#endif
wxNotebookPage *GetPage(int nPage);
};
//---------------------------------------------------------------------------
class wxSplitterWindow : public wxWindow {
public:
wxSplitterWindow(wxWindow* parent, wxWindowID id,
const wxPoint& point = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style=wxSP_3D|wxCLIP_CHILDREN,
char* name = "splitterWindow");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
int GetBorderSize();
int GetMinimumPaneSize();
int GetSashPosition();
int GetSashSize();
int GetSplitMode();
wxWindow* GetWindow1();
wxWindow* GetWindow2();
void Initialize(wxWindow* window);
bool IsSplit();
// TODO: How to handle callbacks that don't come from
// event system???
//
//void OnDoubleClickSash(int x, int y);
//bool OnSashPositionChange(int newSashPosition);
//void OnUnsplit(wxWindow* removed);
void SetBorderSize(int width);
void SetSashPosition(int position, int redraw = TRUE);
void SetSashSize(int width);
void SetMinimumPaneSize(int paneSize);
void SetSplitMode(int mode);
bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = 0);
bool SplitVertically(wxWindow* window1, wxWindow* window2, int sashPosition = 0);
bool Unsplit(wxWindow* toRemove = NULL);
};
//---------------------------------------------------------------------------
#ifdef __WXMSW__
enum {
wxEVT_TASKBAR_MOVE,
wxEVT_TASKBAR_LEFT_DOWN,
wxEVT_TASKBAR_LEFT_UP,
wxEVT_TASKBAR_RIGHT_DOWN,
wxEVT_TASKBAR_RIGHT_UP,
wxEVT_TASKBAR_LEFT_DCLICK,
wxEVT_TASKBAR_RIGHT_DCLICK
};
class wxTaskBarIcon : public wxEvtHandler {
public:
wxTaskBarIcon();
~wxTaskBarIcon();
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)"
bool SetIcon(const wxIcon& icon, const char* tooltip = "");
bool RemoveIcon(void);
bool PopupMenu(wxMenu *menu);
};
#endif
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.8 1998/12/17 18:05:53 RD
// wxPython 0.5.2
// Minor fixes and SWIG code generation for RR's changes. MSW and GTK
// versions are much closer now!
//
// Revision 1.7 1998/12/15 20:41:25 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.6 1998/11/25 08:45:28 RD
//
// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
// Added events for wxGrid
// Other various fixes and additions
//
// Revision 1.5 1998/11/03 09:21:57 RD
// fixed a typo
//
// Revision 1.4 1998/10/02 06:40:43 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.3 1998/08/18 19:48:20 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.2 1998/08/15 07:36:50 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.1 1998/08/09 08:25:52 RD
// Initial version
//
//

View File

@@ -1,193 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: windows3.i
// Purpose: SWIG definitions of MORE window classes
//
// Author: Robin Dunn
//
// Created: 22-Dec-1998
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module windows3
%{
#include "helpers.h"
#include <wx/sashwin.h>
#include <wx/laywin.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import windows2.i
%import mdi.i
%import events.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
enum wxSashEdgePosition {
wxSASH_TOP = 0,
wxSASH_RIGHT,
wxSASH_BOTTOM,
wxSASH_LEFT,
wxSASH_NONE = 100
};
enum {
wxEVT_SASH_DRAGGED,
wxSW_3D,
};
enum wxSashDragStatus
{
wxSASH_STATUS_OK,
wxSASH_STATUS_OUT_OF_RANGE
};
class wxSashEvent : public wxCommandEvent {
public:
void SetEdge(wxSashEdgePosition edge);
wxSashEdgePosition GetEdge();
void SetDragRect(const wxRect& rect);
wxRect GetDragRect();
void SetDragStatus(wxSashDragStatus status);
wxSashDragStatus GetDragStatus();
};
class wxSashWindow: public wxWindow {
public:
wxSashWindow(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D,
const char* name = "sashWindow");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
bool GetSashVisible(wxSashEdgePosition edge);
int GetDefaultBorderSize();
int GetEdgeMargin(wxSashEdgePosition edge);
int GetExtraBorderSize();
int GetMaximumSizeX();
int GetMaximumSizeY();
int GetMinimumSizeX();
int GetMinimumSizeY();
bool HasBorder(wxSashEdgePosition edge);
void SetDefaultBorderSize(int width);
void SetExtraBorderSize(int width);
void SetMaximumSizeX(int min);
void SetMaximumSizeY(int min);
void SetMinimumSizeX(int min);
void SetMinimumSizeY(int min);
void SetSashVisible(wxSashEdgePosition edge, bool visible);
void SetSashBorder(wxSashEdgePosition edge, bool hasBorder);
};
//---------------------------------------------------------------------------
enum wxLayoutOrientation {
wxLAYOUT_HORIZONTAL,
wxLAYOUT_VERTICAL
};
enum wxLayoutAlignment {
wxLAYOUT_NONE,
wxLAYOUT_TOP,
wxLAYOUT_LEFT,
wxLAYOUT_RIGHT,
wxLAYOUT_BOTTOM,
};
enum {
wxEVT_QUERY_LAYOUT_INFO,
wxEVT_CALCULATE_LAYOUT,
};
class wxQueryLayoutInfoEvent: public wxEvent {
public:
void SetRequestedLength(int length);
int GetRequestedLength();
void SetFlags(int flags);
int GetFlags();
void SetSize(const wxSize& size);
wxSize GetSize();
void SetOrientation(wxLayoutOrientation orient);
wxLayoutOrientation GetOrientation();
void SetAlignment(wxLayoutAlignment align);
wxLayoutAlignment GetAlignment();
};
class wxCalculateLayoutEvent: public wxEvent {
public:
void SetFlags(int flags);
int GetFlags();
void SetRect(const wxRect& rect);
wxRect GetRect();
};
class wxSashLayoutWindow: public wxSashWindow {
public:
wxSashLayoutWindow(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D,
const char* name = "layoutWindow");
%pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)"
wxLayoutAlignment GetAlignment();
wxLayoutOrientation GetOrientation();
void SetAlignment(wxLayoutAlignment alignment);
void SetDefaultSize(const wxSize& size);
void SetOrientation(wxLayoutOrientation orientation);
};
//---------------------------------------------------------------------------
class wxLayoutAlgorithm {
public:
wxLayoutAlgorithm();
~wxLayoutAlgorithm();
bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
};
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.1 1999/01/30 07:30:16 RD
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
//
//

View File

@@ -1,235 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wxp.i
// Purpose: SWIG interface file for a python wxWindows module
//
// Author: Robin Dunn
//
// Created: 5/22/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module wx
%{
#include "helpers.h"
%}
//----------------------------------------------------------------------
// This is where we include the other wrapper definition files for SWIG
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
%include _defs.i
%import misc.i
%import windows.i
%import events.i
%import gdi.i
%import mdi.i
%import controls.i
%import controls2.i
%import windows2.i
%import cmndlgs.i
%import stattool.i
%import frames.i
%import windows3.i
#ifndef SEPARATE
%import utils.i
#endif
%native(_wxStart) __wxStart;
%native(_wxSetDictionary) __wxSetDictionary;
//---------------------------------------------------------------------------
#define __version__ "0.5.4"
wxPoint wxPyDefaultPosition;
wxSize wxPyDefaultSize;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class wxPyApp : public wxEvtHandler {
public:
%addmethods {
wxPyApp() {
wxPythonApp = new wxPyApp();
return wxPythonApp;
}
}
wxString GetAppName();
#ifdef __WXMSW__
bool GetAuto3D();
#endif
wxString GetClassName();
bool GetExitOnFrameDelete();
int GetPrintMode();
wxWindow * GetTopWindow();
wxString GetVendorName();
void Dispatch();
void ExitMainLoop();
bool Initialized();
int MainLoop();
bool Pending();
void SetAppName(const wxString& name);
#ifdef __WXMSW__
void SetAuto3D(bool auto3D);
#endif
void SetClassName(const wxString& name);
void SetExitOnFrameDelete(bool flag);
void SetPrintMode(int mode);
void SetTopWindow(wxWindow* window);
void SetVendorName(const wxString& name);
// This one is wxPython specific. If you override MainLoop,
// call this when done.
void AfterMainLoop();
};
//----------------------------------------------------------------------
// This code gets added to the module initialization function
//----------------------------------------------------------------------
%{
extern "C" SWIGEXPORT(void,initwindowsc)();
extern "C" SWIGEXPORT(void,initwindows2c)();
extern "C" SWIGEXPORT(void,initeventsc)();
extern "C" SWIGEXPORT(void,initmiscc)();
extern "C" SWIGEXPORT(void,initgdic)();
extern "C" SWIGEXPORT(void,initmdic)();
extern "C" SWIGEXPORT(void,initcontrolsc)();
extern "C" SWIGEXPORT(void,initcontrols2c)();
extern "C" SWIGEXPORT(void,initcmndlgsc)();
extern "C" SWIGEXPORT(void,initstattoolc)();
extern "C" SWIGEXPORT(void,initframesc)();
extern "C" SWIGEXPORT(void,initutilsc)();
extern "C" SWIGEXPORT(void,initwindows3c)();
%}
%init %{
__wxPreStart(); // initialize the GUI toolkit, if needed.
// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
// Since these modules are all linked together, initialize them now
// because python won't be able to find their shared library files,
// (since there isn't any.)
initwindowsc();
initwindows2c();
initeventsc();
initmiscc();
initgdic();
initmdic();
initcontrolsc();
initcontrols2c();
initcmndlgsc();
initstattoolc();
initframesc();
initwindows3c();
#ifndef SEPARATE
initutilsc();
#endif
%}
//----------------------------------------------------------------------
// And this gets appended to the shadow class file.
//----------------------------------------------------------------------
%pragma(python) include="_extras.py";
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
// Revision 1.5 1999/02/01 00:10:41 RD
// Added the missing EVT_LIST_ITEM_SELECTED and friends.
//
// Revision 1.4 1999/01/30 07:30:16 RD
//
// Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
//
// Various cleanup, tweaks, minor additions, etc. to maintain
// compatibility with the current wxWindows.
//
// Revision 1.3 1998/12/17 17:52:21 RD
//
// wxPython 0.5.2
// Minor fixes and SWIG code generation for RR's changes. MSW and GTK
// versions are much closer now!
//
// Revision 1.2 1998/12/16 22:10:57 RD
//
// Tweaks needed to be able to build wxPython with wxGTK.
//
// Revision 1.1 1998/12/15 20:41:27 RD
// Changed the import semantics from "from wxPython import *" to "from
// wxPython.wx import *" This is for people who are worried about
// namespace pollution, they can use "from wxPython import wx" and then
// prefix all the wxPython identifiers with "wx."
//
// Added wxTaskbarIcon for wxMSW.
//
// Made the events work for wxGrid.
//
// Added wxConfig.
//
// Added wxMiniFrame for wxGTK, (untested.)
//
// Changed many of the args and return values that were pointers to gdi
// objects to references to reflect changes in the wxWindows API.
//
// Other assorted fixes and additions.
//
// Revision 1.9 1998/10/20 07:38:04 RD
// bug fix
//
// Revision 1.8 1998/10/07 07:34:35 RD
// Version 0.4.1 for wxGTK
//
// Revision 1.7 1998/10/02 06:40:44 RD
//
// Version 0.4 of wxPython for MSW.
//
// Revision 1.6 1998/08/27 21:59:10 RD
// Some chicken-and-egg problems solved for wxPython on wxGTK
//
// Revision 1.5 1998/08/27 00:00:28 RD
// - more tweaks
// - have discovered some problems but not yet discovered solutions...
//
// Revision 1.4 1998/08/18 19:48:20 RD
// more wxGTK compatibility things.
//
// It builds now but there are serious runtime problems...
//
// Revision 1.3 1998/08/15 07:36:53 RD
// - Moved the header in the .i files out of the code that gets put into
// the .cpp files. It caused CVS conflicts because of the RCS ID being
// different each time.
//
// - A few minor fixes.
//
// Revision 1.2 1998/08/14 23:36:49 RD
// Beginings of wxGTK compatibility
//
// Revision 1.1 1998/08/09 08:25:53 RD
// Initial version
//
//

View File

@@ -1,2 +0,0 @@
EXPORTS
initwxc

View File

@@ -1,2 +0,0 @@
wxpicon ICON "wxp.ico"
#include "wx/msw/wx.rc"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

Some files were not shown because too many files have changed in this diff Show More