KiCad PCB EDA Suite
eeschema/dialogs/dialog_netlist.cpp File Reference
#include <fctsys.h>
#include <pgm_base.h>
#include <kiface_i.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 <eeschema_id.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_CURRENT_FORMAT_IS_DEFAULT, ID_ADD_SUBCIRCUIT_PREFIX, 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 54 of file eeschema/dialogs/dialog_netlist.cpp.

Enumeration Type Documentation

◆ id_netlist

◆ panel_netlist_index

Enumerator
PANELPCBNEW 
PANELORCADPCB2 
PANELCADSTAR 
PANELSPICE 
PANELCUSTOMBASE 

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

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

Function Documentation

◆ InvokeDialogNetList()

int InvokeDialogNetList ( SCH_EDIT_FRAME aCaller)

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

793 {
794  NETLIST_DIALOG dlg( aCaller );
795 
796  SCHEMATIC_SETTINGS& settings = aCaller->Schematic().Settings();
797 
798  wxString curr_default_netformat = settings.m_NetFormatName;
799 
800  int ret = dlg.ShowModal();
801 
802  // Update the default netlist and store it in prj config if it was explicitely changed.
803  settings.m_NetFormatName = dlg.m_DefaultNetFmtName; // can have temporary changed
804 
805  if( curr_default_netformat != dlg.m_DefaultNetFmtName )
806  aCaller->SaveProjectSettings();
807 
808  return ret;
809 }
void SaveProjectSettings() override
Save changes to the project settings to the project (.pro) file.
SCHEMATIC_SETTINGS & Settings() const
Definition: schematic.cpp:138
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().