Commit Graph

46783 Commits

Author SHA1 Message Date
Vadim Zeitlin
7869000977 don't assert if the socket has been closed since the async notification generation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 12:08:00 +00:00
Vadim Zeitlin
41ce5eff75 fix MSVC warning about possibly uninitialized variable in Ellipsize() (which indicated possibly incorrect usage of this function)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 12:06:54 +00:00
Vadim Zeitlin
4cb591b9df document Initialize/Shutdown()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 11:45:07 +00:00
Vadim Zeitlin
b67397a779 added wxSocket::ShutdownOutput() (closes #9229)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 11:27:41 +00:00
Vadim Zeitlin
c65f4634bc ensure that WIN32 is defined, winsock2.h relies on it being defined and fails in interesting ways (by silently changing the struct alignment resulting in difficult to diagnose crashes later) if it isn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 11:01:28 +00:00
Vadim Zeitlin
c363ead1e2 remove wxSOCKET_MAX_EVENT, it is not really necessary and results in gcc warnings about unhandled enum value in switch in existing code (including our own sample)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 00:11:04 +00:00
Vadim Zeitlin
778f682e4d fix compilation due to the fact that wx/socket.h no longer includes system socket headers and so AF_INET (which we don't need here in the first place) is not defined any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 00:07:48 +00:00
Vadim Zeitlin
07a9d3f946 removed not doing anything and not compiling code from DoAssociation()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 00:01:54 +00:00
Francesco Montorsi
fad92e2f36 no real change; just reordered some implementations before real commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 23:21:13 +00:00
Vadim Zeitlin
e557577d7e mention wxEVT_GRID_CELL_CHANGED-related changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 22:05:33 +00:00
Jaakko Salli
a6353fe8f6 Update editor control font centrally, in wxPropertyGrid::RefreshEditor()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 17:58:32 +00:00
Francesco Montorsi
2ed73c7363 documented IsExtensionSupported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 16:38:41 +00:00
Francesco Montorsi
538483d8d0 add the HTML string of the selected item to wxSimpleHtmlListBox events (closes #10159)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 16:06:53 +00:00
Francesco Montorsi
84094285c5 list also wxSystemOptions next to wxSystemSettings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 15:50:46 +00:00
Francesco Montorsi
ec5984e358 document the wince.dialog.real-ok-cancel option (closes #10242)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 15:50:27 +00:00
Vadim Zeitlin
1f14508f73 add errno.h to fix Mac compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 15:20:51 +00:00
Francesco Montorsi
f7ae43f080 fix memory leak while testing for correct Clone() implementation (closes #10304)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 15:16:37 +00:00
Francesco Montorsi
d181e877b0 use a common m_isInsideYield flag instead of static booleans in all ports; add a IsYielding() test which can help to fix unwanted re-entrancies
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 15:03:39 +00:00
Vadim Zeitlin
67badd5753 build fixes for wxUSE_IPV6==1 under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 14:51:49 +00:00
Vadim Zeitlin
c9bccf239c replaced unweildy GAddress functions with wxSockAddressImpl class, similarly to GSocket -> wxSocketImpl transition; share more code between IPv4 and IPv6 branches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 14:35:48 +00:00
Francesco Montorsi
f045c7f52d done various @todo items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 14:14:39 +00:00
Francesco Montorsi
516cf181f8 add the -headerpad_max_install_names option to the screenshotgen utility to fix the buildbot builds on MacOSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 12:11:48 +00:00
Francesco Montorsi
02b4f9fd2a PCH-less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 10:41:39 +00:00
Francesco Montorsi
8f23c28713 call SetLabel() in Create() in order to run markup/ellipsization-support code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 00:39:12 +00:00
Francesco Montorsi
7d27b6263c use correct wxELLIPSIZE_* constants after r57625
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-29 00:37:50 +00:00
Francesco Montorsi
5c87527c5a move Ellipsize() to wxControl so it can be easily used by other controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 21:16:00 +00:00
Francesco Montorsi
f8f31de610 fix miscellaneous doxygen warnings; IMPORTANT: never leave empty lines inside a @beginEventTable/@endEventTable block (or similar blocks); it results in difficult-to-fix doxygen warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 19:50:21 +00:00
Francesco Montorsi
079f4130b8 no real change: rename wxPendingEvents to wxHandlersWithPendingEvents since its current name is misleading; that's not a list of events but a list of event handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 19:30:43 +00:00
Francesco Montorsi
4520d5836a refactor wxStaticText::Ellipsize so it's a static public utility function; document it and a couple of other useful functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 19:24:13 +00:00
Vadim Zeitlin
9140731891 implement DispatchTimeout() for wxOSX/Cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 14:32:49 +00:00
Vadim Zeitlin
1df4b19481 implement DispatchTimeout() for wxCocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 14:25:00 +00:00
Francesco Montorsi
41d0b41d68 no change, just add comment about wxTheColourDatabase deletion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 11:34:30 +00:00
Francesco Montorsi
eed80e5efe restore tabg.h and tabg.cpp for wxMotif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 11:32:37 +00:00
Francesco Montorsi
31c94c2987 restore tabg.cpp for wxMotif's wxNotebook implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 11:06:31 +00:00
Francesco Montorsi
d0960f6d3b fix wxPowerEvent, wxRichTextEvent and wxWizardEvent so that they pass the runtime check for correct implementation of the Clone() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 01:29:37 +00:00
Vadim Zeitlin
14372de82e move Read/Write() to common code, there was almost nothing platform-specific in it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 22:49:46 +00:00
Vadim Zeitlin
62088a3c3b wxSocketImpl::Shutdown() doesn't need to be virtual, its implementation can the same in Unix and Win32 versions (events are already disabled by Close() so there is no need to do it again explicitly under Unix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 22:03:34 +00:00
Vadim Zeitlin
7d66cdccd0 don't remove/add back the socket to the list of inputs monitored by the event loop all the time but just leave it there until the socket is destroyed; this should be beneficial from performance point of view (although hard to measure) and also makes the code simpler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 21:56:05 +00:00
Vadim Zeitlin
cf21e2fc0b remove the now unused Connect_Timeout()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 21:49:35 +00:00
Vadim Zeitlin
5e9238f9c6 remove the badle defined and apparently unnecessary wxSocketImpl::m_detected field
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 21:48:42 +00:00
Vadim Zeitlin
51566e1f98 compilation fix: use IsServer() instead of m_server directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 21:30:02 +00:00
Francesco Montorsi
6e7a89af32 (blind) fix for unneeded inclusions of headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 18:42:33 +00:00
Robert Roebling
355b0cb3c7 Add Wonderful World of wxWidgets 3.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 18:37:38 +00:00
Francesco Montorsi
3e6520282c blind fix for wxMac (notebook headers shouldn't be needed by wxStaticText)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 18:35:08 +00:00
Vadim Zeitlin
42dfe2b259 map EAGAIN to wxSOCKET_WOULDBLOCK too as tit has this meaning for read() (even though it doesn't have it for connect())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 18:01:59 +00:00
Vadim Zeitlin
64b1cea09a got rid of wxSocketBase::m_error which could get out of sync with wxSocketImpl::m_error -- one error indicator is enough
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 17:56:03 +00:00
Paul Cornett
95fa881e92 don't assert (and then crash) in wxEvent::Clone() checking code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 17:47:55 +00:00
Vadim Zeitlin
2b036c4b23 our sockets are always non-blocking anyhow so throw away all the code dealing with checking if they're blocking; also merge Unix/Win32 versions of connect() and accept() handling as they were almost identical except for the different checking of the return value which was factored out into a platform-specific GetLastError() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 17:15:22 +00:00
Francesco Montorsi
030e991d1c remove deprecated wxTabCtrl also from makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 15:26:22 +00:00
Francesco Montorsi
64afee8513 remove the long deprecated wxTabCtrl class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:58:12 +00:00