Commit Graph

2548 Commits

Author SHA1 Message Date
Kevin Ollivier
a4609ab847 Implement wxRendererMac::DrawItemSelectionRect and move the generic wxTreeCtrl to using it to draw selected items.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-19 06:28:47 +00:00
Kevin Ollivier
aac75444c6 Column position changes after each delete, so always delete the 0 column.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-15 01:01:16 +00:00
Kevin Ollivier
2201013094 Disable SortItems support for now, it is causing a crash on the wxPython side and we get the column click event too late to affect the initial sort.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-13 00:24:19 +00:00
Vadim Zeitlin
ac371a8793 wxStandardPathsCF::GetExecutablePath() implementation doesn't use CF API but Carbon one and so doesn't compile in wxCocoa, don't use it there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 22:37:33 +00:00
Vadim Zeitlin
f8a98fa28c GetColumnTextValue() can't return a reference to a temporary string, so changed it to return wxString by value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 21:25:19 +00:00
Vadim Zeitlin
90412a12f4 gcc warning fix: don't use NULL where integer is required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 21:18:52 +00:00
Robert Roebling
ac7ad70d4c [ 1590221 ] wxStandardPaths::GetExecutablePath
Required for optimised stackwalker patch.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 12:58:10 +00:00
Kevin Ollivier
efa49f43ed Remove incorrect change that accidently made it into commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 05:21:19 +00:00
Kevin Ollivier
f0ed40adbf Add scrollbars if the columns exceed the horizontal space for the control, also, have SetColumnWidth store the value in the column's wxListItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 04:08:13 +00:00
Kevin Ollivier
b3aee70835 Switching to a keyed list for storing information about the column data in each row, so that columns need not be set sequentially. Also, a tweak for drawing colored backgrounds when wxLC_VRULES is set, and add a few guards before calling GetColumnInfo().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 01:01:05 +00:00
Kevin Ollivier
d2af7584c0 A more complete fix for the generic control border issue, a fix for getting/setting wxListItemAttr info for the native control, fixes for HitTest considering the column the 0 item, and for GetItemRect being one off in virtual mode. Also a fix for the function call when using a custom sort routine.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-11 05:41:12 +00:00
Kevin Ollivier
1934a64e10 Fix typo with adding wxNO_BORDER to the native control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 20:55:45 +00:00
Stefan Csomor
797f8d9641 redirecting missing implementations to textctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 20:37:41 +00:00
Robin Dunn
d3c82d0d13 Compile fix to match change made in header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 19:14:13 +00:00
Kevin Ollivier
464b15e17d Allow selection items to be toggled using CMD key when the listbox style is wxLB_EXTENDED.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 20:12:49 +00:00
Stefan Csomor
01294df09b adding reverse orientation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 19:48:18 +00:00
Kevin Ollivier
b20907ef2d Fix for incorrect error message report that caused wxMediaCtrl not to play MPEGs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 22:26:44 +00:00
Stefan Csomor
82f88f03ba supporting theme brushes under 10.4 properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 08:09:56 +00:00
Stefan Csomor
1acf0e5cff transforming clippings correctly, even if there is no native graphics context available yet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 16:48:54 +00:00
Julian Smart
53cc4e7005 Better vertical height for choice/combo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 13:00:02 +00:00
Stefan Csomor
14cd0443d9 add a source placeholder
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 10:16:54 +00:00
Stefan Csomor
3925a44ce0 fixing origin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 07:49:14 +00:00
Stefan Csomor
74b357ddde fixing pattern phase bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-05 19:51:15 +00:00
Kevin Ollivier
ba3241e643 Sizing and positioning fixes for generic control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 21:38:36 +00:00
Vadim Zeitlin
0ed77610cc removed unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 21:18:12 +00:00
Kevin Ollivier
7ac21a6761 Adding label editing to native OS X listctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 19:54:08 +00:00
Stefan Csomor
ad66794547 adding measuring contexts, streamlining printing code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 07:50:06 +00:00
Stefan Csomor
6e25bf0ffb fixing warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 06:33:45 +00:00
Kevin Ollivier
a6c82d64ce Sizing fixes for generic control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 18:17:24 +00:00
Julian Smart
3b5bf72fbe Compile in non-CG mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 11:05:41 +00:00
Stefan Csomor
5f547a582e using the foreground brush to fill mono bitmaps - gradients are not yet supported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 09:18:16 +00:00
Stefan Csomor
2185a8a32f typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 10:32:00 +00:00
Stefan Csomor
1c5decd0b8 casing the coordinates recalc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 06:07:11 +00:00
Kevin Ollivier
3ce16a8e02 Fixing icon drawing and implementing HitTest and GetItemRect for native OS X list ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 04:00:19 +00:00
Robin Dunn
f3d0a750d4 The rect passed to DrawTreeItemButton is already adjusted, we
shouldn't do it again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 03:59:03 +00:00
Robin Dunn
2bf8f4c0d5 Implement deep copy of wxBitmapRefData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 03:23:35 +00:00
Kevin Ollivier
9034707197 Explicitly forward non-command events along to the native control first.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 23:38:15 +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
Stefan Csomor
a7868cdf6a fixing reset clip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 10:40:51 +00:00
Stefan Csomor
1f2b627ae9 added missing init
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 10:08:22 +00:00
Stefan Csomor
23a3e8fbda make things compile under 10.3 again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:56:07 +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
69541a2ef1 lost save state call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:43:17 +00:00
Stefan Csomor
35ee712487 make sure we always restore the passed in cg in a paint event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:39:08 +00:00
Vadim Zeitlin
783d8bdf57 don't assign NULLs to bools and floats, this is confusing (and also the usual: deTABified; corrected double to int cast)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 23:22:42 +00:00
Vadim Zeitlin
8a438f46b5 more fixes to double to int conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 23:19:10 +00:00
Vadim Zeitlin
a3ab1c1801 renamed IsRefTo() to IsSameAs() (do complain if this is not more clear) and
changed its signature to take a const reference instead of a pointer which
simplifies the code and makes it safer as well


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 22:03:53 +00:00
Robert Roebling
913e3ee729 Blindly fixed (tried to) wxSlider on Mac after
SetSizeHints() change.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 21:33:03 +00:00
Robin Dunn
2e57368359 Some compile fixes.
It sure would be nice if big complicated patches could be tested (or
at least compiled) on all the core platforms before being checked in,
especially in last-minute crunch times.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 20:56:25 +00:00
Vadim Zeitlin
5a70d3f578 remove just added wxCoordRound() (see patch 1586499)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 20:34:25 +00:00