KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DCODE_SELECTION_BOX Class Reference

Helper to display a DCode list and select a DCode id. More...

#include <dcode_selection_box.h>

Inheritance diagram for DCODE_SELECTION_BOX:

Public Member Functions

 DCODE_SELECTION_BOX (wxAuiToolBar *aParent, wxWindowID aId, const wxPoint &aLocation, const wxSize &aSize, const wxArrayString *aChoices=nullptr)
 
 ~DCODE_SELECTION_BOX ()
 
int GetSelectedDCodeId ()
 
void SetDCodeSelection (int aDCodeId)
 
void AppendDCodeList (const wxArrayString &aChoices)
 

Detailed Description

Helper to display a DCode list and select a DCode id.

Definition at line 39 of file dcode_selection_box.h.

Constructor & Destructor Documentation

◆ DCODE_SELECTION_BOX()

DCODE_SELECTION_BOX::DCODE_SELECTION_BOX ( wxAuiToolBar *  aParent,
wxWindowID  aId,
const wxPoint &  aLocation,
const wxSize &  aSize,
const wxArrayString *  aChoices = nullptr 
)

Definition at line 31 of file dcode_selection_box.cpp.

◆ ~DCODE_SELECTION_BOX()

DCODE_SELECTION_BOX::~DCODE_SELECTION_BOX ( )

Definition at line 43 of file dcode_selection_box.cpp.

Member Function Documentation

◆ AppendDCodeList()

void DCODE_SELECTION_BOX::AppendDCodeList ( const wxArrayString &  aChoices)
Parameters
aChoicesis the DCode Id list to add to the combo box.

Definition at line 87 of file dcode_selection_box.cpp.

Referenced by GERBVIEW_FRAME::updateDCodeSelectBox().

◆ GetSelectedDCodeId()

int DCODE_SELECTION_BOX::GetSelectedDCodeId ( )

◆ SetDCodeSelection()

void DCODE_SELECTION_BOX::SetDCodeSelection ( int  aDCodeId)
Parameters
aDCodeIdis the DCode Id to select or <= 0 to select "no dcode".

Definition at line 67 of file dcode_selection_box.cpp.

Referenced by GERBVIEW_FRAME::OnUpdateSelectDCode(), and GERBVIEW_FRAME::syncLayerBox().


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