X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3f54c8f7c20587c81726cd5f4b90e659f818bbe..b640fa17f3359e2766232e5dae3922de28236bde:/docs/changes.txt diff --git a/docs/changes.txt b/docs/changes.txt index ef71794515..e5d0996db4 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -10,6 +10,14 @@ INCOMPATIBLE CHANGES SINCE 2.8.x the "Changes Since wxWidgets 2.8" section of the manual, please read it if the explanation here is too cryptic. +Table of contents of this section: + + - Unicode-related changes + - wxODBC and contrib libraries removal + - Changes in behaviour not resulting in compilation errors + - Build system changes + - Major new features in this release + Unicode-related changes ----------------------- @@ -133,6 +141,10 @@ Changes in behaviour not resulting in compilation errors, please read this! or equivalent function should now be done into wxApp::OnEventLoopEnter(). See wxApp::OnEventLoopEnter() and wxApp::OnEventLoopExit() docs for more info. +- wxDialogs get wxEVT_SIZE events immediately after creation in wxMSW, as with + wxFrames. This means that this event handler may be called earlier than in + 2.8, check that all the controls are initialized before using them in it. + - wxLoadFileSelector() now allows the user to select existing files only. - Erase background events are now not generated at all when background style is @@ -207,6 +219,10 @@ Changes in behaviour not resulting in compilation errors, please read this! behaved differently in wxMSW and wxGTK/wxOSX before) if more than one item is selected in a control with wxDV_MULTIPLE style. +- wxEVT_COMMAND_MENU_SELECTED, MENU_OPEN and CLOSE events returned a menu from + GetEventObject() in all ports but the frame the menu was attached to in wxMSW. + Now all ports return the menu that was opened or closed as the event object. + Changes in behaviour which may result in compilation errors ----------------------------------------------------------- @@ -214,6 +230,21 @@ Changes in behaviour which may result in compilation errors - WXWIN_COMPATIBILITY_2_4 doesn't exist any more, please update your code if you still relied on features deprecated since version 2.4 +- WXWIN_COMPATIBILITY_2_6 still exists but is 0 by default in this release and + will be removed in 3.2. You can set it to 1 and rebuild wxWidgets to access + the old and deprecated symbols but please consider updating your code + instead. Here are replacements for some of the obsolete symbols: + + wxSAVE and wxOPEN -> wxFD_SAVE and wxFD_OPEN + + WXK_PRIOR and WXK_NEXT -> WXK_PAGEUP and WXK_PAGEDOWN + + wxRESIZE_BOX -> wxMAXIMIZE_BOX + + wxTHICK_FRAME -> wxRESIZE_BORDER + + wxPROCESS_ENTER and wxPASSWORD -> wxTE_PROCESS_ENTER and wxTE_PASSWORD + + EVT_SCROLL_ENDSCROLL -> EVT_SCROLL_CHANGED + + NewControlId -> wxWindow::NewControlId() + + wxFileHistory::GetNoHistoryFiles() -> wxFileHistory::GetCount() + + wxSizerItem::SetOption() -> wxSizerItem::SetProportion() + + wxSizer::Remove(wxWindow*) -> wxSizer::Detach() + - wxDC classes hierarchy has changed, if you derived any classes from wxDC you need to review them as wxDC doesn't have any virtual methods any longer and uses delegation instead of inheritance to present different behaviours. @@ -262,6 +293,12 @@ Changes in behaviour which may result in compilation errors error instead. This can be worked around by explicitly casting to const wxChar*: wxLogError(_("error: %s"), !err.empty() ? (const wxChar*)err.c_str() : "") +- wxDateTime::ParseXXX() overloads don't return anything when called with + wxCStrData argument. If you need to test the parsing success, use a newer + overload taking wxString::const_iterator and returning bool or explicitly + select a narrow or wide char version to use by casting c_str() to either + "char*" or "wchar_t*". Or create a temporary wxString and parse it instead. + - wxCtime() and wxAsctime() return char*; this is incompatible with Unicode build in wxWidgets 2.8 that returned wchar_t*. @@ -349,6 +386,12 @@ Changes in behaviour which may result in compilation errors result in compilation errors due to an ambiguity between them if you pass NULL as client data. To fix this, cast NULL explicitly to "void**". +- wxChoicebookEvent, wxListbookEvent, wxNotebookEvent, wxToolbookEvent and + wxTreebookEvent are now all synonyms for wxBookCtrlEvent. The existing code + using the old names continues to work but they can't be forward-declared + any more. Use wxBookCtrlEvent in your code if you need to forward-declare + it or just include the appropriate header instead of forward declaration. + Deprecated methods and their replacements ----------------------------------------- @@ -427,6 +470,28 @@ Deprecated methods and their replacements possible or wxWindowDisabler otherwise. +Changes in behaviour visible to end users +----------------------------------------- + +- In wxMSW wxSpinCtrl used to prevent the user from entering more digits than + could fit in its visible area. This was inconsistent with the other ports and + now the control scrolls if too much text is added. + + +Build system changes +-------------------- + +- In wxMSW makefile builds, "_x64" is used instead of "_amd64" when compiling + for this architecture in the architecture-specific paths and library names. + TARGET_CPU can still be specified as "amd64" for compatibility but "x64" + should be used now. + +- Official wxMSW binaries, i.e. those built with OFFICIAL_BUILD=1, built with + MSVC now include the version of the compiler used and the architecture if + it's not the default "x86". E.g. a library built with MSVC 10 for amd64 is + called "wxbase294ud_vc110_amd64.dll" now. + + Major new features in this release ---------------------------------- @@ -459,21 +524,152 @@ Major new features in this release was added. -2.9.4: +2.9.5: (released ????-??-??) +---------------------------- + +INCOMPATIBLE CHANGES SINCE 2.9.4: + +- The locale is not set automatically on startup any more, unlike in the + previous 2.9 versions (but like in 2.8). Use wxLocale (preferred) or call + wxApp::SetCLocale() from your overridden wxApp::Initialize() to restore the + old behaviour. +- wxWebView::New now takes a string identifier for the backend to be used + rather than a wxWebViewBackend enum value. + +All: + +- Add wxEvtHandler::CallAfter() method for asynchronous method calls. +- Add support for symlinks to wxFileName (David Hart). +- Add wxDIR_NO_FOLLOW flag for wxDir traversal (David Hart). +- Allow testing for symlink/FIFO/socket existence in wxFileName (David Hart). +- Many important bug fixes in wxFileSystemWatcher (David Hart). +- Add new wxFSW_EVENT_ATTRIB and wxFSW_EVENT_UNMOUNT flags (David Hart). +- Add separate read/written bytes counters and per-direction NOWAIT and WAITALL + flags to wxSocket (Rob Bresalier). +- Add wxProcess::SetPriority() (Marian Meravy). +- Add wxDir::Close() method (Silverstorm82). +- Fix wxDateTime::GetWeekOfYear() for the last week of year (aimo). +- Fix compilation of wxHash{Map,Set} with g++ 4.7 (Nathan Ridge). +- Fix posting large amounts of data in wxHTTP (Platonides). +- Add wxFile::ReadAll() for consistency with wxFFile. +- Add wxDateTime::DiffAsDateSpan() and wxDateSpan::GetTotalMonths() (jonasr). +- Add wxVector::assign() (Jonas Rydberg). +- Added Nepali translation (Him Prasad Gautam). + +All (GUI): + +- Add support for wxAuiNotebook to XRC (Steven Lamerton). +- Add support for wxRibbonBar and related controls to XRC (Armel Asselin). +- Add wxBITMAP_PNG() macro similar to wxBITMAP() but for PNG files. +- Add new wxSimplebook class. +- Support hexadecimal numbers in wxSpinCtrl. +- Respect window max size in wxBoxSizer (Nathan Ridge). +- Add support for searching in wxWebView for MSW and GTK (Allonii). +- Add generic wxFileSystem support to wxWebView with + wxWebViewFSHandler (Nick Matthews). +- Add possibility to disable context menu in wxWebView. +- Add ability to register custom wxWebView backends using + wxWebView::RegisterFactory and a wxWebViewFactory derived class. +- Add possibility to hide and show again wxRibbonBar pages (wxBen). +- Add wxRibbonBar pages highlighting (wxBen). +- Add expand/collapse button to wxRibbonBar (rakeshthp). +- Fix item data access in wxDataViewListCtrl (Kry). +- Fix problem with floating maximized AUI panes (Laurent Poujoulat). +- Add owned client data support to wxRibbonButtonBar. Notice that the client + data now must be set using the SetItemClient{Data,Object}() methods and not + when inserting the button (Laurent Poujoulat). +- Add wxBitmapButton::NewCloseButton(). +- Add wxTextEntry::SelectNone() (troelsk). +- Restore the original wxGrid col/row size when unhiding it (Michael Richards). +- Don't show hidden wxGrid columns/rows when resizing them (Michael Richards). +- Fix text origin and extent computations in wxSVGFileDC (Neil Chittenden). +- Show tooltips for the too long items in generic wxTreeCtrl (Steven Houchins). +- Add wxStyledTextCtrl::AnnotationClearLine() (sentieshar). +- Add support for background-color style to span element in wxHTML (gevorg). +- Add limited support for CSS styles for tags too in wxHTML (gevorg). +- Add "inherit" to XRC tag (Steffen Olszewski, Gero Meßsysteme GmbH). +- Add support for wxALWAYS_SHOW_SB style to wxScrolled<> (Catalin Raceanu). +- Add wxTreeCtrl::EnableBellOnNoMatch() (Jonathan Dagresta). +- Implement incremental search in wxGenericListCtrl (Jonathan Dagresta). +- Make TAB behaviour in wxGrid more flexible (Fulvio Senore). +- Add missing styles support to wxWindow XRC hanlder (Steffen Olszewski). +- Allow specifying all wxFlexGridSizer parameters in XRC (Steffen Olszewski). +- Close wxLogWindow automatically if it's the last remaining top level window. +- Implement clipping for wxSVGFileDC (Steve Benbow). +- Added wxDirCtrl::GetPath() (troelsk). +- Added wxEVT_COMMAND_DIRCTRL_CHANGED event (troelsk). +- Added wxControl::GetSizeFromTextSize() (Manuel Martin). +- Optionally allow showing tooltips for disabled ribbon buttons (wxBen). +- Add wxTL_NO_HEADER style to wxTreeListCtrl (robboto). +- Add possibility to delay showing wxRichToolTip (John Roberts). +- Add "rect" paramerer to wxRichToolTip::ShowFor() (John Roberts). +- Add wxListCtrl::EnableAlternateRowColours() (troelsk). +- Fix wrong tab order in wxAuiNotebook after dragging (Mark Barber). +- Fix bug in generic wxDataViewCtrl column dragging (jobuz). +- Add wxMask::GetBitmap() for wxMSW, wxGTK and wxOSX +- Add wxCheckListBox::GetCheckedItems() (hartwigw). +- Add wxAUI_TB_PLAIN_BACKGROUND wxAuiToolBar style (Allann Jones). + +wxGTK: + +- Allow building wxGTK3 with Broadway backend (Kolya Kosenko). +- Provide native implementation of wxNotificationMessage using libnotify. +- Generate clipboard events for wxComboBox and not only wxTextCtrl. +- Improve drag-and-drop of URLs. +- Make key event handling consistent with wxMSW (John Rails). +- Fix printing in landscape mode (Marcin Wojdyr). +- Fix path selection in wx{File,Dir}Dialog with GTK+ > 2.24.10 (obfuscated). +- Make "More windows..." menu item in MDI "Window" menu actually work. + +wxMSW: + +- Fix setting colours for the text part of wxComboBox (Igor Korot). +- Add support for CURRENCY and SCODE types to OLE Automation helpers (PB). +- Allow setting LCID used by wxAutomationObject (PB). +- Better support for SAFEARRAY in OLE Automation code (PB). +- Fix calling Iconize(false) on hidden top level windows (Christian Walther). +- Don't send any events from wxSpinCtrl::SetRange() even if the value changed. +- Display system drag images during drag and drop if available (PeterO). +- Fix setting initial wxSpinCtrl value outside 0..100 range (joim). +- Fix changing labels of menu items with bitmaps (Daniel Hyams). +- Fix appearance of multiline coloured wxCheckBox (Catalin Raceanu). + +wxOSX/Cocoa: + +- Implement image support in wxNotebook (Malcolm MacLeod). +- Add support for button mnemonics (joostn). +- Implemented wxTextCtrl::SetDefaultStyle(). + + +2.9.4: (released 2012-07-09) ------ +INCOMPATIBLE CHANGES SINCE 2.9.3 + +- wxDataViewListCtrl doesn't delete its client data any more for compatibility + with wxListCtrl, use full wxDataViewCtrl if you don't need compatibility. + All: - Added wxLogFormatter to allow customizing wxLog output (Sébastien Gallou). +- Added wxFSInputStream for reading data from wxFileSystem (Armel Asselin). - Added "%z" support to wxDateTime::Format() and Parse() (Armel Asselin). - Add wxHTTP::SetPostBuffer(wxMemoryBuffer) and SetPostText() (Eran Ifrah). - Fix wrong time zone used in wxDateTime::UNow(). - Fix performance of wxStdInputStream with MSVC8/9 (wsu). - Added wxFileName::Exists(). +- Implement wxThread::SetConcurrency() for POSIX systems (Igor Korot). +- Fix deadlock due to too many events in Unix console apps (Lukasz Michalski). +- Added wxDir::GetNameWithSep(). +- Allow unloading wxPluginLibrary objects in any order (manyleaves). +- Fix passing strings with embedded NULs in wxThreadEvents (Steffen Olszewski). +- Add wxList::AsVector<>() helper (troelsk). All (GUI): +- Add wxGrid::Render() for printing wxGrid (John Roberts). - Added strike-through support to wxFont (Igor Korot). +- Add support for horizontal mouse wheel events to MSW and GTK (Lauri Nurmi). - Fix infinite loop in wxHtmlEasyPrinting when trying to page break images taller than the page height in wxHtmlEasyPrinting (Laurent Poujoulat). - Added wxFilePickerCtrl::SetInitialDirectory(). @@ -486,24 +682,49 @@ All (GUI): - Send wxEVT_UPDATE_UI for wxRibbonButtonBar and wxRibbonToolBar (Emilien Kia). - Add InsertXXXButton() to wxRibbonButtonBar and wxRibbonToolBar (Emilien Kia). - Allow enabling/disabling and toggling tools in wxRibbonToolBar (Emilien Kia). +- Add wxRibbonBar::DeletePage() and ClearPages() methods (Emilien Kia). +- Implement support for extension button to wxRibbonPanel (Emilien Kia). - Fix multiple item selection in generic wxTreeCtrl (Igor Korot). - Implement wxMenuBar::IsEnabledTop() for all major ports (Igor Korot). - Implement best size calculation for report mode wxListCtrl. - Fix setting of the frame icon when using non-standard icon sizes (vid). - Implement wxDV_ROW_LINES in generic wxDataViewCtrl (RedCAT). - Added EVT_AUI_PANE_ACTIVATED event (Ronny Krüger). +- Added support for page tooltips to wxAuiNotebook (Armel Asselin). - Added wxSplitterWindow::SetSashInvisible() (Armel Asselin). - +- Enable/disable "Window" menu items in AUI MDI correctly (wsu). +- Added wxTimePickerCtrl::Get/SetTime(). +- Fix WXK_MENU handling in wxStyledTextCtrl under wxGTK (cantabile). +- Added wxAcceleratorEntry::ToRawString() (Armel Asselin). +- Added wxDataViewEvent::SetDragFlags() and GetDropEffect() (Friedrich). +- Added support for fields and virtual attributes to wxRichTextCtrl. +- Added custom text and dimension scaling to wxRichTextCtrl. +- Added pixel font size capability to wxTextAttr and wxRichTextCtrl. +- Fully implement wxStyledTextCtrl::PositionToXY() (troelsk). +- Added wxDataViewListCtrl::{Set,Get}ItemData(). +- Added wxDataViewListCtrl::GetItemCount() (Kry). +- Added support for Korean Johab and Vietnamese encodings (jank9201). +- Fix off by 1 bug with setting font size in points in wxHTML (gevorg). +- Fix return value of wxGenericListCtrl::InsertColumn() (Sebastian Walderich). +- Add wxDocManager::Get{Views,Documents,Templates}Vector() (troelsk). GTK: +- Added support for GTK+ 3 (John Chain and Paul Cornett) - Implement support for wxBG_STYLE_TRANSPARENT (Armel Asselin). +- Implement stippled/hatched pens/brushes in wxGraphicsContext (Kit Bishop). - Fix wxNotebook best size calculation. - Implement wxDirDialog::Create() and wxFileDialog::Create() (vinayakgarg). +- Fix const methods display in assert dialog (vinayakgarg). +- Implement native tab art for wxAUI (Jens Lody and Teodor Petrov). +- Fix pasting large amounts of text (Bradley Hawkins). +- Show gstreamer errors if wxMediaCtrl fails to play file. +- Fix wxGridCellEnumEditor mouse handling (Fulvio Senore). MSW: - Fixed regression with initial focus in the dialogs in 2.9.3. +- Use new style directory selection dialog under Vista and later (PB). - Added support for wxEXEC_MAKE_GROUP_LEADER to wxExecute (tteras). - Set wxMenu being closed in wxEVT_MENU_CLOSE events (Marcin Malich). - Fix coordinates and Z-position for joystick events (Markus Juergens). @@ -511,16 +732,30 @@ MSW: - Add wxActiveXContainer::QueryClientSiteInterface and implement it in wxWebViewIE to improve the default behaviour (Allonii). - Update stretchable spaces in wxToolBar after tool removal (Catalin Raceanu). +- Implement wxGraphicsContext::SetInterpolationQuality() (Eric Jensen). +- Fix coordinate handling in wxDC::Blit() when source DC is a DIB. +- Fix handling of composite windows in wxToolTip (Armel Asselin). +- Add VT_I8 support to wxAutomationObject (PB). +- Fix wxListbook size calculations to avoid spurious scrollbars. +- Fix code compilation with wxUSE_UNICODE_UTF8 (Kolya Kosenko). +- Fix crash in wxTreeCtrl when calling GetSelection() from selection changed + event handler under Vista and later (sbrowne). +- Fix text extent computation in wxGraphicsContext (juria90). OSX: - Provide native implementations of wxDatePickerCtrl and wxTimePickerCtrl. - Fix handling of positional parameters in wxPrintf() &c (David Connet). +- Implement wxStackWalker. Univ: - Fix regression with read-only wxComboBox appearance (Jason Erb). +Unix: + +- Fix bug with wxDir("/").GetName() returning empty string. + 2.9.3: (released 2011-12-14)