summaryrefslogtreecommitdiff
path: root/wx+/grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/grid.h')
-rw-r--r--wx+/grid.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/wx+/grid.h b/wx+/grid.h
index b8b6711e..f08d6e41 100644
--- a/wx+/grid.h
+++ b/wx+/grid.h
@@ -178,7 +178,7 @@ public:
//alternative until wxScrollHelper::ShowScrollbars() becomes available in wxWidgets 2.9
void showScrollBars(ScrollBarStatus horizontal, ScrollBarStatus vertical);
- std::vector<size_t> getSelectedRows() const { return selection.get(); }
+ std::vector<size_t> getSelectedRows() const { return selection_.get(); }
void selectAllRows (GridEventPolicy rangeEventPolicy);
void clearSelection(GridEventPolicy rangeEventPolicy); //turn off range selection event when calling this function in an event handler to avoid recursion!
@@ -202,8 +202,8 @@ public:
void refreshCell(size_t row, ColumnType colType);
- void enableColumnMove (bool value) { allowColumnMove = value; }
- void enableColumnResize(bool value) { allowColumnResize = value; }
+ void enableColumnMove (bool value) { allowColumnMove_ = value; }
+ void enableColumnResize(bool value) { allowColumnResize_ = value; }
void setGridCursor(size_t row); //set + show + select cursor (+ emit range selection event)
size_t getGridCursor() const; //returns row
@@ -301,7 +301,7 @@ private:
};
std::vector<ColumnWidth> getColWidths() const; //
std::vector<ColumnWidth> getColWidths(int mainWinWidth) const; //evaluate stretched columns
- int getColWidthsSum(int mainWinWidth) const;
+ int getColWidthsSum(int mainWinWidth) const;
std::vector<int> getColStretchedWidths(int clientWidth) const; //final width = (normalized) (stretchedWidth + offset)
Opt<int> getColWidth(size_t col) const
@@ -318,7 +318,7 @@ private:
void selectRangeAndNotify(ptrdiff_t rowFrom, ptrdiff_t rowTo, bool positive, const GridClickEvent* mouseInitiated); //select inclusive range [rowFrom, rowTo] + notify event!
- bool isSelected(size_t row) const { return selection.isSelected(row); }
+ bool isSelected(size_t row) const { return selection_.isSelected(row); }
struct ColAction
{
@@ -345,21 +345,21 @@ private:
ColLabelWin* colLabelWin_;
MainWin* mainWin_;
- ScrollBarStatus showScrollbarX = SB_SHOW_AUTOMATIC;
- ScrollBarStatus showScrollbarY = SB_SHOW_AUTOMATIC;
+ ScrollBarStatus showScrollbarX_ = SB_SHOW_AUTOMATIC;
+ ScrollBarStatus showScrollbarY_ = SB_SHOW_AUTOMATIC;
int colLabelHeight_ = 0;
- bool drawRowLabel = true;
+ bool drawRowLabel_ = true;
std::shared_ptr<GridData> dataView_;
- Selection selection;
- bool allowColumnMove = true;
- bool allowColumnResize = true;
+ Selection selection_;
+ bool allowColumnMove_ = true;
+ bool allowColumnResize_ = true;
- std::vector<VisibleColumn> visibleCols; //individual widths, type and total column count
- std::vector<ColumnAttribute> oldColAttributes; //visible + nonvisible columns; use for conversion in setColumnConfig()/getColumnConfig() *only*!
+ std::vector<VisibleColumn> visibleCols_; //individual widths, type and total column count
+ std::vector<ColumnAttribute> oldColAttributes_; //visible + nonvisible columns; use for conversion in setColumnConfig()/getColumnConfig() *only*!
- size_t rowCountOld = 0; //at the time of last Grid::Refresh()
+ size_t rowCountOld_ = 0; //at the time of last Grid::Refresh()
};
}
bgstack15