Commit Graph

382 Commits

Author SHA1 Message Date
Robert Roebling
739a839903 Added wxDataViewCtrl::IsExpanded(item)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:23:55 +00:00
Vadim Zeitlin
dcb6cbecc8 extract setters from wxHeaderColumnBase into a separate wxSettableHeaderColumn class as we don't always need to implement them in order to use this class; also renamed wxHeaderColumnBase to just wxHeaderColumn as we didn't have any wxHeaderColumn at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 13:05:48 +00:00
Vadim Zeitlin
565804f2b9 added EVT_HEADER_DRAGGING_CANCELLED event sent when either resizing or reordering operation is cancelled instead of having a special cancelled flag in normal END_RESIZE/REORDER events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:05:21 +00:00
Vadim Zeitlin
702f5349c6 implement column reordering support in wxMSW wxHeaderCtrl; use it in wxDataViewCtrl (and make difference between column indices and positions more clear in it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 15:56:11 +00:00
Vadim Zeitlin
46234a0383 restore sorting functionality of the generic wxDataViewCtrl but implement it on top of wxHeaderCtrl support for it now; don't have const and non-const overloads of GetSortingColumn() in wxDVC returning different things (could this have really been intentional?); added GetSortingColumnIndex()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 21:13:29 +00:00
Vadim Zeitlin
0b2e14832a don't allow resizing non-resizeable columns in wxHeaderCtrl itself, no need to do it in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:36:11 +00:00
Vadim Zeitlin
a45caa71bf honour column min width when resizing in wxHeaderCtrl, no need to do it in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:33:03 +00:00
Vadim Zeitlin
396825dced rename wxHeaderCtrl DRAG events into RESIZE ones as we're also going to have column drag-reodering
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:38:56 +00:00
Vadim Zeitlin
afdf99e13a don't take EVT_HEADER_END_DRAG into account if it indicates the the drag was cancelled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:31:44 +00:00
Vadim Zeitlin
aef252d9da implement column resizing events in wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 14:40:42 +00:00
Vadim Zeitlin
3bfaa5a7e4 add wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK and semi-automatic header resizing support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 12:15:17 +00:00
Vadim Zeitlin
fa3d4aaf0f implement click events in wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 00:57:53 +00:00
Vadim Zeitlin
e2bfe6731e - Rewrite wxHeaderCtrl to be virtual-like: even if we don't need an infinite
number of columns in it, it turns out that getting column information from
  the associated control is much easier than copying it into the control.
- Provide wxHeaderCtrlSimple derived class which can be used easily if
  callback approach of wxHeaderCtrl is not needed.
- Because of wxHeaderCtrl virtualization, port-specific implementations of
  wxHeaderColumn are not needed any more and were removed.
- Use wxHeaderCtrl in the generic wxDataViewCtrl: this means that column
  events are broken right now in it as they haven't been implemented by
  wxHeaderCtrl yet, this will be fixed a.s.a.p.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 14:47:55 +00:00
Vadim Zeitlin
56873923f3 extract (and expand and clean up and document) the header window implementation used inside the generic wxDataViewCtrl in a separate wxHeaderCtrl class which could be reused in (generic) wxListCtrl and, most importantly, wxGrid later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-03 21:53:10 +00:00
Vadim Zeitlin
5c33522fca replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Robert Roebling
788432e343 Correct TAB handling for generic wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 19:10:25 +00:00
Vadim Zeitlin
dd639a4f27 a couple of more left over Borland unused variable/code warnings fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:52:17 +00:00
Vadim Zeitlin
e822d1bd5f fix more Borland release build warnings about unused variable/code without effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:30:49 +00:00
Robert Roebling
236a34ef3e Fix crash again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 10:02:35 +00:00
Robert Roebling
d7cda9b290 Fix crash with NULL pointer dereferencing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 07:36:36 +00:00
Robert Roebling
2571a33fd3 implement GetSizeAvailableForScrollTarget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 19:18:28 +00:00
Robert Roebling
9657c19785 Fix #9940: wxDataViewCtrl left/right arrow press crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-05 11:15:43 +00:00
Vadim Zeitlin
d3acc83ae9 fix some (harmless) mingw32 4.3 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-30 16:30:53 +00:00
Vadim Zeitlin
59e601677a compilation after last commit: semicolon after wxDELETE() is now required; also removed some other extra semicolons and other minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-03 00:10:06 +00:00
Robert Roebling
029458cec9 #9559 DataViewCtrl wrong behaviour with reordering not reorderable columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-11 07:43:42 +00:00
Robert Roebling
09958a80f7 blind fix for: #9549: crash in wxDataViewMainWindow::GetEndOfLastCol() after column reordering
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-09 09:49:39 +00:00
Robert Roebling
b3a3c9d82c Use wxList::DeleteContents() to delete columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:19:41 +00:00
Vadim Zeitlin
777f9cef02 fix MSVC warnings about conversions between pointers and longs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-23 12:18:27 +00:00
Robert Roebling
19723525ce Added InsertColumn( pos, col ), some reformating
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-21 08:47:21 +00:00
Robert Roebling
e170469f11 Commit mem leak fix I introduced
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 19:40:10 +00:00
Robert Roebling
2a9f020897 Fix mem corruption due to string no longer being in scope
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 17:01:20 +00:00
Robert Roebling
981cd83efc Don't make lines narrower that default line height in variable height mode, don't miss button press
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-20 12:44:21 +00:00
Robert Roebling
c92874460d Correct vert alignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-16 21:03:35 +00:00
Robert Roebling
ba5f54e64f ignore invisble columns in height calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-16 20:08:09 +00:00
Robert Roebling
344ed1f386 Option for variable line heights (MSW and GTK+ sofar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-16 12:37:32 +00:00
Robert Roebling
0c8ed3eb3a Support bitmaps and text and header columns using wxImageList, minor sizing corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-14 20:14:04 +00:00
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