Commit Graph

47640 Commits

Author SHA1 Message Date
Jaakko Salli
2197ec8012 Fixed old font-related code that caused problems on wxMAC, also replaced all accesses to m_font with GetFont()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 16:55:19 +00:00
Vadim Zeitlin
d11c9d86b6 made wxArrayString::assign(iterator, iterator) a template function; also fixed a bad bug in it: it didn't call clear(); mention existence of std::vector-like methods in the docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 12:09:13 +00:00
Julian Smart
e0983733bd Fixed wxRichTextRange != operator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 10:17:44 +00:00
Stefan Csomor
e32090bacd renaming clickedAction callbacks to more generic controlAction, textctrl updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 07:17:46 +00:00
Stefan Csomor
c0f6cd1924 CGContextFlush is already called in SetNativeContext
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 07:16:32 +00:00
Kevin Ollivier
a2ee194587 Restore DrawRadioButton to the main wxRenderer API, create a method overload for the wxUniv API so that it can coexist with the wxUniv method of the same name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 01:06:53 +00:00
Kevin Ollivier
5ec8cc4ddd Fix assertion when passing nil to setKeyEquivalent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-12 01:02:42 +00:00
Stefan Csomor
f28b6f0668 supporting graphics context on invisible views, icon refs are available under 64 bit cocoa as well, turn drawing on again, fixes #10490
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 07:00:03 +00:00
Paul Cornett
7669dce5d2 corrected build fix, new code does work with GTK+ < 2.10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 03:43:30 +00:00
Bryan Petty
6a37636b11 Fixed section identifiers (the added section needed a unique id) in topic overviews page in the manual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 00:38:20 +00:00
Francesco Montorsi
6effcb7c9d fix for when wxUSE_DRAG_AND_DROP==0 (e.g. in wxX11)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-10 00:15:37 +00:00
Vadim Zeitlin
e232b083f9 compilation fix for GTK+ < 2.10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 21:17:02 +00:00
Kevin Ollivier
ceed527cc9 We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDraw does the right thing here, or at least the best we can hope for.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 18:48:20 +00:00
Stefan Csomor
15fc716c57 paint event handling fixes and wxClientDC implementation for osx-cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 18:03:13 +00:00
Stefan Csomor
be136f0738 make sure no delegates/impl ptrs are still set during destruction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 17:59:37 +00:00
Stefan Csomor
96defed03c flipped accessor conforming to plain c++ impl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 17:53:02 +00:00
Jaakko Salli
0e4d013854 Fixed (hopefully) wx_dll.dsw regarding propgrid and stc (closes #10463)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 16:43:41 +00:00
Vadim Zeitlin
99366b91eb don't use invalid item indices in wxLC_HRULES-drawing code (closes #10484)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:41:25 +00:00
Vadim Zeitlin
8d6e8e45fe fix MSVC warnings about possibly uninitialized variables; some reindentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:16:42 +00:00
Vadim Zeitlin
70ef48fee3 compilation fix for wxUSE_STL build after latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 13:12:53 +00:00
Robert Roebling
ca54ea374b Mention wxTaskBarIcon reimplementation, other details
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 10:19:22 +00:00
Robert Roebling
cbbf47f375 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:54:53 +00:00
Stefan Csomor
094898332b drawing code now in common file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:54:23 +00:00
Stefan Csomor
05112735c2 GetRegion is not needed anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:53:39 +00:00
Stefan Csomor
f215225dcf replacing RgnHandle with HIShapeRef usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:41:40 +00:00
Stefan Csomor
5398a2e050 common drawing code for osx-cocoa and osx-carbon, also since 10.5 HIShapeRef is in ApplicationServices, so this can be used for all osx-cocoa builds as native wxRegion implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 09:01:19 +00:00
Robert Roebling
abdb8c1806 Fixes #10454, Applied patch for wxDataViewCtrl should not change the selection when clicking the expander. Thanks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 08:48:14 +00:00
Kevin Ollivier
42c2b729e8 Remove delegates before releasing the native object, so that we don't have delegate methods getting called during destruction.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 05:22:45 +00:00
Kevin Ollivier
0600cf3ae9 Do a sanity check to make sure GetWindow() has a valid window, and assert if it doesn't. On OS X Cocoa, try to continue on in release mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 02:21:30 +00:00
Kevin Ollivier
f487501a2c Initial support for EVT_ERASE_BACKGROUND for OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 02:20:03 +00:00
Francesco Montorsi
80255b7eaf fix memory leak; allocate the DC before SetFont() is called on the status bar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 00:53:58 +00:00
Kevin Ollivier
71b37ee6e4 Update OS X Cocoa build files after recent changes and rebake.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 00:46:59 +00:00
Francesco Montorsi
0cd159592e save the current status text for each pane inside wxStatusBarPane: native controls now store the (eventually) ellipsized version of the string; remove code for managing the status strings currently inside the [native|generic] control; add ellipsization support under wxMSW; now that all SetFieldsCount() implementation rrely on wxStatusBarBase::SetFieldsCount document how it behaves when adding new panes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-09 00:33:19 +00:00
Kevin Ollivier
4879f2120c Enable wxDVC on OS X Cocoa using the generic control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 23:24:29 +00:00
Kevin Ollivier
ada083260a Stub out GetMatchingPair() for now to allow us to use the generic wxDVC on Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 23:21:22 +00:00
Kevin Ollivier
6e23949a98 Crash fix for when a wxNullBitmap is passed in as the bitmap to use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 23:08:20 +00:00
Kevin Ollivier
49decc8f95 Header fix for OS X Cocoa build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 23:05:19 +00:00
Francesco Montorsi
f0cd5e2422 revert changes erroneously committed (sorry)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 22:33:08 +00:00
Francesco Montorsi
d1bceb1af9 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 2009-02-08 22:25:33 +00:00
Paul Cornett
a1c6f06900 new wxTaskBarIcon implementation for GTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 22:21:24 +00:00
Francesco Montorsi
2a90b10068 allow the user to set the status bar font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 22:11:26 +00:00
Francesco Montorsi
ea6e41e45e use a single update UI handler for all menu commands which act only on the default status bar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 21:34:02 +00:00
Paul Cornett
c34d2f356b non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 20:54:48 +00:00
Paul Cornett
8aa40b04f8 do only what is necessary in SetScrollbars(), let the base class do the rest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 20:51:44 +00:00
Václav Slavík
51be4a55cf fixed creation of tests/benchmarks VC++ project files - name them correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 20:38:44 +00:00
Francesco Montorsi
4c6720f41d do not deselect the item the user has just selected: it just modifies the normal behaviour of the control in an unexpected way (no highlight rectangle, etc) and seems to block any item-specific operation when instead you can double click an item to get more info on it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 19:21:30 +00:00
Francesco Montorsi
ba4589db1d optimize rendering code by calling GetClientSize(), GetTextExtent() and CalculateAbsWidth() only when strictly needed; update cache from an OnSize() event handler; fix RTL code: wxDC::DrawText() is RTL-aware itself and doesn't need special calculations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 19:17:07 +00:00
Francesco Montorsi
91d55088c9 revert insert=>append change; only for wxELLIPSIZE_END append() is valid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 19:14:56 +00:00
Francesco Montorsi
0c36a1d6d4 remove mobile samples from samples.bkl (last part of r58765)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 19:11:37 +00:00
Stefan Csomor
1d61c55432 turning on icons for osx-cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 18:24:07 +00:00