]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt
class/struct mismatch
[wxWidgets.git] / docs / changes.txt
CommitLineData
70cf18ef
VZ
1-------------------------------------------------------------------------------
2 wxWidgets Change Log
3-------------------------------------------------------------------------------
d643b80e 4
aae53500
VZ
5INCOMPATIBLE CHANGES SINCE 2.6.x
6================================
7
b1f3b29c
VZ
8Changes in behaviour not resulting in compilation errors, please read this!
9---------------------------------------------------------------------------
10
11- For all wxInputStreams, Eof() becomes true after an attempt has been made
12 to read _past_ the end of file.
13- wxFileName::DirExists() checks if the path of the file is a directory, not
049e9de7
JS
14 if the whole name is a directory.
15- wxDialog::CreateButtonSizer() may return NULL now, please see the manual.
16- wxStaticBoxSizer now deletes the associated wxStaticBox when it is deleted.
7788fc40 17- wxArray::Alloc() now works as reserve() and does not clear the array any more
b1f3b29c 18- Windows calling CaptureMouse() are now required to handle the
049e9de7 19 wxEVT_MOUSE_CAPTURE_LOST event and not call ReleaseMouse() in this case.
a02dd570
MW
20- wxInputStream::GetC() now returns an int in the range 0 - 255 on success
21 instead of a char the range -128 - 127.
b1f3b29c
VZ
22
23
24Changes in behaviour which may result in compilation errors
25-----------------------------------------------------------
26
d2a93a2a
VZ
27- Some classes (notably wxBitmap and wxImage) don't define operator==() as it
28 used to work in somewhat unexpected way as it compared only internal pointers
29 and not the object data. The code using it will have to be updated:
30 * If the object was compared with wxNullXXX, use IsOk() method instead
c751d1d7 31 * If valid object need to be compared, use IsSameAs() to reproduce the old
bc2ce7a5 32 behaviour or change the code to avoid comparing bitmaps &c.
7f0d9d71 33- wxFontData::GetColour() now returns a const colour.
e72d82bb 34- wxDC objects can't be created directly now (this never worked, now it doesn't
7f0d9d71 35 even compile).
7f0d9d71 36- wxCHECK family of macros now must be followed by a semicolon.
eec47cc6
VZ
37- wxMBConv::cMB2WC() and cWC2MB() take size of the input buffer and return
38 length of the converted string in all cases now.
bc55e31b
VS
39- wxHtmlWindow::OnCellClicked() now returns bool.
40- wxHtmlCell::OnMouseClick() was deprecated and replaced with
41 wxHtmlCell::ProcessMouseClick(); old code overriding OnMouseClick() will
42 continue to work with WXWIN_COMPATIBILITY_2_6, but should be rewritten to
43 use ProcessMouseClick().
88a1b648
VS
44- wxHtmlCell::GetCursor() was deprecated and replaced with
45 wxHtmlCell::GetMouseCursor(); old code overriding GetCursor() will
46 continue to work with WXWIN_COMPATIBILITY_2_6, but should be rewritten to
47 use GetMouseCursor().
fd0bab43 48- wxHtmlCell::AdjustPagebreak() signature has changed, update your code if you
7f0d9d71 49 override it.
6540132f 50- wxFontEnumerator::GetFacenames() and GetEncodings() now return arrays and
7f0d9d71 51 not pointers to arrays.
4334c3d5 52- SetDefaultItem() method was moved from wxPanel to wxTopLevelWindow
684e5b95 53- wxDialog::OnOK/OnCancel() don't exist any more, use SetAffirmative/EscapeId()
4f92e6ef 54- wxPathList doesn't derive from (deprecated) wxStringList any more
5d5d9ae8 55- wxGLContext class has no 1:1 coupling to a wxGLCanvas class any more.
049e9de7
JS
56 As a consequence, the class interface changed largely. Code updates, if
57 any are required at all, are easy to accomplish though.
eec47cc6 58
637b7e4f 59
f303d69f
VZ
60Deprecated methods since 2.6.x and their replacements
61-----------------------------------------------------
62
7f0d9d71 63- wxGetWorkingDirectory() deprecated in favour of wxGetCwd().
049e9de7 64- wxDC::BeginDrawing() and wxDC::EndDrawing() deprecated, don't use them.
bc2ce7a5
JS
65- wxWindowBase::GetBestFittingSize --> wxWindowBase::GetEffectiveMinSize.
66- wxWindowBase::SetBestFittingSize --> wxWindowBase::SetInitialSize.
6fd730f5
MW
67- Seeking on a zip stream returned from wxFileSystem without using the new
68 wxFS_SEEKABLE flags is deprecated. You can still seek, but use the flag.
69- Constructor wxZipInputStream(const wxString& archive, const wxString& file)
70 deprecated in favour of wxFileSystem (other zip ctors are not deprecated).
71
f303d69f 72
aae53500 73
9129836e 74Major new features in 2.8 release
b1f3b29c 75---------------------------------
12dc0a01 76
049e9de7 77- New AUI library supporting docking windows and much more.
bc2ce7a5
JS
78- New rich text control library implementing a generic wxRichTextCtrl,
79 using only the wxWidgets API. Also includes formatting dialogs, conversion
80 to HTML, and printing classes.
81- New wxComboCtrl class giving the ability to create custom, graphical
82 comboboxes. Associated classes include wxOwnerDrawnComboBox, wxComboPopup
83 and wxBitmapComboBox.
84- Further functionality including wxAnimationCtrl (moved from contrib/src/anim
97331b82 85 and enhanced), wxSimpleHtmlListBox, wxHyperlinkCtrl, wxColourPickerCtrl,
bc2ce7a5
JS
86 wxDirPickerCtrl, wxFilePickerCtrl, wxFontPickerCtrl, wxCollapsiblePane,
87 wxAboutBox, wxTreebook, tar streams.
12dc0a01
VZ
88
89
9129836e
VZ
902.8.0
91-----
92
93All:
94
95- wxArrayString::Alloc() now works as reserve() and doesn't clear array contents
bc2ce7a5 96- Fixed long standing bug in wxFileConfig groups renaming (Antti Koivisto).
c20267d8
MW
97- New option wxFS_READ | wxFS_SEEKABLE for wxFileSystem::OpenFile() to return
98 a stream that is seekable.
afcdd052 99- Fixed bug in wxCalendarCtrl::HitTest() when clicking on month change arrows
54a4121a
VZ
100- Added wxWindow::GetWindowBorderSize() and corrected wxTreeCtrl::GetBestSize()
101 for a control with borders (Tim Kosse)
9129836e 102
077c7880
VZ
103wxMSW:
104
bc2ce7a5 105- Fixed version script problems when using configure with cygwin/mingw32.
a7734bdf 106- Use system default paper size for printing instead of A4.
19def5e7 107- Fix (harmless) assert in virtual list control under Vista
a7734bdf 108- Fix colours when converting wxBitmap with alpha to wxImage (nusi).
a7734bdf 109
927637fd
VZ
110wxGTK:
111
112- Allow dynamically changing most of text control styles
06629565 113- Enable use of libgnomeprintui by default in configure
927637fd 114
077c7880 115
432efcb0
RD
1162.7.2
117-----
118
f8f6c91a
MW
119All:
120
121- Added wxFFile overload to wxFileName::CreateTemporaryFileName().
049e9de7 122- Added GetTempDir() to wxFileName and wxStandardPaths.
f068697b
MW
123- Added wxTar streams.
124- Added wxFilterFSHandler and wxArchiveFSHandler.
bc2ce7a5 125- Added wxString::ToLongLong() and ToULongLong().
f8f6c91a 126
432efcb0
RD
127All (GUI):
128
129- wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
130 calling SelectObject itself if a valid bitmap is passed.
19c9f36f
RD
131- Reverted wxBuffered[Paint]DC to pre 2.7.1 state, added
132 wxAutoBufferedPaintDC and wxAutoBufferedPaintDCFactory.
049e9de7
JS
133- Renamed wxProgressDialog::UpdatePulse() to just Pulse().
134- Added wxCollapsiblePane (Francesco Montorsi).
135- Added wxSimpleHtmlListBox (Francesco Montorsi).
96202eaa
JS
136- Printing framework fixes by Robert J. Lang. Bugs fixed,
137 wxPrinterDC::GetPaperRect() and other functions added to allow
138 easier printing implementation, and the documentation updated.
139- Many enhancements to wxRichTextCtrl including URL support,
140 formatting and symbol dialogs, print/preview, and better list
141 formatting.
bc2ce7a5
JS
142- Support for loading TGA files added (Seth Jackson).
143- Added wxTB_RIGHT style for right-aligned toolbars (Igor Korot).
0f11c233 144- wxHtmlWindow now generates events on link clicks (Francesco Montorsi).
bc2ce7a5 145- wxHtmlWindow now also generates wxEVT_COMMAND_TEXT_COPY event.
432efcb0 146
2baa2b0e
VZ
147Unix Ports:
148
149- Added autopackage for wxGTK and an example of using autopackage for a wx
049e9de7
JS
150 program (Francesco Montorsi).
151
152wxGTK:
2baa2b0e 153
4ff4d045 154- More RTL work.
049e9de7
JS
155- Support wxALWAYS_SHOW_SB.
156- Speed up MIME types loading. Only the GNOME database should be loaded under
157 GNOME etc. For this, the code queries the X11 session protocol.
96202eaa 158- wxCaret redraw problem during scrolling fixed.
432efcb0
RD
159
160
e63f19ba
VZ
1612.7.1
162-----
163
d1af8e2d
VZ
164All:
165
3306aec1
JS
166- Added wxDir::FindFirst() (Francesco Montorsi).
167- Added wxPlatformInfo class (Francesco Montorsi).
168- Added wxLocale::IsAvailable() (Creighton).
bc2ce7a5
JS
169- Added Malay translations (Mahrazi Mohd Kamal).
170- Added reference counting for wxVariant.
b7cacb43 171- For consistency, all classes having Ok() method now also have IsOk() one, use
049e9de7
JS
172 of the latter form is preferred although the former hasn't been deprecated yet.
173- Added wxFileName::Is(Dir|File)(Writ|Read|Execut)able() (Francesco Montorsi).
174- Added wxFileName::GetSize() and GetHumanReadableSize() (Francesco Montorsi).
175- Added wxSizer::Replace (Francesco Montorsi).
176- wxXmlDocument can now optionally preserve whitespace (Francesco Montorsi).
78041f2e
VZ
177- Added wxBookCtrl::ChangeSelection() and wxTextCtrl::ChangeValue() to provide
178 event-free alternatives to SetSelection() and SetValue() functions; see the
179 "Events generated by the user vs programmatically generated events" paragraph
049e9de7 180 in the "Event handling overview" topic for more info.
d1af8e2d 181
e63f19ba
VZ
182All (GUI):
183
3306aec1
JS
184- Support for right-to-left text layout (started by Diaa Sami during Google Summer of
185 Code, with a lot of help from Tim Kosse and others).
049e9de7
JS
186- wxAnimationCtrl added (Francesco Montorsi).
187- Added wxAboutBox() function for displaying the standard about dialog.
3306aec1
JS
188- Added wxID_PAGE_SETUP standard id.
189- Added wxSize::IncBy() and DecBy() methods.
049e9de7 190- Added wxTextCtrl::IsEmpty().
3306aec1
JS
191- Added file type parameter to wxTextCtrl::LoadFile, wxTextCtrl::SaveFile for
192 consistency with wxRichTextCtrl.
193- wxRichTextCtrl: fixed range out-by-one bug to be consistent with wxTextCtrl API,
194 fixed some attribute bugs and added wxRichTextStyleComboCtrl.
049e9de7
JS
195- Added wxWindow::IsDoubleBuffered().
196- Added wxHL_ALIGN_* flags to wxHyperlinkCtrl (Francesco Montorsi).
197- Added wxGauge::Pulse() and wxProgressDialog::UpdatePulse() (Francesco Montorsi).
e63f19ba 198
916eecaa
VZ
199wxMSW:
200
3306aec1 201- Implemented wxComboBox::SetEditable().
a0020fcd 202- wxSemaphore::Post() returns wxSEMA_OVERFLOW as documented (Christian Walther)
3306aec1
JS
203- Fixed a bug whereby static controls didn't use the correct text colour if the
204 parent's background colour had been set (most noticeable when switching to a
205 high-contrast theme).
049e9de7 206- Respect wxBU_EXACTFIT style in wxToggleButton (Alexander Borovsky).
916eecaa 207
95768535
MW
208wxMac:
209
210- Add parameter to the --enable-universal_binary configure option for the path
211 to the SDK.
212
ab73fe8d
VZ
213wxGTK:
214
3306aec1
JS
215- Automatically use stock items for menu items with standard ids.
216- Setting cursor now works for all controls.
049e9de7 217- Implemented right-to-left support.
ae6a64b6 218- Implemented left indentation and tab stops support in wxTextCtrl (Tim Kosse).
049e9de7 219- Fixed wxHTML rendering of underlined text of multiple words (Mart Raudsepp).
ab73fe8d 220
b48f51ca
VZ
221wxUniv:
222
049e9de7 223- Added wxTLW::UseNativeDecorations() and UseNativeDecorationsByDefault().
b48f51ca 224
e63f19ba 225
254e8e29
VZ
2262.7.0
227-----
228
42d0df00
VZ
229All:
230
7f0d9d71
JS
231- Added positional parameters support to wxVsnprintf() (Francesco Montorsi).
232- wx(F)File, wxTextFile and wxInputStreams recognize Unicode BOM now.
233- Many fixes for UTF-16/32 handling in Unicode builds.
b83d533a 234- wxLaunchDefaultBrowser() now supports wxBROWSER_NEW_WINDOW flag.
3af9f2de 235- Added wxStandardPaths::GetResourcesDir() and GetLocalizedResourcesDir()
7f0d9d71 236- Added wxStandardPaths::GetDocumentsDir() (Ken Thomases).
b83d533a 237- Added wxStringTokenizer::GetLastDelimiter(); improved documentation.
7f0d9d71
JS
238- Fixed wxTextFile in Unicode build.
239- Added possibility to specify dependencies for a wxModule.
c6bb9255
MW
240- Speed improvements to wxRegEx when matching is done in a loop such as
241 during a search and replace.
242- Fix regerror and regfree name conficts when built-in regex and system regex
243 are both used in the same program.
a5fa20cb
JS
244- Basic authentication supported added to wxHTTP.
245- wxCondition::WaitTimeout() now returns correct value when timeout occurs.
246- Fixed occasional wxThread cleanup crash.
247- Bug in wxLogStream::DoLogString in Unicode builds fixed.
248- Added support for memo fields to wxODBC.
249- Fixed Unicode builds using SunPro compiler by defining__WCHAR_TYPE__.
250- wxFileName now also looks for TMPDIR on Unix.
251- Fixed build error in list.h with VC++ 2005.
252- Fixed wxODBC buffer overflow problem in Unicode builds.
2decc3bd 253- Fixed wxSocketBase::InterruptWait on wxBase.
b83d533a
JS
254- Important code cleanup (Paul Cornett).
255- Added support for wxLongLong in wx stream classes (Mark Junker).
24f4fc23 256- wxSOCKET_REUSEADDR can be used with wxSocketClient.
480abc8f 257- Overloaded Connect() and SetLocal() methods for binding to local address/port.
7f0d9d71
JS
258- Albanian translation added (Besnik Bleta).
259- Assert messages now show the function in which assert failed.
260- wxApp::OnAssertFailure() should now be used instead the old wxApp::OnAssert().
261- Fixed several bugs in wxDateTime::ParseDate().
968f291b 262- The WXK*PRIOR and WXK*NEXT constants are now aliases for WXK*PAGEUP
6fa9383b 263 and WXK*PAGEDOWN. If you have switch statements that use both
968f291b 264 constants from a set then you need to remove the PRIOR/NEXT
6fa9383b 265 versions in order to eliminate compiler errors.
44c930eb
JG
266- Fixed bug where wxDateTime::Now() would sometimes return an incorrect value
267 the first time it was called.
7f0d9d71
JS
268- Added wxString::rbegin() and rend().
269- Added wxString::EndsWith().
635f2bad
KH
270- wxSocket::_Read continues reading from socket after exhausting pushback buffer.
271 Previously, only the buffer would be returned, even if more data was requested.
7f0d9d71
JS
272- Added wxPowerEvent (currently MSW-only).
273- Make wx-config compatible with Bourne shells.
3306aec1
JS
274- Fixed wxDb::Open(wxDbConnectInf) when using connection string (Hellwolf Misty).
275- Fixed crash in wxDb::Open() in Unicode build (Massimiliano Marretta).
276- Fixed wxTimeSpan::Format() for negative time spans.
277- Optionally count repeating wxLog messages instead of logging all (Lauri Nurmi).
42d0df00 278
c6ece595
VZ
279All (GUI):
280
3306aec1 281- New AUI (Advanced User Interface) library for docking windows and much more.
7f0d9d71 282- Added wxComboCtrl and wxOwnerDrawnComboBox (Jaakko Salli).
03a37db9 283- Added wxTreebook (uses a wxTreeCtrl to control pages).
7f0d9d71
JS
284- Added wxColour/Dir/File/Font/PickerCtrls (Francesco Montorsi).
285- Added wxDC::GradientFillLinear/Concentric().
286- Added wxHyperlinkCtrl (Francesco Montorsi).
287- Added clipboard events (wxEVT_COMMAND_TEXT_COPY/CUT/PASTE).
288- Allow to reorder wxGrid columns by drag-and-drop (Santiago Palacios).
289- Added wxRadioBox::SetItemToolTip().
290- Added support for CMYK JPEG images loading (Robert Wruck).
291- Added wxListCtrl::GetSubItemRect() and subitem hit testing (Agron Selimaj).
292- Added wxKeyEvent::GetModifiers().
5d7836c4 293- Added wxDialog::SetEscapeId().
f7c40316 294- wxItemContainerImmutable::FindString unified (affects wxRadioBox, wxListBox,
5d7836c4
JS
295 wxComboBox and wxChoice).
296- wxWindow::Fit() now works correctly for frames and dialogs too.
297- Added access to the border size between pages and controller in book
298 based controls (wxBookCtrlBase::Get/SetInternalBorder).
299- Added initial wxRichTextCtrl implementation.
d8fd7acb
WS
300- All book based controls (notebook, treebook etc.) share now the same
301 options for orientation (wxBK_TOP, wxBK_DEFAULT, ...) instead of duplicated
302 wxLB_TOP, wxNB_TOP, wxCHB_TOP, wxTBK_TOP.
3db52265
JS
303- Added parent window parameter to wxHelpController constructor
304 and added SetParentWindow/GetParentWindow.
60104cba 305- wxMultiChoiceDialog uses now wxCheckListBox if possible, wxListBox if not.
b83d533a 306- Added wxBitmapButton::SetHoverBitmap().
60fef964
WS
307- Access to titles through Get/SetTitle is available now only for top level
308 windows (wxDialog, wxFrame).
b83d533a 309- Fixed memory leak of pending events in wxEvtHandler.
7f0d9d71 310- Added wxRadioBox::IsItemEnabled/Shown().
3d941982 311- Added space after list item number in wxHTML.
3c115835 312- Implemented <sub> and <sup> handling in wxHTML (based on patch
b83d533a 313 by Sandro Sigala).
f14d6dd1 314- Added caption parameter to wxGetFontFromUser and wxGetColourFromUser.
7dd40b6f 315- Added wxGetMouseState function.
c3e5d4e2
JS
316- Added wxHtmlHelpWindow, wxHtmlHelpDialog and wxHtmlModalHelp classes,
317 allowing HTML help to be embedded in an application.
a5fa20cb
JS
318- wxCalendarCtrl positioning and hit-testing fixes for dimensions other than
319 best size.
d9170b47 320- wxCalendarCtrl colour schema changed and adjusted to system settings.
7f0d9d71 321- wxImage::Mirror() and GetSubBitmap() now support alpha (Mickey Rose).
a5fa20cb
JS
322- More checking of image validity before loading into wxImage.
323- Added wxImage::ConvertToGreyscale.
324- Added ability to use templates with static event tables
b83d533a
JS
325 with BEGIN_EVENT_TABLE_TEMPLATEn() macros.
326- Added play, pause, and state change events to wxMediaCtrl.
a5fa20cb 327- Added double-buffering to wxVListBox and fixed a scrolling issue.
fd0d619f 328- Added wxToolbook (uses a wxToolBar to control pages).
cc8bc5aa
JS
329- Added SetSheetStyle to wxPropertySheetDialog and allowed it to
330 behave like a Mac OS X settings dialog.
7cc1ad29
JS
331- Added <disabled> XRC tag for wxToolBar elements and <bg> for wxToolBar itself.
332- Fixed centering of top level windows on secondary displays.
333- Implemented wxDisplay::GetFromWindow() for platforms other than MSW.
b83d533a 334- UpdateUI handler can now show/hide the window too (Ronald Weiss).
0f30d8e3 335- More than one filter allowed in in wxDocTemplate filter.
b83d533a
JS
336- Added wxListBox::HitTest().
337- Added wxDisplay::GetClientArea().
894b93d3 338- Indices and counts in wxControlWithItems derived API are unsigned.
bc55e31b
VS
339- Added support for links to wxHtmlListBox; use code has to override
340 wxHtmlListBox::OnLinkClicked() to take advantage of it.
7f0d9d71 341- Added an easier to use wxMenu::AppendSubMenu().
40989e46 342- wxString <-> wxColour conversions in wxColour class (Francesco Montorsi).
7f0d9d71
JS
343- Fixed bug with ignoring blank lines in multiline wxGrid cell labels.
344- Added wxTextAttr::Merge() (Marcin Simonides).
345- Added wxTB_NO_TOOLTIPS style (Igor Korot).
346- Added wxGenericDirCtrl::CollapsePath() (Christian Buhtz).
70934138 347- Added wxTreeCtrl::ExpandAllChildren() (Christian Buhtz)
6b8f5d30 348- Fixed 64-bit issue in wxNotebook causing segfaults on Tru64 Unix.
7f0d9d71
JS
349- Made it possible to associate context help to a region of a window.
350- Added support for tabs in wxRichTextCtrl (Ashish More).
d8766675 351- Fixed problem with zoom setting in print preview.
3b2cb431 352- Moved wxRichTextCtrl from the advanced library to its own.
9804d540 353- wxNB_HITTEST_* flags renamed to wxBK_HITTEST_* to serve all book controls.
07880314 354- Added wxTopLevelWindow::SetTransparent and CanSetTransparent, with
50f3c41d 355 implementations (so far) for wxMSW and wxMac.
3306aec1
JS
356