]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt
Fixes to warnings about assigning unused values.
[wxWidgets.git] / docs / changes.txt
Content-type: text/html ]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt


500 - Internal Server Error

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