Rename some parameters in wxGrid code to make them more clear.
No real changes, just call the variables containing display positions "pos" and not "line" in wxGridOperations to avoid giving the impression that they contain indices. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -613,8 +613,8 @@ public:
|
|||||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
||||||
{ grid->SetDefaultRowSize(size, resizeExisting); }
|
{ grid->SetDefaultRowSize(size, resizeExisting); }
|
||||||
|
|
||||||
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int line) const
|
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const
|
||||||
{ return line; } // TODO: implement row reordering
|
{ return pos; } // TODO: implement row reordering
|
||||||
|
|
||||||
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const
|
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const
|
||||||
{ return line ? line - 1 : line; }
|
{ return line ? line - 1 : line; }
|
||||||
@@ -677,8 +677,8 @@ public:
|
|||||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
||||||
{ grid->SetDefaultColSize(size, resizeExisting); }
|
{ grid->SetDefaultColSize(size, resizeExisting); }
|
||||||
|
|
||||||
virtual int GetLineAt(const wxGrid *grid, int line) const
|
virtual int GetLineAt(const wxGrid *grid, int pos) const
|
||||||
{ return grid->GetColAt(line); }
|
{ return grid->GetColAt(pos); }
|
||||||
|
|
||||||
virtual int GetLineBefore(const wxGrid* grid, int line) const
|
virtual int GetLineBefore(const wxGrid* grid, int line) const
|
||||||
{ return grid->GetColAt(wxMax(0, grid->GetColPos(line) - 1)); }
|
{ return grid->GetColAt(wxMax(0, grid->GetColPos(line) - 1)); }
|
||||||
|
Reference in New Issue
Block a user