Commit Graph

46939 Commits

Author SHA1 Message Date
Vadim Zeitlin
05b9332789 don't use IPC from timer callback as this results in reentrancies in socket code, postpone it until the next idle handler call instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 02:21:12 +00:00
Vadim Zeitlin
0ed00ab5be restore code preventing the events being generated from inside our own DoRead/Write() mistakenly removed in r57796
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 02:20:25 +00:00
Vadim Zeitlin
a12698abb7 added wxFDIODispatcher::HasPending() and implemented correctly wxConsoleEventLoop::Pending() using it to fix the pending events processing in console event loop based programs; also changed wxFDIODispatcher::Dispatch() return type/value to be able to indicate the errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 01:21:24 +00:00
Bryan Petty
247b70c6c7 Updated translations manual page with latest status given by the website translations page (which should be completely up-to-date).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 01:17:36 +00:00
Vadim Zeitlin
e169ac8108 properly restart epoll_wait() if it got interrupted by a signal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 00:11:28 +00:00
Vadim Zeitlin
14eb37a05e call ProcessPendingEvents() from wxAppConsoleBase::ProcessIdle() too, not only from wxAppBase::ProcessIdle(); do not call it from wxConsoleEventLoop::Dispatch() as this results in unwanted reentrancies in the socket code when using it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 22:18:10 +00:00
Vadim Zeitlin
ebbf740764 streamline handling of wxSOCKET_LOST in DoWait()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 22:07:45 +00:00
Vadim Zeitlin
f26d81383f no changes, just reformat/indent consistently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 21:58:09 +00:00
Vadim Zeitlin
df21920b80 disable the events when we get a notification about socket being ready for IO and reenable them later after performing the IO in the Unix version to avoid continuous flood of ready notifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 21:53:30 +00:00
Paul Cornett
41285bc82f fix GCC warning "suggest explicit braces..."
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 18:10:10 +00:00
Vadim Zeitlin
365b8793d3 use guard classes automatically restoring the old state in their dtor instead of manually changing wxSocketBase::m_reading/writing/flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 17:34:16 +00:00
Paul Cornett
9d77a075c0 fix header dependancy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 17:29:32 +00:00
Vadim Zeitlin
39b61b0581 rename wxSocketSelectManager to wxSocketFDIOManager, the old name was confusing as it could be either select()- or epoll()-based
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 16:59:23 +00:00
Vadim Zeitlin
6f405b31b2 fix WaitForXXX() to work as before: if the socket is already ready for reading/writing they should return immediately
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 01:00:40 +00:00
Vadim Zeitlin
38418fdeae show the string received from client in test 2 correctly; use TestLogger just as in the client; use wxCharBuffer instead of manual new/delete
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 00:59:20 +00:00
Vadim Zeitlin
9c22ef28b0 add accelerators for the other menu commands; plug memory leak in OnTest3(); use wxCharBuffer instead of manual new/delete to avoid leaks in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 00:44:32 +00:00
Vadim Zeitlin
7ea70b6f0f don't call DoWrite() if we have nothing to send (not nothing to receive)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 00:04:55 +00:00
Vadim Zeitlin
0f359e5ccf fix a bug in EventWorker::DoRead(): if both signature and the size of the incoming data were not received during the same read, the signature byte was lost and overwritten by size during the next read
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 23:56:52 +00:00
Vadim Zeitlin
c3bcb48f26 LogWorker() was always called with m_peer as first argument so make it a member function to avoid having to pass it all the time to it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 23:53:51 +00:00
Vadim Zeitlin
e2bcc7813c no changes, just reformat and avoid unnecessary uses of wxString::Format()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 23:49:07 +00:00
Vadim Zeitlin
6e1f851b17 also add wxSizer::IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 23:25:37 +00:00
Vadim Zeitlin
2f39b5a33e make the new GetItemCount() const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 23:23:54 +00:00
Robert Roebling
6b527e158d Added wxSizer::GetItemCount()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 22:05:29 +00:00
Robert Roebling
63d798fdb6 Correct wx-config's output of base libs for OSX ports (don't include the _carbon/_cocoa)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 22:04:17 +00:00
Vadim Zeitlin
8dc5f051c7 VC6 doesn't support using keyword (closes #10322)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 17:08:41 +00:00
Vadim Zeitlin
6edd82502e update copyright year to 2009 (closes #10319)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 15:18:40 +00:00
Vadim Zeitlin
440d3d2a1f VC6 compilation fix after r57689 (closes #10318)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-01 15:17:05 +00:00
Francesco Montorsi
67f30682ce replace dynamic_cast<> with wxDynamicCast
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 18:52:32 +00:00
Francesco Montorsi
fd3ece5784 remove tabs added by error in previous commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 17:31:32 +00:00
Kevin Ollivier
953e84ddd1 Fix for OS X Cocoa build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 17:17:20 +00:00
Francesco Montorsi
54e18afcca allow the user to pass NULL for the status widths; this was a feature supported by generic and MSW status bar but was not documented; document it; add menu item in the statbar sample for testing it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 17:07:30 +00:00
Vadim Zeitlin
2ffeccb3b7 compilation fix after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 15:27:00 +00:00
Vadim Zeitlin
e9bef30205 customize the rearrange dialog even more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 14:39:38 +00:00
Vadim Zeitlin
5a5f305a0f make wxRearrangeDialog more customizable and add an example of customizing it to the dialogs sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 14:26:52 +00:00
Vadim Zeitlin
5b8b2c84f7 added SetLabelText() and EscapeMnemonics()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 14:14:07 +00:00
Vadim Zeitlin
ae7e6cc946 added default ctor and Create() to wxRearrangeDialog for consistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 13:27:28 +00:00
Francesco Montorsi
a37d94d3e1 build fix for wxMSW statusbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 13:08:12 +00:00
Francesco Montorsi
7b6fefbed1 get rid of the wxListString class in wxStatusBar code; introduce a wxStatusBarPane class which enormously simplifies the code handling stacks/widths/styles of panes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 12:28:05 +00:00
Vadim Zeitlin
6f97a0d599 compilation fix for LoadFile(name, type) calls which became ambiguous after the base class LoadFile() unhiding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-31 11:50:05 +00:00
Francesco Montorsi
c0c5bfad17 document wxEVT_NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 23:56:04 +00:00
Vadim Zeitlin
169f96cdf7 include errno.h for ENOMEM (closes #10309)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 23:30:09 +00:00
Vadim Zeitlin
ddd0db9619 extract AddColumnsItems() from ShowColumnsMenu() to make it possible to reuse it in custom menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 23:19:06 +00:00
Francesco Montorsi
30767dfe33 fix documentation for wxList and wxNode; doxygen see them as templates and the @class command confuses it; add link to C++ std::list docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 18:22:24 +00:00
Francesco Montorsi
94802614d1 no real change; make more readable the Aliases section
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 18:19:49 +00:00
Vadim Zeitlin
7047d7981f handle exceptions thrown from overridden wxView::OnCreate() gracefully
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 16:36:39 +00:00
Vadim Zeitlin
f17632706e handle loss of connection explicitly in Read/Write() to fix socket IO under Unix after the last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 15:07:04 +00:00
Vadim Zeitlin
f98f168e6c compilation fix for g++ which doesn't like using wxLogMessage in wxON_BLOCK_SCOPE_EXIT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 15:06:34 +00:00
Vadim Zeitlin
f539560019 try reading/writing to/from the socket before blocking on it, this seems more efficient and is required to avoid blocking indefinitely under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 14:50:23 +00:00
Vadim Zeitlin
9940bebff4 more doc fixes, to wording and to return types ('&'s have been lost)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 14:49:24 +00:00
Vadim Zeitlin
ee533e88db try to explain socket flags better (although bad ideas don't become good even when explained correctly...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 14:36:07 +00:00