KiCad PCB EDA Suite
eeschema/dialogs/dialog_netlist.cpp File Reference
#include <pgm_base.h>
#include <kiface_base.h>
#include <gestfich.h>
#include <sch_edit_frame.h>
#include <general.h>
#include <netlist.h>
#include <dialogs/dialog_netlist_base.h>
#include <wildcards_and_files_ext.h>
#include <invoke_sch_dialog.h>
#include <netlist_exporters/netlist_exporter_pspice.h>
#include <eeschema_settings.h>
#include <schematic.h>
#include <paths.h>
#include <eeschema_id.h>
#include <wx/checkbox.h>
#include <wx/filedlg.h>
#include <wx/msgdlg.h>
#include <wx/regex.h>

Go to the source code of this file.

Classes

class  NETLIST_PAGE_DIALOG
 
class  NETLIST_DIALOG
 
class  NETLIST_DIALOG_ADD_GENERATOR
 

Macros

#define CUSTOMPANEL_COUNTMAX   8
 

Enumerations

enum  panel_netlist_index {
  PANELPCBNEW = 0, PANELORCADPCB2, PANELCADSTAR, PANELSPICE,
  PANELCUSTOMBASE
}
 
enum  id_netlist { ID_CREATE_NETLIST = ID_END_EESCHEMA_ID_LIST + 1, ID_USE_NETCODE_AS_NETNAME, ID_RUN_SIMULATOR }
 

Functions

int InvokeDialogNetList (SCH_EDIT_FRAME *aCaller)
 

Macro Definition Documentation

◆ CUSTOMPANEL_COUNTMAX

#define CUSTOMPANEL_COUNTMAX   8

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

Enumeration Type Documentation

◆ id_netlist

◆ panel_netlist_index

Enumerator
PANELPCBNEW 
PANELORCADPCB2 
PANELCADSTAR 
PANELSPICE 
PANELCUSTOMBASE 

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

62  {
63  PANELPCBNEW = 0, /* Handle Netlist format Pcbnew */
64  PANELORCADPCB2, /* Handle Netlist format OracdPcb2 */
65  PANELCADSTAR, /* Handle Netlist format CadStar */
66  PANELSPICE, /* Handle Netlist format Pspice */
67  PANELCUSTOMBASE /* First auxiliary panel (custom netlists).
68  * others use PANELCUSTOMBASE+1, PANELCUSTOMBASE+2.. */
69 };

Function Documentation

◆ InvokeDialogNetList()

int InvokeDialogNetList ( SCH_EDIT_FRAME aCaller)

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

715 {
716  NETLIST_DIALOG dlg( aCaller );
717 
718  SCHEMATIC_SETTINGS& settings = aCaller->Schematic().Settings();
719 
720  wxString curr_default_netformat = settings.m_NetFormatName;
721 
722  int ret = dlg.ShowModal();
723 
724  // Update the default netlist and store it in prj config if it was explicitly changed.
725  settings.m_NetFormatName = dlg.m_DefaultNetFmtName; // can have temporary changed
726 
727  if( curr_default_netformat != dlg.m_DefaultNetFmtName )
728  aCaller->SaveProjectSettings();
729 
730  return ret;
731 }
void SaveProjectSettings() override
Save changes to the project settings to the project (.pro) file.
SCHEMATIC_SETTINGS & Settings() const
Definition: schematic.cpp:167
SCHEMATIC & Schematic() const
These settings were stored in SCH_BASE_FRAME previously.

References NETLIST_DIALOG::m_DefaultNetFmtName, SCHEMATIC_SETTINGS::m_NetFormatName, SCH_EDIT_FRAME::SaveProjectSettings(), SCH_EDIT_FRAME::Schematic(), and SCHEMATIC::Settings().

Referenced by SCH_EDITOR_CONTROL::ExportNetlist().