Commit Graph

24894 Commits

Author SHA1 Message Date
Stefan Csomor
dbeddfb93d committing current cocoa state just to be safe ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-30 08:03:32 +00:00
Vadim Zeitlin
8b73c5318c chanegd wxTlsValue to be pointer-like instead of value-like which doesn't work for UDTs; use __thread keyword with mingw32 >= 4.3 too; use library-based thread-specific variables support in wxString cache now that it is fixed to work there; finally added a unit test for TLS stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 23:28:42 +00:00
Paul Cornett
48200154f4 replace m_insertCallback with a virtual function, contrary to the old comments a virtual works just fine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 15:46:48 +00:00
Robert Roebling
2038034368 Fix #9917: File save dialog does not honor file extension on GTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 13:57:03 +00:00
Vadim Zeitlin
68482dc584 add cache for last used position and string length to UTF-8 wxString, dramatically improving performance of the code using indices to iterate over strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-28 19:19:11 +00:00
Paul Cornett
3bbc1d95a1 use 8 bits for alpha, nothing needs 16 bit alpha here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-28 15:46:32 +00:00
Paul Cornett
173d02a872 add wxPseudoTransparentFrame to parent, so it doesn't get leaked
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-28 15:45:50 +00:00
Vadim Zeitlin
0d79a67919 no changes, just match the number of opening/closing braces to avoid upsetting Vim (and probably other editors) syntax highlighting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 23:03:55 +00:00
Vadim Zeitlin
eaf6da0746 use std::sort() instead of qsort() to implement wxArrayString::Sort(), this makes it thread-safe without any extra hacks and also makes the code simpler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 19:40:20 +00:00
Paul Cornett
0d0b57acec get system colors directly from GTK styles, eliminating need for cached wxColor objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 17:10:36 +00:00
Stefan Csomor
0b134cd00d fixing #9910
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 08:18:30 +00:00
Vadim Zeitlin
f3d7473941 add a scoped_ptr-like wxGtkObject class which calls g_object_unref() automatically and use it in some GC-related code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 01:06:58 +00:00
Vadim Zeitlin
98d8a7ece5 honour user scale and source offset in wxDC::Blit() (#2605)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 00:52:13 +00:00
Paul Cornett
d2cb636a1f put wxIconArray back in header, it's used by wxFSVolume
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 16:34:22 +00:00
Paul Cornett
9ff9d30c0a Hold a reference on m_widget for the life of the associated wxWindow object.
This allows removing some ugly hacks, and leaking of GtkWidgets by wxNotebook.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 16:19:23 +00:00
Václav Slavík
6bd4f2812d fixed writing to wxUniCharRef after its 'parent' iterator was destroyed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 13:02:38 +00:00
Paul Cornett
24af522c43 move wxIconArray declaration out of header, remove unneccessary copy ctor and assignment operator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 06:34:34 +00:00
Paul Cornett
f087f1d84a uncomment line accidentally left commented out in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 05:28:53 +00:00
Paul Cornett
0617ba3e34 fix for GTK assertion `info->icon_pixmap == NULL' failed, #9905
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 05:10:45 +00:00
Vadim Zeitlin
8b385bf892 use UnsetToolTip() instead of SetToolTip(NULL) to fix wxX11 build broken on Buildbot since this file addition; fix some weird "else" indentation; use empty() instead of Length() > 0 tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 23:20:09 +00:00
Vadim Zeitlin
82db3c3d9d compilation fixes for minimal build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 19:28:26 +00:00
Vadim Zeitlin
c74fc1e130 add parentheses for && inside || to fix g++ 4.3 warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 14:39:48 +00:00
Kevin Ollivier
8f3864f737 Compilation fix, didn't realize initialization order of events is different on trunk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 05:32:03 +00:00
Kevin Ollivier
b12a7313f5 Respect the wxNO_BORDER flag for tool windows without a titlebar.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 04:28:40 +00:00
Kevin Ollivier
3d52bdd8c6 Fix memory leak.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 03:03:54 +00:00
Vadim Zeitlin
998b0cb417 don't use deprecated wxMenuItem ctor and don't use an unnecessary #ifdef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 00:31:32 +00:00
Vadim Zeitlin
eecf97a5ee changed wxAuiBlendColour() to work with unsigned chars instead of doubles as it's always used with them [forward port of rr55210 from 2.8]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 00:30:23 +00:00
Benjamin Williams
93dcd337cd fix undefined variable color to colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 12:00:09 +00:00
Benjamin Williams
c95340c234 don't use MacSetTheme()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 10:56:51 +00:00
Benjamin Williams
b7ae02541f fixed include problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 10:21:57 +00:00
Benjamin Williams
1154f91b6a added wxAuiToolBar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 09:28:07 +00:00
Stefan Csomor
f033830e25 cocoa implementation files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-23 12:55:54 +00:00
Stefan Csomor
e53b3d16de common implementation files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-23 12:43:44 +00:00
Robert Roebling
4df230b81e wxComboCtrlBase::Enable() does not refresh the control #9900
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-23 08:19:42 +00:00
Julian Smart
e2d0875aa7 Improved auto list numbering
Fixed selection bugs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 15:21:50 +00:00
Julian Smart
44bcee116e Cleanup of previous fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 11:32:23 +00:00
Julian Smart
b331ca89b2 Generic carent no longer invisible on a dark background
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 10:34:14 +00:00
Robert Roebling
de2fcf0332 #9854 (AddPendingEvent - protect during wxEvtHandler destruction)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 09:18:30 +00:00
Stefan Csomor
b503b036c1 osx-cocoa event loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 06:47:58 +00:00
Vadim Zeitlin
45c6df33ec make ellipses drawn by wxDC more consistent with wxGC ones (closes #9887)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 22:51:31 +00:00
Vadim Zeitlin
e1bd1db228 use Pango to draw rotated text if possible (this supports text background and should be more efficient), fall back to the old method for old libraries (closes #9861)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 22:31:36 +00:00
Vadim Zeitlin
08de440369 honour useMask parameter in DrawBitmap() and StretchBlit() (#9841)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 21:12:44 +00:00
Vadim Zeitlin
42046cf5e3 don't always create DIBs in wxBitmap(wxImage) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 20:43:48 +00:00
Robert Roebling
d9468a20c4 #9876 (GC: added sanity check to wxGraphicsPathData::AddEllipse())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 12:21:14 +00:00
Robert Roebling
5f22e8ccf8 Ticket #9858 gtk wxDC::DrawText() - draw text background natively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 12:06:11 +00:00
Stefan Csomor
9a7fc42588 mimetype common implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 07:30:33 +00:00
Stefan Csomor
fb8dcb0528 cocoa specific implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 07:29:07 +00:00
Stefan Csomor
3ccc5735bf new common code files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 07:28:04 +00:00
Václav Slavík
373c713ad4 fixed scaling of print preview if there's not enough RAM for the full page
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-20 21:58:31 +00:00
Paul Cornett
c58d22381a remove text field from page data, add much more useful image widget pointer, lots of code simplification and cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-19 16:28:40 +00:00