summaryrefslogtreecommitdiff
path: root/library/custom_grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/custom_grid.h')
-rw-r--r--library/custom_grid.h10
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;
bgstack15