KiCad PCB EDA Suite
|
#include <pg_editors.h>
Public Member Functions | |
PG_UNIT_EDITOR (EDA_DRAW_FRAME *aFrame) | |
virtual | ~PG_UNIT_EDITOR () |
wxString | GetName () const override |
wxPGWindowList | CreateControls (wxPropertyGrid *aPropGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override |
bool | GetValueFromControl (wxVariant &aVariant, wxPGProperty *aProperty, wxWindow *aCtrl) const override |
void | UpdateControl (wxPGProperty *aProperty, wxWindow *aCtrl) const override |
bool | OnEvent (wxPropertyGrid *aPropGrid, wxPGProperty *aProperty, wxWindow *aCtrl, wxEvent &aEvent) 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 different. | |
Static Public Member Functions | |
static wxString | BuildEditorName (EDA_DRAW_FRAME *aFrame) |
Static Public Attributes | |
static const wxString | EDITOR_NAME = wxS( "KiCadUnitEditor" ) |
Protected Attributes | |
EDA_DRAW_FRAME * | m_frame |
std::unique_ptr< PROPERTY_EDITOR_UNIT_BINDER > | m_unitBinder |
wxString | m_editorName |
Definition at line 31 of file pg_editors.h.
PG_UNIT_EDITOR::PG_UNIT_EDITOR | ( | EDA_DRAW_FRAME * | aFrame | ) |
Definition at line 36 of file pg_editors.cpp.
References BuildEditorName(), UNITS_PROVIDER::GetUserUnits(), m_editorName, m_frame, and m_unitBinder.
|
virtual |
Definition at line 47 of file pg_editors.cpp.
|
static |
Definition at line 52 of file pg_editors.cpp.
References EDITOR_NAME.
Referenced by PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL(), PG_UNIT_EDITOR(), PGPropertyFactory(), and SCH_PROPERTIES_PANEL::SCH_PROPERTIES_PANEL().
|
override |
Definition at line 74 of file pg_editors.cpp.
References UNITS_PROVIDER::GetUserUnits(), m_frame, m_unitBinder, ORIGIN_TRANSFORMS::NOT_A_COORD, text, and UpdateControl().
|
inlineoverride |
Definition at line 40 of file pg_editors.h.
References m_editorName.
|
override |
Definition at line 168 of file pg_editors.cpp.
References EDA_ANGLE_VARIANT_DATA::Angle(), EDA_ANGLE::AsDegrees(), m_unitBinder, and EDA_ANGLE_VARIANT_DATA::SetAngle().
|
override |
Definition at line 149 of file pg_editors.cpp.
|
override |
Definition at line 112 of file pg_editors.cpp.
References EDA_ANGLE_VARIANT_DATA::Angle(), and m_unitBinder.
Referenced by CreateControls().
void PG_UNIT_EDITOR::UpdateFrame | ( | EDA_DRAW_FRAME * | aFrame | ) |
When restarting an editor, the instance of PG_UNIT_EDITOR may be the same but the referenced frame is different.
This re-binds the frame to the editor and associated controls
aFrame | New frame to bind |
Definition at line 58 of file pg_editors.cpp.
References UNITS_PROVIDER::GetUserUnits(), m_frame, and m_unitBinder.
Referenced by PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL(), SCH_PROPERTIES_PANEL::SCH_PROPERTIES_PANEL(), PCB_PROPERTIES_PANEL::~PCB_PROPERTIES_PANEL(), and SCH_PROPERTIES_PANEL::~SCH_PROPERTIES_PANEL().
|
static |
Definition at line 34 of file pg_editors.h.
Referenced by BuildEditorName().
|
protected |
Definition at line 68 of file pg_editors.h.
Referenced by GetName(), and PG_UNIT_EDITOR().
|
protected |
Definition at line 64 of file pg_editors.h.
Referenced by CreateControls(), PG_UNIT_EDITOR(), and UpdateFrame().
|
protected |
Definition at line 66 of file pg_editors.h.
Referenced by CreateControls(), GetValueFromControl(), PG_UNIT_EDITOR(), UpdateControl(), and UpdateFrame().