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> 43 void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC,
44 const wxRect& aRect,
int aRow,
int aCol,
bool isSelected )
override;
60 wxGridCellEditor*
Clone()
const override;
61 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
65 void SetSize(
const wxRect& aRect )
override;
67 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
68 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *newval )
override;
69 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
70 void Reset()
override;
79 return static_cast<PCB_LAYER_BOX_SELECTOR*>( m_control );
89 #endif // GRID_LAYER_BOX_HELPERS_H void onComboCloseUp(wxCommandEvent &aEvent)
wxString GetValue() const override
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_LAYER_SELECTOR)
Class to display a pcb layer list in a wxBitmapComboBox.
void onComboDropDown(wxCommandEvent &aEvent)
PCB_LAYER_BOX_SELECTOR * LayerBox() const
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
GRID_CELL_LAYER_RENDERER(PCB_BASE_FRAME *aFrame)
LSET is a set of PCB_LAYER_IDs.
~GRID_CELL_LAYER_RENDERER() override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *newval) override
int LAYER_NUM
This can be replaced with int and removed.
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
GRID_CELL_LAYER_SELECTOR(PCB_BASE_FRAME *aFrame, LSET forbiddenLayers)
void SetSize(const wxRect &aRect) override
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
wxGridCellEditor * Clone() const override