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
This commit is contained in:
Vadim Zeitlin
2008-12-10 15:56:11 +00:00
parent fbc25b5107
commit 702f5349c6
7 changed files with 323 additions and 57 deletions

View File

@@ -55,6 +55,9 @@ private:
virtual void DoScrollHorz(int dx);
virtual void DoSetColumnsOrder(const wxArrayInt& order);
virtual wxArrayInt DoGetColumnsOrder() const;
// override wxWindow methods which must be implemented by a new control
virtual wxSize DoGetBestSize() const;
@@ -66,8 +69,8 @@ private:
void Init();
// wrapper around Header_InsertItem(): insert the item by using information
// from GetColumn(idx)
void DoInsertItem(unsigned int idx);
// from GetColumn(idx) and at the given display position if order != -1
void DoInsertItem(unsigned int idx, int order);
// get the event type corresponding to a click or double click event
// (depending on dblclk value) with the specified (using MSW convention)