KiCad PCB EDA Suite
eeschema/dialogs/dialog_netlist.cpp File Reference
#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 <paths.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_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 712 of file eeschema/dialogs/dialog_netlist.cpp.

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