Commit Graph

11950 Commits

Author SHA1 Message Date
David Elliott
fda20787fc * _GSocket_Enable_Events() and _GSocket_Disable_Events() now call
CFRunLoopAddSource() and CFRunLoopRemoveSource() respectively.  They
  no longer call CFSocketEnableCallbacks or CFSocketDisableCallbacks.
* In _GSocket_Get_Mac_Socket() no longer disable callbacks and also do not
  add the runloop source which combined with the above change has the
  same effect as before.
* In _GSocket_GUI_Destroy_Socket() do not remove the runloop source because
  _GSocket_Disable_Events() should have and even if it didn't Mac OS X
  will clean it up in CFSocketInvalidate()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-14 02:17:16 +00:00
Julian Smart
aeb3c1cb52 Improved colours in wxUniv -- white (window colour) was
being used as the default.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-13 14:48:35 +00:00
Julian Smart
02dd0487d1 Suppress spurious icon-related log messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-13 14:45:56 +00:00
Julian Smart
b6668c257d Added extra check in case CopyFromIcon fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-13 14:37:28 +00:00
Julian Smart
73e68c1d43 Applied patch [ 838940 ] notebook labels are not shown when built with GTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 20:58:10 +00:00
Julian Smart
6c29712c64 Applied patch [ 851052 ] [msw] Clipboard: Allow automatic format conversions
By Kevin Edwards (ingenuus)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 18:41:29 +00:00
Julian Smart
ae29146343 Reverted bad fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 17:38:11 +00:00
Julian Smart
e8b7a986a6 Applied patch [ 849212 ] Sets SO_REUSEADDR flag on server sockets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 16:54:39 +00:00
Julian Smart
d3d0974f0f Applied patch [ 850483 ] Toolbar bugfix (Mac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 16:42:47 +00:00
Julian Smart
1a33ac8fb0 Applied patch [ 858324 ] Calling EndModal inside an EVT_INIT_DIALOG event handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 16:34:05 +00:00
Julian Smart
be4bd4636d Applied patch [ 837515 ] wxIPaddress + docs patch
(Ray Gilbert)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:50:10 +00:00
Julian Smart
1169a91932 Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom
(Watcom compiler doesn't like ctor implementation in headers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:33:01 +00:00
Julian Smart
b1a8a61082 Applied patch [ 864469 ] WaitForAccept(): 100% CPU Usage (NON-GUI application)
(Alex Thuering)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 14:35:46 +00:00
Julian Smart
7b519e5e0c Applied patch [ 800086 ] GridCellTextEditor wxTE_RICH misbehaving
Don't set the value of the hidden editor control (useless)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 14:28:38 +00:00
Julian Smart
1d6d8b5de0 Applied patch [ 842285 ] comparison for wxIPV4address
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 14:22:36 +00:00
Julian Smart
cfee166d4e Applied patch [ 853850 ] Fixes for wxFormatConverter
(M.J.Wetherell)
Added wxConvertFormat function in debug mode to allow for
unit testing
Added tests/formatconverter


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 14:16:32 +00:00
Julian Smart
8a094d7ba9 Applied patch [ 874495 ] wxMSW: Flat buttons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 11:47:23 +00:00
Ryan Norton
de251aef9b Removed old tests file and replaced with tcl version....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-10 10:38:46 +00:00
Julian Smart
9f4ed8613c Added wxWS_EX_BLOCK_EVENTS style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 22:20:33 +00:00
Julian Smart
c92ed9f7a7 Applied patch [ 863936 ] wxGrid scroll bars not drawn.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 15:43:29 +00:00
Julian Smart
80acaf2583 Applied patch [ 851044 ] wxGrid receives wxFocusEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 15:15:45 +00:00
Julian Smart
28764ac9d1 Applied patch [ 873021 ] Bug fix for MSW wxComboBox
wxComboBox::GetValue within a wxEVT_COMMAND_TEXT_UPDATED event
should now pass the correct value even if the handler for
wxEVT_COMMAND_COMBOBOX_SELECTED changed the selection


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 14:59:57 +00:00
Julian Smart
3da4e4bd4a Applied patch [ 866387 ] wxGenericDirCtrl does not accept multiple wildcards
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 14:44:23 +00:00
Julian Smart
3f8b4a3fbe Applied [ 872574 ] fix of fatal error of preview without printer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 08:29:59 +00:00
Ryan Norton
ec3ade90e2 Fixed include path for wx/wxchar.h on all configurations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-07 21:15:39 +00:00
Ryan Norton
f089c15051 Fixed include path for wx/wxchar.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-07 21:12:12 +00:00
Julian Smart
0a64020858 Added missing event.Skip()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-06 08:54:57 +00:00
Julian Smart
823faac334 Removed code duplication introduced during wxUniv merge in 1.132
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-03 17:58:51 +00:00
Robin Dunn
120826838f Don't use wx[H|V]SCROLL styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-02 20:41:34 +00:00
Julian Smart
af5454a410 Fixed menu creation in eVC3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-02 13:49:56 +00:00
Václav Slavík
66ff56694e removed obsolete files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-31 17:20:54 +00:00
Ryan Norton
122c9be085 removed wxUSE_BUILTIN_REGEX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-30 23:41:47 +00:00
Ryan Norton
c5feba0ea3 Cleaned up regex.cpp
fixed strlen problem in regex
many other things related to cleanup of regex.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-30 22:21:00 +00:00
Václav Slavík
e83389ff45 bad idea, fn_str() returns wchar_t on win32 in Unicode build, we need char* here no matter what
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-29 09:32:36 +00:00
Ryan Norton
15c2acd23d Added/Fixed some things in wxGetKeyState
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-28 22:46:08 +00:00
Julian Smart
d35dec9b11 Fixed missing semicolon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-28 09:44:34 +00:00
Julian Smart
a96b4743ff Added wxUSE_POCKETPC_UI to distinguish between using
combined toolbar/menubar and using separate ones


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-28 01:07:31 +00:00
Julian Smart
c0f984728e Corrected typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 22:31:01 +00:00
Julian Smart
e2c922f53f eVC4 updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 17:57:00 +00:00
Julian Smart
a40b3f5df7 Can't yet use RegisterDragDrop, RevokeDragDrop on eVC4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 17:28:13 +00:00
Julian Smart
2d36b3d847 WinCE 4 cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 17:24:00 +00:00
Václav Slavík
9d1f22e7c2 unified to use ASCII for ZIP entries and fn_str() when passing archive name to unzip.c
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 08:52:05 +00:00
Julian Smart
dac3065d25 WXK_PRIOR/WXK_NEXT are aliases for WXK_PAGEUP/WXK_PAGEDOWN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-26 11:33:15 +00:00
Ryan Norton
c4053ed35a revert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 21:53:59 +00:00
Ryan Norton
ad18ae6252 Fixed compilation and
only does mdi tests when enabled in setup.h


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 19:27:47 +00:00
Ryan Norton
010024e17e Fixed one of the two MDI problems...see comments
for possible solutions to the others.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-24 04:47:00 +00:00
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