KiCad PCB EDA Suite
NETLIST_PAGE_DIALOG Class Reference
Inheritance diagram for NETLIST_PAGE_DIALOG:

Public Member Functions

 NETLIST_PAGE_DIALOG (wxNotebook *parent, const wxString &title, NETLIST_TYPE_ID id_NetType)
 Create a setup page for one netlist format. More...
 
 ~NETLIST_PAGE_DIALOG ()
 
const wxString GetPageNetFmtName ()
 

Public Attributes

NETLIST_TYPE_ID m_IdNetType
 
wxCheckBox * m_AdjustPassiveValues
 
wxTextCtrl * m_CommandStringCtrl
 
wxTextCtrl * m_TitleStringCtrl
 
wxBoxSizer * m_LeftBoxSizer
 
wxBoxSizer * m_RightBoxSizer
 
wxBoxSizer * m_RightOptionsBoxSizer
 
wxBoxSizer * m_LowBoxSizer
 

Private Attributes

wxString m_pageNetFmtName
 

Detailed Description

Definition at line 69 of file eeschema/dialogs/dialog_netlist.cpp.

Constructor & Destructor Documentation

◆ NETLIST_PAGE_DIALOG()

NETLIST_PAGE_DIALOG::NETLIST_PAGE_DIALOG ( wxNotebook *  parent,
const wxString &  title,
NETLIST_TYPE_ID  id_NetType 
)

Create a setup page for one netlist format.

Used in Netlist format dialog box creation.

Parameters
parentis the wxNotebook parent.
titleis the title of the notebook page.
id_NetTypeis the netlist ID type.

Definition at line 210 of file eeschema/dialogs/dialog_netlist.cpp.

211  :
212  wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
213 {
214  m_IdNetType = id_NetType;
215  m_pageNetFmtName = title;
219 
220  wxString netfmtName = static_cast<NETLIST_DIALOG*>( parent->GetParent() )->m_DefaultNetFmtName;
221 
222  bool selected = m_pageNetFmtName == netfmtName;
223 
224  parent->AddPage( this, title, selected );
225 
226  wxBoxSizer* MainBoxSizer = new wxBoxSizer( wxVERTICAL );
227  SetSizer( MainBoxSizer );
228  wxBoxSizer* UpperBoxSizer = new wxBoxSizer( wxHORIZONTAL );
229  m_LowBoxSizer = new wxBoxSizer( wxVERTICAL );
230  MainBoxSizer->Add( UpperBoxSizer, 0, wxGROW | wxALL, 5 );
231  MainBoxSizer->Add( m_LowBoxSizer, 0, wxGROW | wxALL, 5 );
232 
233  m_LeftBoxSizer = new wxBoxSizer( wxVERTICAL );
234  m_RightBoxSizer = new wxBoxSizer( wxVERTICAL );
235  m_RightOptionsBoxSizer = new wxBoxSizer( wxVERTICAL );
236  UpperBoxSizer->Add( m_LeftBoxSizer, 0, wxGROW | wxALL, 5 );
237  UpperBoxSizer->Add( m_RightBoxSizer, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
238  UpperBoxSizer->Add( m_RightOptionsBoxSizer, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
239 }
#define NULL

References m_AdjustPassiveValues, m_CommandStringCtrl, NETLIST_DIALOG::m_DefaultNetFmtName, m_IdNetType, m_LeftBoxSizer, m_LowBoxSizer, m_pageNetFmtName, m_RightBoxSizer, m_RightOptionsBoxSizer, m_TitleStringCtrl, and NULL.

◆ ~NETLIST_PAGE_DIALOG()

NETLIST_PAGE_DIALOG::~NETLIST_PAGE_DIALOG ( )
inline

Definition at line 84 of file eeschema/dialogs/dialog_netlist.cpp.

84 { };

Member Function Documentation

◆ GetPageNetFmtName()

const wxString NETLIST_PAGE_DIALOG::GetPageNetFmtName ( )
inline
Returns
the name of the netlist format for this page.

Definition at line 89 of file eeschema/dialogs/dialog_netlist.cpp.

References m_pageNetFmtName.

Referenced by NETLIST_DIALOG::OnAddGenerator(), NETLIST_DIALOG::OnDelGenerator(), and NETLIST_DIALOG::OnNetlistTypeSelection().

Member Data Documentation

◆ m_AdjustPassiveValues

wxCheckBox* NETLIST_PAGE_DIALOG::m_AdjustPassiveValues

◆ m_CommandStringCtrl

◆ m_IdNetType

◆ m_LeftBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_LeftBoxSizer

◆ m_LowBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_LowBoxSizer

◆ m_pageNetFmtName

wxString NETLIST_PAGE_DIALOG::m_pageNetFmtName
private

Definition at line 102 of file eeschema/dialogs/dialog_netlist.cpp.

Referenced by GetPageNetFmtName(), and NETLIST_PAGE_DIALOG().

◆ m_RightBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_RightBoxSizer

Definition at line 97 of file eeschema/dialogs/dialog_netlist.cpp.

Referenced by NETLIST_PAGE_DIALOG().

◆ m_RightOptionsBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_RightOptionsBoxSizer

Definition at line 98 of file eeschema/dialogs/dialog_netlist.cpp.

Referenced by NETLIST_PAGE_DIALOG().

◆ m_TitleStringCtrl


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