21#ifndef _GRID_TRICKS_H_
22#define _GRID_TRICKS_H_
33#define GRIDTRICKS_MAX_COL 50
109 virtual void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent );
111 virtual void doPopupSelection( wxCommandEvent& event );
113 bool isTextEntry(
int aRow,
int aCol );
114 bool isChoiceEditor(
int aRow,
int aCol );
115 bool isCheckbox(
int aRow,
int aCol );
116 bool isReadOnly(
int aRow,
int aCol );
118 virtual bool toggleCell(
int aRow,
int aCol,
bool aPreserveSelection =
false );
119 bool showEditor(
int aRow,
int aCol );
121 virtual void paste_clipboard();
122 virtual void paste_text(
const wxString& cb_text );
123 virtual void cutcopy(
bool doCopy,
bool doDelete );
void onGridMotion(wxMouseEvent &event)
void onGridLabelLeftClick(wxGridEvent &event)
void init()
Shared initialization for various ctors.
bool m_multiCellEditEnabled
GRID_TRICKS(WX_GRID *aGrid)
void onKeyDown(wxKeyEvent &event)
void onPopupSelection(wxCommandEvent &event)
bool m_enableSingleClickEdit
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)
friend class SCINTILLA_TRICKS
Allow various conspiracies between the two tricks handlers.
void onGridCellRightClick(wxGridEvent &event)
virtual void appendPopupMenuItems(wxMenu &aMenu)
WX_GRID * m_grid
I don't own the grid, but he owns me.
void onGridCellLeftDClick(wxGridEvent &event)
void SetTooltipEnable(int aCol, bool aEnable=true)
Enable the tooltip for a column.
virtual void onGridCellLeftClick(wxGridEvent &event)
virtual bool handleDoubleClick(wxGridEvent &aEvent)
void onCharHook(wxKeyEvent &event)
void onGridLabelRightClick(wxGridEvent &event)
void getSelectedArea(WX_GRID *aGrid, int *aRowStart, int *aRowCount)
#define GRIDTRICKS_MAX_COL
@ GRID_TRICKS_LAST_CLIENT_ID
@ GRIDTRICKS_FIRST_SHOWHIDE
@ GRIDTRICKS_FIRST_CLIENT_ID