Commit Graph

46950 Commits

Author SHA1 Message Date
Vadim Zeitlin
a8fd1047b8 need to overload assertEquals(int,short) too to resolve ambiguity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 12:32:26 +00:00
Vadim Zeitlin
bad631840c more attempts to fix CppUnit::assertEquals for VC6 without breaking everything else
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 11:59:11 +00:00
Jaakko Salli
e84ed895ea Significant check box editor refactoring, including fix to UpdateControl() not doing its job correctly if property value was unspecified. Also, unspecified value is now drawn as a faint rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 10:38:58 +00:00
Jaakko Salli
3472e2f425 Added extra RefreshEditor() call for better testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 10:37:22 +00:00
Paul Cornett
a909ef16ad build fix for GTK+ versions prior to 2.14
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 05:56:07 +00:00
Paul Cornett
173d67aa51 properly handle DC origin and scale in wxDoFloodFill()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 02:59:09 +00:00
Paul Cornett
e7f83cccd8 native implementation of DoGetPixel()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 02:58:52 +00:00
Paul Cornett
5852a1dcbb remove Rescale(), it is no longer used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 02:42:03 +00:00
Paul Cornett
02cecc4dc2 Complete rewrite of DoDrawBitmap() and DoBlit().
Blit should now correctly handle all combinations of scaling, clipping, and mask.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 02:40:11 +00:00
Vadim Zeitlin
a54b285e7c allow using CPPUNIT_ASSERT_EQUAL(int, wxFileOffset) too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-04 00:47:10 +00:00
Vadim Zeitlin
3e98ba4589 trying to fix buildbot VC6 build error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-03 19:29:46 +00:00
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