diff options
author | B Stack <bgstack15@gmail.com> | 2021-01-04 13:48:35 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-01-04 13:48:35 +0000 |
commit | edb1c4482c0a0d91bddfee6e1f9fce234e59840a (patch) | |
tree | 494f9fc32eeee34c6c46611ae0137c25a79517a4 /wx+/grid.h | |
parent | Merge branch '11.4' into 'master' (diff) | |
parent | add upstream 11.5 (diff) | |
download | FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.gz FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.bz2 FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.zip |
Merge branch '11.5' into 'master'11.5
add upstream 11.5
See merge request opensource-tracking/FreeFileSync!29
Diffstat (limited to 'wx+/grid.h')
-rw-r--r-- | wx+/grid.h | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -175,7 +175,7 @@ public: //----------------------------------------------------------------------------- void setColumnLabelHeight(int height); - int getColumnLabelHeight() const { return colLabelHeight_; } + int getColumnLabelHeight() const; void showRowLabel(bool visible); enum ScrollBarStatus @@ -237,8 +237,6 @@ private: void selectWithCursor(ptrdiff_t row); //emits GridSelectEvent - void redirectRowLabelEvent(wxMouseEvent& event); - wxSize GetSizeAvailableForScrollTarget(const wxSize& size) override; //required since wxWidgets 2.9 if SetTargetWindow() is used @@ -319,7 +317,7 @@ private: wxRect getColumnLabelArea(ColumnType colType) const; //returns empty rect if column not found //select inclusive range [rowFrom, rowTo] - void selectRange(ptrdiff_t rowFrom, ptrdiff_t rowTo, bool positive, const GridClickEvent* mouseClick, GridEventPolicy rangeEventPolicy); + void selectRange2(size_t rowFirst, size_t rowLast, bool positive, const GridClickEvent* mouseClick, GridEventPolicy rangeEventPolicy); bool isSelected(size_t row) const { return selection_.isSelected(row); } @@ -328,19 +326,17 @@ private: bool wantResize = false; //"!wantResize" means "move" or "single click" size_t col = 0; }; - std::optional<ColAction> clientPosToColumnAction(const wxPoint& pos) const; void moveColumn(size_t colFrom, size_t colTo); - ptrdiff_t clientPosToMoveTargetColumn(const wxPoint& pos) const; //return < 0 on error ColumnType colToType(size_t col) const; //returns ColumnType::none on error /* Grid window layout: - _______________________________ - | CornerWin | ColLabelWin | - |_____________|_______________| - | RowLabelWin | MainWin | - | | | - |_____________|_______________| */ + _______________________________ + | CornerWin | ColLabelWin | + |_____________|_______________| + | RowLabelWin | MainWin | + | | | + |_____________|_______________| */ CornerWin* cornerWin_; RowLabelWin* rowLabelWin_; ColLabelWin* colLabelWin_; @@ -349,7 +345,6 @@ private: ScrollBarStatus showScrollbarH_ = SB_SHOW_AUTOMATIC; ScrollBarStatus showScrollbarV_ = SB_SHOW_AUTOMATIC; - int colLabelHeight_ = 0; bool drawRowLabel_ = true; std::shared_ptr<GridData> dataView_; |