Commit Graph

54887 Commits

Author SHA1 Message Date
Julian Smart
374ce55dca Ensure IDs don't clash with wxRichTextCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-13 17:22:58 +00:00
Julian Smart
a64f38d674 Fixed size calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-13 08:42:03 +00:00
Julian Smart
98742322cd Added wxRIBBON_PANEL_FLEXIBLE flag to allow toolbars to wrap, taking up the optimum amount of space when used in a vertical palette.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-12 19:30:10 +00:00
Stefan Csomor
4f134f0cf8 remove 10.4 compatibility code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-12 17:47:18 +00:00
Steve Lamerton
1e0b0d7c55 Add new WX_ASSERT_EVENT_OCCURS macro to improve behaviour of testing asynchronous events. Use it in the wxWebView tests and re-enable previously failing tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-12 14:57:44 +00:00
Julian Smart
7f6cf37004 Removed redundant DoEnable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-12 11:42:49 +00:00
Vadim Zeitlin
a9ed8caa09 Update the text part of combobox when changing text of selected item in wxGTK.
Add a call to SetValue() to wxComboBox::SetString() in wxGTK if the item being
changed is the currently selected one. The new behaviour is consistent with
wxMSW and also makes more sense.

Document it too to remove any doubts about what is supposed to happen in this
case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:55:19 +00:00
Vadim Zeitlin
dfb4176ac5 Add a test for wxComboBox::SetString() to the widgets sample.
This allows to easily test this function interactively, notably check what
happens when the currently selected string is changed under different ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:27 +00:00
Vadim Zeitlin
30dc2e865b Remove duplicate wxSYS_DCLICK_MSEC in wxSystemMetric documentation.
Closes #14093.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:23 +00:00
Vadim Zeitlin
daf1cbe443 Document wxGridCellCoords class.
Closes #14092.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:20 +00:00
Vadim Zeitlin
fb5117ce44 Document wxBK_HITTEST_XXX values.
They were previously implicitly documented in HitTest() itself but this was
insufficient for wrappers generation as the constants themselves were never
declared. Do define them now and also correct and update their descriptions.

Closes #14091.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:16 +00:00
Vadim Zeitlin
662ba87479 Document wxHelpSearchMode enum and its values.
Closes #14090.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-11 23:41:13 +00:00
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