Commit Graph

132 Commits

Author SHA1 Message Date
Stefan Csomor
6262f74563 fix for 1742682
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-06 18:02:21 +00:00
Stefan Csomor
94ca03630b fixing bug 1841377
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 09:14:44 +00:00
Robin Dunn
b80bba0f09 Use kControlContentIconRef for toolbar bitmap buttons. Fixes bug #1826474
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-27 20:48:15 +00:00
Stefan Csomor
ddfbff357f avoiding refcount checks under Leopard, the behaviour differs there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-04 21:24:23 +00:00
Stefan Csomor
ea62c5fc9e using CGImage for all native toolbar items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-19 09:19:00 +00:00
Julian Smart
a2a50c2dfe Give controls more width to avoid edge being clipped
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-20 15:35:54 +00:00
Julian Smart
4bfc438fd5 Fixed uninstalled toolbars in native toolbar mode, with a method for
specifying non-native if required
Added code to toolbar sample for testing uninstalled toolbar


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-20 14:02:06 +00:00
Stefan Csomor
16ff3d55ea more cgimageref support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 14:39:54 +00:00
Vadim Zeitlin
16a1e10235 don't compare wxList::compatibility_iterator with NULL, this operation is undefined and provokes g++ warnings about using NULL in arithmetic expression [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 01:56:41 +00:00
Stefan Csomor
ad21891891 LP64 additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-15 20:39:10 +00:00
Stefan Csomor
b17e81e0e2 adjusting refcount asserts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 19:34:00 +00:00
Robin Dunn
3814954344 backport the shrinking embedded controls fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 00:08:09 +00:00
Stefan Csomor
a96745c934 removing duplicated error message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 11:25:14 +00:00
Stefan Csomor
39183827a1 fixing refcounting for embedded native controls, backporting code for Realize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 09:59:44 +00:00
Robin Dunn
69d4bbb974 Added wxToolBar::SetTool[Normal|Disabled]Bitmap for wxMSW, wxGTK and wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-25 23:35:07 +00:00
Robin Dunn
1fe8ec6d3d Use kControlContentIconRef when recreating the tool for toggled state
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-18 21:51:01 +00:00
Stefan Csomor
83f787ba21 switching to autorelease
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-10 13:19:50 +00:00
Stefan Csomor
507d5748d6 fixing memory leaks (toolbartool not released) and a bug where native embedded controls were not beeing released correctly in situations where the native toolbar does not get really used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-09 09:48:28 +00:00
Vadim Zeitlin
d408730ce4 ensure that wxToolBar has one of wxTB_TOP/LEFT/RIGHT/BOTTOM styles set, otherwise the latest toolbar positioning code breaks down
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 13:09:08 +00:00
Robin Dunn
170acdc90e GetBestFittingSize --> GetEffectiveMinSize
SetBestFittingSize --> SetInitialSize
SetBestSize  --> SetInitialSize
SetInitialBestSize --> SetInitialSize


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:50:17 +00:00
Stefan Csomor
f387b80e0e cleanup for 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-14 15:48:32 +00:00
Paul Cornett
716d032736 remove unused stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 05:14:39 +00:00
Robin Dunn
ce9da810d8 Allow the native toolbar to have more han one button toggled at a time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-06 04:47:30 +00:00
Robin Dunn
0ac091aecd deTABified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-08 15:15:36 +00:00
Stefan Csomor
9d5ccdd326 fixing ownership and positioning of embedded controls in native toolbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-08 08:46:05 +00:00
Vadim Zeitlin
d3c7fc996a mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Stefan Csomor
da14a87dee make sure we are feeding coordinates of HIView instances, not wx-dimensions back into toolbar layout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-29 12:16:47 +00:00
Stefan Csomor
6d4835dccb adding support for embedded controls in native toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-11 19:57:28 +00:00
Stefan Csomor
b86db821bf we're always compositing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-11 04:29:11 +00:00
Włodzimierz Skiba
0bca037363 Include wx/bitmap.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-14 10:02:19 +00:00
Włodzimierz Skiba
4e3e485bc8 Include wx/toolbar.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 17:46:13 +00:00
Paul Cornett
4362c7052b wxASSERT(false) --> wxFAIL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 04:12:48 +00:00
Stefan Csomor
8c07d8b324 clean-up and fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-29 19:17:07 +00:00
David Surovell
3025abca05 cleanup - reformatting (pt 2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-16 06:16:56 +00:00
David Surovell
3b6a117962 cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-16 01:03:29 +00:00
David Surovell
dcae64c221 cleanup - reformatting; simplified OnPaint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 19:37:04 +00:00
David Surovell
991f71dcc8 cleanup - reformat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-04 08:19:13 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Stefan Csomor
b13095df45 tentative fix for BestSize problems (non-native toolbar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 19:13:27 +00:00
Stefan Csomor
a749a99f08 fixing visibility checks for native toolbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-17 14:18:50 +00:00
Stefan Csomor
8138cfecaf optimizing for multiple Realize calls in sequence, moving EventHandler push to toolbar item creation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-01 09:32:18 +00:00
Vadim Zeitlin
df7998fce5 compilation fix; unTABbed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-29 13:59:39 +00:00
Stefan Csomor
2c1dbc95e1 several fixes, guards, and an implementation for removal of native toolbar items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-27 16:43:19 +00:00
Vadim Zeitlin
30962327c9 use wxString::Format(), calling string.Format() has no effect patch 1267345)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-23 23:27:40 +00:00
Vadim Zeitlin
f3a65c3e49 unused variable warning when !wxMAC_USE_NATIVE_TOOLBAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-07 16:05:46 +00:00
Stefan Csomor
00a7bd8596 fixing names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-31 16:36:38 +00:00
Stefan Csomor
328f4fee60 defaulting to small style (24x24), and correcting the cut-off decision to be at > 24 instead of >16
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-31 09:22:29 +00:00
Stefan Csomor
df71db0ede respect styles during creation as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 16:37:38 +00:00
Stefan Csomor
3803c372a1 lowercase bools
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 13:43:49 +00:00
Stefan Csomor
5d0bf05abe code formattings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 13:32:20 +00:00