49 const wxPoint& currentPosition()
const
51 return pCurrentPosition;
56 return pParentComponent;
59 void copyToClipboard();
60 void copyAllToClipboard();
61 void pasteFromClipboard();
63 void ensureDataAreLoaded();
65 void resizeAllHeaders(
bool nodelay =
false);
72 pAllowRefresh = enabled;
75 bool canRefresh()
const
80 void DrawColLabel(wxDC& dc,
int col, uint& offset);
81 void DrawRowLabel(wxDC& dc,
int row, uint& offset);
82 void DrawCellHighlight(wxDC& dc,
const wxGridCellAttr* attr);
84 void disableColorMappingForRowLabels()
86 pColorMappingRowLabels =
false;
90 void setOtherGrid(
DBGrid* otherGrid);
94 bool dataAreReady()
const;
96 void ensureDataAreLoadedDelayed();
101 void onGridSelectCell(wxGridEvent& evt);
106 void onGridRangeSelect(wxGridRangeSelectEvent& evt);
111 void onGridLeave(wxFocusEvent& evt);
113 void onDraw(wxPaintEvent& evt);
115 void onKeyUp(wxKeyEvent& evt);
117 void evtOnResizeHeaders(wxCommandEvent& evt);
119 void evtCornerPaint(wxPaintEvent& evt);
121 void onEraseBackground(wxEraseEvent&)
124 void onDrawColLabels(wxPaintEvent&);
125 void onDrawRowLabels(wxPaintEvent&);
127 void onScroll(wxScrollWinEvent&);
131 Component* pParentComponent;
132 wxPoint pCurrentPosition;
134 bool pColorMappingRowLabels;
136 DBGrid* otherGrid_ =
nullptr;
138 DECLARE_EVENT_TABLE();