Commit Graph

40251 Commits

Author SHA1 Message Date
Robin Dunn
f6edc96028 add missing versioned symbol
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 21:37:13 +00:00
Robin Dunn
06b0c0a39d Use premultiplied alpha pixel format to match what is used everywhere else in wxMSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 21:31:43 +00:00
Robin Dunn
ca71c6bf10 Avoid compile error and return a value from StartDoc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 21:30:28 +00:00
Kevin Ollivier
728d38cbe5 Add implementation of native DrawCheckBox for Mac. (patch #1786282.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 19:10:52 +00:00
Stefan Csomor
c00df9c854 adapting single selection deselect to generic listctrl 1812903
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 18:48:40 +00:00
Robin Dunn
eb0144e8b1 Use kControlContentIconRef in SetBitmapLabel for wxBORDER_NONE buttons.
Factor out code to create a standard sized bitmap so it can be used in
SetBitmapLabel too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 18:27:52 +00:00
Julian Smart
3815803a84 Small code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 13:35:10 +00:00
Stefan Csomor
a0f0ebebb9 making sure we only have the badged exclamation/warning sign for wxICON_EXCLAMATION (sf 1817033)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 12:30:38 +00:00
Paul Cornett
37a67a422c remove extraneous semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 07:27:12 +00:00
David Elliott
bd78775a3f Go back to my original idea of checking for EILSEQ and EINVAL and failing
immediately if either of those is set after wxVsnprintf call returns a
negative number to indicate some type of failure.

All other errno are assumed to simply mean that the buffer is undersized so
the platform C library function can set errno to anything it likes or simply
not set it at all and our code will keep trying to increase the buffer size
just as it did originally.

This should (hopefully) fix compilation with C libraries that only support
the most basic set of errors (of which EINVAL and EILSEQ are part).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 03:30:16 +00:00
Robin Dunn
44abeba10d Patch [ 1816051 ] MSW DrawEllipticArc inconsistent with other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 18:07:45 +00:00
Vadim Zeitlin
ac7bf2261a vswprintf() compilation fix for mingw32 with STLport 5.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:32:59 +00:00
Stefan Csomor
296faa4b72 offsetting fixed, color handling factored out
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:16:07 +00:00
Stefan Csomor
53b6774787 correct scrollbars with empty grow-box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:14:52 +00:00
Stefan Csomor
c4dded970b fixing height for buttons with different variants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:13:50 +00:00
Stefan Csomor
b724d57fc7 making sure pdf pages are correctly layouted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:12:25 +00:00
Stefan Csomor
d0a2daec58 flushing corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:11:31 +00:00
Stefan Csomor
9b7384b523 scrolling fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:11:01 +00:00
Stefan Csomor
2144aae383 removed inlines, adding straight implementation for Flush
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:10:16 +00:00
Paul Cornett
e3800748e4 add wxUSE_MINIFRAME wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:07:29 +00:00
Stefan Csomor
293f319ffc fixing missed line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:05:49 +00:00
Stefan Csomor
0e88f17166 factoring color representation on mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:04:40 +00:00
Stefan Csomor
43733e3e6c making it obvious method is virtual, factoring out GrowBox painting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:03:35 +00:00
Stefan Csomor
08114fa8aa making funcs non-inline, adding a Flush method which will only be needed on mac at the moment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 18:02:10 +00:00
Stefan Csomor
10b4c543d2 fixing int overflows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 17:59:09 +00:00
Paul Cornett
951bb5741e fix header wrapper typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 17:59:02 +00:00
Stefan Csomor
c5a95b5e56 clarifying comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 17:58:22 +00:00
Stefan Csomor
06f80bde28 unifying offseting rules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 11:54:03 +00:00
Stefan Csomor
a06fe67b79 fixing possible offsetting glitches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 11:52:54 +00:00
Stefan Csomor
0417955ddb adding correct filling area to arc, correct rounding and clipping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 11:51:45 +00:00
Stefan Csomor
248e9b5834 extensions and fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 15:23:18 +00:00
Robert Roebling
2207b90d2c [ 1816882 ] wxListBox::SetSelection() doesn't update the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 15:01:42 +00:00
Vadim Zeitlin
223a3d63c0 export wxInvalidSize from DLL builds (patch 1805738)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 14:34:43 +00:00
David Elliott
eec17f8302 Fix wxVsnprintf-using code on both trunk and 2.8 and document how native
functions are supposed to behave as well as how some of them do.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 03:44:01 +00:00
Stefan Csomor
40c5b2dc48 better native type for files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 14:46:03 +00:00
Julian Smart
a4f93a823c Show debug report directory in long form on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 11:40:07 +00:00
David Elliott
eb0bfa0d51 Improve behavior of menubar switching when windows are activated.
Specifically, if a non-wx (e.g. internal Cocoa) window becomes key but a
wx window remains main, be sure to use the wx window's menubar rather
than swapping it out for the menubar we show when no wx window
is active.  Fixes Leopard issue.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 05:39:18 +00:00
David Elliott
39d095adb5 Add missing wxT().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 04:42:23 +00:00
David Elliott
551896d9da Add wxAddProcessCallback for both wxMac and wxCocoa and use it for wxCocoa.
It can be turned on for wxMac if desired.  See utilsunx.cpp comment.
NOTE: I can't add the symbol to version-script.in because other platforms
have had this symbol even though wxMac/wxCocoa have not.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 03:10:31 +00:00
David Elliott
0e3d1f4af5 Backport modified 49154 from trunk. Normalizes multiple and incorrect usage
of darwin/mac/cocoa tests into one USE_OLD_DARWIN_END_PROCESS_DETECT which
now excludes wxCocoa since it will be using the new method.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 02:42:42 +00:00
David Elliott
5e093a9bb5 Add ProcessPendingEvents to wxApp::Yield which makes the code almost identical
to wxMSW's implementation save for using Cocoa instead of MSW.
Add a wxAutoNSAutoreleasePool around wxApp::WakeUpIdle so that calling it from
a thread does not leak the NSEvent.
Add several hundred lines of comments explaining the unique method that
wxCocoa uses to hook the underlying event loop and run loop so that wxCocoa
is able to provide things like wx idle events.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 02:13:13 +00:00
Michael Wetherell
a49453dab9 When testing for getpwuid_r and getgrgid_r also check the signature. Solaris
7-9 have these with non-POSIX signatures.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 16:34:55 +00:00
Robin Dunn
e388b63f0d Another typo. I should really wake up before writing...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 16:14:50 +00:00
Robin Dunn
6275bcf28d fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 15:49:30 +00:00
Robin Dunn
86f87473ea Make event overview doc more clear about instances of wxEvtHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 15:47:59 +00:00
David Elliott
e20d0f2a10 Fix crasher caused by wxProcessTerminationEventHandler::OnTerminate killing
itself inside the context of wxEvtHandler::ProcessPendingEvents which
still needs itself to be valid because it accesses it's m_eventsLocker.

NOTE: This code is no longer used on trunk and hopefully soon won't be
used in 2.8 either, but at least it doesn't crash now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 09:31:21 +00:00
David Elliott
df13d77add Revert part of 49140 on the 2.8 branch making it continue to use
wxNonControlNSControl where WXNSView would do except that on the 2.8
branch I use a hack to stuff the control label in there since
2.8 has no m_labelOrig field in wxControlBase.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:30:39 +00:00
David Elliott
0d220868d4 Merge 49213/49214 from trunk. Working wxFont implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:23:05 +00:00
David Elliott
4ece5784e2 Added include/wx/cocoa/private
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:02:43 +00:00
Robin Dunn
08221a1ddb Add a section for 2.8.6.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 00:43:29 +00:00