Robert Roebling
818d91a9d7
Add visual drag hint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-21 22:58:56 +00:00
Robert Roebling
9deec11183
Add drop hint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-21 18:20:51 +00:00
Robert Roebling
a653c966d4
Implement simple Drop, doesn't work under wxMSW (?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-21 14:02:44 +00:00
Robert Roebling
592883ed7e
Implement simple drag
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-20 19:57:54 +00:00
Robert Roebling
ce2fe79863
FindNode() must return m_root for wxDataViewItem(0)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-20 19:43:58 +00:00
Robert Roebling
821baf7da4
Skeleton for generic Drag code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-20 19:04:03 +00:00
Robert Roebling
bf9ea28818
Fixes #10382 : Memory leak in wxDataViewMainWindow::IsExpanded
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-14 23:48:11 +00:00
Robert Roebling
4219d8b027
Add wxDataViewCtrl::ExpandAncestors() and call it from both EnsureVisible() and Select()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-23 14:56:07 +00:00
Robert Roebling
a881f34e49
Call Expand on an item's parent chain in EnsureVisible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-20 15:11:38 +00:00
Robert Roebling
4a745e76b1
Fixes #10288 : wxDataViewCtrl missing selection change event
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-19 17:26:29 +00:00
Robert Roebling
13499080f0
Recalculate display (and scrollbars etc) before calling EnsureVisible()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-18 16:38:23 +00:00
Vadim Zeitlin
482d06f8b5
made wxHeaderCtrl::GetColumn() const to get rid of the const_cast<>s
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-17 00:11:57 +00:00
Robert Roebling
74a98b9938
Fixes #10246 : wxDataViewCtrl - first row does not react on return-key
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 22:02:40 +00:00
Robert Roebling
5179bc0bca
Fixes #10247 : wxDataViewCtrl - event is generated when clicking on a non existing row
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 21:57:40 +00:00
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