]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/changes.txt
Patch [669503] Patch to CW7 wxMSW project file
[wxWidgets.git] / docs / changes.txt
... / ...
CommitLineData
1----------------------------
2wxWindows 2.5/2.6 Change Log
3----------------------------
4
5INCOMPATIBLE CHANGES SINCE 2.4.x
6================================
7
8OTHER CHANGES
9=============
10
112.5.0
12-----
13
14All:
15
16- added wxDateSpan::operator==() and !=() (Lukasz Michalski)
17- use true/false throughout the library instead of TRUE/FALSE
18- wxStopWatch::Start() resumes the stop watch if paused, as per the docs
19
20All GUI ports:
21
22- implemented GetEditControl for wxGenericTreeCtrl (Peter Stieber)
23- improved contrib/utils/convertrc parsing (David J. Cooke)
24- fixed handling of URLs and filenames in wxFileSystem
25- implemented alignment for wxGrid bool editor and renderer
26- support wxListCtrl columns alignment for all platforms and not just MSW
27- Changed to type-safe wxSizerItemList for wxSizer child items.
28
29 Deprecated:
30
31 wxSizer::Remove( wxWindow* )
32 - it does not function as Remove would usually be expected to
33 and destroy the window, use Detach instead.
34
35 wxSizer::GetOption(),
36 wxSizer::SetOption()
37 - wxSizer 'option' parameter was renamed 'proportion' to better
38 reflect its action, use Get/SetProportion instead.
39
40 wxKeyEvent::KeyCode()
41 - use GetKeyCode instead.
42
43 wxList:: Number, First, Last, Nth
44 - use typesafe GetCount, GetFirst, GetLast, Item instead.
45
46 wxNode:: Next, Previous, Data
47 - use typesafe Get* instead.
48
49 wxListBase::operator wxList&()
50 - use typesafe lists instead.
51
52Unix:
53
54- fixed compilation on systems with zlib installed but < 1.1.3 version
55- fixed compilation on Solaris 7 with large files support enabled
56
57wxGTK:
58
59- fixed wxMenu::Remove (John Skiff and Benjamin Williams)
60- made wxTextCtrl::EmulateKeyPress() work for Delete and Backspace
61- fixed wxTopLevelWindow::ShowFullScreen to work with kwin, IceWM and
62 window managers that support _NET_WM_STATE_FULLSCREEN
63
64wxMSW:
65
66- possibility to use DIBs for wxBitmap implementation (Derry Bryson)
67- wxStaticBitmap doesn't stretch its bitmap any longer (like other ports)
68- support for accelerator keys in the owner drawn menus (Derry Bryson)
69- wxCaret::SetSize() doesn't hide the caret any longer as it used to
70- wxCheckListBox::Check() doesn't send CHECKLISTBOX_TOGGLE event any more
71- fixed bug with wxTR_EDIT_LABELS not workign with wxTR_MULTIPLE
72- fixes for compilation with OpenWatcom compiler
73- fixed wxStaticText best size calculation (was wrong by '&' width)
74- fixed calling wxFrame::Maximize(FALSE) before the window is shown
75
76OLD CHANGES
77===========
78
79INCOMPATIBLE CHANGES SINCE 2.2.x
80================================
81
82 Please take a few minutes to read the following list, especially
83 paying attention to the most important changes which are marked
84 with '!' in the first column.
85
86 Also please note that you should ensure that WXWIN_COMPATIBILITY_2_2
87 is defined to 1 if you wish to retain maximal compatibility with 2.2
88 series -- however you are also strongly encouraged to try to compile
89 your code without this define as it won't be default any longer in
90 2.6 release.
91
92 NB: if you want to build your program with different major versions
93 of wxWindows you will probably find the wxCHECK_VERSION() macro
94 (see the documentation) useful.
95
96
97wxBase:
98
99! wxArray<T>::Remove(size_t) has been removed to fix compilation problems
100 under 64 bit architectures, please replace it with RemoveAt() in your
101 code.
102
103! wxArray<T> macros have been changed to fix runtime problems under 64 bit
104 architectures and as a side effect of this WX_DEFINE_ARRAY() can only be
105 used now for the pointer types, WX_DEFINE_ARRAY_INT should be used for the
106 arrays containing non-pointers.
107
108- wxObject::CopyObject() and Clone() methods were removed because they
109 simply don't make sense for all objects
110
111- wxEvent now has a pure virtual Clone() method which must be implemented
112 by all derived classes, if you have user-defined event classes please
113 add "wxEvent *Clone() const { return new MyEvent(*this); }" line to them
114
115- small change to wxStopWatch::Pause() semantics, please see the documentation
116
117- unlikely but possible incompatibility: the definition of TRUE has changed
118 from "1" to "(bool)1" (and the same thing for FALSE), so the code which
119 could be erroneously compiled previously such as doing "return FALSE" from
120 a function returning a pointer would stop compiling now (but this change
121 is not supposed to have any effects on valid code)
122
123- another minor change: wxApp::OnAssert() has a new "cond" argument, you
124 must modify YourApp::OnAssert() signature if you were using it to override
125 the default assert handling.
126
127All (GUI):
128
129! the event type constants are not constants any more but are dynamically
130 allocated during run-time which means that they can't be used as case labels
131 in the switch()es, you must rewrite them to use if()s instead
132
133 You may also define WXWIN_COMPATIBILITY_EVENT_TYPES to get the old behaviour
134 but this is strongly discouraged, please consider changing your code
135 instead!
136
137! wxDialog does not derive from wxPanel any longer - if you were using it in
138 your code, please update it. The quick fix for the most cases is to replace
139 the occurrences of wxPanel with wxWindow.
140
141! if you handle (and don't skip) EVT_KEY_DOWN, the EVT_CHAR event is not
142 generated at all, so you must call event.Skip() in your OnKeyDown() if
143 you want to get OnChar() as well
144
145- in general, the key events sent for the various non ASCII key combinations
146 have been changed to make them consistent over all supported platforms,
147 please see the wxKeyEvent documentation for details
148
149- wxYES_NO is now wxYES | wxNO and the manifest values of both wxYES and wxNO
150 have changed (to fix some unfortunate clashes), please check your code to
151 ensure that no tests for wxYES or wxNO are broken: for example, the following
152 will *NOT* work any longer:
153
154 if ( flags & wxYES_NO )
155 ... do something ...
156 if ( flags & wxYES )
157 ... do something else ...
158
159- static wxWizard::Create() doesn't exist any more, the wizards are created
160 in the same way as all the other wxWindow objects, i.e. by directly using
161 the ctor
162
163- wxGLCanvas now derives directly from wxWindow, not wxScrolledWindow
164
165- wxGridCellAttrProvider class API changed, you will need to update your code
166 if you derived any classes from it
167
168- wxImage::ComputeHistogram()'s signature changed to
169 unsigned long ComputeHistogram(wxImageHistogram&) const
170
171- wxEvtHandler cannot be copied/assigned any longer - this never worked but
172 now it results in compile-time error instead of run-time crashes
173
174- WXK_NUMLOCK and WXK_SCROLL keys no longer result in EVT_CHAR() events,
175 they only generate EVT_KEY_DOWN/UP() ones
176
177- the dialogs use wxApp::GetTopWindow() as the parent implicitly if the
178 parent specified is NULL, use wxDIALOG_NO_PARENT style to prevent this
179 from happening
180
181- several obsolete synonyms are only retained in WXWIN_COMPATIBILITY_2_2 mode:
182 for example, use wxScrolledWindow::GetViewStart() now instead of ViewStart()
183 and GetCount() instead of Number() in many classes
184
185- wxCmdLineParser does not use wxLog to output messages anymore.
186 to obtain the previous behaviour, add
187 wxMessageOutput::Set(new wxMessageOutputLog); to your program
188 (you will need to #include <wx/msgout.h>)
189
190wxMSW:
191
192! build system changed: setup.h is not a static file in include/wx any more
193 but is created as part of the build process under lib/<toolkit>/wx
194 where <toolkit> is of the form (msw|univ)[dll][u][d]. You'll need to update
195 the include path in your make/project files appropriately. Furthermore,
196 xpm.lib is no longer used by wxMSW, it was superseded by the wxXPMDecoder
197 class. You'll need to remove all references to xpm.lib from your
198 make/project files. Finally, the library names have changed as well and now
199 use the following consistent naming convention: wxmsw[ver][u][d].(lib|dll)
200 where 'u' appears for Unicode version, 'd' -- for the debug one and version
201 is only present for the DLLs builds.
202
203- child frames appear in the taskbar by default now, use wxFRAME_NO_TASKBAR
204 style to avoid it
205
206- all overloads of wxDC::SetClippingRegion() combine the given region with the
207 previously selected one instead of replacing it
208
209- wxGetHomeDir() uses HOME environment variable and if it is set will not
210 return the programs directory any longer but its value (this function has
211 never been meant to return the programs directory anyhow)
212
213- wxHTML apps don't need to include wx/html/msw/wxhtml.rc in resources file
214 anymore. The file was removed from wxMSW
215
216
217Unix ports:
218
219! You should use `wx-config --cxxflags` in your makefiles instead of
220 `wx-config --cflags` for compiling C++ files. CXXFLAGS contains CFLAGS
221 and the compiler flags for C++ files only, CFLAGS should still be used
222 to compile pure C files.
223
224
225wxThread and related classes:
226
227- The thread-related classes have been heavily changed since 2.2.x versions
228 as the old code had many serious problems. This could have resulted in
229 semantical changes other than those mentioned here, please review use of
230 wxThread, wxMutex and wxCondition classes in your code.
231
232! wxCondition now *must* be used with a mutex, please read the (updated) class
233 documentation for details and revise your code accordingly: this change was
234 unfortunately needed as it was impossible to ensure the correct behaviour
235 (i.e. absense of race conditions) using the old API.
236
237- wxMutex is not recursive any more in POSIX implementation (it hasn't been
238 recursive in 2.2.x but was in 2.3.1 and 2.3.2), please refer to the class
239 documentation for the discussion of the recursive mutexes.
240
241- wxMutex::IsLocked() doesn't exist any more and should have never existed:
242 this is was unique example of a thread-unsafe-by-design method.
243
244
245OTHER CHANGES
246=============
247
2482.4.0
249-----
250
251wxMSW:
252
253- fixed loss of client data in wxChoice::SetString()
254
2552.3.4
256-----
257
258All:
259
260- added (partial) Indonesian translations (Bambang Purnomosidi D. P.)
261- added wxSizer::Show()/Hide() (Carl Godkin)
262- fixed bugs in wxDateTime::SetToWeekDay()/GetWeek()
263
264Unix (Base/GUI):
265
266- minor OpenBSD compilation/linking fixes, now builds OOB under OpenBSD 3.1
267- don't include -I/usr/include nor -I/usr/local/include in wx-config output
268- shared library symbols are now versioned on platforms that support it (Linux)
269
270wxGTK:
271- Further work for GTK 2.0 and Unicode support.
272- Addition of native frame site grip.
273
274wxX11:
275- Unicode support through Pango library.
276
277wxMSW:
278
279- fixed crashes in wxListCtrl under XP
280- added context menu for rich edit wxTextCtrl
281
282wxHTML:
283
284- fixed wxHTML to work in Unicode build
285
2862.3.3
287-----
288
289wxBase:
290
291- building wxBase with Borland C++ is now supported (Michael Fieldings)
292- wxSemaphore class added, many fixed to wxCondition and wxThread (K.S. Sreeram)
293- fixes to the command line parsing error and usage messages
294- modified wxFileName::CreateTempFileName() to open the file atomically
295 (if possible) and, especially, not to leak the file descriptors under Unix
296- memory leak in wxHTTP fixed (Dimitri)
297- fixes to AM_PATH_WXCONFIG autoconf macro
298- added wxHashMap class that replaces type-unsafe wxHashTable and is modelled
299 after (non standard) STL hash_map
300- wxLocale now works in Unicode mode
301- wxLocale can now load message catalogs in arbitrary encoding
302- added wxShutdown() function (Marco Cavallini)
303- added wxEXPLICIT macro
304- IPC classes improved and memory leaks fixed (Michael Fielding).
305 Global buffer removed, duplication in docs removed
306- debug new/free implementations made thread-safe
307
308Unix (Base/GUI):
309
310- wxWindows may be built using BSD and Solaris (and possibly other) make
311 programs and not only GNU make
312- wxTCP-based IPC classes now support communicating over Unix domain sockets
313- wxWindows may be built as a dynamic shared library under Darwin / Mac OS X
314 lazy linking issues have been solved by linking a single module (.o) into
315 the shared library (two step link using distrib/mac/shared-ld-sh)
316- fixed thread priority setting under Linux
317
318All (GUI):
319
320- it is now possible to set the icons of different sizes for frames (e.g. a
321 small and big ones) using the new wxIconBundle class
322- implemented radio menu items and radio toolbar buttons
323- added possibility to show text in the toolbar buttons
324- added wxArtProvider class that can be used to customize the look of standard
325 wxWindows dialogs
326- significantly improved native font support
327- wxImage::ComputeHistogram() now uses wxImageHistogram instead of type-unsafe
328 wxHashTable
329- added IFF image handler
330- fixed using custom renderers in wxGrid which was broken in 2.3.2
331- support for multiple images in one file added to wxImage
332 (TIFF, GIF and ICO formats)
333- support for CUR and ANI files in wxImage added (Chris Elliott)
334- wxTextCtrl::GetRange() added
335- added wxGetFontFromUser() convenience function
336- added EVT_MENU_OPEN and EVT_MENU_CLOSE events
337- added Hungarian translations (Janos Vegh)
338- added wxImage::SaveFile(filename) method (Chris Elliott)
339- added wxImage::FloodFill and implemented wxWindowDC::DoFloodFill method
340 for GTK+, Mac, MGL, X11, Motif ports (Chris Elliott)
341- added (platform-dependent) scan code to wxKeyEvent (Bryce Denney)
342- added wxTextCtrl::EmulateKeyPress()
343- Added wxMouseCaptureChangedEvent
344- Added custom character filtering to wxTextValidator
345- wxTreeCtrl now supports incremental keyboard search
346- wxMessageOutput class added
347- wxHelpProvider::RemoveHelp added and called from ~wxWindowBase
348 so that erroneous help strings are no longer found as the hash
349 table fills up
350- updated libpng from 1.0.3 to 1.2.4
351- Added wxView::OnClosingDocument so the application can do cleanup.
352- generic wxListCtrl renamed to wxGenericListCtrl, wxImageList
353 renamed to wxGenericImageList, so they can be used on wxMSW
354 (Rene Rivera).
355- Added wxTreeEvent::IsEditCancelled so the application can tell
356 whether a label edit was cancelled.
357- added static wxFontMapper::Get() accessor (use of wxTheFontMapper is now
358 deprecated)
359
360wxMSW:
361
362- small appearance fixes for native look under Windows XP
363- fixed the bug related to the redrawing on resize introduced in 2.3.2
364- fixed multiple bugs in wxExecute() with IO redirection
365- refresh the buttons properly when the window is resized (Hans Van Leemputten)
366- huge (40*) speed up in wxMask::Create()
367- changing wxWindows styles also changes the underlying Windows window style
368- wxTreeCtrl supports wxTR_HIDE_ROOT style (George Policello)
369- fixed flicker in wxTreeCtrl::SetItemXXX()
370- fixed redraw problems in dynamically resized wxStaticText
371- improvements to wxWindows applications behaviour when the system colours
372 are changed
373- choose implicit parent for the dialog boxes better
374- fixed wxProgressDialog for ranges > 65535
375- wxSpinButton and wxSpinCtrl now support full 32 bit range (if the version
376 of comctl32.dll installed on the system supports it)
377- wxFontEnumerator now returns all fonts, not only TrueType ones
378- bugs in handling wxFrame styles (border/caption related) fixed
379- showing a dialog from EVT_RADIOBUTTON handler doesn't lead to an infinite
380 recursion any more
381- wxTextCtrl with wxTE_RICH flag scrolls to the end when text is appended to it
382- the separators are not seen behind the controls added to the toolbar any more
383- wxLB_SORT style can be used with wxCheckListBox
384- wxWindowDC and wxClientDC::GetSize() works correctly now
385- Added wxTB_NODIVIDER and wxTB_NOALIGN so native toolbar can be used in FL
386- Multiline labels in buttons are now supoprted (simply use "\n" in the label)
387- Implemented wxMouseCaptureChangedEvent and made wxGenericDragImage check it
388 has the capture before release it.
389- fixed bugs in multiple selection wxCheckListBox
390- default button handling is now closer to expected
391- setting tooltips for wxSlider now works
392- disabling a parent window also disables all of its children (as in wxGTK)
393- multiple events avoided in wxComboBox
394- tooltip asserts avoided for read-only wxComboBox
395- fixed a race condition during a thread exit and a join
396- fixed a condition where a thread can hang during message/event processing
397- increased space between wxRadioBox label and first radio button
398- don't fail to register remaining window classes if one fails to register
399- wxFontDialog effects only turned on if a valid colour was
400 provided in wxFontData
401- Added wxTE_LEFT, wxTE_CENTRE and wxTE_RIGHT flags for text control alignment.
402- Bitmap printing uses 24 bits now, not 8.
403
404wxGTK:
405
406- wxDirDialog now presents the file system in standard Unix way
407- wxButton now honours wxBU_EXACTFIT
408- wxStaticBox now honours wxALIGN_XXX styles
409- added support for non alphanumeric simple character accelerators ('-', '=')
410- new behaviour for wxWindow::Refresh() as it now produces a delayed refresh.
411 Call the new wxWindow::Update() to force an immediate update
412- support for more SGI hardware (12-bit mode among others)
413- fixed wxDC::Blit() to honour source DC's logical coordinates
414- implemented wxIdleEvent::RequestMore() for simple background tasks
415- implemented wxChoice::Delete()
416- fixed bad memory leak in wxFileDialog (Chris Elliott)
417- made internal GC pool dynamically growable
418- added GTK+ 2 and Unicode support
419
420wxMotif:
421
422- improved colour settings return values (Ian Brown)
423- improved border style handling for wxStaticText (Ian Brown)
424- improved toolbar control alignment
425- implemented wxSpinButton
426- implemented wxCheckListBox
427- fixed wxSpinCtrl and wxStaticLine when used with sizers
428- wxStaticBitmap now shows transparent icons correctly
429
430wxX11:
431
432- added generic MDI implementation (Hans Van Leemputten)
433- first cut at wxSocket support (not yet working)
434
435wxMac:
436
437- Many improvements
438
439wxOS2:
440
441- First alpha-quality release
442
443wxHTML:
444
445- fixed wxHtmlHelpController's cache files handling on big endian machines
446- added blocking and redirecting capabilities to wxHtmlWindow via
447 wxHtmlWindow::OnOpeningURL()
448- fixed alignment handling in tables
449- fixed <font face="..."> handling to be case insensitive
450
4512.3.2
452-----
453
454New port: wxUniv for Win32/GTK+ is now included in the distribution.
455
456wxBase:
457
458- wxRegEx class added
459- wxGetDiskSpace() function added (Jonothan Farr, Markus Fieber)
460- wxTextBuffer and wxTextFile(wxStream) added (Morten Hanssen)
461- more fixes to wxMBConv classes. Conversion to and from wchar_t now works with
462 glibc 2.2 as well as with glibc 2.1. Unix version now checks for iconv()'s
463 capabilities at runtime instead of in the configure script.
464
465All (GUI):
466
467- support for virtual list control added
468- column images in report mode of the list control
469- wxFindReplaceDialog added (based on work of Markus Greither)
470- wxTextCtrl::SetMaxLength() added (wxMSW/wxGTK)
471- polygon support in wxRegion (Klaas Holwerda)
472- wxStreamToTextRedirector to allow easily redirect cout to wxTextCtrl added
473- fixed bug with using wxExecute() to capture huge amounts of output
474