Commit Graph

246 Commits

Author SHA1 Message Date
Robert Roebling
a02f7e511b Added bitmap support to column header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-14 11:59:58 +00:00
Robert Roebling
e51bf69961 Adapt MSW's renderer's alignment to use column header's alignment by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-08 11:17:54 +00:00
Robert Roebling
e39de7022c Split wxDataViewVirtualModel fork wxDataViewIndexModel to make the code clearer and let wxDataViewIndexModel behave the same on all platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-07 09:27:21 +00:00
Robert Roebling
d2c1ee8a7a Fixed bug that made adding a child to a branch (that was previously made empty) impossible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 13:40:55 +00:00
Robert Roebling
dd570ceb10 Probable fix for [ 1933745 ] Crash in wxDataViewHeaderWindowBase::GetColumn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 12:33:03 +00:00
Robert Roebling
741230732f [ 1922123 ] Generic wxDataViewCtrl leaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 12:24:57 +00:00
Robert Roebling
0bdfa38835 Support renderer::LeftClick() in generic code, removed unsupported RightClick(), corrected docs, added test to sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 12:09:15 +00:00
Robin Dunn
008e999e14 Don't force wxBORDER_SUNKEN so the programmer can specify some other style.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-01 04:35:21 +00:00
Vadim Zeitlin
069b2e5941 don't provide unnecessary (as default) arguments to wxPen ctor, this incidentally fixes deprecation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 20:57:50 +00:00
Vadim Zeitlin
626b09ec05 further simplifiy USE_NATIVE_HEADER_WINDOW checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-10 02:55:57 +00:00
Vadim Zeitlin
98a14ab488 don't use native headers in wxUniv build (this doesn't even link under MSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-09 12:57:10 +00:00
Robert Roebling
f210b1b521 Patch for context menu event for generic/Windows code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-01 10:25:45 +00:00
Václav Slavík
f029f1d15b added wxWindow::HandleAsNavigationKey() helper for handling (not only) TAB key in custom controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-12 20:13:22 +00:00
Robert Roebling
ad3867930c Partial impl of auto resizing columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-14 11:04:57 +00:00
Julian Smart
cfa42cb87f Suppressed the themed border by defining GetDefaultBorder
Set custom background style


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-02 21:39:10 +00:00
Robert Roebling
fc8c1a15b2 Implement rest of MSW's wxDataViewCtrl's native column reordering
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-28 23:07:30 +00:00
Robert Roebling
0d1c4edee3 Also get header button height right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-27 18:41:40 +00:00
Robert Roebling
2ae2097cf3 Remove (wrong) theme border from header control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-27 18:30:48 +00:00
Robert Roebling
309bd665c4 Some reorder code for MSW's dataviewctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-26 21:37:03 +00:00
Robert Roebling
99c75ebc5e Patch from Hartwig and me for implementing reorderable dataview columns. Works on OS X and GTK+, breaks OS X a litte
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-26 18:30:56 +00:00
Robert Roebling
1117d56f50 Correct background colourin wxDataViewCtrl, Use IsOk() instead of Ok()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 10:34:17 +00:00
Robert Roebling
33ba5a0562 Added wxDataViewListIndexModel::Reset(), clarified and corrected wxDataViewModel::Cleared(), corrected sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-17 13:56:28 +00:00
Robert Roebling
8b6cf9bf10 Added wxDataViewListIndexModel::RowsDeleted() and various related corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-17 11:28:02 +00:00
Robert Roebling
63779a3de1 Patches-1851591 ] dataview sample is crashing (under MSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-16 14:42:32 +00:00
Robert Roebling
76f1eb7e1f use buffered DC again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-08 10:39:12 +00:00
Robert Roebling
888dde65f4 DC reorganization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 13:48:22 +00:00
Robert Roebling
f52984b82e Patch from Bo to show missing lines again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-27 20:57:57 +00:00
Robert Roebling
a3cc79d902 Add short-cut for wxDataViewListIndexModel for generic code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 14:21:08 +00:00
Robert Roebling
51bdecff6f Free memory of m_root
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 13:42:01 +00:00
Robert Roebling
4264606eed Add wxDataViewTextRendererAttr, blind noop under wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-08 22:51:58 +00:00
Vadim Zeitlin
e61d6c0be3 define HDS_DRAGDROP and HDS_FULLDRAG if the SDK is too old to define them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 13:46:44 +00:00
Robert Roebling
0677c6cb66 Don't hide wrong border around header button control just to show the problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 08:14:49 +00:00
Vadim Zeitlin
f456baf131 fix a couple more of unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 20:59:50 +00:00
Paul Cornett
a76c2f3715 remove extraneous semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 07:27:12 +00:00
Robert Roebling
d81ad1f044 Further attempts to get button header right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 18:04:14 +00:00
Robert Roebling
4bae66a8de Use CommCtrl to render sortup and sortdown indicators in header control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 17:39:53 +00:00
Robert Roebling
70a9e561df Trying to get native header button right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 13:57:33 +00:00
Vadim Zeitlin
df2c23e79b replace wrong calss of Refresh() with (hopefully) correct calls to RefreshRow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 23:25:11 +00:00
Vadim Zeitlin
b5ec7dd6ee fix unused parameter warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 23:23:44 +00:00
Robert Roebling
45c156e0ff Redundant call to GetItemByRow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 20:11:30 +00:00
Robert Roebling
52e750fc75 Added wxDataViewCustomRenderer::RenderText() for renderer simple text in platform dependent way, added wxDataViewSpinRenderer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 20:09:10 +00:00
Robert Roebling
816964cfd8 Only draw cell in selected style when control has focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 10:43:57 +00:00
Robert Roebling
736fe67c66 Added PrependColumn methods and short cuts. Added test for DeleteColumn to sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 20:56:38 +00:00
Robert Roebling
e44ac7bcd8 Pixel fiddling for correct placement of text with and without icons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 16:35:16 +00:00
Robert Roebling
b89cac3f09 Corrected wrong initial/min size of generic wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 15:07:11 +00:00
Robert Roebling
438fb233a0 Implement HasContainerColumns in generic code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 14:40:08 +00:00
Robert Roebling
ce0cf2b871 Make wxRenderer::DrawItemSelectionRect() draw a focus outline of wxCONTROL_CURRENT and wxCONTROL_FOCUSED is given, blind patch for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 20:57:01 +00:00
Robert Roebling
001f0f8273 Correct focus rect to not appear in unfocussed controls (currently doesn't appear at all under XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 09:43:19 +00:00
Robert Roebling
49fc3b9c03 Correct EnsureVisible() to show last item entirely
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 09:21:04 +00:00
Robert Roebling
e2da67f6d7 More alignment issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 09:17:32 +00:00