X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d47fc2b16dde5ab4d23a727e818a0cdf492f1c..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/headerctrl.h diff --git a/interface/wx/headerctrl.h b/interface/wx/headerctrl.h index 06efe8e7b2..662d20df0e 100644 --- a/interface/wx/headerctrl.h +++ b/interface/wx/headerctrl.h @@ -3,7 +3,6 @@ // Purpose: interface of wxHeaderCtrl // Author: Vadim Zeitlin // Created: 2008-12-01 -// RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -675,43 +674,49 @@ protected: class wxHeaderCtrlEvent : public wxNotifyEvent { public: + wxHeaderCtrlEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); + wxHeaderCtrlEvent(const wxHeaderCtrlEvent& event); + /** Return the index of the column affected by this event. This method can be called for all header control events. */ int GetColumn() const; - + void SetColumn(int col); + /** Return the current width of the column. This method can only be called for the dragging events. */ int GetWidth() const; - + void SetWidth(int width); + /** Return the new order of the column. - This method can only be called for end reorder event for which it + This method can only be called for a reorder event for which it indicates the tentative new position for the column GetColumn() selected by the user. If the event is not vetoed, this will become the new column position in wxHeaderCtrl::GetColumnsOrder(). */ unsigned int GetNewOrder() const; + void SetNewOrder(unsigned int order); }; -wxEventType wxEVT_COMMAND_HEADER_CLICK; -wxEventType wxEVT_COMMAND_HEADER_RIGHT_CLICK; -wxEventType wxEVT_COMMAND_HEADER_MIDDLE_CLICK; -wxEventType wxEVT_COMMAND_HEADER_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_RIGHT_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_MIDDLE_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_BEGIN_RESIZE; -wxEventType wxEVT_COMMAND_HEADER_RESIZING; -wxEventType wxEVT_COMMAND_HEADER_END_RESIZE; -wxEventType wxEVT_COMMAND_HEADER_BEGIN_REORDER; -wxEventType wxEVT_COMMAND_HEADER_END_REORDER; -wxEventType wxEVT_COMMAND_HEADER_DRAGGING_CANCELLED; +wxEventType wxEVT_HEADER_CLICK; +wxEventType wxEVT_HEADER_RIGHT_CLICK; +wxEventType wxEVT_HEADER_MIDDLE_CLICK; +wxEventType wxEVT_HEADER_DCLICK; +wxEventType wxEVT_HEADER_RIGHT_DCLICK; +wxEventType wxEVT_HEADER_MIDDLE_DCLICK; +wxEventType wxEVT_HEADER_SEPARATOR_DCLICK; +wxEventType wxEVT_HEADER_BEGIN_RESIZE; +wxEventType wxEVT_HEADER_RESIZING; +wxEventType wxEVT_HEADER_END_RESIZE; +wxEventType wxEVT_HEADER_BEGIN_REORDER; +wxEventType wxEVT_HEADER_END_REORDER; +wxEventType wxEVT_HEADER_DRAGGING_CANCELLED;