]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt
don't set font unless necessary (patch 984853)
[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 1505.
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.
e1633ef9
VS
60- EVT_XXX macros are now type-safe; code that uses wrong type for event
61 handler's argument will no longer compile.
daf32463
WS
62- Identical functionality of wxFileDialog::ParseWildcard,
63 wxGenericDirCtrl::ParseFilter, Motif and MSW parsing native dialogs
64 is now accessible in ::wxParseCommonDialogsFilter
adbf2d73
VS
65- wxNotebookSizer and wxBookCtrlSizer are now deprecated -- the are no longer
66 needed, you can treat wxNotebook as any other control and put it directly
67 into the sizer that was wxNotebookSizer's parent sizer in old code.
1e6d9c20 68
5e2ab1ea 69
09c6a817 70
9b9d4651
VZ
71DEPRECATED METHODS SINCE 2.4.x
72==============================
09c6a817 73
fc2171bd 74Deprecated methods may still be used but will disappear in future wxWidgets
09c6a817
VZ
75versions, please update your code to not use them.
76
7af6b69e 77- wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount()
09c6a817
VZ
78- wxSizer::Remove(wxWindow *), use Detach() instead [it is more clear]
79- wxSizer::Set/GetOption(): use Set/GetProportion() instead
80- wxKeyEvent::KeyCode(): use GetKeyCode instead
81- wxList::Number, First, Last, Nth: use GetCount, GetFirst/Last, Item instead
82- wxNode::Next, Previous, Data: use GetNext, GetPrevious, GetData instead
83- wxListBase::operator wxList&(): use typesafe lists instead
ba8c1601
MB
84- wxTheFontMapper: use wxFontMapper::Get() instead
85- wxStringHashTable: use wxHashMap instead
86- wxHashTableLong: use wxHashMap instead
fc2171bd 87- wxArrayString::GetStringArray: use wxCArrayString or alternative wxWidgets
584ad2a3 88 methods taking wxArrayString
ba8c1601 89- wxArrayString::Remove(index, count): use RemoveAt instead
df3b5898 90- wxTreeItemId conversion to long is deprecated and shouldn't be used
207e6243
VZ
91- wxTreeCtrl::GetFirst/NextChild() 2nd argument now has type wxTreeItemIdValue
92 and not long, please change declarations of "cookie"s in your code
93 accordingly -- otherwise your code won't work on 64 bit platforms
35821d8f
VZ
94- [MSW only] wxWindow::GetUseCtl3D(), GetTransparentBackground() and
95 SetTransparent() as well as wxNO_3D and wxUSER_COLOURS styles
080a7b20 96- wxList keyed interface: use wxHashMap instead
dfcb9d7c 97- wxColourDatabase::FindColour(): use Find() instead (NB: different ret type)
d366db96
MB
98- wxHashTable::Next: use wxHashTable::Node* or
99 wxHashTable::compatibility_iterator to store the return
100 value
4a3990e2 101- wxWave class; use wxSound instead
ba443432
JS
102- The wxHIDE_READONLY flag for wxFileDialog was not implemented
103 and has now been removed
6bba4b8a 104- wxTaskBarIcon::OnXXX() virtual methods: use events instead
dfcb9d7c 105
7af6b69e 106
d643b80e
VZ
107OTHER CHANGES
108=============
109
33d4eef0
VS
1102.5.3
111-----
112
00bcc185
VS
113All:
114
115- number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten)
0c2a5de2 116- fixed memory leak in wxURL when using a proxy (Steven Van Ingelgem)
8cc00d5f 117- fixed bug in wxDateTime::Set(jdn) when DST was in effect
dbea9b70
VS
118- support msgids in charsets other than C and languages other than English
119 (based on patch by Stefan Kowski)
08873d36 120- added wxMicroSleep() and wxMilliSleep() replacing deprecated wxUsleep()
00bcc185 121
dae73d74
VS
122All (GUI):
123
a24de76b 124- added wxWindow::MoveBefore/AfterInTabOrder() to change tab navigation order
dae73d74
VS
125- added wxTaskBarIcon::CreatePopupMenu which is now recommended way
126 of showing popup menu; calling wxTaskBarIcon::PopupMenu directly
127 is discouraged
a24de76b
VZ
128- added ..._CMD_...(id) variants for wxGrid event table entry macros
129- added wxWindow::Navigate for programmatic navigation to the next control.
0d9b2c16
VZ
130- wxTextCtrl::OnChar now inserts a tab character if wxTE_PROCESS_TAB is set
131- added wxKeyEvent::GetUnicodeKey()
a2bd1520 132- added wxKeyEvent::CmdDown() and wxMouseEvent::CmdDown()
dae73d74 133
33d4eef0
VS
134Unix:
135
136- wxTaskBarIcon now supports freedesktop.org System Tray protocol
0a8d9df6 137- security fixes to wxSingleInstanceChecker
33d4eef0 138
bbce0c0c
VS
139wxGTK:
140
f40fdaa3 141- fixed many rendering artifacts and wrong colours with lots of GTK+ themes
dae73d74 142- implemented wxColourDialog as native dialog
1a4088e1 143- wxTreeCtrl::GetCount() counts root as well now (compatible with MSW)
4dcccda6 144- added support for wxCHK_3STATE style (GTK2 only)
1dbeee57 145- implemented text underlining under GTK2
2be125e6 146- implemented wxFRAME_NO_TASKBAR style (GTK >= 2.2)
44fd6f72
VS
147- implemented support for wxSYS_DCLICK_?, wxSYS_DRAG_? and wxSYS_CURSOR_?
148 in wxSystemSettings::GetMetric (Mart Raudsepp)
bbce0c0c 149
f8ab089a
MB
150wxMotif:
151
0d9b2c16 152- added support for wxCHK_3STATE style (3 state checkbox)
f8ab089a 153
60c315ca
VS
154wxMSW:
155
156- fixed UNC paths handling in wxFileSystem (Daniel Nash)
0d9b2c16 157- set wxKeyEvent::m_uniChar in Unicode build
60c315ca 158
a0f428c6
WS
159wxWinCE:
160
161- added automatized but customizable handling of native SmartPhone menus
162
91fa114d
VS
163wxHTML:
164
165- added support for nested index entries and index entries pointing to more
166 than one page to wxHtmlHelpController
167
33d4eef0 168
a1037371
VZ
1692.5.2
170-----
171
3c2544bb
JS
172All:
173
dcbb88f0
VZ
174- Hindi translation added (Dhananjaya Sharma)
175- Brazilian Portuguese translation added (E. A. Tacao)
5232d996
VZ
176- wxDynamicCast() now uses static_cast<wxObject *> internally and so using it
177 with anything not deriving from wxObject will fail at compile time (instead
178 of run-time) now
bdcade0a
MB
179- when wxUSE_STL == 1 and STL provides quasi-standard hash_map/hash_set,
180 wxHashMap/wxHashSet are just typedefs for them. This makes impossible
181 to forward declare these classes.
f6d74279 182
3c2544bb
JS
183All (GUI):
184
185- wxHtmlWindow now delays image scaling until rendering,
186 resulting in much better display of scaled images
e1983ab5
VZ
187- Added UpdateSize to wxSplitterWindow to allow layout while hidden
188- implemented Freeze/Thaw() for wxGenericTreeCtrl (Kevin Hock)
15ad38c3 189- support for KOI8-U encoding added (Yuriy Tkachenko)
8f61ba28 190- The old wxADJUST_MINSIZE behaviour is now the default behaviour for
ec5cadfe
RD
191 sizer items that are windows. This means that GetAdjustedBestSize
192 will now be called by default to determine the minimum size that a
193 window in a sizer should have. If you want to still use the initial
194 size (and not the BestSize) then use the wxFIXED_MINSIZE flag. When
195 windows are added to a sizer their initial size is made the window's
196 min size using SetSizeHints, and calls to wxSizer::SetItemMinSize
197 are also forwarded to SetSizeHints for window items.
8f61ba28 198- added wxRegEx::GetMatchCount()
2d814c19 199- it is now possible to display images in wxHtmlListBox
3c2544bb 200
a1037371 201wxMSW:
3c2544bb 202
a1037371 203- wxWindow::Freeze()/Thaw() can now be nested
3c2544bb
JS
204- Added wxSP_NO_XP_THEME style to wxSplitterWindow to switch off
205 XP theming (some applications look bad without 3D borders)
4e86e9cd 206- wxMenuBar::GetLabelTop() doesn't include '&'s in the label any more
9a85c87d
VZ
207- wxRegConf couldn't read global settings without admin privileges and didn't
208 even try to do it by default -- now it does
1e6d9c20
VS
209- wxTaskBarIcon must be explicitly destroyed now, otherwise the application
210 won't exit even though there are no top level windows
54bcff35 211- wxFileName::GetModificationTime() works with opened files too now
bf5d9fa4
VZ
212- wxDC::GetClippingBox() now works even for clipping regions created by Windows
213- fixed wxFileDataObject in Unicode build (Alex D)
89b67477 214- subdindented paragraphs support (Tim Kosse)
a1037371 215
c663fbea
VS
216wxGTK:
217
218- added support for wxTE_RIGHT and wxTE_CENTRE styles under GTK2 (Mart Raudsepp)
219
cf9df191
VZ
220wxMotif:
221
222- removed wxMenuItem::DeleteSubMenu()
e04b7e8e
MB
223- wxButtons use Motif default size, which is smaller than it used to be
224 and closer to wxMSW/wxGTK look. This can be disabled by setting
225 motif.largebuttons system option to 1 (see wxSystemOptions).
cf9df191 226
e8ba218b
VZ
227wxUniv/X11:
228
229- implemented DrawRoundedRectangle() (clawghoul)
230
ca16b7a9
VS
231wxHTML:
232
5b2b456f 233- improved tables and lists layout algorithms (Tim Kosse)
c5448f38 234- <div> handling fix (Xavier Nodet)
ca16b7a9 235
a9a76b2f 236Unix:
33d4eef0 237
a9a76b2f 238- fixed priorities of mailcap entries (David Hart)
1d8864ac 239- added "wx-config --libs=std,<extra>" syntax (i.e. support for "std")
a9a76b2f 240
a21c0aaa 241wxODBC:
33d4eef0 242
c4839ccf 243- Full Unicode support is now available
a21c0aaa
GT
244- BLOB support is working
245
a1037371 246
1d95f44a
JS
2472.5.1
248-----
11ebea16 249
2e622163 250All:
de07d200 251
3a818b15 252