Commit Graph

15354 Commits

Author SHA1 Message Date
David Elliott
a38b65ab35 * Implemented according to Apple CFSocket documentation:
kCFSocketConnectCallBack: Called in response to a successful connect() and
    of course applies to client sockets only. Fails assertion if received
    from a server socket. Calls GSocket's Detected_Write otherwise.
  kCFSocketReadCallBack: Called whenever data is available to read or in
    the event that a new connection is waiting to be accepted. Call's
    GSocket's Detected_Read.
  kCFSocketWriteCallBack: Called whenever data can be written to kernel buffer.
    Call's GSocket's Detected_Write
* Added ALL_CALLBACK_TYPES macro which specifies all of the above three.
* Added (by virtue of ALL_CALLBACK_TYPES) the kCFSocketConnectCallBack to
  the calls to CFSocketCreateWithNative and CFSocketDisableCallBacks during
  GUI socket data creation.
* Use the default flags for CFSocket which automatically reenable the
  callbacks, but continue to disable close of fd on CFSocket invalidation.
  Eventually, GSocket should allow the GUI implementation to override close
  so that we can avoid calling the > 10.2 CFSocketSetSocketFlags function.
* CFRelease the socket after invalidating it (fixes memory leak)
* When adding/removing callbacks use kCFSocketReadCallBack for server
  GSOCK_CONNECTION and kCFSocketConnectCallback for client.
* When adding/removing callbacks GSOCK_LOST should do the same thing as
  GSOCK_INPUT (Thanks Kevin Hock)
* When enabling events, do not enable kCFSocketConnectCallBack for servers.
  It should never be called anyway since connect() should never be used
  on a server socket.
* When disabling events, disable ALL_CALLBACK_TYPES.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 04:04:40 +00:00
David Elliott
1c7edd1d3c In GSocket_Destroy reorder GUI_Destroy and Shutdown when compiling for Darwin.
This is necessary to comply with the Apple documentation for CFSocket which
states quite explcitly that the CFSocket must be invalidated prior to close.

Likewise in GSocket_Read don't enable input events until we have finished
reading the data.  This is necessary because an input event will be
immediately generated but all the data will have been read by the current
callback which leads to the GSocket code thinking the connection has been
lost and when wxYield recursion is involved will lead to crashes or an assert.

Because we are doing a compile time test only for Darwin this will also
affect wxGTK running on Darwin. It appears possible for the new order to work
on all platforms but more testing would be required.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 02:49:07 +00:00
Julian Smart
1066fece29 MOre wxUSE_... fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 19:42:05 +00:00
Julian Smart
35eace3ae6 Added wxUSE_TOOLBAR, wxUSE_STATUSBAR tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 12:39:33 +00:00
Julian Smart
5671b3b68f Added comments for WinCE shortcut suggestion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 10:02:08 +00:00
Julian Smart
676d655065 Some WinCE fixes from ABX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 09:18:16 +00:00
Julian Smart
00cb0756b4 Correction for gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 13:19:44 +00:00
Ryan Norton
301deecc27 Committed Mike's Update Patch
862130 wxZlibInput/OutputStream gzip support


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 04:28:45 +00:00
Ryan Norton
d890ea0d4c size_t is always unsigned....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 22:25:48 +00:00
Ryan Norton
2b0a7c092c [ 835171 ] Show hidden files in wxGenericDirCtrl
(genericdirctrl is neat!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 15:13:15 +00:00
Julian Smart
21f6094583 Added wxPATH_NORM_SHORTCUT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:59:13 +00:00
Ryan Norton
892dd3cef3 Added another sanity check....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:54:13 +00:00
Ryan Norton
816e36172a Reversed,...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:52:02 +00:00
Ryan Norton
6f070389aa Comment....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:47:25 +00:00
Ryan Norton
5294e30a38 Added an assert...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:39:40 +00:00
Ryan Norton
7b0c29b97b 1.
Regenerated Bakefiles

2.
Added regextest sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 13:08:29 +00:00
Ryan Norton
13c3eab75a Contact info
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-20 09:05:08 +00:00
Ryan Norton
161c73a392 Noted where the documentation was
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-19 23:43:45 +00:00
Ryan Norton
e970653a2d Added some documentation :)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-19 23:32:40 +00:00
Dimitri Schoolwerth
98de2b6805 Always let (deprecated) FindColour() return a new instance of a found colour, because otherwise multiple calls to FindColour() will share the same wxColour; Added a wxLogDebug message when FindColour() is used because it shouldn't be used without modifying user-code probably (Returned wxColours must now be released).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-19 02:09:01 +00:00
Václav Slavík
539fb7a26c reverted relative include path
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 10:41:34 +00:00
Ryan Norton
e15aca7e47 Ak. Corrected wxUSE_UNICODE checking...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 10:19:27 +00:00
Ryan Norton
4ce84ac957 Oh Henry :).
He didn't implement dumpchr correctly for unicode...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 10:17:53 +00:00
Ryan Norton
86d35a4466 Added an extra c header for memcmp and stuff...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 10:12:58 +00:00
Ryan Norton
85b6c59b89 Make include path more literal for bcc...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 10:08:04 +00:00
Robin Dunn
d6071228a9 wxPython needs wxRTTI info for wxToolBarToolBase in order to return
objects of the right type.  Also made FindById public.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-17 21:12:36 +00:00
Ryan Norton
e0c749a72f 1.
Converted debug.h to C

2.
Cosmetics


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-17 19:51:03 +00:00
Ryan Norton
34cbe514cf 1.
Added Release With Debug Info to regex.dsp

2.
Added Release Unicode With Debug Info to regex.dsp and wxWindows.dsp

3.
Converted DS's C++ comments in regcustom.h and regex.h to C

4.
Converted defs.h and all headers it includes to C from C++ by
changing all C++ comments to C and using #ifdef __cplusplus to keep out C++-specific stuff.

5.
Changed wx_wchar to #define wx_wchar wxChar instead of copying wxchar.h code in regcustom.h.

6.
Changed the macros around a bit in regcustom.h.  Originally duplicated code from wx/defs.h.  Now uses SIZEOF_WCHAR_T to get the approriate data.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-17 19:30:31 +00:00
Ryan Norton
a2b9e95202 Got rid wx-license
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-17 19:00:02 +00:00
David Elliott
e1f4ff6ddc Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 19:30:41 +00:00
David Elliott
7c5fbe2a79 1. Initialize m_mouseDownTool = NULL. Fixes crash when clicking a non-tool part of the toolbar before clicking a tool.
2. Added wxAutoNSAutoreleasePool to CreateButtonCell() and Realize()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 19:28:21 +00:00
Ryan Norton
0643659a4e Commented out WXK_CONTROL....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 18:22:49 +00:00
David Elliott
6613dc3fd6 In UpdateFrameNSView size the toolbar to its best size.
When creating or setting a frame's toolbar, SetOwningFrame on it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 17:26:37 +00:00
David Elliott
7dafb55fde Very basic wxToolBar implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 15:36:56 +00:00
Julian Smart
ecd6e7ea89 Unicode compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 15:06:23 +00:00
David Elliott
a00daa65ec Use wxBitmap::GetNSImage() in wxDC::DrawBitmap. Mask support now works.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 21:07:44 +00:00
David Elliott
9c54e4ae1f Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
with or without the bitmap mask applied.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 19:30:54 +00:00
Ryan Norton
7b70a3257f reversed some parts of wxGetKeyState for linkage reasons...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 17:16:04 +00:00
David Elliott
f9c135f5ec Strip menu codes from label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 16:49:46 +00:00
David Elliott
bed6fe0c16 Wrap some functions with wxAutoNSAutoreleasePool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 16:23:29 +00:00
David Elliott
eb537cfb1c Improved idle event processing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 15:57:42 +00:00
Václav Slavík
9bfe7ad92d regenerated makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 11:42:03 +00:00
Ryan Norton
35713466d0 fix broken compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 02:21:53 +00:00
Ryan Norton
7b0f0de365 fix gcc warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 02:20:54 +00:00
Ryan Norton
c2935c26d7 Fixed tabs (i.e. turning into spaces...) Part 2...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 01:03:43 +00:00
Ryan Norton
960cb7d715 Fixed tabs (i.e. turning into spaces...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 01:02:07 +00:00
Ryan Norton
2a68dd9e19 (Fixed?) CHRBITS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:59:51 +00:00
Ryan Norton
439d344b6c Added u to end of library name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:36:44 +00:00
Ryan Norton
2ffcce508e Quick fix.....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:28:20 +00:00
Dimitri Schoolwerth
04fdd8736a Fixed Mac CodeWarrior compilation (there's no <sys/types.h>).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 00:24:35 +00:00