Commit Graph

46952 Commits

Author SHA1 Message Date
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
Francesco Montorsi
f8a5d9dac6 fix wxSashEvent, wxFindDialogEvent, wxSplitterEvent to implement Clone() correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:48:26 +00:00
Francesco Montorsi
88fff2a712 use accelerators for menu items and stock menu item labels for stock IDs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:28:46 +00:00
Francesco Montorsi
90e15296e9 fix Purpose comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:24:37 +00:00
Francesco Montorsi
7e7a19f152 Fix wxCalendarEvent and wxTextUrlEvent event classes implementing Clone() correctly (as pointed out by the new runtime check)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:23:38 +00:00
Francesco Montorsi
588ba23758 don't use backspace as accelerator; at least GTK+ doesn't like it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:21:35 +00:00
Francesco Montorsi
cf2918d40e name also QueueEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 13:46:31 +00:00
Francesco Montorsi
798c0d873b do not document Clone() overloads only for some classes; Clone() is reimplemented in all event classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 13:46:00 +00:00
Francesco Montorsi
fa2370f16a remove wxClassInfo::InitializeClasses docs; that function does not exist anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 13:42:14 +00:00
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