]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agouse buf.length() instead of strlen()
Robin Dunn [Tue, 7 Feb 2012 23:55:50 +0000 (23:55 +0000)] 
use buf.length() instead of strlen()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd length parameter to AddTextRaw and AppendTextRaw. Closes #1358
Robin Dunn [Tue, 7 Feb 2012 23:55:07 +0000 (23:55 +0000)] 
Add length parameter to AddTextRaw and AppendTextRaw. Closes #1358

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAvoid CRT deprecation warnings for MSVC build using makefiles too.
Vadim Zeitlin [Tue, 7 Feb 2012 21:38:31 +0000 (21:38 +0000)] 
Avoid CRT deprecation warnings for MSVC build using makefiles too.

Define _CRT_SECURE_NO_DEPRECATE, _CRT_NON_CONFORMING_SWPRINTFS and
_SCL_SECURE_NO_WARNINGS when using makefiles to build the library too for
consistency with the project files.

These defines are only needed for VC8 and later but should do no harm for the
previous versions.

See #11009.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRebake all project files to reflect MSVC deprecation warnings defines.
Vadim Zeitlin [Tue, 7 Feb 2012 21:38:09 +0000 (21:38 +0000)] 
Rebake all project files to reflect MSVC deprecation warnings defines.

Rebake all the projects after the changes of r70182, even if they're only
really needed for the library itself, the other project files should
correspond to the bakefiles contents too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoforwarding mouse moved events to the view under the mouse, not the firstResponder
Stefan Csomor [Tue, 7 Feb 2012 16:40:40 +0000 (16:40 +0000)] 
forwarding mouse moved events to the view under the mouse, not the firstResponder

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxAboutDialogInfo::GetName() return type in the documentation.
Vadim Zeitlin [Tue, 7 Feb 2012 13:48:44 +0000 (13:48 +0000)] 
Fix wxAboutDialogInfo::GetName() return type in the documentation.

wxString is returned by value, not const reference.

Closes #13941.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix infinite loop in wxHtmlEasyPrinting page break code.
Vadim Zeitlin [Tue, 7 Feb 2012 13:02:32 +0000 (13:02 +0000)] 
Fix infinite loop in wxHtmlEasyPrinting page break code.

The code didn't handle cells higher than the page height correctly and entered
an infinite loop when trying to adjust page breaks in their presence, e.g.
when trying to print a very tall image.

Closes #13935.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just pass const wxArrayInt to wxHtmlCell::AdjustPagebreak().
Vadim Zeitlin [Tue, 7 Feb 2012 13:02:27 +0000 (13:02 +0000)] 
No real changes, just pass const wxArrayInt to wxHtmlCell::AdjustPagebreak().

AdjustPagebreak() never modifies the array passed to it, so pass it as const
reference.

See #13935.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate setup for OpenVMS to make wxX11 work again
Jouk Jansen [Tue, 7 Feb 2012 10:33:31 +0000 (10:33 +0000)] 
Update setup for OpenVMS to make wxX11 work again

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReturn NULL from wxAuiNotebook::GetCurrentPage() if there is no selection.
Vadim Zeitlin [Mon, 6 Feb 2012 13:28:42 +0000 (13:28 +0000)] 
Return NULL from wxAuiNotebook::GetCurrentPage() if there is no selection.

Make it behave as wxBookCtrlBase::GetCurrentPage() and just silently return
NULL instead of asserting if there is no selection.

Closes #13932.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix typo in an event type constant in wxTreeListCtrl documentation.
Vadim Zeitlin [Mon, 6 Feb 2012 13:28:39 +0000 (13:28 +0000)] 
Fix typo in an event type constant in wxTreeListCtrl documentation.

s/CHeCKED/CHECKED/g

Closes #13931.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix handling of positional parameters in wxPrintf() and related.
Vadim Zeitlin [Mon, 6 Feb 2012 13:28:34 +0000 (13:28 +0000)] 
Fix handling of positional parameters in wxPrintf() and related.

Handle positional parameter specifications in wxFormatConverter to ensure that
e.g. "%N$s" are correctly transformed to "%N$S" if needed. This fixes the use
of positional parameters under OS X.

Closes #10965.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReverted bogus fix for bogus bug report #13402.
Stefan Neis [Sun, 5 Feb 2012 22:53:39 +0000 (22:53 +0000)] 
Reverted bogus fix for bogus bug report #13402.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMark unused parameter as such, fixes #13402.
Stefan Neis [Sun, 5 Feb 2012 22:20:57 +0000 (22:20 +0000)] 
Mark unused parameter as such, fixes #13402.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove code ifdef-ed on __X__, it is never defined for wxGTK
Paul Cornett [Sun, 5 Feb 2012 17:43:28 +0000 (17:43 +0000)] 
remove code ifdef-ed on __X__, it is never defined for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't set PAGESETUPDLG::hDevNames and hDevMode when using PSD_RETURNDEFAULT.
Vadim Zeitlin [Sun, 5 Feb 2012 15:45:03 +0000 (15:45 +0000)] 
Don't set PAGESETUPDLG::hDevNames and hDevMode when using PSD_RETURNDEFAULT.

If the page setup dialog is used to retrieve the default information, hDevMode
and hDevNames fields must not be set, otherwise PageSetupDlg() function simply
fails because of incorrect parameters passed to it.

Closes #13928.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix huge performance problem in wxStdInputStream when using MSVC8/9.
Vadim Zeitlin [Sun, 5 Feb 2012 14:18:37 +0000 (14:18 +0000)] 
Fix huge performance problem in wxStdInputStream when using MSVC8/9.

Our overridden xsgetn() method was never called when using these compilers
because they used their own, non-standard, _Xsgetn_s() instead. Because of
this the stream was always read character by character which was very
inefficient.

Fix the problem by overriding _Xsgetn_s() for these compilers and explicitly
forwarding it to xsgetn().

Closes #13926.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoTake void** client data in wxSingleChoiceDialog ctor and not char**.
Vadim Zeitlin [Sun, 5 Feb 2012 14:18:33 +0000 (14:18 +0000)] 
Take void** client data in wxSingleChoiceDialog ctor and not char**.

The client data is supposed to be untyped, there is really no reason (other
than compatibility with C conventions of 40 years ago) to use char** here.
So don't do it and provide the versions taking "void**" keeping "char**" ones
for backwards compatibility only.

Also deprecate GetSelectionClientData() that returned char* and add a new
GetSelectionData() returning void* instead.

Closes #13876.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoPreserve focus when window is minimized and restored in wxMSW.
Vadim Zeitlin [Sun, 5 Feb 2012 14:18:28 +0000 (14:18 +0000)] 
Preserve focus when window is minimized and restored in wxMSW.

Add specific code to save and restore the focus when the window is minimized
and restored in wxMSW as the existing code in WM_ACTIVATE handler wasn't
enough because this event was generated too late when minimizing the window
(when it was already minimized and so the focus had been already lost) and too
early when restoring it (so the window was still minimized and restoring focus
failed).

This is still not perfect as we do in our code something Windows would be
expected to do automatically but for whatever reason, it doesn't do it for
wxWidgets programs, and this manual workaround at least prevents the annoying
total focus loss.

Closes #1599.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnsure that the progress dialog parent is activated at the end under MSW.
Vadim Zeitlin [Sun, 5 Feb 2012 14:18:25 +0000 (14:18 +0000)] 
Ensure that the progress dialog parent is activated at the end under MSW.

The progress dialog parent was supposed to become the new foreground window
when the progress dialog was closed, but this didn't happen because
m_parentTop was never set when the native progress dialog implementation was
used under MSW. Fix this by explicitly calling the new SetTopParent() from its
ctor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just implement Raise() in wxTopLevelWindow in wxMSW.
Vadim Zeitlin [Sun, 5 Feb 2012 14:18:22 +0000 (14:18 +0000)] 
No changes, just implement Raise() in wxTopLevelWindow in wxMSW.

Get rid of two identical implementations in wxFrame and wxDialog and only
override this function once in wxTopLevelWindow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix initial state of radio toolbar tools in wxGTK.
Vadim Zeitlin [Sun, 5 Feb 2012 01:20:03 +0000 (01:20 +0000)] 
Fix initial state of radio toolbar tools in wxGTK.

The last radio group item was initially checked under wxGTK instead of the
first one, as under the other platforms. Fix this by correcting the check for
the first radio group item which was inversed in wxToolBar::DoInsertTool().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNever refresh controls from EVT_PAINT handler in wxPropertyGrid.
Vadim Zeitlin [Sun, 5 Feb 2012 01:20:00 +0000 (01:20 +0000)] 
Never refresh controls from EVT_PAINT handler in wxPropertyGrid.

Refreshing the controls after finishing repainting the grid results in an
infinite stream of paint events, so don't do this, especially as this doesn't
seem to have any bad consequences under wxGTK which was the only major
platform where this behaviour was enabled.

Also rename wxPG_REFRESH_CONTROLS_AFTER_REPAINT to just wxPG_REFRESH_CONTROLS
and keep the control refreshing code for wxGTK only in a couple of places
outside of EVT_PAINT handler to be on the safe side.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix the URL generated by Doxygen @sampledir macro.
Vadim Zeitlin [Sat, 4 Feb 2012 12:22:46 +0000 (12:22 +0000)] 
Fix the URL generated by Doxygen @sampledir macro.

"samples/" part of the URL was missing, add it.

Closes #13925.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDocument wxNO_3D as being obsolete.
Vadim Zeitlin [Sat, 4 Feb 2012 11:45:53 +0000 (11:45 +0000)] 
Document wxNO_3D as being obsolete.

This style doesn't do anything any more, so replace it documentation with a
deprecation notice.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix typo in EVT_TREE_END_LABEL_EDIT documentation.
Vadim Zeitlin [Fri, 3 Feb 2012 17:57:59 +0000 (17:57 +0000)] 
Fix typo in EVT_TREE_END_LABEL_EDIT documentation.

Wrong event type was used, correct it.

Closes #13922.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCheck string length correctly in wxFileSystem::URLToFileName().
Vadim Zeitlin [Fri, 3 Feb 2012 17:27:21 +0000 (17:27 +0000)] 
Check string length correctly in wxFileSystem::URLToFileName().

Check that the string is long enough before accessing its first and second
characters to fix a crash when an empty or one-character string was passed to
wxFileSystem::URLToFileName().

Closes #13920.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnable callbacks for wxFileSystemWatcher FD under OS X.
Vadim Zeitlin [Fri, 3 Feb 2012 17:27:17 +0000 (17:27 +0000)] 
Enable callbacks for wxFileSystemWatcher FD under OS X.

We need to enable callbacks to get them initially, otherwise no events are
ever detected.

Closes #13919.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix speed regression in wxFileHistory::AddFileToHistory().
Vadim Zeitlin [Fri, 3 Feb 2012 17:27:13 +0000 (17:27 +0000)] 
Fix speed regression in wxFileHistory::AddFileToHistory().

Avoid full normalization including wxPATH_NORM_LONG when adding files to
wxFileHistory as this can take a very long time when using network paths under
Windows.

Closes #13915.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoTurkish translations update from Kaya Zeren.
Vadim Zeitlin [Fri, 3 Feb 2012 14:15:17 +0000 (14:15 +0000)] 
Turkish translations update from Kaya Zeren.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix the type of global font constants in the documentation.
Vadim Zeitlin [Fri, 3 Feb 2012 00:24:09 +0000 (00:24 +0000)] 
Fix the type of global font constants in the documentation.

wxNORMAL_FONT, wxSMALL_FONT &c were documented as wxFont objects but they are
really wxFont pointers.

Closes #13917.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix bug with mouse wheel scrolling wxStyledTextCtrl in long running programs.
Vadim Zeitlin [Fri, 3 Feb 2012 00:21:45 +0000 (00:21 +0000)] 
Fix bug with mouse wheel scrolling wxStyledTextCtrl in long running programs.

In long running programs the wxEvent time stamp could wrap around resulting in
all mouse wheel events being ignored in wxStyledTextCtrl as the comparison of
the (positive) time until which all the subsequent events were supposed to be
blocked and the (now negative) current event time stamp would be always false.

Fix this by using wxStopWatch::TimeInMicro() to avoid wraparound instead of
wxEvent::GetTimestamp().

Also rename the variable to have a more clear name as the original code wasn't
easy to understand.

Closes #9057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDisable navigation sounds in wxWebViewIE. This brings the backend into line with...
Steve Lamerton [Thu, 2 Feb 2012 20:32:08 +0000 (20:32 +0000)] 
Disable navigation sounds in wxWebViewIE. This brings the backend into line with the other backends. Also add a general method for changing INTERNETFEATURELIST settings.

See #13694

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix initial wxRadioBox buttons positions in wxMSW.
Vadim Zeitlin [Thu, 2 Feb 2012 14:26:06 +0000 (14:26 +0000)] 
Fix initial wxRadioBox buttons positions in wxMSW.

We only updated the button positions when the radio box was moved or resized
after being created but didn't do it initially, so a radio box created with
fixed position and size didn't lay out its buttons correctly. Do lay them out
immediately after creating the radio box to fix this.

Closes #13912.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxFontDialog ctor not taking wxFontData to wxOSX.
Vadim Zeitlin [Thu, 2 Feb 2012 14:19:34 +0000 (14:19 +0000)] 
Add wxFontDialog ctor not taking wxFontData to wxOSX.

wxFontDialog should have ctor and Create() overload taking just wxWindow
parent in addition to the one taking parent and wxFontData used to initialize
the dialog but it didn't have them in wxOSX, do add them now.

Closes #13908.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxDataViewCtrl::GetItemRect() signature in wxOSX and document it better.
Vadim Zeitlin [Thu, 2 Feb 2012 14:19:30 +0000 (14:19 +0000)] 
Fix wxDataViewCtrl::GetItemRect() signature in wxOSX and document it better.

The second parameter of this method should be optional, so make it so in wxOSX.

Also document what this method does exactly and the platforms under which it's
implemented.

Closes #13914.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoshould not bring to front upon focussing
Stefan Csomor [Wed, 1 Feb 2012 13:25:35 +0000 (13:25 +0000)] 
should not bring to front upon focussing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove duplicate wxPoint2DInt operator declarations.
Vadim Zeitlin [Tue, 31 Jan 2012 19:39:43 +0000 (19:39 +0000)] 
Remove duplicate wxPoint2DInt operator declarations.

No real changes, just remove the redundant declarations.

Closes #13900.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSet the file name for temporary wxFFile objects.
Vadim Zeitlin [Tue, 31 Jan 2012 19:38:45 +0000 (19:38 +0000)] 
Set the file name for temporary wxFFile objects.

Pass the name of the temporary file to wxFFile::Attach(). This allows to give
more useful error messages if any operation on this file fails later.

Closes #13903.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDocument wxFFile::GetName().
Vadim Zeitlin [Tue, 31 Jan 2012 19:38:41 +0000 (19:38 +0000)] 
Document wxFFile::GetName().

Somehow this method was not documented.

See #13903.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove virtual override that just calls base
Paul Cornett [Tue, 31 Jan 2012 17:44:32 +0000 (17:44 +0000)] 
remove virtual override that just calls base

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoimplement wxGetMousePosition without using X-specific code
Paul Cornett [Tue, 31 Jan 2012 17:41:21 +0000 (17:41 +0000)] 
implement wxGetMousePosition without using X-specific code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoguarding Update() on OSX not to be issued faster than 1/30 later than the last redraw
Stefan Csomor [Tue, 31 Jan 2012 17:39:39 +0000 (17:39 +0000)] 
guarding Update() on OSX not to be issued faster than 1/30 later than the last redraw

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agorevert to using Update()
Stefan Csomor [Tue, 31 Jan 2012 17:37:31 +0000 (17:37 +0000)] 
revert to using Update()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoreenabling an Update where necessary
Stefan Csomor [Tue, 31 Jan 2012 15:00:03 +0000 (15:00 +0000)] 
reenabling an Update where necessary

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxHTTP::SetPostBuffer() compilation in ANSI build.
Vadim Zeitlin [Tue, 31 Jan 2012 13:09:11 +0000 (13:09 +0000)] 
Fix wxHTTP::SetPostBuffer() compilation in ANSI build.

wxString::mb_str() returns a raw pointer and not wxScopedCharBuffer when
wxUSE_UNICODE==0 so fix the code to do it differently in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't document wxVector<>::reverse_iterator.
Vadim Zeitlin [Tue, 31 Jan 2012 13:09:07 +0000 (13:09 +0000)] 
Don't document wxVector<>::reverse_iterator.

Documenting just this class but not iterator (and const_iterator) is
inconsistent but documenting all of them is too much mostly useless work as
all iterators (of the same category) have the same interface anyhow. So just
remove the documentation of reverse_iterator for now.

See #2585.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove dummy Lithuanian translations.
Vadim Zeitlin [Tue, 31 Jan 2012 13:09:04 +0000 (13:09 +0000)] 
Remove dummy Lithuanian translations.

All non-translated strings were "translated" as their English originals in
lt.po. This was just a artefact of the software used for translation and
wrong, so remove all these dummy translations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agohandle theme change which changes window border width
Paul Cornett [Tue, 31 Jan 2012 07:30:11 +0000 (07:30 +0000)] 
handle theme change which changes window border width

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoattempt to isolate which Update() calls are necessary at all, as they cause performan...
Stefan Csomor [Mon, 30 Jan 2012 16:30:59 +0000 (16:30 +0000)] 
attempt to isolate which Update() calls are necessary at all, as they cause performance issues under OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoalways setting the event object to the menu, see #1595
Stefan Csomor [Mon, 30 Jan 2012 16:25:22 +0000 (16:25 +0000)] 
always setting the event object to the menu, see #1595

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixing the routing of UpdateUI to the window by just passing NULL as source
Stefan Csomor [Mon, 30 Jan 2012 16:05:03 +0000 (16:05 +0000)] 
fixing the routing of UpdateUI to the window by just passing NULL as source

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agomove SetPangoAttrsForFont to wxFont, should have been part of r70475
Paul Cornett [Sun, 29 Jan 2012 08:49:01 +0000 (08:49 +0000)] 
move SetPangoAttrsForFont to wxFont, should have been part of r70475

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agouse GTKSetPangoAttrs in wxCairoContext
Paul Cornett [Sun, 29 Jan 2012 08:35:45 +0000 (08:35 +0000)] 
use GTKSetPangoAttrs in wxCairoContext

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agomove Pango underline workaround into wxFont::GTKSetPangoAttrs
Paul Cornett [Sun, 29 Jan 2012 08:14:34 +0000 (08:14 +0000)] 
move Pango underline workaround into wxFont::GTKSetPangoAttrs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agomove SetPangoAttrsForFont to wxFont
Paul Cornett [Sun, 29 Jan 2012 08:00:15 +0000 (08:00 +0000)] 
move SetPangoAttrsForFont to wxFont

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agouse translatable strings as format template for menu lines
Stefan Csomor [Sat, 28 Jan 2012 13:37:04 +0000 (13:37 +0000)] 
use translatable strings as format template for menu lines

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding OSX to the platforms which do the ui update upon menu open
Stefan Csomor [Sat, 28 Jan 2012 13:31:16 +0000 (13:31 +0000)] 
adding OSX to the platforms which do the ui update upon menu open

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded further API for intercepting deletion and content insertion
Julian Smart [Wed, 25 Jan 2012 15:10:09 +0000 (15:10 +0000)] 
Added further API for intercepting deletion and content insertion
Added simple implementation of locked objects to sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agostructure code to Cocoa's possibilities, allows tool windows with just a caption...
Stefan Csomor [Wed, 25 Jan 2012 10:33:26 +0000 (10:33 +0000)] 
structure code to Cocoa's possibilities, allows tool windows with just a caption and no buttons

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded more conveniently placed 'List of All Members' link on all class doc pages...
Bryan Petty [Wed, 25 Jan 2012 06:39:53 +0000 (06:39 +0000)] 
Added more conveniently placed 'List of All Members' link on all class doc pages in the header summary (using JS).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix return value of wxMBConvUTF8::FromWChar().
Vadim Zeitlin [Wed, 25 Jan 2012 00:10:44 +0000 (00:10 +0000)] 
Fix return value of wxMBConvUTF8::FromWChar().

Apply the same fix as was done in r68694 for ToWChar() to FromWChar(): it also
returned an off by 1 value when not using MAP_INVALID_UTF8_NOT.

Closes #13400.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate wxCommandProcessor after saving wxDocument.
Vadim Zeitlin [Wed, 25 Jan 2012 00:05:15 +0000 (00:05 +0000)] 
Update wxCommandProcessor after saving wxDocument.

Surprisingly, wxCommandProcessor::MarkAsSaved() method was never called by
wxDocument so saving the document didn't update wxCommandProcessor dirty
status.

Do add a call to MarkAsSaved() now, this allows wxCommandProcessor to track
its status correctly (and actually more correctly than the dirty status of the
document which becomes "dirty" after doing and undoing an operation after
saving it, unlike wxCommandProcessor::IsDirty() which correctly returns false
in this case).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxCommandProcessor::IsDirty() result after undoing everything after save.
Vadim Zeitlin [Wed, 25 Jan 2012 00:05:12 +0000 (00:05 +0000)] 
Fix wxCommandProcessor::IsDirty() result after undoing everything after save.

IsDirty() returned false when all commands were undone after saving even
though it clearly should have returned true in this case.

Fix this and add comments explaining what happens in this method.

Closes #2862.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't compare invalid iterators in wxCommandProcessor::IsDirty().
Vadim Zeitlin [Wed, 25 Jan 2012 00:05:09 +0000 (00:05 +0000)] 
Don't compare invalid iterators in wxCommandProcessor::IsDirty().

Check that m_lastSavedCommand is valid before comparing it with
m_currentCommand as comparing invalid iterators results in an assert in STL
build (and probably should also result in an assert in non-STL build too for
consistency).

Also move IsDirty() implementation out of line to make it easier to modify it
further in the future and because there is no real reason to keep it inline.

Closes #13465.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoForward declare wxFont in wx/gtk/private.h.
Vadim Zeitlin [Wed, 25 Jan 2012 00:05:06 +0000 (00:05 +0000)] 
Forward declare wxFont in wx/gtk/private.h.

This fixes compilation in STL build (for some strange reason it doesn't affect
the default build however).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMinor fixes to wxDataViewCtrl::HitTest() in wxGTK.
Vadim Zeitlin [Wed, 25 Jan 2012 00:05:03 +0000 (00:05 +0000)] 
Minor fixes to wxDataViewCtrl::HitTest() in wxGTK.

Initialize the return parameters with invalid values and use const_cast<>.

See #12582.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSet the initial size of the expanded ribbon panel correctly.
Vadim Zeitlin [Wed, 25 Jan 2012 00:04:59 +0000 (00:04 +0000)] 
Set the initial size of the expanded ribbon panel correctly.

We need to set the client size of the frame showing the panel to the panel
size and not the full frame size.

Closes #13850.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix setting frame icon when using non-standard icon sizes in wxMSW.
Vadim Zeitlin [Tue, 24 Jan 2012 22:17:47 +0000 (22:17 +0000)] 
Fix setting frame icon when using non-standard icon sizes in wxMSW.

Set the closest (and larger, if possible) icon if the icon of exactly the
system icon size is not available. This fixes setting the icons when using
custom DPI settings under MSW as the standard icon size may be different from
the standard 32*32 in this case.

This also improves wxIconBundle::GetIcon() to make its behaviour when the icon
with exactly the given size is not found more flexible as a side effect.

Closes #13891.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAppend all items at once during wxChoice creation in wxMSW.
Vadim Zeitlin [Tue, 24 Jan 2012 21:50:34 +0000 (21:50 +0000)] 
Append all items at once during wxChoice creation in wxMSW.

Appending all items at once is more efficient than doing it one by one in the
loop 9probably because of CB_INITSTORAGE that we send in this case).

Closes #13899.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadd strike-through font support to wxGraphicsContext on GTK
Paul Cornett [Tue, 24 Jan 2012 18:07:45 +0000 (18:07 +0000)] 
add strike-through font support to wxGraphicsContext on GTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding missing stubs
Stefan Csomor [Mon, 23 Jan 2012 21:06:07 +0000 (21:06 +0000)] 
adding missing stubs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd unit test verifying compilation of various wxFont ctors.
Vadim Zeitlin [Mon, 23 Jan 2012 14:42:56 +0000 (14:42 +0000)] 
Add unit test verifying compilation of various wxFont ctors.

Check that various invocations of wxFont ctor at least compile to avoid
problems like the ones fixed by r70450.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxButtonToolBar compilation after adding new wxFont ctor overload.
Vadim Zeitlin [Mon, 23 Jan 2012 14:42:53 +0000 (14:42 +0000)] 
Fix wxButtonToolBar compilation after adding new wxFont ctor overload.

The new wxFont ctor added in r70445 resulted in ambiguity when using
wxFont(int, wxFontFamily, wxFontStyle, int) ctor mixing the type-safe values
for the 2nd and 3rd arguments with "untyped" int for the 4th one. Fix this by
avoiding the use of this ctor as it seems impossible to do it in any other
way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a property to configure file property dialog kind.
Vadim Zeitlin [Mon, 23 Jan 2012 13:59:52 +0000 (13:59 +0000)] 
Add a property to configure file property dialog kind.

Add wxPG_FILE_DIALOG_STYLE allowing to pass wxFileDialog style that should be
used by the given wxFileProperty. This notably allows to have file properties
accepting not yet existing files, as is needed when using them for the file
names to be saved, not opened.

Closes #13894.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxTextAttr::m_fontStrikethrough initialization.
Vadim Zeitlin [Mon, 23 Jan 2012 12:33:03 +0000 (12:33 +0000)] 
Fix wxTextAttr::m_fontStrikethrough initialization.

The code added in r70447 didn't initialize m_fontStrikethrough correctly.

This fixes unit test failures for wxRichTextCtrl that appeared since this
change.

See #9907.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement support for stricken-through fonts in markup parser.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:32 +0000 (11:28 +0000)] 
Implement support for stricken-through fonts in markup parser.

Now that we have strike-through support in wxFont, implement support for <s>
tag in the markup parser.

See #9907.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd support for stricken-through fonts.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:28 +0000 (11:28 +0000)] 
Add support for stricken-through fonts.

Support stricken-through fonts in wxMSW and wxGTK (including special support
in wxStaticText and wxTextCtrl).

Closes #9907.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxFont ctor taking a single flags argument instead of style/weight/...
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:21 +0000 (11:28 +0000)] 
Add wxFont ctor taking a single flags argument instead of style/weight/...

Currently this ctor just does the same thing as the existing ctors in a
different way but it will be extended to support wxFONTFLAG_STRIKETHROUGH in
the next commits.

See #9907.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxAffineMatrix2D::Translate() to multiply on the left.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:16 +0000 (11:28 +0000)] 
Fix wxAffineMatrix2D::Translate() to multiply on the left.

The affine transform was previously multiplied by the translation matrix on
the right but this was incompatible with both the MSW version of the same
method and all the other methods of the generic version.

So multiply the transform by the translation on the left, as everywhere else.

Closes #13875.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix incorrect scroll positions used in SetScrollbars().
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:12 +0000 (11:28 +0000)] 
Fix incorrect scroll positions used in SetScrollbars().

SetScrollbars() passed its input positions expressed in scroll units to
CalcUnscrolledPosition() which takes positions in pixels. This was definitely
wrong so don't do this and perform the conversion from scroll units to pixels
in SetScrollbars() itself for clarity instead.

It's not clear what concrete bugs, if any, does this fix as the calculated
positions are almost never used anyhow but the old code was obviously
incorrect and the new version has a chance of not being wrong so it's already
an improvement.

Closes #9988.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd check for wxFileCtrl dependency on wxDateTime to wx/chkconf.h.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:09 +0000 (11:28 +0000)] 
Add check for wxFileCtrl dependency on wxDateTime to wx/chkconf.h.

Enable wxDateTime if it's disabled but wxFileCtrl is enabled as the latter
needs the former, at least in the generic version.

Closes #12821.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix incorrect cast resulting in a warning in wxMSW wxMenu code.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:05 +0000 (11:28 +0000)] 
Fix incorrect cast resulting in a warning in wxMSW wxMenu code.

Menu id is a 32 bit UINT value, even in 64 bit builds, so don't cast it to
UINT_PTR.

Closes #13815.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAvoid warnings about mismatched format string in wxMSW wxClipboard code.
Vadim Zeitlin [Mon, 23 Jan 2012 11:28:01 +0000 (11:28 +0000)] 
Avoid warnings about mismatched format string in wxMSW wxClipboard code.

Cast the string offsets to "unsigned" explicitly, even though they can be 64
bit (whereas unsigned is 32 bits) under Win64, the strings we operate with
here shouldn't be more than 4GiB long.

See #13815.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate OS X toolkit names list in wxwin.m4.
Vadim Zeitlin [Mon, 23 Jan 2012 11:27:57 +0000 (11:27 +0000)] 
Update OS X toolkit names list in wxwin.m4.

There is no more "mac" toolkit in 2.9, we have "osx_carbon" and "osx_cocoa"
instead (and also "osx_iphone" but it's not used with configure so far).

Closes #13817.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agousing existing member
Stefan Csomor [Mon, 23 Jan 2012 11:15:18 +0000 (11:15 +0000)] 
using existing member

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixed typo in variable name, fixing #13872.
Stefan Neis [Sun, 22 Jan 2012 17:27:09 +0000 (17:27 +0000)] 
Fixed typo in variable name, fixing #13872.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded a simple benchmark of wxLogDebug() and wxLogTrace().
Vadim Zeitlin [Sun, 22 Jan 2012 00:58:09 +0000 (00:58 +0000)] 
Added a simple benchmark of wxLogDebug() and wxLogTrace().

Measure time taken by these calls when the debug/trace messages are not
enabled.

See #11829.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCreate wxStaticText with correct label directly in wxTextSizerWrapper.
Vadim Zeitlin [Sun, 22 Jan 2012 00:58:05 +0000 (00:58 +0000)] 
Create wxStaticText with correct label directly in wxTextSizerWrapper.

This is shorter and arguably more clear than doing it in two steps as we did
before and also works in wxUniv, unlike creating wxStaticText with empty label
and setting it later.

Closes #13858.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix reparenting generic wxSpinCtrl.
Vadim Zeitlin [Sat, 21 Jan 2012 17:03:52 +0000 (17:03 +0000)] 
Fix reparenting generic wxSpinCtrl.

The existing Reparent() implementation was wrong as it reparented spin control
subwindows under the new parent but left the main window itself under the old
one. Fix this by just not overriding Reparent() at all, the inherited version
works just fine for this control.

Closes #13849.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agodeleted CodeWarrior project files
Dimitri Schoolwerth [Sat, 21 Jan 2012 00:53:21 +0000 (00:53 +0000)] 
deleted CodeWarrior project files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixed mismatch in amount of format specifiers in Japanese translation for i18n sample.
Dimitri Schoolwerth [Sat, 21 Jan 2012 00:01:00 +0000 (00:01 +0000)] 
Fixed mismatch in amount of format specifiers in Japanese translation for i18n sample.

The translation was missing a %s, copied the translation from the same string at samples/internat/ja/internat.po.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate the message catalog charset expected by the unit test.
Vadim Zeitlin [Fri, 20 Jan 2012 23:18:29 +0000 (23:18 +0000)] 
Update the message catalog charset expected by the unit test.

The charset of the message catalog files changed to UTF-8 in r70411 but the
unit test still expected ISO-8859-1. Update the unit test too to make it pass
again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix time zone in wxDateTime::UNow().
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:55 +0000 (22:11 +0000)] 
Fix time zone in wxDateTime::UNow().

The internal wxDateTime representation is in the UTC, so use
wxGetUTCTimeMillis() in UNow(), using wxGetLocalTimeMillis() made it
inconsistent with Now() and wrong.

Really closes #13862.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnsure wxCharTypeBuffer data is NUL-terminated after extend() call.
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:51 +0000 (22:11 +0000)] 
Ensure wxCharTypeBuffer data is NUL-terminated after extend() call.

As wxCharTypeBuffer ctor taking the length NUL-terminates the buffer, it may
be expected that extend() does the same but it did not. Do add the NUL at the
end for consistency, even though it's not really needed for the existing code
using extend() in wxWidgets itself.

Closes #13885.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix documentation of wxConfig::Read(float*) overload.
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:47 +0000 (22:11 +0000)] 
Fix documentation of wxConfig::Read(float*) overload.

Grouping methods using "//@{" and "//@}" apparently doesn't work and
completely wrong documentation is used in this case, so document the two
overloads separately, as it's done for the other methods.

Closes #13884.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd error checking when retrieving client data from wxMSW wxListBox.
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:44 +0000 (22:11 +0000)] 
Add error checking when retrieving client data from wxMSW wxListBox.

Verify if retrieving client data failed which might happen if the index
is invalid for example. This makes code more robust and also consistent with
wxChoice.

Closes #13883.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCheck that an error really occurred when getting wxChoice data in wxMSW.
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:39 +0000 (22:11 +0000)] 
Check that an error really occurred when getting wxChoice data in wxMSW.

We could wrongly return NULL client data if -1 was stored as client data in
wxChoice because it's the same value as CB_ERR and we always interpreted it as
an error, while it may not be one if GetLastError() doesn't indicate it.

See #13883.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDestroy modeless wxGenericAboutDialog when it is closed.
Vadim Zeitlin [Fri, 20 Jan 2012 22:11:32 +0000 (22:11 +0000)] 
Destroy modeless wxGenericAboutDialog when it is closed.

Don't leave the wxGenericAboutDialog object alive when non-modal about dialog
(as can be used under GTK and OS X) is closed. This is wasteful and, worse,
resulted in the program not exiting after such a dialog was shown because it
counted as a remaining open top level window.

This also fixes the same bug in wxGTK when using GTK+ 2.4.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemoved ellipsis from "About..." occurrences.
Dimitri Schoolwerth [Fri, 20 Jan 2012 16:51:09 +0000 (16:51 +0000)] 
Removed ellipsis from "About..." occurrences.

MS and Apple guidelines mention ellipses should generally be used when a command needs additional information from the user before the operation can execute. This is not the case for showing an about dialog so the ellipses have been removed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775