summaryrefslogtreecommitdiff
path: root/wx+/grid.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-04 13:48:35 +0000
committerB Stack <bgstack15@gmail.com>2021-01-04 13:48:35 +0000
commitedb1c4482c0a0d91bddfee6e1f9fce234e59840a (patch)
tree494f9fc32eeee34c6c46611ae0137c25a79517a4 /wx+/grid.h
parentMerge branch '11.4' into 'master' (diff)
parentadd upstream 11.5 (diff)
downloadFreeFileSync-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.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/wx+/grid.h b/wx+/grid.h
index d7830626..83b06c63 100644
--- a/wx+/grid.h
+++ b/wx+/grid.h
@@ -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_;
bgstack15