24#ifndef GRID_LAYER_BOX_HELPERS_H
25#define GRID_LAYER_BOX_HELPERS_H
27#include <wx/generic/gridctrl.h>
28#include <wx/generic/grideditors.h>
44 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
45 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
61 wxGridCellEditor*
Clone()
const override;
62 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
66 void SetSize(
const wxRect& aRect )
override;
68 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
69 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *newval )
override;
70 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
71 void Reset()
override;
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
~GRID_CELL_LAYER_RENDERER() override
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *newval) override
wxGridCellEditor * Clone() const override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_LAYER_SELECTOR)
void onComboCloseUp(wxCommandEvent &aEvent)
void onComboDropDown(wxCommandEvent &aEvent)
PCB_LAYER_BOX_SELECTOR * LayerBox() const
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
wxString GetValue() const override
void SetSize(const wxRect &aRect) override
LSET is a set of PCB_LAYER_IDs.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
Class to display a pcb layer list in a wxBitmapComboBox.