KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
PANEL_COMPONENT_CLASS_CONDITION_REFERENCE Class Reference

Configures matching based on footprint reference. More...

#include <panel_assign_component_classes.h>

Inheritance diagram for PANEL_COMPONENT_CLASS_CONDITION_REFERENCE:
PANEL_COMPONENT_CLASS_CONDITION_REFERENCE_BASE CONDITION_DATA

Public Types

enum  IMPORT_POPUP_IDS { ID_IMPORT_REFS = wxID_HIGHEST + 1 }
 IDs for match type popup menu. More...
 

Public Member Functions

 PANEL_COMPONENT_CLASS_CONDITION_REFERENCE (wxWindow *aParent)
 
void OnDeleteConditionClick (wxCommandEvent &event) override
 
void OnImportRefsClick (wxCommandEvent &event) override
 
void SetSelectionRefs (const std::vector< wxString > &aRefs)
 
virtual COMPONENT_CLASS_ASSIGNMENT_DATA::CONDITION_TYPE GetConditionType () const
 Gets the type of condition (e.g. Reference, Side) this data represents.
 
virtual wxString GetPrimaryField () const
 Gets the primary data member for the condition (e.g. Reference, Side)
 
virtual void SetPrimaryField (const wxString &aVal)
 Sets the primary data member for the condition (e.g. Reference, Side)
 
virtual wxString GetSecondaryField () const
 Gets the primary data member for the condition (e.g. FOOTPRITNT field value)
 
virtual void SetSecondaryField (const wxString &aVal)
 Sets the primary data member for the condition (e.g.
 

Protected Member Functions

void onMenu (wxCommandEvent &aEvent)
 Handles import references popup menu selections.
 
virtual void OnReferenceRightDown (wxMouseEvent &event)
 

Protected Attributes

PANEL_COMPONENT_CLASS_ASSIGNMENTm_panelParent
 
std::vector< wxString > m_selectionRefs
 
wxStaticText * m_title
 
wxTextCtrl * m_refs
 
STD_BITMAP_BUTTONm_buttonImportRefs
 
STD_BITMAP_BUTTONm_buttonDeleteMatch
 

Private Attributes

COMPONENT_CLASS_ASSIGNMENT_DATA::CONDITION_TYPE m_conditionType
 The type of condition being referenced.
 
wxTextEntry * m_primaryCtrl
 The primary data field in the condition panel.
 
wxTextEntry * m_secondaryCtrl
 The Secondary data field in the condition panel.
 

Detailed Description

Configures matching based on footprint reference.

Definition at line 268 of file panel_assign_component_classes.h.

Member Enumeration Documentation

◆ IMPORT_POPUP_IDS

IDs for match type popup menu.

Enumerator
ID_IMPORT_REFS 

Definition at line 274 of file panel_assign_component_classes.h.

Constructor & Destructor Documentation

◆ PANEL_COMPONENT_CLASS_CONDITION_REFERENCE()

Member Function Documentation

◆ GetConditionType()

virtual COMPONENT_CLASS_ASSIGNMENT_DATA::CONDITION_TYPE CONDITION_DATA::GetConditionType ( ) const
inlinevirtualinherited

Gets the type of condition (e.g. Reference, Side) this data represents.

Definition at line 145 of file panel_assign_component_classes.h.

References CONDITION_DATA::m_conditionType.

◆ GetPrimaryField()

wxString CONDITION_DATA::GetPrimaryField ( ) const
virtualinherited

Gets the primary data member for the condition (e.g. Reference, Side)

Definition at line 272 of file panel_assign_component_classes.cpp.

References COMPONENT_CLASS_ASSIGNMENT_DATA::CUSTOM, CONDITION_DATA::m_conditionType, and CONDITION_DATA::m_primaryCtrl.

◆ GetSecondaryField()

wxString CONDITION_DATA::GetSecondaryField ( ) const
virtualinherited

Gets the primary data member for the condition (e.g. FOOTPRITNT field value)

Definition at line 294 of file panel_assign_component_classes.cpp.

References COMPONENT_CLASS_ASSIGNMENT_DATA::CUSTOM, CONDITION_DATA::m_conditionType, and CONDITION_DATA::m_secondaryCtrl.

◆ OnDeleteConditionClick()

void PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::OnDeleteConditionClick ( wxCommandEvent &  event)
overridevirtual

◆ OnImportRefsClick()

void PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::OnImportRefsClick ( wxCommandEvent &  event)
overridevirtual

◆ onMenu()

void PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::onMenu ( wxCommandEvent &  aEvent)
protected

◆ OnReferenceRightDown()

virtual void PANEL_COMPONENT_CLASS_CONDITION_REFERENCE_BASE::OnReferenceRightDown ( wxMouseEvent &  event)
inlineprotectedvirtualinherited

◆ SetPrimaryField()

void CONDITION_DATA::SetPrimaryField ( const wxString &  aVal)
virtualinherited

Sets the primary data member for the condition (e.g. Reference, Side)

Definition at line 288 of file panel_assign_component_classes.cpp.

References CONDITION_DATA::m_primaryCtrl.

Referenced by PANEL_ASSIGN_COMPONENT_CLASSES::TransferDataToWindow().

◆ SetSecondaryField()

void CONDITION_DATA::SetSecondaryField ( const wxString &  aVal)
virtualinherited

Sets the primary data member for the condition (e.g.

FOOTPRITNT field value)

Definition at line 313 of file panel_assign_component_classes.cpp.

References CONDITION_DATA::m_secondaryCtrl.

Referenced by PANEL_ASSIGN_COMPONENT_CLASSES::TransferDataToWindow().

◆ SetSelectionRefs()

void PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::SetSelectionRefs ( const std::vector< wxString > &  aRefs)
inline

Member Data Documentation

◆ m_buttonDeleteMatch

◆ m_buttonImportRefs

◆ m_conditionType

COMPONENT_CLASS_ASSIGNMENT_DATA::CONDITION_TYPE CONDITION_DATA::m_conditionType
privateinherited

The type of condition being referenced.

Definition at line 165 of file panel_assign_component_classes.h.

Referenced by CONDITION_DATA::GetConditionType(), CONDITION_DATA::GetPrimaryField(), and CONDITION_DATA::GetSecondaryField().

◆ m_panelParent

PANEL_COMPONENT_CLASS_ASSIGNMENT* PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::m_panelParent
protected

Definition at line 290 of file panel_assign_component_classes.h.

Referenced by OnDeleteConditionClick().

◆ m_primaryCtrl

wxTextEntry* CONDITION_DATA::m_primaryCtrl
privateinherited

The primary data field in the condition panel.

Definition at line 168 of file panel_assign_component_classes.h.

Referenced by CONDITION_DATA::GetPrimaryField(), and CONDITION_DATA::SetPrimaryField().

◆ m_refs

◆ m_secondaryCtrl

wxTextEntry* CONDITION_DATA::m_secondaryCtrl
privateinherited

The Secondary data field in the condition panel.

Definition at line 171 of file panel_assign_component_classes.h.

Referenced by CONDITION_DATA::GetSecondaryField(), and CONDITION_DATA::SetSecondaryField().

◆ m_selectionRefs

std::vector<wxString> PANEL_COMPONENT_CLASS_CONDITION_REFERENCE::m_selectionRefs
protected

Definition at line 291 of file panel_assign_component_classes.h.

Referenced by OnImportRefsClick(), onMenu(), and SetSelectionRefs().

◆ m_title

wxStaticText* PANEL_COMPONENT_CLASS_CONDITION_REFERENCE_BASE::m_title
protectedinherited

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