25#ifndef _GRID_TRICKS_H_
26#define _GRID_TRICKS_H_
37#define GRIDTRICKS_MAX_COL 50
110 virtual void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent );
117 virtual bool toggleCell(
int aRow,
int aCol,
bool aPreserveSelection =
false );
121 virtual void paste_text(
const wxString& cb_text );
122 virtual void cutcopy(
bool doCopy,
bool doDelete );
Add mouse and command handling (such as cut, copy, and paste) to a WX_GRID instance.
bool isReadOnly(int aRow, int aCol)
void onGridMotion(wxMouseEvent &event)
void onGridLabelLeftClick(wxGridEvent &event)
virtual void paste_text(const wxString &cb_text)
void init()
Shared initialization for various ctors.
void getSelectedArea()
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.
void onKeyDown(wxKeyEvent &event)
void onPopupSelection(wxCommandEvent &event)
virtual void cutcopy(bool doCopy, bool doDelete)
virtual void doPopupSelection(wxCommandEvent &event)
bool isCheckbox(int aRow, int aCol)
bool GetTooltipEnabled(int aCol)
Query if the tooltip for a column is enabled.
std::function< void(wxCommandEvent &)> m_addHandler
virtual void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent)
std::bitset< GRIDTRICKS_MAX_COL > m_tooltipEnabled
void onUpdateUI(wxUpdateUIEvent &event)
void onGridCellRightClick(wxGridEvent &event)
WX_GRID * m_grid
I don't own the grid, but he owns me.
bool isTextEntry(int aRow, int aCol)
void onGridCellLeftDClick(wxGridEvent &event)
void SetTooltipEnable(int aCol, bool aEnable=true)
Enable the tooltip for a column.
void onGridCellLeftClick(wxGridEvent &event)
virtual bool handleDoubleClick(wxGridEvent &aEvent)
void onCharHook(wxKeyEvent &event)
virtual void paste_clipboard()
bool showEditor(int aRow, int aCol)
void onGridLabelRightClick(wxGridEvent &event)
virtual bool toggleCell(int aRow, int aCol, bool aPreserveSelection=false)
@ GRID_TRICKS_LAST_CLIENT_ID
@ GRIDTRICKS_FIRST_SHOWHIDE
@ GRIDTRICKS_FIRST_CLIENT_ID
#define GRIDTRICKS_MAX_COL