27#ifndef DIALOG_SIM_COMMAND_H
28#define DIALOG_SIM_COMMAND_H
43 DIALOG_SIM_COMMAND( wxWindow* aParent, std::shared_ptr<NGSPICE_CIRCUIT_MODEL> aCircuitModel,
44 std::shared_ptr<SPICE_SIMULATOR_SETTINGS>& aSettings );
113 wxQueueEvent(
m_dcEnable2,
new wxCommandEvent( wxEVT_CHECKBOX ) );
123 wxString
evaluateDCControls( wxChoice* aDcSource, wxTextCtrl* aDcStart, wxTextCtrl* aDcStop,
124 wxTextCtrl* aDcIncr );
134 void updateDCUnits( wxChar aType, wxChoice* aSource, wxStaticText* aStartValUnit,
135 wxStaticText* aEndValUnit, wxStaticText* aStepUnit );
137 virtual void onInitDlg( wxInitDialogEvent& event )
override
183 case DECADE:
return wxString(
"dec" );
184 case OCTAVE:
return wxString(
"oct" );
185 case LINEAR:
return wxString(
"lin" );
186 default: wxFAIL_MSG(
"Unhandled scale type" );
return wxEmptyString;
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Class DIALOG_SIM_COMMAND_BASE.
wxChoice * m_dcSourceType2
wxStaticText * m_src1DCStartValUnit
wxStaticText * m_src1DCStepUnit
wxChoice * m_dcSourceType1
wxStaticText * m_src2DCStepUnit
wxStaticText * m_src2DCStartValUnit
wxCheckBox * m_fixIncludePaths
wxStaticText * m_src2DCEndValUnit
wxCheckBox * m_saveAllCurrents
wxCheckBox * m_saveAllVoltages
wxCheckBox * m_saveAllDissipations
wxStaticText * m_src1DCEndValUnit
wxString evaluateDCControls(wxChoice *aDcSource, wxTextCtrl *aDcStart, wxTextCtrl *aDcStop, wxTextCtrl *aDcIncr)
Read values from one DC sweep source to form a part of simulation command.
virtual bool Validate() override
void onSwapDCSources(wxCommandEvent &event) override
static wxString scaleToString(int aOption)
std::shared_ptr< NGSPICE_CIRCUIT_MODEL > m_circuitModel
wxIntegerValidator< int > m_posIntValidator
void onDCSource2Selected(wxCommandEvent &event) override
bool TransferDataFromWindow() override
std::shared_ptr< SPICE_SIMULATOR_SETTINGS > m_settings
void updateDCSources(wxChar aType, wxChoice *aSource)
Update DC sweep source with symbols from schematic.
DIALOG_SIM_COMMAND(wxWindow *aParent, std::shared_ptr< NGSPICE_CIRCUIT_MODEL > aCircuitModel, std::shared_ptr< SPICE_SIMULATOR_SETTINGS > &aSettings)
int GetSimOptions() const
SPICE_VALIDATOR m_spiceValidator
void onDCEnableSecondSource(wxCommandEvent &event) override
void SetSimOptions(int aOptions)
void onDCSource1Selected(wxCommandEvent &event) override
bool TransferDataToWindow() override
bool SetSimCommand(const wxString &aCommand)
const wxString & GetSimCommand() const
void updateDCUnits(wxChar aType, wxChoice *aSource, wxStaticText *aStartValUnit, wxStaticText *aEndValUnit, wxStaticText *aStepUnit)
Update units on labels depending on selected source.
bool parseCommand(const wxString &aCommand)
Parse a Spice directive.
virtual void onInitDlg(wxInitDialogEvent &event) override
SPICE_VALIDATOR m_spiceEmptyValidator
void onLoadDirectives(wxCommandEvent &event) override
@ OPTION_SAVE_ALL_CURRENTS
@ OPTION_SAVE_ALL_VOLTAGES
@ OPTION_SAVE_ALL_DISSIPATIONS
@ OPTION_ADJUST_INCLUDE_PATHS
Special netlist exporter flavor that allows one to override simulation commands.
Storage for simulator specific settings.