Changelogs

Overview

These changelogs reflect the history of all files in the Subversion repository. The changelog has been generated at 2016-05-09 08:38:04

Changes per page:

25 50 100 250 500 1000 2000

Changelog for wxWidgets (70435 changes):

2012-10-08 00:39 VZ, revision 72631

No real changes, just don't use brush styles for background mode in wxHTML. Use just wxTRANSPARENT and wxSOLID instead of wxBRUSHSTYLE_TRANSPARENT and wxBRUSHSTYLE_SOLID when changing the background mode. See #14599.

2012-10-08 00:38 VZ, revision 72630

Support some CSS styles for the links in wxHTML too. Refactor limited CSS styles support for <span> tag to reuse it for <a> tag as well. Closes #14599.

2012-10-08 00:38 VZ, revision 72629

Flush log messages from other threads on shutdown too. Add a call to wxLog::FlushActive() to the shutdown code as calling just wxLog::SetActiveTarget(NULL) is not enough, it flushes the current log target only but not the ones used by other threads. Closes #14595.

2012-10-08 00:38 VZ, revision 72628

Update the year in the copyright for wxMSW DLLs. Just s/2010/2012/

2012-10-08 00:37 VZ, revision 72627

Fix drawing of wxAuiNotebook with GTK theme when active tab is invisible. Draw a box using gtk_paint_box() for the tabs, without border for the active one to avoid an extra line across the gap, and with the border for the others. Closes #14728.

2012-10-08 00:37 VZ, revision 72626

Fix test for __WXGTK__ in wxCairoContext. It must be tested with #ifdef, not #if.

2012-10-07 18:49 VS, revision 72625

Fix wxGenericCollapsiblePane to expand frame's size. wxGenericCollapsiblePane::DoGetBestSize() is dynamic, returning different values for collapsed and open states. Therefore the control must invalidate best sizes cache every time its state changes.

2012-10-05 01:24 VZ, revision 72621

Add support for wxALWAYS_SHOW_SB style to wxScrolled<>. Simply call ShowScrollbars(wxSHOW_SB_ALWAYS) if this style is specified. Closes #13616.

2012-10-05 01:24 VZ, revision 72620

Document wxHSCROLL and wxVSCROLL styles for wxScrolled<>. Explain that by default both styles are assumed but that using just one of them disables the scrolling in the other direction.

2012-10-05 01:23 VZ, revision 72619

Add a setting for the disabled text colour to wxRibbon art. Allow specifying the text for the labels of the disabled items separately. Closes #14721.

2012-10-05 01:23 VZ, revision 72618

Add a more convenient wxColour::MakeDisabled() overload. Allow creating a disabled version of the colour without having to manually break it into RGB components and then recreating it from them.

2012-10-05 00:49 VZ, revision 72617

Remove unneeded variable initializations in wxPM code. Closes #14724.

2012-10-05 00:48 VZ, revision 72616

Fix bugs in the recently added wxDateTime::DiffAsDateSpan(). Correct the test for negative spans less than a month and use the correct month for computing the number of days in it. Also add unit tests for problematic cases. Closes #14704.

2012-10-05 00:48 VZ, revision 72615

Add wxDateSpan::GetTotalMonths() method. This is similar to the existing GetTotalDays() and counts both months and years. See #14704.

2012-10-05 00:47 VZ, revision 72614

Fix fatal bug in the recently added wxFile::ReadAll(). Make sure we exit the loop when reading the file in chunks in wxFile::ReadAll() and add a unit test for it to ensure that it's really correct. Closes #14725.

2012-10-04 18:08 PC, revision 72613

non-pch build fix

2012-10-04 17:58 PC, revision 72612

remove always-true comparison of unsigned value >= 0

2012-10-04 17:55 PC, revision 72611

silence warnings about shadowed variables with GCC -Wshadow

2012-10-03 10:32 VZ, revision 72610

Do use IsEscapeKey() in wxDialog escape key handling. This method was added back in r40686 but was never actually used anywhere. Do use it in wxDialogBase::OnCharHook() now instead of hard-coding the check for WXK_ESCAPE, this should allow using Cmd+. to work like Escape under Mac which was apparently the intention of the code in src/osx/dialog_osx.cpp. Also fix IsEscapeKey() itself to ignore any modifiers as at least under MSW Esc always closes the dialog, even if Shift or Alt is pressed.

2012-10-03 09:58 VZ, revision 72609

Add missing header to fix MiscGUIFuncsTestCase compilation. Need full wxPanel declaration here now.

2012-10-03 02:16 VZ, revision 72608

Fix wxFindWindowAtPoint() unit test to pass under GTK. We need to ensure that all windows are realized before querying their positions on screen, so add an extra wxYield(). Also adjust the tests slightly as the windows are now all created in the beginning of the function. Finally, use Destroy() instead of wxDELETE() for windows.

2012-10-03 02:16 VZ, revision 72607

Added a simple unit test for wxWindow::ClientToScreen(). Check that this function works consistently for the TLW and its children and grand-children.

2012-10-03 02:16 VZ, revision 72606

Avoid creating children of wxButton in MiscGUIFuncsTestCase. This doesn't work in wxGTK, use a normal wxWindow instead of wxButton in this case.

2012-10-02 18:19 PC, revision 72605

remove some unnecessary casts

2012-10-02 17:57 PC, revision 72604

make more Init() functions private

2012-10-01 12:47 VZ, revision 72603

Fix assert about passing long as "%d" in wxXRC code. Closes #14718.

2012-10-01 11:55 VZ, revision 72602

No changes, just remove some unneeded variables initializations. Closes #14716, #14717.

2012-10-01 11:55 VZ, revision 72601

Test for wxAuiMDIClientWindow being non-NULL before using it. wxAuiMDIParentFrame::GetActiveChild() may be called before the client window is created, don't crash in this case but just return NULL. Closes #14684.

2012-10-01 11:55 VZ, revision 72600

Add wxDateTime::DiffAsDateSpan(). This method returns the difference between the dates as wxDateSpan, unlike the existing Subtract() and overloaded operator-() that return wxTimeSpan. Closes #14704.

2012-10-01 11:40 VZ, revision 72599

Fix PCH-less build after the changes of r72589. Use wx{SOLID,TRANSPARENT} instead of wxBRUSHSTYLE_{SOLID,TRANSPARENT}. This makes more sense as we're setting background mode, not brush style, here and also fixed compilation when not using PCH.

2012-10-01 00:28 VZ, revision 72598

Read and write files using binary mode in wxStyledTextCtrl. Use binary mode to preserve the original file EOLs when loading it and also to save it with the same EOLs later. Add very primitive EOL auto-detection to LoadFile(). Also add SaveFile()/LoadFile() which were missing in !wxUSE_TEXTCTRL case.

2012-10-01 00:28 VZ, revision 72597

Small optimization of wxFFile::ReadAll(): avoid extra string copy. Use swap() to move the newly created string into its destination instead of copying it there. This can be relatively important as the string represents an entire file contents here and so could be quite long.

2012-10-01 00:28 VZ, revision 72596

Added wxFile::ReadAll() for consistency with wxFFile::ReadAll(). Make it possible to use wxFFile and wxFile interchangeably for simply reading the entire contents of the file as a string.

2012-10-01 00:27 VZ, revision 72595

Reimplement wxTextEntry::DoSetValue() in wxStyledTextCtrl. The version inherited from the base class does work already but calling Scintilla SetText() directly should be more efficient than selecting everything and then calling ReplaceSelection() as the base class version does, less code is executed.

2012-10-01 00:27 VZ, revision 72594

Fix wxStyledTextCtrl::WriteText() to replace the selection. WriteText() must replace the selection, not just insert the new text, otherwise SetValue() implementation inherited from the base class doesn't work as it doesn't clear the old contents of the control before adding new text to it.

2012-10-01 00:26 VZ, revision 72593

Don't call ClearAll() before LoadFile() in the stc sample. There is no need to clear the control contents before loading a file into it because LoadFile() is supposed to do this on its own (although currently it doesn't, which will be fixed soon).

2012-10-01 00:26 VZ, revision 72592

Make stc sample startup faster. Don't show "About" dialog on startup, this has nothing to do with the purpose of this sample and is just annoying. Also, don't select the entire file after opening it.

2012-10-01 00:21 VZ, revision 72591

Add per-direction wxSocket wait flags and byte counters. Allow to specify whether the socket should block until all the data is read or written or, on the contrary, avoid blocking only when reading or writing instead of always using the same behaviour in both directions. Also add separate counters for the bytes read/written instead of using the same one for both. These changes make it possible to use the same socket for reading/writing in different threads. Closes #14506.

2012-10-01 00:21 VZ, revision 72590

Don't crash in generic wxDataViewCtrl if it doesn't have any model. A model may be dissociated from a still existing control, don't crash if it happens (notice that we still would crash in the native GTK version right now, so this still remains to be fixed there). See #14616.

2012-10-01 00:20 VZ, revision 72589

Add support for background-color style to span element in wxHTML. Add code for setting/restoring background mode and use it to implement support for changing the text background colour. Closes #14443.

2012-10-01 00:20 VZ, revision 72588

Fix handling of spaces after <img> tag in wxHTML. Don't collapse the spaces following this tag with the ones preceding it. See #14557. Closes #2980.

2012-10-01 00:20 VZ, revision 72587

Convert image tags to text using their alt attribute in wxHTML. This is useful when copying wxHtmlWindow contents to clipboard, for example. Closes #14557.

2012-10-01 00:19 VZ, revision 72586

Fix handling of not fully specified min/max size in wxBoxSizer. wxSizerItem::AddBorderToSize() added in r72344 (see #11497) didn't work correctly as it replaced unspecified (i.e. set to -1) components of wxSize with the small positive values that did take effect, contrary to the intention. Fix it to only adjust the actually set component(s) of wxSize. Closes #14696.

2012-10-01 00:19 VZ, revision 72585

No changes, just fix some typos in comments in wxXRC code. Closes #14714.

2012-10-01 00:19 VZ, revision 72584

No changes, just remove unneeded variable initialization. Closes #14712, #14713.

2012-09-30 22:35 VZ, revision 72583

Revert "Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext." This reverts r72442 and restores the use of GenericTypographic string format for GDI+ text rendering. While it's true that using this flag with small font sizes results in pretty bad output, especially under Windows XP, not using it results in wrong text extent calculations for all sizes which is even worse. See #14537.

2012-09-30 22:35 VZ, revision 72582

Fix computation of menu button best size in generic wxSearchCtrl. Invalidate the cached best size when the bitmap changes. Closes #14708.

2012-09-30 22:35 VZ, revision 72581

Clear the search control automatically when it's "Cancel" button is pressed. This should be the desired behaviour in the vast majority of cases, so do it by default. Replace the useless OnSearchButton() doing nothing with search button events with OnCancelButton() handling cancel button events and clearing the control.

2012-09-30 22:34 VZ, revision 72580

Don't use text control foreground colour for generic wxSearchCtrl itself. Logically, it should be done in the other direction and also doing it like this means that the search and cancel icons, rendered using the current foreground colour, are barely visible when using generic wxTextCtrl::SetHint() implementation, as in wxGTK, because the text control foreground is set to light grey in this case.

2012-09-30 18:55 PC, revision 72579

make wxWindowGTK::Init() private, it is not meant to be called from derived classes

2012-09-30 04:33 RD, revision 72578

Use Refresh when the initial paint was abandoned by Scintilla so it will trigger a repaint of the whole window. This is done for things like style changes, word wrapping or brace highlights where more than the current line is affected. Fixes #14653.

2012-09-29 01:50 VZ, revision 72577

Fix generic wxSearchCtrl best size calculation. The best size of its text control part was not calculated correctly any more because a wrong best size was cached during wxSearchTextCtrl construction, when the final class overridden DoGetBestSize() was not called. Fix this by explicitly invalidating the best size at the end of constructor for now even though it would be arguably better to fix this in some way not requiring anything extra to be done to always take the overridden method into account, especially as it used to work before. But it's not clear how exactly to restore this so for now do at least fix wxSearchCtrl appearance. Closes #14708.

2012-09-29 01:50 VZ, revision 72576

Fix wxSearchCtrl recreation in the widgets sample. The control wasn't readded to the sizer correctly after being recreated.

2012-09-29 01:49 VZ, revision 72575

Remove unused SearchCtrlWidgetsPage::Reset() from widgets sample. This method was simply unused and unneeded.

2012-09-29 01:49 VZ, revision 72574

Don't send events for disabled ribbon bar buttons. Hover and activation events were sent even for the disabled buttons which was unexpected and inconsistent with wxRibbonToolBar, so don't do it. Closes #14709.

2012-09-29 01:48 VZ, revision 72573

Make wxHelpControllerBase::SetFrameParameters() title more clear. Describe it as "title format string" and call it "titleFormat" and not just "title" because this is what it is. Closes #14707.

2012-09-29 01:48 VZ, revision 72572

Add "inherit" to <font> XRC tag. This allows to construct a font based on the parent window font instead of either fully specifying all font parameters or basing it on a standard font. Closes #14632.

2012-09-29 01:48 VZ, revision 72571

Fix testing for existence of paths with trailing separators in wxMSW. We removed the trailing separators, that prevented GetFileAttributes() from working correctly, from the path but then didn't pass the modified path to it but the original one. Fix this and do use the updated path.

2012-09-28 18:09 PC, revision 72569

Avoid unrealizing a frozen window It seems to continue to prevent updates to the affected area Fixes #13543

2012-09-28 00:41 VZ, revision 72568

Make wxTextEntryDialog resizable. It can be used for entry of relatively long text now, especially when wxTE_MULTILINE flag is used, so allow the user to resize it to facilitate the entry. Closes #14702.

2012-09-28 00:41 VZ, revision 72567

Add two step creation to wxTextEntryDialog. Add Create() method and default ctor for consistency with the other classes. See #14702.

2012-09-28 00:41 VZ, revision 72566

Use SelectAll() instead of SetSelection(-1, -1). The former is more clear and also shorter. Closes #14701.

2012-09-28 00:40 VZ, revision 72565

Remove the now unnecessary wxRichTextCtrl::SelectAll(). It is already inherited from the base wxTextEntry class. See #14701.

2012-09-27 15:58 VZ, revision 72564

Fix _tputenv() return value test in wxSetEnv(). _tputenv() returns -1, not 0, on error, as all the other CRT functions, so the test added by r72496 resulted in wxSetEnv() and wxUnsetEnv() always failing when using MSVC.

2012-09-27 14:47 VZ, revision 72563

Account correctly for the controller when computing wxBookCtrl best size. We must not increase the total control size in the direction along the controller window as the size of the controller in this direction is determined by the size of the control itself. So doing this resulted in always increasing best size in this direction to be at least equal to the current size which was wrong. Closes #14496.

2012-09-27 14:47 VZ, revision 72562

Use wxSize::IncTo() in wxBookCtrlBase::DoGetBestSize(). No changes, just use an existing wxSize method instead of reimplementing it in the loop over the pages in wxBookCtrlBase.

2012-09-27 14:46 VZ, revision 72561

Avoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize(). If m_fitToCurrentPage is true, there is no need to iterate over all the pages computing their max best size only in order to overwrite it with the best size of the current page later. This doesn't result in any changes in the behaviour, just avoids useless best size computations.

2012-09-27 00:30 VZ, revision 72560

Do not unref GtkWidget of unattached wxMenuBar. This results in the destruction of the widgets of all of its menu and when wxMenu objects are themselves destroyed in the base class dtor, we try to destroy their already destroyed widgets, resulting in critical GTK warnings. Simply don't do anything in wxMenuBar dtor itself if the menu bar is not attached to a frame as the workaround was only needed in case of destroying attached menu bars.

2012-09-27 00:29 VZ, revision 72559

Fix GTK warnings when destroying unattached wxMenuBar. Reset m_focusWidget to NULL when destroying m_widget in wxMenuBar dtor, otherwise we try to use this already destroyed (because it's the same as m_widget) widget in wxWindow dtor later resulting in critical GTK warnings.

2012-09-27 00:29 VZ, revision 72558

Don't crash in wxMenuBar::Remove() if unattached in wxGTK. It should be possible to remove a menu from a menu bar even before it is attached to a frame without crashing.

2012-09-26 14:20 VZ, revision 72557

Update MSW installation instructions for 2.9. Remove all mentions of 16 bit build. Update the list of supported compilers and their versions. Update Unicode build description. Closes #11908.

2012-09-26 14:20 VZ, revision 72556

Merge "selected" and "active" child in wxAuiMDIParentFrame. They are one and the same thing and so just make them really synonymous instead of (unsuccessfully) trying to keep them synchronized. Closes #14684.

2012-09-26 01:53 RD, revision 72555

Reserve the whole style byte for styles. See #14688

2012-09-26 01:53 RD, revision 72554

Scintilla's Point class no longer matches the structure of wxPoint, so we need to copy points to a wxPoint array instead of just typcasting Scintilla's array. Fixes #14687

2012-09-25 22:40 BP, revision 72553

Fixed interface typo breaking wxRibbonBar docs (from r72495).

2012-09-25 20:01 PC, revision 72552

call Thaw() instead of DoThaw() so frozen status will be properly updated, and use a loop in case window has been frozen more than once

2012-09-25 19:55 PC, revision 72551

fix deleting a frozen multi-line wxTextCtrl, see #13543

2012-09-25 15:50 VZ, revision 72550

Attempt to fix wxHelpControllerBase::SetFrameParameters() documentation. Don't use "%s" in the brief comment, "%" is apparently not allowed there.

2012-09-25 15:08 SC, revision 72549

adding constants for newer OSX versions to make sure our conditional expressions are working with earlier SDKs

2012-09-25 12:50 VZ, revision 72548

Add wxGenericAboutDialog documentation. Closes #14660.

2012-09-25 12:50 VZ, revision 72547

Fix too hastily copy-pasted wxVariantDataSafeArray documentation. Some parts were not updated after copying them from wxVariantDataErrorCode. Closes #14689.

2012-09-25 12:49 VZ, revision 72546

Really fix stack dumps for asserts and wxStackWalker::Walk() calls. The code apparently tried to compensate for the wrong "skip" values used in the calls to wxStackWalker::Walk() by skipping too much in Walk() itself which was wrong as it dropped the frames that should have been shown. Fix this by skipping only the one extra (compared to Walk() itself) frame we add in wxStackWalker Unix implementation and not 3 of them and do skip more frames when calling Walk() from assert failure handlers. Also fix the wrong number of frames used in ProcessFrames(): we must not subtract the number of skipped frames, they were already skipped. Closes #14690.

2012-09-25 12:49 VZ, revision 72545

Use utf8_str(), not mb_str(), for strings passed to GTK+. All GTK+ strings must be encoded in UTF-8, not whichever encoding the current locale happens to use.

2012-09-25 12:48 VZ, revision 72544

Vietnamese translations update from Trần Ngọc Quân.

2012-09-24 00:49 VZ, revision 72543

Improve SAFEARRAY support in wxMSW OLE Automation code. Add a new wxSafeArray<> class wrapping SAFEARRAY. Also add support for converting VARIANTs containing other, previously unsupported, standard types. Closes #14637.

2012-09-24 00:49 VZ, revision 72542

Explain EVT_CONTEXT_MENU generation in more details. Document that you should not count on specific order of mouse right button and context menu events. Closes #12535.

2012-09-24 00:49 VZ, revision 72541

No changes, just reuse a bit of code in wxMSW wxMDIParentFrame. Call wxMDIChildFrame::Activate() instead of redoing the same thing. This also ensures that iconized MDI children are restored before being activated (see previous commit). See #13946.

2012-09-24 00:48 VZ, revision 72540

Restore an iconized MDI child frame when activating it. Without doing this activating an iconized frame doesn't do anything at all, i.e. doesn't present it to the user as presumably intended. Closes #13946.

2012-09-24 00:48 VZ, revision 72539

Correct best size computation for wxCheckBox with borders under MSW. As wxCheckBox can now have borders (see previous commit), we must override DoGetBestClientSize() and not DoGetBestSize() in it to take account of them.

2012-09-24 00:47 VZ, revision 72538

Respect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton. Take into account the window styles that translate to extended Windows styles at MSW level. Also override MSWGetStyle() in these classes, just as in most (all?) other ones, for consistency instead of doing wx-to-MSW styles translation directly in Create(). Notice that as a side effect of this change, border styles now work for wxCheckBox which wasn't the case before. It's not clear if this is really wanted but OTOH there doesn't seem to be any real reason to forbid them neither. Closes #14674.

2012-09-22 18:16 VZ, revision 72537

Allow wxWrapSizer to request more size than it used previously. The code in wxWrapSizer::CalcMin() ensured that the sizer never requested more space than what it had been already given which, while clearly done intentionally, seems to be wrong because it can never end up with enough space for all its rows/columns unless it is set to up to expand in the containing sizer. In other words, the old code could return the size which was not enough to show the sizer contents fully which is against CalcMin() contract. Change this by simply removing the check for the new minimal size being less than the old one. This allows the wrap sizer demo in the layout sample to work correctly whereas before the sizer contents was completely invisible initially.

2012-09-22 18:16 VZ, revision 72536

Make wxWrapSizer demo in the layout sample more dynamic. Allow adding checkboxes to and removing them from the wrap sizer to demonstrate how it adjusts to its contents dynamically.

2012-09-22 18:16 VZ, revision 72535

Credit "sodev" with correct full name. Amend the change log entry of r71701. See #14380.

2012-09-21 12:26 VZ, revision 72534

Fix crash on wxMediaCtrl creation in wxMSW. A valid RECT pointer must be passed to DoVerb(OLEIVERB_INPLACEACTIVATE) but r72027 (see #14209) broke this and passed it NULL resulting in an instant crash. Revert this part of the change and do pass out window client area. Closes #14682.

2012-09-21 01:12 VZ, revision 72533

Fix wxPluginLibrary wxClassInfo pointers initialization. The values of m_ourFirst and m_ourLast were inversed in wxPluginLibrary ctor. Fix this and explain in a comment that "first" and "last" here refer to the order in the linked list and not the chronological order. Closes #14483.

2012-09-21 01:12 VZ, revision 72532

Fix wrong configure test for abi::__forced_unwind in previous commit. The previous commit was accidental and contained an initial version of the patch which didn't test for NPTL abi::__forced_unwind correctly and just tested whether cxxabi.h header was available. Tighten the check to work on the other systems and check for __forced_unwind existence itself. Also check for cxxabi.h before testing for __cxa_demangle as there is no need to try to compile another test program if we already know that this entire header is unavailable anyhow. See #14626.

2012-09-21 01:00 VZ, revision 72531

Rethrow abi::__forced_unwind in wxThread code under Unix. We must always rethrow the special abi::__forced_unwind exception when handling exception in threads under Linux as the NPTL simply terminates the process at first opportunity if this exception is not rethrown. See http://udrepper.livejournal.com/21541.html for more details. Closes #14626.

2012-09-21 00:15 VZ, revision 72530

Add public (but not documented) wxCheckBox::MSWMakeOwnerDrawn(). It can be useful to explicitly make a check box owner drawn, so make the private MakeOwnerDrawn() public and add "MSW" prefix to it to allow doing this from the user code. Closes #14679.

2012-09-20 22:02 VZ, revision 72529

Fix and enhance support for client data in wxRibbonButtonBar. Add the possibility to retrieve the client data associated with a button and not only set it (which wasn't very useful on its own). Also allow having both typed (owned) and untyped (not owned) client data, as in the other wxWidgets controls. To avoid confusion between two different kinds of data, remove "client_data" argument from the functions adding buttons and provide separate methods with distinct names for setting and getting client data. Closes #14630.

2012-09-20 22:02 VZ, revision 72528

Add wxRibbonButtonBarEvent::GetButton(). Allow to retrieve the button associated with the given button bar event. See #14630.