]>
Commit | Line | Data |
---|---|---|
c4839ccf JS |
1 | ------------------------ |
2 | wxWidgets 2.5 Change Log | |
3 | ------------------------ | |
d643b80e VZ |
4 | |
5 | INCOMPATIBLE CHANGES SINCE 2.4.x | |
6 | ================================ | |
7 | ||
e441e1f4 VZ |
8 | Please take a few minutes to read the following list, especially |
9 | paying attention to the most important changes which are marked | |
10 | with '!' in the first column. | |
11 | ||
12 | Also please note that you should ensure that WXWIN_COMPATIBILITY_2_4 | |
13 | is defined to 1 if you wish to retain maximal compatibility with 2.4 | |
14 | series. | |
15 | ||
16 | ! windows are no longer fully repainted when resized, use new style | |
44db04e4 | 17 | wxFULL_REPAINT_ON_RESIZE to force this (wxNO_FULL_REPAINT_ON_RESIZE still |
e441e1f4 VZ |
18 | exists but doesn't do anything any more, this behaviour is default now) |
19 | ||
20 | ||
9b9d4651 VZ |
21 | - no initialization/cleanup can be done in wxApp/~wxApp because they are |
22 | now called much earlier/later than before; please move any exiting code | |
23 | from there to wxApp::OnInit()/OnExit() | |
fba61bdf | 24 | - also, OnExit() is not called if OnInit() fails |
527bbb39 | 25 | - finally the program exit code is OnRun() return value, not OnExit() one |
26ab89ad | 26 | - wxTheApp can't be assigned to any longer, use wxApp::SetInstance() instead |
32b38f99 | 27 | - wxFileType::GetIcon() returns wxIconLocation, not wxIcon |
bfdc04a9 | 28 | - wxColourDatabase is not a wxList any more, use AddColour to add new colours |
5da0803c | 29 | - wxWindow::Clear() is now called ClearBackground() |
480e5897 | 30 | - pointer returned by wxFont::GetNativeFontInfo() must not be deleted now |
bfdc04a9 | 31 | - wxMouseEvent::Moving() doesn't return true if mouse is being dragged any more |
bfdc04a9 VZ |
32 | - (most) controls now inherit parents colours by default, override |
33 | ShouldInheritColours() to return false if you don't want this to happen | |
dfcb9d7c | 34 | - wxApp::SendIdleEvent() now takes 2 arguments |
d366db96 MB |
35 | - wxTabView::GetLayers() changed return type from wxList& to wxTabLayerList& |
36 | (when WXWIN_COMPATIBILITY_2_4 == 0) | |
6e76b35d | 37 | - wxID_SEPARATOR (id used for the menu separators) value changed from -1 to -2 |
25959b95 | 38 | - wxGetNumberFromUser() is now in separate wx/numdlg.h, not wx/textdlg.h |
d99957b6 VZ |
39 | - wxChoice and wxCombobox now handle their size in the same way as in all the |
40 | other ports under MSW, new code is actually correct but different from weird | |
41 | stuff they were doing before so the behaviour of your programs might change | |
1e6d9c20 VS |
42 | - wxTaskBarIcon objects must now be destroyed before the application can exit. |
43 | Previously, the application terminated if there were no top level windows; | |
44 | now it terminates if there are no top level windows or taskbar icons left. | |
4c68a102 VS |
45 | - wxZlibInputStream is not by default compatible with the output of the |
46 | 2.4.x version of wxZlibOutputStream. However, there is a compatibilty mode, | |
47 | switched on by passing wxZLIB_24COMPATIBLE to the constructor. | |
6e86701b MB |
48 | - when WXWIN_COMPATIBILITY_2_4 == 0 wxHashTable uses a new implementation |
49 | not using wxList keyed interface (the same used when wxUSE_STL == 1), | |
50 | the only incompatibility being that Next() returns a wxHashTable::Node* | |
51 | instead of a wxNode*. | |
55e9fa68 | 52 | - non-const wxDC methods GetBackground(), GetBrush(), GetFont() and GetPen() |
90287048 VS |
53 | as well as wxWindow methods GetFont() and GetCursor() don't exist any more, |
54 | please fix your code -- it never worked correctly anyhow if you modified the | |
55 | objects returned by these methods so you should simply switch to using const | |
56 | methods. | |
e1633ef9 VS |
57 | - EVT_XXX macros are now type-safe; code that uses wrong type for event |
58 | handler's argument will no longer compile. | |
daf32463 WS |
59 | - Identical functionality of wxFileDialog::ParseWildcard, |
60 | wxGenericDirCtrl::ParseFilter, Motif and MSW parsing native dialogs | |
61 | is now accessible in ::wxParseCommonDialogsFilter | |
adbf2d73 VS |
62 | - wxNotebookSizer and wxBookCtrlSizer are now deprecated -- the are no longer |
63 | needed, you can treat wxNotebook as any other control and put it directly | |
64 | into the sizer that was wxNotebookSizer's parent sizer in old code. | |
1e6d9c20 | 65 | |
5e2ab1ea | 66 | |
09c6a817 | 67 | |
9b9d4651 VZ |
68 | DEPRECATED METHODS SINCE 2.4.x |
69 | ============================== | |
09c6a817 | 70 | |
fc2171bd | 71 | Deprecated methods may still be used but will disappear in future wxWidgets |
09c6a817 VZ |
72 | versions, please update your code to not use them. |
73 | ||
7af6b69e | 74 | - wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount() |
09c6a817 VZ |
75 | - wxSizer::Remove(wxWindow *), use Detach() instead [it is more clear] |
76 | - wxSizer::Set/GetOption(): use Set/GetProportion() instead | |
77 | - wxKeyEvent::KeyCode(): use GetKeyCode instead | |
78 | - wxList::Number, First, Last, Nth: use GetCount, GetFirst/Last, Item instead | |
79 | - wxNode::Next, Previous, Data: use GetNext, GetPrevious, GetData instead | |
80 | - wxListBase::operator wxList&(): use typesafe lists instead | |
ba8c1601 MB |
81 | - wxTheFontMapper: use wxFontMapper::Get() instead |
82 | - wxStringHashTable: use wxHashMap instead | |
83 | - wxHashTableLong: use wxHashMap instead | |
fc2171bd | 84 | - wxArrayString::GetStringArray: use wxCArrayString or alternative wxWidgets |
584ad2a3 | 85 | methods taking wxArrayString |
ba8c1601 | 86 | - wxArrayString::Remove(index, count): use RemoveAt instead |
df3b5898 | 87 | - wxTreeItemId conversion to long is deprecated and shouldn't be used |
207e6243 VZ |
88 | - wxTreeCtrl::GetFirst/NextChild() 2nd argument now has type wxTreeItemIdValue |
89 | and not long, please change declarations of "cookie"s in your code | |
90 | accordingly -- otherwise your code won't work on 64 bit platforms | |
35821d8f VZ |
91 | - [MSW only] wxWindow::GetUseCtl3D(), GetTransparentBackground() and |
92 | SetTransparent() as well as wxNO_3D and wxUSER_COLOURS styles | |
080a7b20 | 93 | - wxList keyed interface: use wxHashMap instead |
dfcb9d7c | 94 | - wxColourDatabase::FindColour(): use Find() instead (NB: different ret type) |
d366db96 MB |
95 | - wxHashTable::Next: use wxHashTable::Node* or |
96 | wxHashTable::compatibility_iterator to store the return | |
97 | value | |
4a3990e2 | 98 | - wxWave class; use wxSound instead |
ba443432 JS |
99 | - The wxHIDE_READONLY flag for wxFileDialog was not implemented |
100 | and has now been removed | |
6bba4b8a | 101 | - wxTaskBarIcon::OnXXX() virtual methods: use events instead |
dfcb9d7c | 102 | |
7af6b69e | 103 | |
d643b80e VZ |
104 | OTHER CHANGES |
105 | ============= | |
106 | ||
33d4eef0 VS |
107 | 2.5.3 |
108 | ----- | |
109 | ||
00bcc185 VS |
110 | All: |
111 | ||
112 | - number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten) | |
0c2a5de2 | 113 | - fixed memory leak in wxURL when using a proxy (Steven Van Ingelgem) |
8cc00d5f | 114 | - fixed bug in wxDateTime::Set(jdn) when DST was in effect |
dbea9b70 VS |
115 | - support msgids in charsets other than C and languages other than English |
116 | (based on patch by Stefan Kowski) | |
00bcc185 | 117 | |
dae73d74 VS |
118 | All (GUI): |
119 | ||
120 | - added wxTaskBarIcon::CreatePopupMenu which is now recommended way | |
121 | of showing popup menu; calling wxTaskBarIcon::PopupMenu directly | |
122 | is discouraged | |
0d9b2c16 VZ |
123 | - Added ..._CMD_...(id) variants for wxGrid event table entry macros |
124 | - Added wxWindow::Navigate for programmatic navigation to the next control. | |
125 | - wxTextCtrl::OnChar now inserts a tab character if wxTE_PROCESS_TAB is set | |
126 | - added wxKeyEvent::GetUnicodeKey() | |
dae73d74 | 127 | |
33d4eef0 VS |
128 | Unix: |
129 | ||
130 | - wxTaskBarIcon now supports freedesktop.org System Tray protocol | |
0a8d9df6 | 131 | - security fixes to wxSingleInstanceChecker |
33d4eef0 | 132 | |
bbce0c0c VS |
133 | wxGTK: |
134 | ||
f40fdaa3 | 135 | - fixed many rendering artifacts and wrong colours with lots of GTK+ themes |
dae73d74 | 136 | - implemented wxColourDialog as native dialog |
1a4088e1 | 137 | - wxTreeCtrl::GetCount() counts root as well now (compatible with MSW) |
4dcccda6 | 138 | - added support for wxCHK_3STATE style (GTK2 only) |
1dbeee57 | 139 | - implemented text underlining under GTK2 |
2be125e6 | 140 | - implemented wxFRAME_NO_TASKBAR style (GTK >= 2.2) |
bbce0c0c | 141 | |
f8ab089a MB |
142 | wxMotif: |
143 | ||
0d9b2c16 | 144 | - added support for wxCHK_3STATE style (3 state checkbox) |
f8ab089a | 145 | |
60c315ca VS |
146 | wxMSW: |
147 | ||
148 | - fixed UNC paths handling in wxFileSystem (Daniel Nash) | |
0d9b2c16 | 149 | - set wxKeyEvent::m_uniChar in Unicode build |
60c315ca | 150 | |
a0f428c6 WS |
151 | wxWinCE: |
152 | ||
153 | - added automatized but customizable handling of native SmartPhone menus | |
154 | ||
91fa114d VS |
155 | wxHTML: |
156 | ||
157 | - added support for nested index entries and index entries pointing to more | |
158 | than one page to wxHtmlHelpController | |
159 | ||
33d4eef0 | 160 | |
a1037371 VZ |
161 | 2.5.2 |
162 | ----- | |
163 | ||
3c2544bb JS |
164 | All: |
165 | ||
dcbb88f0 VZ |
166 | - Hindi translation added (Dhananjaya Sharma) |
167 | - Brazilian Portuguese translation added (E. A. Tacao) | |
5232d996 VZ |
168 | - wxDynamicCast() now uses static_cast<wxObject *> internally and so using it |
169 | with anything not deriving from wxObject will fail at compile time (instead | |
170 | of run-time) now | |
bdcade0a MB |
171 | - when wxUSE_STL == 1 and STL provides quasi-standard hash_map/hash_set, |
172 | wxHashMap/wxHashSet are just typedefs for them. This makes impossible | |
173 | to forward declare these classes. | |
f6d74279 | 174 | |
3c2544bb JS |
175 | All (GUI): |
176 | ||
177 | - wxHtmlWindow now delays image scaling until rendering, | |
178 | resulting in much better display of scaled images | |
e1983ab5 VZ |
179 | - Added UpdateSize to wxSplitterWindow to allow layout while hidden |
180 | - implemented Freeze/Thaw() for wxGenericTreeCtrl (Kevin Hock) | |
15ad38c3 | 181 | - support for KOI8-U encoding added (Yuriy Tkachenko) |
8f61ba28 | 182 | - The old wxADJUST_MINSIZE behaviour is now the default behaviour for |
ec5cadfe RD |
183 | sizer items that are windows. This means that GetAdjustedBestSize |
184 | will now be called by default to determine the minimum size that a | |
185 | window in a sizer should have. If you want to still use the initial | |
186 | size (and not the BestSize) then use the wxFIXED_MINSIZE flag. When | |
187 | windows are added to a sizer their initial size is made the window's | |
188 | min size using SetSizeHints, and calls to wxSizer::SetItemMinSize | |
189 | are also forwarded to SetSizeHints for window items. | |
8f61ba28 | 190 | - added wxRegEx::GetMatchCount() |
2d814c19 | 191 | - it is now possible to display images in wxHtmlListBox |
3c2544bb | 192 | |
a1037371 | 193 | wxMSW: |
3c2544bb | 194 | |
a1037371 | 195 | - wxWindow::Freeze()/Thaw() can now be nested |
3c2544bb JS |
196 | - Added wxSP_NO_XP_THEME style to wxSplitterWindow to switch off |
197 | XP theming (some applications look bad without 3D borders) | |
4e86e9cd | 198 | - wxMenuBar::GetLabelTop() doesn't include '&'s in the label any more |
9a85c87d VZ |
199 | - wxRegConf couldn't read global settings without admin privileges and didn't |
200 | even try to do it by default -- now it does | |
1e6d9c20 VS |
201 | - wxTaskBarIcon must be explicitly destroyed now, otherwise the application |
202 | won't exit even though there are no top level windows | |
54bcff35 | 203 | - wxFileName::GetModificationTime() works with opened files too now |
bf5d9fa4 VZ |
204 | - wxDC::GetClippingBox() now works even for clipping regions created by Windows |
205 | - fixed wxFileDataObject in Unicode build (Alex D) | |
89b67477 | 206 | - subdindented paragraphs support (Tim Kosse) |
a1037371 | 207 | |
c663fbea VS |
208 | wxGTK: |
209 | ||
210 | - added support for wxTE_RIGHT and wxTE_CENTRE styles under GTK2 (Mart Raudsepp) | |
211 | ||
cf9df191 VZ |
212 | wxMotif: |
213 | ||
214 | - removed wxMenuItem::DeleteSubMenu() | |
e04b7e8e MB |
215 | - wxButtons use Motif default size, which is smaller than it used to be |
216 | and closer to wxMSW/wxGTK look. This can be disabled by setting | |
217 | motif.largebuttons system option to 1 (see wxSystemOptions). | |
cf9df191 | 218 | |
e8ba218b VZ |
219 | wxUniv/X11: |
220 | ||
221 | - implemented DrawRoundedRectangle() (clawghoul) | |
222 | ||
ca16b7a9 VS |
223 | wxHTML: |
224 | ||
5b2b456f | 225 | - improved tables and lists layout algorithms (Tim Kosse) |
c5448f38 | 226 | - <div> handling fix (Xavier Nodet) |
ca16b7a9 | 227 | |
a9a76b2f | 228 | Unix: |
33d4eef0 | 229 | |
a9a76b2f | 230 | - fixed priorities of mailcap entries (David Hart) |
1d8864ac | 231 | - added "wx-config --libs=std,<extra>" syntax (i.e. support for "std") |
a9a76b2f | 232 | |
a21c0aaa | 233 | wxODBC: |
33d4eef0 | 234 | |
c4839ccf | 235 | - Full Unicode support is now available |
a21c0aaa GT |
236 | - BLOB support is working |
237 | ||
a1037371 | 238 | |
1d95f44a JS |
239 | 2.5.1 |
240 | ----- | |
11ebea16 | 241 | |
2e622163 | 242 | All: |
de07d200 | 243 | |
3a818b15 | 244 | Content-type: text/html ]>