40 if( !DIALOG_SIGNAL_LIST_BASE::TransferDataFromWindow() )
61 if( netname !=
"GND" && netname !=
"0" )
72 for(
const auto& current :
81 bool success = DIALOG_SIGNAL_LIST_BASE::TransferDataToWindow();
94 wxString
name = aPlotName.AfterFirst(
'(' ).BeforeLast(
')' );
98 wxUniChar firstChar = aPlotName[0];
99 if( firstChar ==
'V' || firstChar ==
'v' )
103 else if( firstChar ==
'I' || firstChar ==
'i' )
123 for(
unsigned int i = 0; i <
m_signals->GetCount(); ++i )
127 const wxString& plotName =
m_signals->GetString( i );
129 wxASSERT_MSG(
false,
"Unhandled plot type" );
136 if( !plotName.IsEmpty() )
NETLIST_EXPORTER_PSPICE_SIM * m_exporter
const SPICE_ITEM_LIST & GetSpiceItems() const
Return list of items representing schematic components in the Spice world.
bool addSignalToPlotFrame(const wxString &aPlotName)
Class DIALOG_SIGNAL_LIST_BASE.
void AddVoltagePlot(const wxString &aNetName)
Add a voltage plot for a given net name.
void AddCurrentPlot(const wxString &aDeviceName, const wxString &aParam)
Add a current plot for a particular device.
DIALOG_SIGNAL_LIST(SIM_PLOT_FRAME *aParent, NETLIST_EXPORTER_PSPICE_SIM *aExporter)
wxTextCtrl * m_signalEntry
void addSelectionToPlotFrame()
static const std::vector< wxString > & GetCurrents(SPICE_PRIMITIVE aPrimitive)
Return a list of currents that can be probed in a Spice primitive.
const NET_INDEX_MAP & GetNetIndexMap() const
Return a map of circuit nodes to net names.
Subclass of SIM_PLOT_FRAME_BASE, which is generated by wxFormBuilder.
bool TransferDataFromWindow() override
Implementing SIM_PLOT_FRAME_BASE.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
wxString UnescapeString(const wxString &aSource)
SIM_PLOT_FRAME * m_plotFrame
bool TransferDataToWindow() override
SIM_TYPE GetSimType()
Return simulation type basing on the simulation command directives.
Special netlist exporter flavor that allows one to override simulation commands.