Commit Graph

51027 Commits

Author SHA1 Message Date
Robert Roebling
65887bd0f1 Second try to get wxDataViewChoiceByIndex and its name right, hopefully fixes #11970: wxDataViewChoiceRenderer set/get methods should use the current selection
index not a string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 20:13:49 +00:00
Vadim Zeitlin
ea58481248 Document wxDocManager::CloseDocument().
CloseDocuments() was documented but not CloseDocument(), this probably wasn't
intentional.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 15:25:43 +00:00
Vadim Zeitlin
efb0918296 Minor corrections to wxFont size-changing methods.
Closes #11959.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 13:17:36 +00:00
Vadim Zeitlin
b5e97a17b1 Erase the column label background in wxGrid to avoid display artefacts.
Apparently the column label text is not always drawn correctly when double
buffering is used, so erase the background completely before drawing the text.

Unfortunately this might result in flicker but presumably correct display is
more important.

Closes #12055.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 13:17:30 +00:00
Vadim Zeitlin
417b8fcc49 Use ListView_CancelEditLabel() to implement wxListCtrl::EndEditLabel().
Windows XP and later finally added a special message to cancel label editing,
use it if available.

Also improve the documentation of this method.

See #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 13:17:25 +00:00
Vadim Zeitlin
f2b504977d Always define SIZEOF_WCHAR_T if it's not defined under Windows.
The assumption that SIZEOF_EVERYTHING_ELSE is defined when SIZEOF_INT is is
wrong. While wxWidgets configure does define all SIZEOF_XXX at once,
SIZEOF_INT could also be defined in some third party headers (e.g. Python.h)
and we still need to define the other ones.

In particular, doing this fixes the problem with SIZEOF_WCHAR_T not being
defined during wxPython build.

Closes #12013.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 12:52:12 +00:00
Vadim Zeitlin
ebfee17940 Simplify and correct MSW selection of background brush for children painting.
Check for the transparency of the window background in MSWGetBgBrush() itself
and let MSWGetBgBrushForChild() just return the brush to be used.

This required adding a MSW-specific hack to wxPanel to allow inheriting
background of wxNotebook by its children which is slightly ugly but is exactly
what we need to do in this case and makes the rest of the code much simpler.

Also add a possibility to set the background of the page containing the
control being tested to the widgets sample to test for background inheritance.
This shows problems with wxSlider and wxRadioBox backgrounds but they're not
new with this patch.

Closes #12057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 12:51:20 +00:00
Vadim Zeitlin
d3eb13d2aa Fix focus debugging in the controls sample.
A wrong format string was used in Printf() resulting in useless output.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 12:51:14 +00:00
Vadim Zeitlin
52212bcb4a Yet another fix to event propagation in scrolled windows.
Calling ProcessEventLocally() didn't work because the command events were not
propagated to the parent window any more, breaking a lot of things including
wxDataViewCtrl event generation in the generic version. So do restore
ProcessEvent() call but use it on the next handler (i.e. the window itself)
and not this one now. This still results in some duplicate calls but at least
the events should be passed everywhere where they are expected to arrive.

wxScrollHelperEvtHandler must die.

Closes #12078.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 12:07:45 +00:00
Vadim Zeitlin
74035a191b Fix cast from pointer to int in wxDataViewCtrl.
This fixes compilation in 64 bit.

Closes #12073.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-21 11:46:13 +00:00
Vadim Zeitlin
747eb0f686 Fix wxListCtrl::EndEditLabel() which simply didn't work.
Also document it (even though it's wxMSW-only for now) and add a test for it
in the sample.

Closes #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 22:04:03 +00:00
Stefan Csomor
212e8ef365 fixing infinite recursion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 19:30:58 +00:00
Stefan Csomor
2059576f48 def include was missing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 18:50:39 +00:00
Stefan Csomor
9dd8973671 adding more infos, links
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 18:43:55 +00:00
Robert Roebling
559c42a5b2 Make GetIndexOf() and get_path() work for virtual list models, fixes #12073: wxDataViewCtrl crashes when deleting an item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 18:39:20 +00:00
Stefan Csomor
caec2e7835 adding building iphone projects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 18:06:59 +00:00
Stefan Csomor
afd5d91cae support compiling for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 17:58:38 +00:00
Stefan Csomor
80a12bd878 adding all iphone files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 17:56:39 +00:00
Vadim Zeitlin
ce45133ee7 Fix wxScrollHelperEvtHandler broken by recent changes to event processing.
Use ProcessEventLocally() added in r64261 (which was probably the one to break
this) to forward event to the window itself instead of ProcessEvent() in
wxScrollHelperEvtHandler::ProcessEvent() implementation. Calling ProcessEvent()
didn't work any more in a case when another event handler was pushed on a
wxScrolledWindow: in this case the EVT_SIZE and EVT_PAINT handlers defined in
the window itself were not called at all any more.

Add a unit test checking for the even more tortuous than usual event
processing path in this particular case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 17:33:26 +00:00
Stefan Csomor
55a0f1e303 adding support for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 16:36:16 +00:00
Stefan Csomor
68388fdd67 fixing copy paste error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 12:39:08 +00:00
Stefan Csomor
dfdad1f936 adapting to new API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 12:06:48 +00:00
Stefan Csomor
3bfba421c7 utils_osx isn't part of base but of core, moving wxMacWakeUp to a file that really is in base
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-20 06:09:10 +00:00
Vadim Zeitlin
d9c83ba829 Document that wxWindow::FindWindowByXXX() functions may return NULL.
This seems obvious but apparently isn't completely so to everybody.

Closes #12074.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 21:03:49 +00:00
Stefan Csomor
4919fd67c7 not needed anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 13:39:56 +00:00
Stefan Csomor
508610f081 moving wxMacWakeUp outside COCOA_CARBON clause, fixes #12068
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 13:38:19 +00:00
Vadim Zeitlin
d00167e101 Document wxHTTP::SetPostBuffer().
Closes #12040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 12:36:36 +00:00
Vadim Zeitlin
e97cbf8398 No changes, just add a comment.
There is no need to reproduce wxBase64Encode() in wxHTTP code, should just use
the existing function instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 12:36:32 +00:00
Vadim Zeitlin
5ba5f32918 Document wxHTTP::Connect(wxSockAddress) overload.
See #12040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 12:36:28 +00:00
Stefan Csomor
cef3ca4ff7 splitting methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 08:27:35 +00:00
Stefan Csomor
cc96f52525 common wxMacWakeUp code across all platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 08:26:59 +00:00
Stefan Csomor
58e74b83b1 common wxMacWakeUp code across all platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 08:25:48 +00:00
Stefan Csomor
1020adb5f5 adding methoddefs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 07:25:46 +00:00
Stefan Csomor
4b77e661be set default resolutions in case of errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 07:24:16 +00:00
Stefan Csomor
b79aa5000f using wx dynamic cast
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 07:23:33 +00:00
Stefan Csomor
6d70083b3e removing unused var
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 07:21:34 +00:00
Stefan Csomor
8d7ecd336a missing commit, fixes #12067
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-19 07:18:23 +00:00
Vadim Zeitlin
4d4363d200 Add AM_PATH_WXRC to wxwin.m4 for backwards compatibility.
Although the new WXRC_CHECK is preferred, still allow using AM_PATH_WXRC for
the applications which need to build in both 2.8 and 2.9 environments.

Closes #12069.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-18 10:29:58 +00:00
Vadim Zeitlin
ff46415213 Compilation fix for wxUSE_LOG_DEBUG==0 case.
Don't do anything in wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() if we don't
use debug logging anyhow.

Closes #12070.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-18 10:29:52 +00:00
Robert Roebling
79a53c39db Added quick implementation of wxDataViewChoiceByIndexRenderer, closes #11970 (wxDataViewChoiceRenderer set/get methods should use the current selection index
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:52:35 +00:00
Francesco Montorsi
45cb70531f remove TestTimer() (adds nothing to existing tests) and move wxStopWatch tests to a new CppUnit test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:44:17 +00:00
Robert Roebling
5d947bc835 No-PCH compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:36:14 +00:00
Francesco Montorsi
210bfffb97 move TestUtf8() and TestEncodingConverter() functions to UnicodeTestCase. Disable some code which does not run clean and mark it with FIXME comments (needs revision).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:32:41 +00:00
Robert Roebling
f4fcd64832 Part II of: Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:29:35 +00:00
Robert Roebling
6bb6cc1e4b Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 15:26:57 +00:00
Francesco Montorsi
4e36548428 remove ZIP tests: they seem to have been greatly expanded and enhanced by tests/archive/archive.cpp and tests/archive/ziptest.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 14:53:11 +00:00
Robert Roebling
0bddfd416f Don't call super class explicitly so overriding is possible, closes #12025 (wxDataViewVirtualListModel calls super-class' version of certain virtual methods).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 14:44:58 +00:00
Francesco Montorsi
91ee2f3520 remove wxDateTime tests which were already extracted as tests/datetime/datetime.cpp (keep only the interactive test)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 14:36:16 +00:00
Francesco Montorsi
3dea816bd2 move TestTextInputStream() function in CppUnit's TextStreamTestCase class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 14:31:00 +00:00
Robert Roebling
3f6e622f7c Applied #11755: wxBitmapToggleButton Xml Handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-16 14:30:13 +00:00