20#ifndef KICAD_PG_EDITORS_H
21#define KICAD_PG_EDITORS_H
25#include <wx/propgrid/propgrid.h>
26#include <wx/propgrid/editors.h>
42 wxPGWindowList
CreateControls( wxPropertyGrid* aPropGrid, wxPGProperty* aProperty,
43 const wxPoint& aPos,
const wxSize& aSize )
const override;
46 wxWindow* aCtrl )
const override;
48 void UpdateControl( wxPGProperty* aProperty, wxWindow* aCtrl )
const override;
50 bool OnEvent( wxPropertyGrid* aPropGrid, wxPGProperty* aProperty, wxWindow* aCtrl,
51 wxEvent& aEvent )
const override;
83 wxPGWindowList
CreateControls( wxPropertyGrid* aGrid, wxPGProperty* aProperty,
84 const wxPoint& aPos,
const wxSize& aSize )
const override;
The base class for create windows for drawing purpose.
wxString GetName() const override
wxPGWindowList CreateControls(wxPropertyGrid *aGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override
static const wxString EDITOR_NAME
virtual ~PG_CHECKBOX_EDITOR()
std::unique_ptr< PROPERTY_EDITOR_UNIT_BINDER > m_unitBinder
wxPGWindowList CreateControls(wxPropertyGrid *aPropGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override
static const wxString EDITOR_NAME
wxString GetName() const override
void UpdateControl(wxPGProperty *aProperty, wxWindow *aCtrl) const override
void UpdateFrame(EDA_DRAW_FRAME *aFrame)
When restarting an editor, the instance of PG_UNIT_EDITOR may be the same but the referenced frame is...
bool GetValueFromControl(wxVariant &aVariant, wxPGProperty *aProperty, wxWindow *aCtrl) const override
bool OnEvent(wxPropertyGrid *aPropGrid, wxPGProperty *aProperty, wxWindow *aCtrl, wxEvent &aEvent) const override
static wxString BuildEditorName(EDA_DRAW_FRAME *aFrame)
virtual ~PG_UNIT_EDITOR()
Specialization for wxPropertyGrid, where we have no labels and units are displayed in the editor.