Commit Graph

48489 Commits

Author SHA1 Message Date
Vadim Zeitlin
b18e2046af pass wxIntPtr, not wxUIntPtr, to wxListCtrl::SortItems() callback as it's more compatible with the existing code assuming that this parameter is signed (as our own wxFileCtrl did)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-16 13:00:40 +00:00
Vadim Zeitlin
bd5d8ac1b5 define constants for the number of items in the tree at each level and number of levels
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-16 12:48:51 +00:00
Vadim Zeitlin
113f4defc4 correct test for wxDEBUG_LEVEL in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 23:04:46 +00:00
Kevin Ollivier
f806b2b4ee Add a test to ensure that CreateMeasuringContext creates a valid context
that can measure text.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 22:38:53 +00:00
Kevin Ollivier
5e8d27fea5 Implement CreateMeasuringContext for GTK/Cairo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:55:47 +00:00
Vadim Zeitlin
113f623379 remove dll export declaration from wxCStrData now that all its methods are inline (fixes mingw32 warning in DLL build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:31:33 +00:00
Vadim Zeitlin
d021f94fd6 avoid a warning about unused function in release build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:30:37 +00:00
Vadim Zeitlin
6e2f308461 use wxUIntPtr instead of long for 3rd parameter of wxListCtrl::SortItems() to allow passing pointers to it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:23:50 +00:00
Vadim Zeitlin
975fe60bba removed the note about wxEvent::Clone() startup test as it was removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:14:25 +00:00
Vadim Zeitlin
4262848117 correct GTK+ version check added by r59603
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:07:55 +00:00
Stefan Csomor
5a8ea512bb have at least a measuring context available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 20:43:55 +00:00
Francesco Montorsi
df898907bb remove unneeded font members from wxFontRefData (all font characteristics are stored only inside the wxNativeFontInfo member); simplify code because m_nativeFontInfoOk==true always; return wxFONTFAMILY_UNKNOWN from GetFamily() when there's no font family info.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 20:19:35 +00:00
Stefan Csomor
8d462eb74a make sure we treat partial conversions as failed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 20:16:12 +00:00
Francesco Montorsi
f2c1b903bf small enhancement: account for SLANT==ITALIC on wxMSW; print explicitely the face name of the current font; make wxFontBase::GetFamilyString aware of wxFONTFAMILY_UNKNOWN
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 20:02:17 +00:00
Stefan Csomor
50b5e38d3f textctrl fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 19:44:51 +00:00
Kevin Ollivier
fc76d7df9b Add a space to ensure we have a space between qualifiers and parameter names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 17:47:23 +00:00
Stefan Csomor
346662b87a fixing return values and handling of invalid files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 17:46:11 +00:00
Stefan Csomor
f63c36c378 using proper SubItemRect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 16:55:01 +00:00
Julian Smart
85ec29bc58 Fixed a bug whereby setting one element size set all element sizes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 09:40:36 +00:00
Francesco Montorsi
7ce58684a4 don't return whatever encoding was set in SetEncoding(); always return wxFONTENCODING_UTF8 instead since that's the real encoding always used by wxFont under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 23:18:50 +00:00
Stefan Csomor
d9d551f6a2 adapting TextUpdateEvents, using wxTextEntry API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 20:09:39 +00:00
Stefan Csomor
f1b1c779a9 making sure min and max sizes can be overridden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 20:05:47 +00:00
Stefan Csomor
c443ff6f53 fixing native font info support bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 19:58:51 +00:00
Stefan Csomor
8b7b1a5748 guaranteeing autorelease pools for overridden OnRun on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 19:54:01 +00:00
Francesco Montorsi
aeecbca059 dump all font properties upon failure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 18:55:41 +00:00
Stefan Csomor
ba9e5c4d90 adding all encodings on mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 17:44:51 +00:00
Kevin Ollivier
29d61827e1 For the wxPython headers, we need to copy SWIG files like the other platforms do so that wxPython extensions can be built.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 17:11:30 +00:00
Stefan Csomor
d4d4c34c3a fixing path for test_gui
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 16:06:14 +00:00
Vadim Zeitlin
35b9a07827 mention that SetValue() does generate a wxEVT_COMMAND_TEXT_UPDATED event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 14:35:20 +00:00
Vadim Zeitlin
d911dc04ae only run tests using multiline strings with multiline text control; document that using multiline strings doesn't work with singleline controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 13:22:09 +00:00
Vadim Zeitlin
ff3fd98a08 remove semicolon from wxDECLARE_EVENT; having it there was inconsistent with other wxXXX_EVENT macros and generally unexpected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 12:47:46 +00:00
Stefan Csomor
8fa2cfe258 failed conversion shouldn't trigger an assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 07:04:41 +00:00
Václav Slavík
fb5ae4f6d9 (blind) fix for VC6s' warning about non-dll base template class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 07:02:59 +00:00
Stefan Csomor
531ebc0f8e no test_gui present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 05:30:18 +00:00
Francesco Montorsi
6aafb94526 even more detailed info to debug buildslaves failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 18:34:27 +00:00
Vadim Zeitlin
a6ed278608 better check for conversion failure in OutputString(); use wxScopedCharBuffer::length() instead of strlen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 17:49:56 +00:00
Vadim Zeitlin
582886dde5 return empty string instead of NULL from mb_str()/wc_str() when conversion fails to avoid crashing badly written code which doesn't check for conversion failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 17:48:11 +00:00
Vadim Zeitlin
561ff470ca suppress output from the test commands; use CPPUNIT_ASSERT_EQUAL() whenever possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 17:33:33 +00:00
Francesco Montorsi
9b5e0a6dea provide more info when a check for native font [user] info fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 09:03:45 +00:00
Vadim Zeitlin
f20e268907 fix g++ warnings about initialization order mismatch after the last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 23:43:04 +00:00
Vadim Zeitlin
75ac34cefc fix support for using asterisks in the format string and some code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 23:37:28 +00:00
Francesco Montorsi
6aea1e4a70 implement wxNativeFontInfo::SetFamily for wxGTK with the same logic used by wxMSW; remove the now useless m_family from wxGTK's wxFont implementation; better docs for many wxFont functions (don't use typeface term; use the 'face name' one instead) and wxFontFamily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 22:53:26 +00:00
Francesco Montorsi
40531a9fda more PCH-less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 22:10:21 +00:00
Francesco Montorsi
a82a59f519 allow testing more font properties: light weight, slant style and font families
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 22:02:00 +00:00
Vadim Zeitlin
f54cb154d5 return persistent buffers from mb_str()/wc_str() to allow assigning the returned value to simple pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 19:49:45 +00:00
Vadim Zeitlin
dbe31039f7 blind PCH-less build fixes: add missing headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 18:42:58 +00:00
Vadim Zeitlin
3814912fca MSVC compilation fixes: don't use std{out,err} as variable names; don't reuse loop variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 18:41:51 +00:00
Francesco Montorsi
32c122fe28 build fix (wx doesn't use bakefile 0.2.6 yet)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 16:30:47 +00:00
Francesco Montorsi
34be948fdb no real change; just fix the argument name of the wxFont(const wxString&) ctor under wxGTK since it was misleading
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 16:06:43 +00:00
Francesco Montorsi
375330ac40 do not call setlocale() twice in wxLocale::IsAvailable() and in IMPLEMENT_STRTOX_L_START
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 15:51:43 +00:00