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)
 Constructor to create a setup page for one netlist format. More...
 
 ~NETLIST_PAGE_DIALOG ()
 
const wxString GetPageNetFmtName ()
 function GetPageNetFmtName More...
 

Public Attributes

NETLIST_TYPE_ID m_IdNetType
 
wxCheckBox * m_IsCurrentFormat
 
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 
)

Constructor to create a setup page for one netlist format.

Used in Netlist format Dialog box creation

Parameters
parent= wxNotebook * parent
title= title (name) of the notebook page
id_NetType= netlist type id

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

228  :
229  wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
230 {
231  m_IdNetType = id_NetType;
232  m_pageNetFmtName = title;
237 
238  wxString netfmtName = ((NETLIST_DIALOG*)parent->GetParent())->m_DefaultNetFmtName;
239 
240  bool selected = m_pageNetFmtName == netfmtName;
241 
242  parent->AddPage( this, title, selected );
243 
244  wxBoxSizer* MainBoxSizer = new wxBoxSizer( wxVERTICAL );
245  SetSizer( MainBoxSizer );
246  wxBoxSizer* UpperBoxSizer = new wxBoxSizer( wxHORIZONTAL );
247  m_LowBoxSizer = new wxBoxSizer( wxVERTICAL );
248  MainBoxSizer->Add( UpperBoxSizer, 0, wxGROW | wxALL, 5 );
249  MainBoxSizer->Add( m_LowBoxSizer, 0, wxGROW | wxALL, 5 );
250 
251  m_LeftBoxSizer = new wxBoxSizer( wxVERTICAL );
252  m_RightBoxSizer = new wxBoxSizer( wxVERTICAL );
253  m_RightOptionsBoxSizer = new wxBoxSizer( wxVERTICAL );
254  UpperBoxSizer->Add( m_LeftBoxSizer, 0, wxGROW | wxALL, 5 );
255  UpperBoxSizer->Add( m_RightBoxSizer, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
256  UpperBoxSizer->Add( m_RightOptionsBoxSizer, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
257 
258  wxStaticText* text = new wxStaticText( this, -1, _( "Options:" ) );
259  m_LeftBoxSizer->Add( text, 0, wxGROW | wxBOTTOM | wxRIGHT, 5 );
260 
261  m_IsCurrentFormat = new wxCheckBox( this, ID_CURRENT_FORMAT_IS_DEFAULT, _( "Default format" ) );
262  m_LeftBoxSizer->Add( m_IsCurrentFormat, 0, wxGROW | wxBOTTOM | wxRIGHT, 5 );
263  m_IsCurrentFormat->SetValue( selected );
264 
265  if( selected )
266  ((NETLIST_DIALOG*)parent->GetParent())->m_asFormatSelected = true;
267 }
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33

References _, ID_CURRENT_FORMAT_IS_DEFAULT, and NULL.

◆ ~NETLIST_PAGE_DIALOG()

NETLIST_PAGE_DIALOG::~NETLIST_PAGE_DIALOG ( )
inline

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

95 { };

Member Function Documentation

◆ GetPageNetFmtName()

const wxString NETLIST_PAGE_DIALOG::GetPageNetFmtName ( )
inline

function GetPageNetFmtName

Returns
the name of the netlist format for this page This is also the page label.

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

References m_pageNetFmtName.

Referenced by NETLIST_DIALOG::NETLIST_DIALOG(), NETLIST_DIALOG::OnAddGenerator(), and NETLIST_DIALOG::SelectDefaultNetlistType().

Member Data Documentation

◆ m_AdjustPassiveValues

wxCheckBox* NETLIST_PAGE_DIALOG::m_AdjustPassiveValues

◆ m_CommandStringCtrl

◆ m_IdNetType

◆ m_IsCurrentFormat

wxCheckBox* NETLIST_PAGE_DIALOG::m_IsCurrentFormat

◆ 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 84 of file eeschema/dialogs/dialog_netlist.cpp.

Referenced by GetPageNetFmtName().

◆ m_RightBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_RightBoxSizer

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

◆ m_RightOptionsBoxSizer

wxBoxSizer* NETLIST_PAGE_DIALOG::m_RightOptionsBoxSizer

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

◆ m_TitleStringCtrl


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