KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PG_TRACK_WIDTH_EDITOR Class Reference
Inheritance diagram for PG_TRACK_WIDTH_EDITOR:

Public Member Functions

 PG_TRACK_WIDTH_EDITOR (PCB_BASE_EDIT_FRAME *aFrame)
 
wxString GetName () const override
 
void UpdateFrame (PCB_BASE_EDIT_FRAME *aFrame)
 
wxPGWindowList CreateControls (wxPropertyGrid *aGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override
 
void UpdateControl (wxPGProperty *aProperty, wxWindow *aCtrl) const override
 
bool GetValueFromControl (wxVariant &aVariant, wxPGProperty *aProperty, wxWindow *aCtrl) const override
 
bool OnEvent (wxPropertyGrid *aGrid, wxPGProperty *aProperty, wxWindow *aWindow, wxEvent &aEvent) const override
 

Static Public Member Functions

static wxString BuildEditorName (PCB_BASE_EDIT_FRAME *aFrame)
 

Static Public Attributes

static const wxString EDITOR_NAME = wxS( "PG_TRACK_WIDTH_EDITOR" )
 

Private Member Functions

void setTrackWidthOptions (wxComboBox *aEditor) const
 

Private Attributes

PCB_BASE_EDIT_FRAMEm_frame
 
std::unique_ptr< PROPERTY_EDITOR_UNIT_BINDERm_unitBinder
 
wxString m_editorName
 

Detailed Description

Definition at line 236 of file pcb_properties_panel.cpp.

Constructor & Destructor Documentation

◆ PG_TRACK_WIDTH_EDITOR()

PG_TRACK_WIDTH_EDITOR::PG_TRACK_WIDTH_EDITOR ( PCB_BASE_EDIT_FRAME * aFrame)
inline

Definition at line 241 of file pcb_properties_panel.cpp.

References BuildEditorName(), m_editorName, m_frame, and m_unitBinder.

Member Function Documentation

◆ BuildEditorName()

static wxString PG_TRACK_WIDTH_EDITOR::BuildEditorName ( PCB_BASE_EDIT_FRAME * aFrame)
inlinestatic

◆ CreateControls()

wxPGWindowList PG_TRACK_WIDTH_EDITOR::CreateControls ( wxPropertyGrid * aGrid,
wxPGProperty * aProperty,
const wxPoint & aPos,
const wxSize & aSize ) const
inlineoverride

◆ GetName()

wxString PG_TRACK_WIDTH_EDITOR::GetName ( ) const
inlineoverride

Definition at line 253 of file pcb_properties_panel.cpp.

References m_editorName.

◆ GetValueFromControl()

bool PG_TRACK_WIDTH_EDITOR::GetValueFromControl ( wxVariant & aVariant,
wxPGProperty * aProperty,
wxWindow * aCtrl ) const
inlineoverride

Definition at line 375 of file pcb_properties_panel.cpp.

References editor, INDETERMINATE_STATE, m_unitBinder, and result.

◆ OnEvent()

bool PG_TRACK_WIDTH_EDITOR::OnEvent ( wxPropertyGrid * aGrid,
wxPGProperty * aProperty,
wxWindow * aWindow,
wxEvent & aEvent ) const
inlineoverride

Definition at line 398 of file pcb_properties_panel.cpp.

◆ setTrackWidthOptions()

void PG_TRACK_WIDTH_EDITOR::setTrackWidthOptions ( wxComboBox * aEditor) const
inlineprivate

Definition at line 404 of file pcb_properties_panel.cpp.

References EDA_UNIT_UTILS::GetLabel(), m_frame, and m_unitBinder.

Referenced by CreateControls().

◆ UpdateControl()

void PG_TRACK_WIDTH_EDITOR::UpdateControl ( wxPGProperty * aProperty,
wxWindow * aCtrl ) const
inlineoverride

Definition at line 361 of file pcb_properties_panel.cpp.

References editor, INDETERMINATE_STATE, and m_unitBinder.

Referenced by CreateControls().

◆ UpdateFrame()

void PG_TRACK_WIDTH_EDITOR::UpdateFrame ( PCB_BASE_EDIT_FRAME * aFrame)
inline

Definition at line 263 of file pcb_properties_panel.cpp.

References m_frame, and m_unitBinder.

Member Data Documentation

◆ EDITOR_NAME

const wxString PG_TRACK_WIDTH_EDITOR::EDITOR_NAME = wxS( "PG_TRACK_WIDTH_EDITOR" )
static

Definition at line 239 of file pcb_properties_panel.cpp.

Referenced by BuildEditorName().

◆ m_editorName

wxString PG_TRACK_WIDTH_EDITOR::m_editorName
private

Definition at line 422 of file pcb_properties_panel.cpp.

Referenced by GetName(), and PG_TRACK_WIDTH_EDITOR().

◆ m_frame

PCB_BASE_EDIT_FRAME* PG_TRACK_WIDTH_EDITOR::m_frame
private

◆ m_unitBinder

std::unique_ptr<PROPERTY_EDITOR_UNIT_BINDER> PG_TRACK_WIDTH_EDITOR::m_unitBinder
private

The documentation for this class was generated from the following file: