move ScrollWindow() implementation to the base class and call private DoScrollHorz() from it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,12 +141,18 @@ public:
|
||||
// the user doesn't need to TAB to this control
|
||||
virtual bool AcceptsFocusFromKeyboard() const { return false; }
|
||||
|
||||
// this method is only overridden in order to synchronize the control with
|
||||
// the main window when it is scrolled, the derived class must implement
|
||||
// DoScrollHorz()
|
||||
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
|
||||
|
||||
private:
|
||||
virtual unsigned int DoGetCount() const = 0;
|
||||
virtual void DoInsert(const wxHeaderColumn& col, unsigned int idx) = 0;
|
||||
virtual void DoDelete(unsigned int idx) = 0;
|
||||
virtual void DoShowColumn(unsigned int idx, bool show) = 0;
|
||||
virtual void DoShowSortIndicator(unsigned int idx, int sortOrder) = 0;
|
||||
virtual void DoScrollHorz(int dx) = 0;
|
||||
|
||||
// this window doesn't look nice with the border so don't use it by default
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
|
@@ -47,10 +47,6 @@ public:
|
||||
virtual ~wxHeaderCtrl();
|
||||
|
||||
|
||||
// this method is only overridden in order to synchronize the control with
|
||||
// the main window when it is scrolled
|
||||
virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
|
||||
|
||||
private:
|
||||
// implement base class pure virtuals
|
||||
virtual unsigned int DoGetCount() const;
|
||||
@@ -58,6 +54,7 @@ private:
|
||||
virtual void DoDelete(unsigned int idx);
|
||||
virtual void DoShowColumn(unsigned int idx, bool show);
|
||||
virtual void DoShowSortIndicator(unsigned int idx, int sortOrder);
|
||||
virtual void DoScrollHorz(int dx);
|
||||
|
||||
// override wxWindow methods which must be implemented by a new control
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
Reference in New Issue
Block a user