Commit Graph

41019 Commits

Author SHA1 Message Date
Václav Slavík
ac2d749e88 optimize wxStringOperationsUtf8::DecodeChar() for the ASCII case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 09:24:56 +00:00
Václav Slavík
7da48d4928 don't derive wxHtmlTag and wxHtmlTagsCache from wxObject, it's useless
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 08:46:01 +00:00
Václav Slavík
4f7e8fda39 rewrote wxHtmlEntitiesParser::Parse() using iterators, optimized for the common case of no entities in the input
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 06:18:12 +00:00
Václav Slavík
c471f7e18f slight optimization for wxHtmlEntitiesParser::GetEntityChar() in UTF-8 build: use wx_str() instead of c_str()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 06:17:24 +00:00
Václav Slavík
95ebbfe1fd fixed wxHtmlParser::SkipCommentTag() to run the initial test in O(1) instead of O(n) in UTF8 build, makes big difference for large HTML files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 05:45:11 +00:00
Julian Smart
2d615fe933 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 17:19:33 +00:00
Julian Smart
05962bdd2b Compile fix on Mac (at least)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 17:03:45 +00:00
Julian Smart
18b40f3022 Avoid selecting/updating in destructor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 16:56:39 +00:00
Julian Smart
5bcdf503fa Test to avoid crashes in some circumstances
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 16:48:55 +00:00
Vadim Zeitlin
d545bdede6 Fix bug with assigning a part of the string to the same string
The fix has several parts:

1. don't free the old string data in ConcatSelf() if we use it as
   source
2. implement assign() using replace() rather than clear() + append()
3. fix replace() to work with replacement strings containing embedded
   NULs and optimize it by using memcpy() instead of byte-wise copy


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 16:45:41 +00:00
Vadim Zeitlin
61a11cd6fa don't limit the multiple choice dialog size to 300x200 pixels on big screens, this doesn't make sense
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 16:42:17 +00:00
Václav Slavík
4fe7567d90 use wxVector<T> instead of homegrown growing array in wxHtmlTagsCache
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 16:10:28 +00:00
Václav Slavík
4e57034053 more wxVector<T> tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 15:51:52 +00:00
Václav Slavík
0516de2cdb 1. fixed wxVector<T> iterators to actually point to what they're supposed to point to instead of crashing on any use
2. don't allocate memory for every element on the heap, store elements directly in the array instead of storing pointers to them

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 15:47:47 +00:00
Julian Smart
b667edaecd _get_timezone not available on Pocket PC 2003
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 15:10:14 +00:00
Francesco Montorsi
5ffb4b0865 removed double docs for GetBitmapSelected and SetBitmapSelected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:58:26 +00:00
Francesco Montorsi
e5dfb37831 fixing missing comma
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:57:52 +00:00
Francesco Montorsi
58fd7634cf removed double docs for wxAuiNotebook::GetTabCtrlHeight
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:23:07 +00:00
Francesco Montorsi
809e21b540 added missing \wxheading{Members} sections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:20:28 +00:00
Francesco Montorsi
245b9db518 removed empty dtor \membersections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:18:04 +00:00
Julian Smart
e6cfcc0df2 Applied patch [ 1776951 ] wxSizer::GetContainingWindow fails for nested sizers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 14:08:26 +00:00
Julian Smart
791b07a345 Revised timezone fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 13:57:11 +00:00
Julian Smart
44061d3629 APplied patch [ 1776062 ] wxWinCE 2.8.3 (dynamic) VS 2005 - _timezone problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 13:30:35 +00:00
Julian Smart
135d1ad065 Applied patch [ 1764987 ] fix localtime link error using wm5 SDK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 12:14:09 +00:00
Robert Roebling
b46ea7825d use live header button update when resizing, no XOR line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 11:59:52 +00:00
Julian Smart
a4c721ee38 Applied patch [ 1736135 ] AUI: Clicking caption ignored on centered panel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 11:15:09 +00:00
Julian Smart
858a3a7a45 Applied [ 1708971 ] Make a virtual function to enable/disable docking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 11:04:48 +00:00
Václav Slavík
6757b667fd added test for wxVector<T> iterators (fails miserably)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 10:59:57 +00:00
Václav Slavík
9cf3337215 re-added wxVector<T>::erase(size_t) for backward compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 10:59:42 +00:00
Robert Roebling
c280da6918 Remove redundant line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 10:52:39 +00:00
Julian Smart
134198f1b7 Applied patch [ 1747059 ] wxAUIDefaultTabArt wxAUI_NB_BOTTOM
Langhammer


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 10:51:47 +00:00
Robert Roebling
36a03ed8c3 Removed gaps between header buttons and the strange header offset
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 10:48:43 +00:00
Václav Slavík
fbbdc7bf85 use wxString's UTF8 methods in wxCocoa, it's slightly more efficient in UTF8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 09:40:36 +00:00
Julian Smart
198be84589 Applied patch [ 1701723 ] wxAUI: Added event for doubleclicks on the tabbar bg
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 09:37:23 +00:00
Julian Smart
4d83610edf Applied patch [ 1678412 ] handling non-existent panes and uninitialized sizers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 09:18:44 +00:00
Julian Smart
d61989a7de Removed unnecessary code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 09:06:15 +00:00
Julian Smart
d92f353ce9 Applied patch [ 1675084 ] wxAUI - Added events to be notified after drag and close
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 08:55:48 +00:00
Julian Smart
ab620250da Fixed [ 1645203 ] Problem with resizing floating panes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 08:35:14 +00:00
Julian Smart
89272c55ca Applied patch [ 1768229 ] auibook.cpp: Fix undefined reference if wxUSE_MDI == 0
Tim Kosse


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 08:14:11 +00:00
Julian Smart
1c0955dd36 Fixed wxTabFrame leak by deleting all pages in the dtor (fixes bug [ 1774394 ] wxAuiNotebook::AddPage Memory Leak)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 08:05:14 +00:00
Julian Smart
3d9b52a808 Applied patch [ 1777700 ] call Reparent() from wxAuiNotebook::InsertPage()
(Fixes bug [ 1769662 ] wxAuiNotebook::InsertPage() does not change page parent)

Applied patch [ 1777713 ] wxAuiNotebook::InsertPage() - properly update m_curpage
(Fixes bug [ 1769655 ] wxAuiNotebook::InsertPage() leads to inconsistent state)

From Andrey Yazhuk.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 07:41:42 +00:00
Kevin Ollivier
18f2ae4965 Fix for wxMemoryDC::GetAsBitmap() not working on Windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 23:26:35 +00:00
Václav Slavík
278d7ab446 the wxFormatString hack used in wxFileTypeInfo variadic ctors doesn't work anymore, replaced with something that does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 23:16:02 +00:00
Robert Roebling
bec7b402c4 Removed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 22:30:16 +00:00
Robert Roebling
1ab4aff273 Updated docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 22:29:18 +00:00
Václav Slavík
c782096417 don't recompute nonbreakable space character every time a text fragment is added in ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 20:24:22 +00:00
Václav Slavík
96d665d249 marked const wxHtmlEntitiesParser methods as such
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 20:08:40 +00:00
Václav Slavík
4734640692 fixed variadic templates in the case when char value is passed in place of (e.g.) %i or %d argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 19:20:10 +00:00
Robert Roebling
66e09788ab Patch from Bo, adapt generic code to new API, add GetItemRect and HitTest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 17:26:11 +00:00
Václav Slavík
628f87da56 added wxUTF8StringBuffer for writing UTF8 data into wxString efficiently, similarly to existing wxStringBuffer classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-20 15:19:15 +00:00