Commit Graph

46725 Commits

Author SHA1 Message Date
Francesco Montorsi
e47859daeb fix wxTimerEvent and wxTreeCtrl to use IMPLEMENT_DYNAMIC_CLASS macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 13:40:49 +00:00
Francesco Montorsi
f775771ab4 implement a runtime check to test if wxEvent::Clone is implemented correctly for all wxWidgets events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 13:38:40 +00:00
Vadim Zeitlin
9f4204f7ee make the test really use the different socket flags and disable the use of wxSOCKET_NOWAIT as some tests fail in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:41:30 +00:00
Vadim Zeitlin
437a8892a1 set m_closed to true when we get connection lost notification
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:39:46 +00:00
Vadim Zeitlin
91bde3ec3e more CPPUNIT_ASSERT replacements with CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:22:59 +00:00
Vadim Zeitlin
1156062f77 also include wxSocket test in the GUI test as different event loop implementations may be used for console and GUI apps resulting in different bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:14:10 +00:00
Vadim Zeitlin
8d8087fc9b make the test really use the event loop in its second half (this already was the intention before but it didn't work correctly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:12:47 +00:00
Vadim Zeitlin
564c7fc412 implement wxEventLoop::DispatchTimeout() for wxGTK (thanks Paul) and rewrote it to not use wxEventLoopImpl which it doesn't need
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:01:39 +00:00
Francesco Montorsi
e5794f50e7 do not use @b when referencing to functions; use final () to enable doxygen autolink
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 10:20:33 +00:00
Francesco Montorsi
f62c55815f use HasFlag(wxXX) instead of GetWindowStyle() & wxXX; it's more readable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 10:15:28 +00:00
Francesco Montorsi
790d7a2576 autolink CreateButtonSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 10:14:18 +00:00
Vadim Zeitlin
735ac2bc94 also initialize option value length before calling getsockopt()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 00:21:28 +00:00
Vadim Zeitlin
f16ba4bb7e initialize name length before calling getsockname()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 00:19:37 +00:00
Vadim Zeitlin
9c26672d4d move generic DispatchTimeout() implementation in the header as evtloopcmn.cpp is part of wxBase and so can't define a method of a wxCore class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 00:04:57 +00:00
Vadim Zeitlin
6e7fd3ca03 test sockets both with and without event loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:58:20 +00:00
Vadim Zeitlin
952f427728 PCH-less compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:51:51 +00:00
Vadim Zeitlin
00414faf34 use DispatchTimeout() and/or select() with timeout instead of polling loop in wxSocket::DoWait()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:50:50 +00:00
Vadim Zeitlin
9af42efda6 added wxEventLoop::DispatchTimeout()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:28:34 +00:00
Vadim Zeitlin
aa8cbe0b64 return true if we did anything in NotifyExpired()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:27:02 +00:00
Vadim Zeitlin
22185a1f15 remove m_use_events from Unix wxSocket implementation, we always need asynchronous socket notifications now (and this was always the case under Windows anyhow), even if we don't always generate wx events corresponding to them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 20:20:46 +00:00
Jaakko Salli
f521bae665 Have wxPGTextCtrlEditor::UpdateControl() update wxTextCtrl font boldness based on property's modified-status
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 18:46:08 +00:00
Vadim Zeitlin
2f1c8faf2c we don't need to use select() in DoWait() if we're receiving notifications about changes on our socket anyhow, this makes the code less efficient and, most importantly, much more confusing than necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 14:39:04 +00:00
Vadim Zeitlin
5c1193e090 remember the events we were notified about in OnRequest() (not used yet but necessary for upcoming changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 14:33:52 +00:00
Vadim Zeitlin
78014c105d don't use function syntax which /bin/sh doesn't grok
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 13:42:30 +00:00
Francesco Montorsi
6b6663be88 don't use dot in brackets as doxygen renders dot with a line break
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 12:24:18 +00:00
Vadim Zeitlin
74a3342702 correct typo in one of the last changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 00:01:17 +00:00
Robert Roebling
1a27a87d53 Only test for centre flag of minor direction and ignore the other in wxBoxSizer (as before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 22:05:29 +00:00
Robert Roebling
e66a89eda9 Avoid redraw artifacts from the border after resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 20:40:24 +00:00
Vadim Zeitlin
5b90e570c9 use INVALID_SOCKET instead of -1 to avoid signed/unsigned comparison warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 20:28:14 +00:00
Vadim Zeitlin
c6b1063250 refactor Input/Output_Timeout: don't duplicate the same code in MSW/Unix code and also don't duplicate it for input and output, one function is enough for both
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 20:27:35 +00:00
Vadim Zeitlin
e8d9821d75 remove the ugly INSTANCE macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 20:06:53 +00:00
Vadim Zeitlin
d8abb95f4a more wxSocket code wx-ification: use wxDynamicLibrary instead of raw Win32 calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 20:03:15 +00:00
Vadim Zeitlin
9508a3e9a0 mingw32 typedef's and not define's SOCKET so test for __WXMSW__ before redefining it ourselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 19:52:00 +00:00
Vadim Zeitlin
de4c659eda remove USE_SYS_TYPES_FD_SET definition which is already present in include/wx/msw/private/sockmsw.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 19:33:33 +00:00
Vadim Zeitlin
f2c94e8af5 use wxCriticalSection instead of CRITICAL_SECTION and, more importantly, wxCSLocker instead of manually entering/leaving it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 19:32:12 +00:00
Vadim Zeitlin
116de99148 merge msw/gsocket.cpp into msw/sockmsw.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 19:12:43 +00:00
Vadim Zeitlin
2606716181 rename gsockmsw files to sockmsw
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 19:10:46 +00:00
Vadim Zeitlin
b158f13e16 avoid bakefile warnings about actions unsupported in MSVS formats by not using them in this case (this doesn't change the generated project files anyhow)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 18:49:29 +00:00
Vadim Zeitlin
bb20575e6e rename gsockmsw files to sockmsw
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 18:41:13 +00:00
Vadim Zeitlin
78c369345d reverted f57547, NET_PLATFORM_HDR is used inside msvc-header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 18:37:20 +00:00
Vadim Zeitlin
c80e740726 remove NET_PLATFORM_HDR which was unused and is unneeded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 18:32:09 +00:00
Vadim Zeitlin
07792edb2e use void pointers, not char ones, in socket IO functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 18:29:08 +00:00
Vadim Zeitlin
e03e94b037 fix wxURL::GetInputStream() for URLs with special characters in credentials (closes #10265)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 17:03:20 +00:00
Vadim Zeitlin
b0e87e57c3 use wxSUPPRESS_DOLOG_HIDE_WARNING to suppress warnings about hiding base class DoLog() overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 16:47:33 +00:00
Vadim Zeitlin
e4de7a7759 don't use the client data for storing wxOwnerDrawn in wxCheckListbox implementation as we already store them in internal array anyhow, this allows the user to use his own client data with wxCheckListbox (#10290)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 13:10:55 +00:00
Vadim Zeitlin
9f2968ad0b make colours used by list and tree controls more consistent with the system theme settings; also use the correct colour for the status bar (closes #10089)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 13:03:24 +00:00
Vadim Zeitlin
0aa619b532 unhide the second wxTextAreaBase::HitTest() overload to suppress a warning about it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 12:45:59 +00:00
Vadim Zeitlin
6ecc02f354 fix/suppress warning about hiding base class Load(wxURI,wxURI) overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 12:41:01 +00:00
Vadim Zeitlin
040745d7fc don't use deprecated OnScroll()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 12:38:58 +00:00
Vadim Zeitlin
bc448be341 make Scroll() itself virtual too as existing code might override it (but new code should override DoScroll() only); use the same access in the derived classes as in wxScrollHelperBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-25 12:27:20 +00:00