67 CustomGrid(wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
68 const wxSize& size,
long style,
const wxString& name);
72 void GetFirstVisibleCell(
int& frow,
int& fcol);
73 void GetLastVisibleCell(
int& lrow,
int& lcol);
74 void SetNumericalRow(
int row,
int col,
int datatype,
double value);
75 void DrawColLabel(wxDC& dc,
int col)
override;
76 void DrawRowLabel(wxDC& dc,
int row)
override;
77 void DrawCornerLabel(wxDC& dc)
override;
82 void OnScroll(wxScrollEvent& event);
83 void OnMouseEvent(wxMouseEvent& event);
84 void OnResize(wxSizeEvent& event);
85 void OnLabeClick(wxGridEvent& event);
86 void OnRefreshTimer(wxTimerEvent& event);
87 bool IsRowVisible(
int row);
88 int GetRowIndex(
int row);
90 wxTimer m_tRefreshTimer;
91 wxColour m_greenColour;
92 wxColour m_greyColour;
94 std::vector<std::vector<double> > m_NumRowVal;
95 std::vector<int> m_NumRow;
109 : wxGridCellRenderer(), m_dDir(dir), m_IsDigit(isdigit) {}
111 void Draw(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
const wxRect& rect,
112 int row,
int col,
bool isSelected)
override;
114 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
int row,
118 [[nodiscard]] wxGridCellRenderer* Clone()
const override {
123 void GetArrowsPoints(
double si,
double co,
int di,
int dj,
int i,
int j,
124 int k,
int l,
double& ii,
double& jj,
double& kk,