25#ifndef _GRID_TRICKS_H_ 
   26#define _GRID_TRICKS_H_ 
   37#define GRIDTRICKS_MAX_COL 50 
  113    virtual void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent );
 
  120    virtual bool toggleCell( 
int aRow, 
int aCol, 
bool aPreserveSelection = 
false );
 
  124    virtual void paste_text( 
const wxString& cb_text );
 
  125    virtual void cutcopy( 
bool doCopy, 
bool doDelete );
 
 
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.
 
bool m_multiCellEditEnabled
 
GRID_TRICKS(WX_GRID *aGrid)
 
void onKeyDown(wxKeyEvent &event)
 
void onPopupSelection(wxCommandEvent &event)
 
virtual void cutcopy(bool doCopy, bool doDelete)
 
bool m_enableSingleClickEdit
 
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)
 
friend class SCINTILLA_TRICKS
Allow various conspiracies between the two tricks handlers.
 
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.
 
virtual 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)
 
#define GRIDTRICKS_MAX_COL
 
@ GRID_TRICKS_LAST_CLIENT_ID
 
@ GRIDTRICKS_FIRST_SHOWHIDE
 
@ GRIDTRICKS_FIRST_CLIENT_ID