KiCad PCB EDA Suite
NETLIST_OPTIONS_HELPER Class Reference

Helper widget to add controls to a wxFileDialog to set netlist configuration options. More...

Inheritance diagram for NETLIST_OPTIONS_HELPER:

Public Member Functions

 NETLIST_OPTIONS_HELPER (wxWindow *aParent)
 
int GetNetlistOptions () const
 

Static Public Member Functions

static wxWindow * Create (wxWindow *aParent)
 

Protected Attributes

wxCheckBox * m_cbOmitExtras
 
wxCheckBox * m_cbOmitNets
 
wxCheckBox * m_cbOmitFpUuids
 

Detailed Description

Helper widget to add controls to a wxFileDialog to set netlist configuration options.

Definition at line 129 of file board_editor_control.cpp.

Constructor & Destructor Documentation

◆ NETLIST_OPTIONS_HELPER()

NETLIST_OPTIONS_HELPER::NETLIST_OPTIONS_HELPER ( wxWindow *  aParent)
inline

Definition at line 132 of file board_editor_control.cpp.

133  : wxPanel( aParent )
134  {
135  m_cbOmitExtras = new wxCheckBox( this, wxID_ANY, _( "Omit extra information" ) );
136  m_cbOmitNets = new wxCheckBox( this, wxID_ANY, _( "Omit nets" ) );
137  m_cbOmitFpUuids = new wxCheckBox( this, wxID_ANY,
138  _( "Do not prefix path with footprint UUID." ) );
139 
140  wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
141  sizer->Add( m_cbOmitExtras, 0, wxALL, 5 );
142  sizer->Add( m_cbOmitNets, 0, wxALL, 5 );
143  sizer->Add( m_cbOmitFpUuids, 0, wxALL, 5 );
144 
145  SetSizerAndFit( sizer );
146  }
#define _(s)

References _.

Member Function Documentation

◆ Create()

static wxWindow* NETLIST_OPTIONS_HELPER::Create ( wxWindow *  aParent)
inlinestatic

Definition at line 164 of file board_editor_control.cpp.

165  {
166  return new NETLIST_OPTIONS_HELPER( aParent );
167  }
NETLIST_OPTIONS_HELPER(wxWindow *aParent)

Referenced by BOARD_EDITOR_CONTROL::ExportNetlist().

◆ GetNetlistOptions()

int NETLIST_OPTIONS_HELPER::GetNetlistOptions ( ) const
inline

Definition at line 148 of file board_editor_control.cpp.

149  {
150  int options = 0;
151 
152  if( m_cbOmitExtras->GetValue() )
153  options |= CTL_OMIT_EXTRA;
154 
155  if( m_cbOmitNets->GetValue() )
156  options |= CTL_OMIT_NETS;
157 
158  if( m_cbOmitFpUuids->GetValue() )
159  options |= CTL_OMIT_FP_UUID;
160 
161  return options;
162  }
#define CTL_OMIT_FP_UUID
Don't prefix the footprint UUID to the sheet path.
Definition: pcb_netlist.h:283
#define CTL_OMIT_NETS
Definition: pcb_netlist.h:281
#define CTL_OMIT_EXTRA
Definition: pcb_netlist.h:280

References CTL_OMIT_EXTRA, CTL_OMIT_FP_UUID, and CTL_OMIT_NETS.

Referenced by BOARD_EDITOR_CONTROL::ExportNetlist().

Member Data Documentation

◆ m_cbOmitExtras

wxCheckBox* NETLIST_OPTIONS_HELPER::m_cbOmitExtras
protected

Definition at line 170 of file board_editor_control.cpp.

◆ m_cbOmitFpUuids

wxCheckBox* NETLIST_OPTIONS_HELPER::m_cbOmitFpUuids
protected

Definition at line 172 of file board_editor_control.cpp.

◆ m_cbOmitNets

wxCheckBox* NETLIST_OPTIONS_HELPER::m_cbOmitNets
protected

Definition at line 171 of file board_editor_control.cpp.


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