diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
commit | c32707148292d104c66276b43796d6057c8c7a5d (patch) | |
tree | bb83513f4aff24153e21a4ec92e34e4c27651b1f /library/custom_grid.h | |
parent | 3.9 (diff) | |
download | FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2 FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip |
3.10
Diffstat (limited to 'library/custom_grid.h')
-rw-r--r-- | library/custom_grid.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/library/custom_grid.h b/library/custom_grid.h index 6c35ffbe..206841dd 100644 --- a/library/custom_grid.h +++ b/library/custom_grid.h @@ -13,6 +13,8 @@ #include <map> #include <memory> #include <set> +#include "../file_hierarchy.h" + class CustomGridTableRim; class CustomGridTableLeft; @@ -85,8 +87,8 @@ public: protected: void RefreshCell(int row, int col); - virtual void DrawColLabel(wxDC& dc, int col); + std::pair<int, int> mousePosToCell(wxPoint pos); //returns (row/column) pair private: virtual void setGridDataTable(const ffs3::GridView* gridDataView) = 0; @@ -161,6 +163,10 @@ public: void enableFileIcons(const bool value); +protected: + template <ffs3::SelectedSide side> + void setTooltip(const wxMouseEvent& event); + private: CustomGridTableRim* getGridDataTable(); virtual const CustomGridTableRim* getGridDataTable() const = 0; @@ -198,6 +204,7 @@ public: virtual bool CreateGrid(int numRows, int numCols, wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells); private: + void OnMouseMovement(wxMouseEvent& event); virtual void setGridDataTable(const ffs3::GridView* gridDataView); virtual const CustomGridTableRim* getGridDataTable() const; @@ -221,6 +228,7 @@ public: virtual bool CreateGrid(int numRows, int numCols, wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells); private: + void OnMouseMovement(wxMouseEvent& event); virtual void setGridDataTable(const ffs3::GridView* gridDataView); virtual const CustomGridTableRim* getGridDataTable() const; |