Vadim Zeitlin
2ccd2adc16
Fixes to function signatures in wxDataViewCtrl documentation.
...
Change the return type of {Append,Insert,Prepend}Column() to bool and add
missing "const" to Compare().
Closes #14089 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:09 +00:00
Steve Lamerton
e7aa703d4b
Delete buttons when we are finished so they do not overlap later controls and cause test failures.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 15:27:40 +00:00
Steve Lamerton
744d91d41f
Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 14:32:24 +00:00
Julian Smart
6c6b938377
A fix for flicker when the top-level window is disabled or enabled (e.g. by modal dialogs).
...
Achieved by using IsThisEnabled to determine the visual disabled state and thus requiring no refresh on top-level window enabling/disabling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 05:31:06 +00:00
Paul Cornett
b2596741a2
remove unused parameter
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 16:58:05 +00:00
Vadim Zeitlin
6fbdd267e5
Fix wxComboCtrl::SetHint() return type in the documentation.
...
It is now bool, not void, as for wxTextEntry::SetHint().
Closes #14083 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 14:26:26 +00:00
Vadim Zeitlin
f7754d0fde
Explicitly document wxMessageOutputFlags.
...
They were already mentioned in wxMessageOutputBest ctor documentation but now
add the standalone enum too to make the documentation header semantically valid.
Closes #14082 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 14:26:22 +00:00
Vadim Zeitlin
cda7699df7
Document wxPrintQuality and wxPRINT_QUALITY_XXX constants.
...
Closes #14081 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 14:26:18 +00:00
Vadim Zeitlin
6b5bdf3764
Fix wxDataObject::GetFormatCount() signature in the documentation.
...
It should be const but wasn't.
Closes #14080 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 14:26:15 +00:00
Stefan Csomor
3a17676321
using 10.5 API for cursor updates as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 13:13:51 +00:00
Stefan Csomor
94734b4e51
removing NSWindow based mouse tracking in favour of 10.5+ trackingArea implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 12:37:58 +00:00
Robin Dunn
b23ea17884
Document the non-deprecated version of InsertTool, and some other tweaks.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 00:01:15 +00:00
Robin Dunn
f2b6dd8c50
Make the CreateTool factories be public so they can be used from application code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 00:01:09 +00:00
Robin Dunn
db51298a74
Add wxToolBarToolBase, missing flags, etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-10 00:01:00 +00:00
Julian Smart
8d3d5f067a
Added wxRIBBON_PANEL_STRETCH to allow a single panel to stretch to fill the parent page.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 15:26:37 +00:00
Stefan Csomor
14919c7020
reflect correct position for native toolbar, fixes #14049
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 12:49:59 +00:00
Vadim Zeitlin
c1a9bcfbc5
Correct the test for wxHAS_IMAGES_IN_RESOURCES in listctrl sample.
...
wxHAS_XXX symbols need to be checked with #ifdef, not #if.
See #1614 (as this change was part of the patch submitted there, even if the
ticket itself is unrelated).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 10:12:43 +00:00
Vadim Zeitlin
1862529285
Exclude wxMSW-only code from wxUniversal build under Windows.
...
wxListCtrl::EndEditLabel() isn't available in wxUniv, it's wxMSW-only.
This fixes the sample compilation in wxUniv/MSW build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 10:12:40 +00:00
Paul Cornett
12612f29d4
add the usual default parameter for Show()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 05:50:58 +00:00
Vadim Zeitlin
1f29ecb357
Check for iterator validity when parsing "%%" in wxDateTime::Format() too.
...
This is similar to the previous commit and adds another missed check for the
iterator not being at the end of string.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 01:09:25 +00:00
Vadim Zeitlin
649148f93e
Check for end of string when parsing "%z" in wxDateTime::Format().
...
We could dereference an invalid iterator when parsing "%z", check for this in
the code and add a unit test for this case.
Closes #14075 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-09 01:09:20 +00:00
Paul Cornett
be88fea9ea
adjust Blit destination rect if source rect is clipped
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 17:06:06 +00:00
Paul Cornett
32b183b578
fix incorrect tests of wxUSE_ macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 16:45:17 +00:00
Stefan Csomor
6fc8ad6d53
removing unnecessary hook
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 15:48:51 +00:00
Stefan Csomor
20111900fa
removing 10.4 code, adding webkit trick for showing dynamic tooltips
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 15:37:40 +00:00
Vadim Zeitlin
c0430d964d
Added wxSplitterWindow::SetSashInvisible() and IsSashInvisible().
...
Also fix handling of wxSP_NOSASH.
Closes #14074 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 13:23:39 +00:00
Vadim Zeitlin
81f2b2ee81
Revert the zoom direction on Ctrl-mouse wheel in wxStyledTextCtrl.
...
The direction of the zoom in wxSTC didn't correspond to the usual conventions
which is to zoom in on Ctrl-Wheel-Up and zoom out on Ctrl-Wheel-Down, while
wxSTC did exactly the converse. Change it to behave as everybody else.
Closes #14031 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-08 13:23:34 +00:00
Vadim Zeitlin
e94f303173
Deprecate wxWindow::MakeModal().
...
Using this function was never the right way to show a modal window and it
didn't really work correctly. Instead of futilely trying to fix it, just
deprecate it.
Closes #1561 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-07 23:50:21 +00:00
Václav Slavík
fca74306c5
Don't eat unhandled events in wxHtmlWindow::OnKeyUp().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-07 16:15:11 +00:00
Julian Smart
26412151db
When SetSplitterLeft measures all pages, it should also set the splitter for all pages.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-07 12:21:20 +00:00
Julian Smart
69f270e0f3
wxCB_SORT not currently supported on OSX/Cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 16:59:39 +00:00
Vadim Zeitlin
72dc73023f
Mention the limitations of wxDC::GetPixel() and FloodFill() in wxGTK.
...
These methods can't be used directly on wxPaintDC in wxGTK and it doesn't seem
possible to fix this so just document this limitation.
Closes #14067 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 14:19:29 +00:00
Stefan Csomor
c118fa5f20
catching veto AND handled events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 13:18:22 +00:00
Stefan Csomor
0cbcb12d8f
adapting grid-cell dragging according to discussion on wx-dev along the behaviour of treecontrolg
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 10:23:44 +00:00
Paul Cornett
e0564c1c2f
fix test for transparent pen broken in r65820
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 04:51:40 +00:00
Paul Cornett
d9a1b21859
avoid using wxDC::Blit() and wxDC::GetPixel() on window that is being painted, results are unpredictable on wxGTK
...
see #14067
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-06 04:26:33 +00:00
Julian Smart
944a0ae011
It should be possible to set a null bitmap without asserting due to change of size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 18:26:20 +00:00
Julian Smart
a74fd54602
Restored correct RTTI for wxNotebook
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 18:00:34 +00:00
Vadim Zeitlin
483bf4a629
Override InheritAttributes() to do nothing in wxNonOwnedWindow.
...
Non owner windows shouldn't inherit attributes from their parent. This wasn't
a problem in wxMSW where InheritAttributes() was never called for them but was
in wxGTK (and possibly other ports) where dialogs inherited font from their
parent.
Closes #2766 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 13:00:57 +00:00
Vadim Zeitlin
bddea8d14f
Override AdjustForParentClientOrigin() in wxNonOwnedWindow to do nothing.
...
No real changes, just replace an IsTopLevel() check in the base class
implementation of AdjustForParentClientOrigin() and override it for all top
level windows in wxNonOwnedWindow instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 13:00:55 +00:00
Vadim Zeitlin
c6907dcd41
Remove the wrong "std::" scope prefix before ceil() call.
...
Fix compilation errors with VC6 (and possibly other compilers) introduced in
r70797 (see #13383 ): as we only include <math.h> and not <cmath> we don't
necessarily have std::ceil() available, only the extern "C" ceil(). Just use
the latter instead of the former.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 13:00:51 +00:00
Stefan Csomor
637ea0080f
coordinate conversion was the wrong way round
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-05 06:10:19 +00:00
Paul Cornett
0a7e80ec29
remove unnecessary includes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 23:50:35 +00:00
Vadim Zeitlin
bb5a951418
Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2).
...
This is continuation of r70796 and serves the same purpose.
Closes #14065 , #14066 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:42 +00:00
Vadim Zeitlin
3a1ec1d5dc
Add wxEVT_AUI_PANE_ACTIVATED event.
...
This event is sent when an AUI pane becomes active.
Closes #14026 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:34 +00:00
Vadim Zeitlin
fc5a609912
No changes, just make wxAUI SetActivePane() a member function.
...
Make a global function a member one as it uses member variables and it's
easier to use them directly instead of passing the object pointer to it all
the time.
See #14026 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:29 +00:00
Stefan Csomor
87381108c8
we have to export every virtual method in this template class for clang, next attempt to get a vc++ compatible solution
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 09:42:51 +00:00
Vadim Zeitlin
865dab5da9
Revert the addition of WXDLLIMPEXP_CORE to all wxNavigationEnabled methods.
...
This reverts commit r70787 as it broke DLL build with MSVC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:43:19 +00:00
Vadim Zeitlin
acfe040282
Turkish translations update from Kaya Zeren.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:31:36 +00:00
Vadim Zeitlin
d890beb9c8
Use standard IDC_CROSS cursor in wxMSW.
...
There doesn't seem to be any reason to prefer our own WXCURSOR_CROSS to it.
Closes #13035 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:58 +00:00