Julian Smart [Wed, 4 Jan 2012 16:32:08 +0000 (16:32 +0000)]
Implement missing wxTextBoxAttr::IsDefault function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70266
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Jan 2012 15:53:08 +0000 (15:53 +0000)]
More pt_BR translations from Felipe.
All the messages are now translated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70265
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 4 Jan 2012 14:41:29 +0000 (14:41 +0000)]
Possible fix for #13821: wxRichTextCtrl using 100% CPU
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70264
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 4 Jan 2012 14:00:29 +0000 (14:00 +0000)]
Background now drawn within the border instead of beyond the margin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70263
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Jan 2012 13:39:23 +0000 (13:39 +0000)]
Fix wxRibbon compilation when wxUSE_TOOLTIPS==0.
Add wxUSE_TOOLTIPS tests after the changes of r70175.
Closes #13827.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70262
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 4 Jan 2012 12:50:47 +0000 (12:50 +0000)]
Fixed border drawing bug when width is more than 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70261
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Wed, 4 Jan 2012 10:42:11 +0000 (10:42 +0000)]
Update makefile for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70260
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 4 Jan 2012 07:54:00 +0000 (07:54 +0000)]
fixes #13826
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70259
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Jan 2012 23:27:50 +0000 (23:27 +0000)]
Fix wxEncodingConverter::Convert(wchar_t) documentation.
This method mistakenly "inherited" the same documentation as 2 argument
Convert() overloads.
Closes #13825.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70256
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 3 Jan 2012 15:24:20 +0000 (15:24 +0000)]
Disable drag and drop if the control is not editable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70254
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 3 Jan 2012 14:09:34 +0000 (14:09 +0000)]
Applied #13819: wxRTC drag and drop, by dghart, with tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70253
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 3 Jan 2012 10:53:12 +0000 (10:53 +0000)]
fixes #13695
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70252
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 3 Jan 2012 10:34:14 +0000 (10:34 +0000)]
adapting to new raw_control constants, see #13695
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70251
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Jan 2012 00:44:47 +0000 (00:44 +0000)]
Fix child selection in multi-selection generic wxTreeCtrl.
The children which are not currently shown on the screen shouldn't be affected
by Shift-selecting in multi-selection control.
Closes #1312.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70249
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Jan 2012 00:40:32 +0000 (00:40 +0000)]
Improve links in wxAuiManager flags documentation.
Use @param tags and "::" to link enum name.
Closes #13689.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70248
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Jan 2012 00:40:27 +0000 (00:40 +0000)]
Document wxIMAGE_OPTION_CUR_HOTSPOT_[XY] in wxCursor ctor.
These options were already mentioned in wxCursor documentation but not
prominently enough, so mention them explicitly in the documentation of
wxCursor ctor from wxImage.
Closes #13820.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70247
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Jan 2012 00:40:22 +0000 (00:40 +0000)]
Correct documentation of supported cursor sizes under wxOSX.
wxOSX/Cocoa seems to support cursors of any size and with colours.
Closes #12614.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70246
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Mon, 2 Jan 2012 22:28:51 +0000 (22:28 +0000)]
Be a little smarter about choosing the default SDK to use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70241
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 2 Jan 2012 21:18:05 +0000 (21:18 +0000)]
Added a box style definition name to the box attribute.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70233
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Bryan Petty [Mon, 2 Jan 2012 01:32:20 +0000 (01:32 +0000)]
Fixed javascript errors in CHM version of the manual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70231
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 30 Dec 2011 17:22:11 +0000 (17:22 +0000)]
When the focus object changes, the old selection should be
cancelled explicitly to avoid seeing multiple selections until the next
refresh.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70203
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 30 Dec 2011 17:12:37 +0000 (17:12 +0000)]
Split up the context menu functionality to make it easier to customise.
Tweaked style combobox popup border.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70202
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 30 Dec 2011 14:28:13 +0000 (14:28 +0000)]
Implement wxDataViewModel::IsEnabled() support in generic implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70201
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 30 Dec 2011 06:14:17 +0000 (06:14 +0000)]
Interface fixes and tweaks for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70200
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 23:39:27 +0000 (23:39 +0000)]
Update wxGrid unit tests after r70177.
The row/column selection is not stored in the block arrays, see #12638.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70194
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:11:11 +0000 (22:11 +0000)]
Allow using '(' and ')' in wxFileConfig entry names unescaped.
There is no real reason to escape the parentheses in the key entries, they're
not special.
Closes #13584.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70184
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:50 +0000 (22:05 +0000)]
Document wxAuiManager styles and flags.
Closes #13689.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70183
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:46 +0000 (22:05 +0000)]
Disable VC8+ deprecation warnings for standard functions at bakefile level.
We already define the symbols needed to disable the warnings in wx/defs.h but
this isn't enough for third party code not including it, so define them in the
project settings directly.
Closes #11009.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70182
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:39 +0000 (22:05 +0000)]
Add wxRibbonButtonBar::InsertXXXButton() methods.
Allow inserting buttons into the ribbon bar and not only appending them.
Closes #13811.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70181
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:34 +0000 (22:05 +0000)]
Allow using wxEVT_UPDATE_UI with wxRibbonButtonBar.
Generate wxUpdateUIEvent for the ribbon buttons to allow updating their state
using wxEVT_UPDATE_UI. Also update the same to show this.
Closes #12003.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70180
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:31 +0000 (22:05 +0000)]
Don't send idle events to the windows about to be destroyed.
This is useless and can apparently result in some problems as of r25877 and
r25877 (from 8 years ago) added explicit checks preventing processing such
events in wxToolBar and wxMenu. Instead, simply don't generate these events in
the first place and also remove the now unnecessary checks for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70179
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:27 +0000 (22:05 +0000)]
Better fix for wxSpinCtrlGeneric enabling/disabling bug in wxMSW.
To really ensure that the window containing the components of wxSpinCtrlGeneric
is never enabled under MSW (as we want to avoid this to ensure that any input
always goes to its children and not the window itself, see #12045), override
DoEnable() and not Enable(). This takes care of the case when the control gets
implicitly disabled because its parent is.
Closes #13142.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70178
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:23 +0000 (22:05 +0000)]
Store row/column selection more appropriately in wxGrid.
Use wxGridSelection::m_rowSelection and m_colSelection for storing the
selected rows/columns respectively instead of storing them in m_blockXXX
arrays. This makes more sense and allows to easily implement the proper
handling of Ctrl-clicking in the row or column selection modes.
Closes #12638.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70177
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:19 +0000 (22:05 +0000)]
Mention wxEVT_COMMAND_TOGGLEBUTTON_CLICKED explicitly in the documentation.
Document the event type together with the event table macro.
See #11943.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70176
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:15 +0000 (22:05 +0000)]
Display help string for ribbon tools in a tool tip.
Show the help string of the ribbon item currently being hovered over in a
tooltip.
Closes #11879.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70175
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Neis [Thu, 29 Dec 2011 14:42:13 +0000 (14:42 +0000)]
Do not put semicolons after the definition of an inline function.
Even though most compilers just ignore this, it's just wrong and if you
do get warnings about header files, they can become quite overwhelming.
Forward port of r70163.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70165
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Neis [Thu, 29 Dec 2011 14:36:22 +0000 (14:36 +0000)]
Include some more declarations & defines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70164
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Neis [Thu, 29 Dec 2011 11:26:05 +0000 (11:26 +0000)]
Reordered "extern" and WXDLLIMPEXP_CORE specifiers; fixes #13816.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70162
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 17:47:21 +0000 (17:47 +0000)]
Restore wxEVT_MENU_CLOSE generation under Windows 95 after r70151.
WM_UNINITMENUPOPUP is "only" available since Windows 98/2000 so restore the
old code using WM_EXITMENULOOP as fall back, just to avoid any regressions for
people who might still be using these systems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70156
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 17:32:32 +0000 (17:32 +0000)]
Compilation fix for VC6 after r70151.
VC6 standard SDK didn't define WM_UNINITMENUPOPUP, so define it for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70155
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:29 +0000 (13:51 +0000)]
Add standard art providers at the bottom of the art providers stack.
This ensures that any user-defined art providers will be in front of them,
even when they are added at module-initialization time i.e. possibly before
the standard ones.
Closes #12519.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70154
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:25 +0000 (13:51 +0000)]
Use best controller size in wxBookCtrl best size calculation.
Don't use GetControllerSize() which returns the actual, not the best, size of
the controller.
Closes #11793.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70153
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:21 +0000 (13:51 +0000)]
Improve layout in the samples to avoid problems under Mac.
Changes the samples to look better under Mac and avoid the worst problems such
as overlapping buttons or truncated controls.
Closes #11651.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70152
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:17 +0000 (13:51 +0000)]
Complete wxEVT_MENU_{OPEN,CLOSE} implementation in wxMSW and wxOSX.
Set the wxMenu correctly for wxEVT_MENU_CLOSE events in wxMSW.
Set the menu id correctly to allow wxMenuEvent::IsPopup() to work for both
wxEVT_MENU_OPEN and wxEVT_MENU_CLOSE in wxOSX.
Closes #11313.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70151
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:13 +0000 (13:51 +0000)]
Use memmove() instead of memcpy() in wxString::AssignCopy().
This at least allows the code like "s = s.c_str()" to work correctly when
using our own wxString implementation, even it doesn't fix all
self-assignment-related bugs (again, when using our own implementation only,
there is no bug when using std::basic_string as underlying implementation).
This is a cherry pick of r63008 from 2.8 branch.
See #11245.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70150
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 28 Dec 2011 10:01:05 +0000 (10:01 +0000)]
Disable final failing wxWebView test. It fails on the buildbot but not locally.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70149
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 17:32:29 +0000 (17:32 +0000)]
Compilation fix for PCH-less build after r70122.
Include the header declaring wxClientDC.
Closes #13809.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70130
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:50 +0000 (01:21 +0000)]
Compilation fix for wxUniv/X11 with wxUSE_STL==1.
Don't rely on implicit conversion from wxString to wchar_t*.
Closes #13790.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70127
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:46 +0000 (01:21 +0000)]
Update the value of read-only wxComboBox in wxUniv.
Fix regression in combobox appearance: it never showed the selected value when
it was read-only any more.
Closes #13688.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70126
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:43 +0000 (01:21 +0000)]
Fix warning about non-virtual dtor in wxDataViewCtrlInternal.
This class doesn't need a virtual dtor but g++ warned about its absence
because it unnecessarily defined a virtual method. Just make this method
non-virtual to avoid the warning.
Closes #13395.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70125
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:39 +0000 (01:21 +0000)]
Suppress gcc -Wint-to-pointer-cast warnings in GTK wxDataViewCtrl.
Use wxUIntToPtr to avoid the warnings about casts from smaller (in 64 bit
build) int type to pointer.
Closes #13394.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70124
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:36 +0000 (01:21 +0000)]
Don't use deprecated wxArtProvider::Insert().
Ironically, it was 2.6 compatibility code that was using the function
deprecated after 2.8. In any case, just use the newest name for it.
Closes #13393.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70123
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:33 +0000 (01:21 +0000)]
Fix the size of the font returned by wxTextCtrl::GetStyle() in MSW.
CHARFORMAT stores height in 1/20th of a point, not pixels. Add the correct
conversion to the units used by LOGFONT.
See #13384.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70122
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:29 +0000 (01:21 +0000)]
Recognize background-color style in wxHtmlWindow.
Just treat it as a synonym for "background" i.e. the same as HTML3 BGCOLOR.
Closes #13173.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70121
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:26 +0000 (01:21 +0000)]
Add support for more CSS styles to SPAN tag in wxHtmlWindow.
Add limited support font-family, font-style and text-decoration.
Closes #13170.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70120
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Dec 2011 12:57:49 +0000 (12:57 +0000)]
Increase the tolerance in wxStopWatch unit test.
Sleeping can take more time than expected when running on the build slaves,
probably because the machine is heavily loaded. Increase the tolerance to
prevent this from resulting in test failures.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70119
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 25 Dec 2011 17:04:51 +0000 (17:04 +0000)]
Applied patch in #13777 (wxRichTextCtrl scroll and delete not refreshed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70117
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Dec 2011 13:28:01 +0000 (13:28 +0000)]
Always link with expat in monolithic build.
Fix linking errors when using wxXML in sttaic monolithic build: in this case
we must link with expat but it was listed too early, before wxWidgets
libraries using it, in the bakefile-generated makefiles.
Now add it to the end of the linker command line too by including -lexpat in
EXTRALIBS_FOR_BASE which are appended to the linker arguments.
Notice that now -lexpat is linked twice because it is still added by
<wx-lib>xml</wx-lib> in bakefiles, even in monolithic build, but I don't know
how to avoid it and it is harmless anyhow.
Closes #12573.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70116
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Dec 2011 12:52:56 +0000 (12:52 +0000)]
Added a warning about multi-cells in wxGrid::DeleteRows() docs.
Currently deleting rows or columns intersecting a multi-cell is simply not
supported and results in an immediate crash.
See #4238.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70115
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 25 Dec 2011 00:57:27 +0000 (00:57 +0000)]
restore call to GetTabSize removed in r69880, it is needed to set x_extent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70114
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 18:30:52 +0000 (18:30 +0000)]
Really fix the use of deprecated methods in wxGrid test.
The changes of r70111 were wrong, the unit test for wxGrid really did intend
to test the deprecated methods so restore them -- but only in
WXWIN_COMPATIBILITY_2_8 case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70113
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 18:19:26 +0000 (18:19 +0000)]
Implement wxNotebook::CalcSizeFromPage() for wxGTK.
The implementation is far from perfect as it relies on hard-coded margins but
is better than nothing as it allows wxNotebook best size determination and
SetPageSize() method to work correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70112
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 17:58:32 +0000 (17:58 +0000)]
Don't use deprecated methods in wxGrid test.
Don't use the methods defined only when building 2.8-compatible mode to let
the tests compile even with WXWIN_COMPATIBILITY_2_8 off. This only worked
before because of the wrong tests in grid.h but broke after the fixes of
r70098.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70111
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 24 Dec 2011 16:46:26 +0000 (16:46 +0000)]
remove improper use of paste operator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70110
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:14 +0000 (15:43 +0000)]
Fix fatal bug with deleting the old contents in wxScopedArray::reset().
"delete" was wrongly used instead of "delete[]".
Closes #13806.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70109
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:12 +0000 (15:43 +0000)]
Use the correct function type cast in EVT_WEBKIT_NEW_WINDOW.
Use wxWebKitNewWindowEventHandler to perform a proper static_cast<>, which
detects incorrect casts during compilation, instead of
wxWebKitNewWindowEventFunction which was just doing an unsafe C-style cast.
Cloes #13805.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70108
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:08 +0000 (15:43 +0000)]
Add EVT_FSWATCHER event table macro.
It was documented, and ought to have existed anyhow for consistency with
wxEVT_FSWATCHER, but wasn't defined. Do it now.
Closes #13804.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70107
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:05 +0000 (15:43 +0000)]
Add EVT_WINDOW_MODAL_DIALOG_CLOSED() event table macro.
Add it for consistency with wxEVT_WINDOW_MODAL_DIALOG_CLOSED.
See #13804.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70106
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:01 +0000 (15:43 +0000)]
Fix typo in wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK in documentation.
It was misspelt as wxEVT_COMMAND_RICHTEXT_DLEFT_CLICK.
Closes #13802.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70105
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Dec 2011 15:42:57 +0000 (15:42 +0000)]
Remove references to defunct event types in comments.
No real changes, just complete the changes of r58039 by removing the
references to non-existent (any more) event types from the comments too.
Closes #13801.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70104
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sat, 24 Dec 2011 11:39:40 +0000 (11:39 +0000)]
Applied #13803: wxRichTextCtrl: missing event-table macro (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70103
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 24 Dec 2011 10:08:37 +0000 (10:08 +0000)]
Disable some wxWebView tests that fail on the buildbot but not locally.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70102
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 24 Dec 2011 10:05:31 +0000 (10:05 +0000)]
Fix typo in ADD_RAW_IID macro.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70101
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 23 Dec 2011 19:16:47 +0000 (19:16 +0000)]
Add some extra yields to wxWebView unit tests to hopefully fix some of the failing buildbot runs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70100
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 23 Dec 2011 17:38:30 +0000 (17:38 +0000)]
don't use deprecated function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70099
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 23 Dec 2011 05:59:59 +0000 (05:59 +0000)]
fix tests for WXWIN_COMPATIBILITY_2_8, closes #13800
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70098
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 22 Dec 2011 19:16:12 +0000 (19:16 +0000)]
Use OLE helper macros in wxWebView to reduce the amount of duplicated code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70096
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 22 Dec 2011 19:14:58 +0000 (19:14 +0000)]
Add new ADD_RAW_IID OLE helper macro to allow use with classes that do not start with IID_I.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70095
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 22 Dec 2011 19:08:43 +0000 (19:08 +0000)]
Mark various OLE helper functions as DLL exported so they can be used from other libraries.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70093
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 22 Dec 2011 18:21:41 +0000 (18:21 +0000)]
remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize handler, closes #13799
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70091
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 22 Dec 2011 16:36:47 +0000 (16:36 +0000)]
Fix wxLogFormatter compilation under MSW.
Fix wxMSW compilation after the changes of r70086.
Closes #13792.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70088
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 22 Dec 2011 14:47:54 +0000 (14:47 +0000)]
Dramatically optimise inserting many items in wxGenericListCtrl.
During each item insertion SetItem() was called and this resulted in a call to
GetItemRect() which, in turn, re-laid out all items in the control meaning
that the relatively expensive wxListMainWindow::RecalculatePositions() was
called N times when inserting N items.
Reduce this to just a single call by not refreshing the item in SetItem() if
everything is going to be redrawn soon anyhow.
This decreases the time needed to insert a couple of thousands of items in
icon view from several minutes to less than a second.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70087
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 22 Dec 2011 13:35:01 +0000 (13:35 +0000)]
Add wxLogFormatter to allow easier wxLog output customization.
Delegate the log string creation to wxLogFormatter. This allows defining a
custom object of a class derived from it to customize the log output instead
of having to override DoLogRecord() in wxLog itself.
Closes #13792.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70086
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Thu, 22 Dec 2011 01:26:11 +0000 (01:26 +0000)]
Avoid a problem in Phoenix by making UpdateMacScrollWindow not be pure virtual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70085
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Thu, 22 Dec 2011 01:25:18 +0000 (01:25 +0000)]
Interface fixes for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70084
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 21 Dec 2011 16:27:43 +0000 (16:27 +0000)]
rebaked Xcode proj for cocoa after date & timectrls were added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70078
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 21 Dec 2011 13:56:50 +0000 (13:56 +0000)]
Correct generic wxListCtrl display of items with icons in list mode.
The changes of r70066 improved the layout for icon and small icon modes but
broke it for the list mode if items had icons because the item width should
account for the icon as well in this case. Simply disable the code added in
this revision when in list mode, we don't need to do anything then anyhow as
the layout already worked correctly for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70077
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 21 Dec 2011 13:56:47 +0000 (13:56 +0000)]
Guard against a possible crash in wxListCtrl::DeleteColumn().
We could crash when deleting a column after switching to report view from icon
view. As deleting a column works just fine under MSW in this case, make it
work in the generic version as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70076
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 21 Dec 2011 13:07:18 +0000 (13:07 +0000)]
Document wxListCtrl::InReportView() and IsVirtual().
These functions are more convenient than directly testing for styles and are
already used outside wxWidgets do make them officially part of the public API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70075
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 21 Dec 2011 00:26:06 +0000 (00:26 +0000)]
Ignore extra modify events after rename in wxFileSystemWatcher.
Document that such extra events may occur and generally improve the event
types documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70074
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:14 +0000 (21:27 +0000)]
Provide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.
Use NSDatePicker to implement both of these controls. Almost all of
wxDatePickerCtrl styles are not supported in the native version but the basic
functionality does work and looks much better than the generic version (which
is still available as wxDatePickerCtrlGeneric if needed) under Mac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70071
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:09 +0000 (21:27 +0000)]
Added helpers for translating between wxDateTime and NSDate.
These functions will be used in the upcoming native implementations of
wxDatePickerCtrl and wxTimePickerCtrl but could also be reused elsewhere in
wxOSX/Cocoa, notably in wxDataViewCtrl where strange ad hoc code is currently
used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70070
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:06 +0000 (21:27 +0000)]
Added wxTimePickerCtrl page to the widgets sample.
Even if this page is pretty trivial, add it for consistency with
wxDatePickerCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70069
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:02 +0000 (21:27 +0000)]
Reorganized the date picker page of the widgets sample.
Make it possible to set the picker styles and set its range and not only the
current value.
Also log the events generated by it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70068
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:22:31 +0000 (21:22 +0000)]
Ukrainian translations update from Yuri Chornoivan.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70067
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 21:21:38 +0000 (21:21 +0000)]
Fix horizontal alignment in icon view in generic wxListCtrl.
Ensure that all the items in the same column have the same width, so that
their labels are centred.
Closes #9227.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70066
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 17:42:04 +0000 (17:42 +0000)]
Brazilian Portuguese translations update from Felipe.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70065
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 15:39:42 +0000 (15:39 +0000)]
Fix crash in wxRegion in wxOSX/Carbon.
Apparently some code expects to be able to call wxRegion::GetWXHRGN() even on
an invalid wxRegion. Return NULL in this case instead of crashing.
This fixes crash on startup of the widgets sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70064
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 13:27:59 +0000 (13:27 +0000)]
Add support for webview library to MSW bakefile presets.
The webview library wasn't linked in correctly when using MSW bakefile
presets. Fix this by adding the corresponding <sys-lib> for it (this needs to
be done for MSW only, under Unix it's handled by wx-config).
Closes #13789.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70063
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Dec 2011 13:24:48 +0000 (13:24 +0000)]
Mention the dialog focus regression fix in wxMSW in the change log.
See #13765.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70062
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775