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> 
   45    void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
 
   46               const wxRect& aRect, 
int aRow, 
int aCol, 
bool isSelected ) 
override;
 
 
   62                              bool aShowNonActivated = 
false );
 
   64    wxGridCellEditor* 
Clone() 
const override;
 
   65    void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler ) 
override;
 
   69    void SetSize( 
const wxRect& aRect ) 
override;
 
   71    void BeginEdit( 
int aRow, 
int aCol, wxGrid* aGrid ) 
override;
 
   72    bool EndEdit( 
int , 
int , 
const wxGrid* , 
const wxString& , wxString *newval ) 
override;
 
   73    void ApplyEdit( 
int aRow, 
int aCol, wxGrid* aGrid ) 
override;
 
   74    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
 
GRID_CELL_LAYER_RENDERER(PCB_BASE_FRAME *aFrame)
 
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *newval) override
 
wxGridCellEditor * Clone() const override
 
wxDECLARE_NO_COPY_CLASS(GRID_CELL_LAYER_SELECTOR)
 
GRID_CELL_LAYER_SELECTOR(PCB_BASE_FRAME *aFrame, const LSET &forbiddenLayers, bool aShowNonActivated=false)
 
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.