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;
99 wxPGWindowList
CreateControls( wxPropertyGrid* aGrid, wxPGProperty* aProperty,
100 const wxPoint& aPos,
const wxSize& aSize )
const override;
102 void UpdateControl( wxPGProperty* aProperty, wxWindow* aCtrl )
const override;
104 bool OnEvent( wxPropertyGrid* aGrid, wxPGProperty* aProperty, wxWindow* aWindow,
105 wxEvent& aEvent )
const override;
122 wxWindow* aCtrl )
const override;
124 void UpdateControl( wxPGProperty* aProperty, wxWindow* aCtrl )
const override;
The base class for create windows for drawing purpose.
A color representation with 4 components: red, green, blue, alpha.
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()
static const wxString EDITOR_NAME
wxPGWindowList CreateControls(wxPropertyGrid *aGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override
virtual ~PG_COLOR_EDITOR()
bool OnEvent(wxPropertyGrid *aGrid, wxPGProperty *aProperty, wxWindow *aWindow, wxEvent &aEvent) const override
wxString GetName() const override
KIGFX::COLOR4D colorFromVariant(const wxVariant &aVariant) const
void UpdateControl(wxPGProperty *aProperty, wxWindow *aCtrl) const override
KIGFX::COLOR4D colorFromProperty(wxPGProperty *aProperty) const
bool GetValueFromControl(wxVariant &aVariant, wxPGProperty *aProperty, wxWindow *aCtrl) const override
static const wxString EDITOR_NAME
wxString GetName() const override
void UpdateControl(wxPGProperty *aProperty, wxWindow *aCtrl) const override
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.