33 _(
"Edit options..." ),
34 _(
"Edit options for this library entry" ) );
36 menu.AppendSeparator();
38 bool showActivate =
false;
39 bool showDeactivate =
false;
40 bool showSetVisible =
false;
41 bool showUnsetVisible =
false;
50 showDeactivate =
true;
55 showUnsetVisible =
true;
57 showSetVisible =
true;
59 if( showActivate && showDeactivate && showSetVisible && showUnsetVisible )
74 if( showUnsetVisible )
78 bool showSettings =
false;
84 wxString::Format(
_(
"Library settings for %s..." ),
88 if( showActivate || showDeactivate || showSetVisible || showUnsetVisible || showSettings )
89 menu.AppendSeparator();
97 int menu_id =
event.GetId();
Add mouse and command handling (such as cut, copy, and paste) to a WX_GRID instance.
void getSelectedArea()
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.
virtual void doPopupSelection(wxCommandEvent &event)
virtual void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent)
WX_GRID * m_grid
I don't own the grid, but he owns me.
bool handleDoubleClick(wxGridEvent &aEvent) override
LIB_TABLE_GRID_TRICKS(WX_GRID *aGrid)
@ LIB_TABLE_GRID_TRICKS_ACTIVATE_SELECTED
@ LIB_TABLE_GRID_TRICKS_OPTIONS_EDITOR
@ LIB_TABLE_GRID_TRICKS_SET_VISIBLE
@ LIB_TABLE_GRID_TRICKS_LIBRARY_SETTINGS
@ LIB_TABLE_GRID_TRICKS_DEACTIVATE_SELECTED
@ LIB_TABLE_GRID_TRICKS_UNSET_VISIBLE
virtual void optionsEditor(int aRow)=0
virtual bool supportsVisibilityColumn()
void doPopupSelection(wxCommandEvent &event) override
void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent) override
This abstract base class mixes any object derived from LIB_TABLE into wxGridTableBase so the result c...
void SetValueAsBool(int aRow, int aCol, bool aValue) override
wxString GetValue(int aRow, int aCol) override
LIB_TABLE_ROW * At(size_t aIndex)
bool GetValueAsBool(int aRow, int aCol) override
Hold a record identifying a library accessed by the appropriate plug in object in the LIB_TABLE.
virtual void ShowSettingsDialog(wxWindow *aParent) const
virtual bool SupportsSettingsDialog() const