27#ifndef DIALOG_SIM_COMMAND_H
28#define DIALOG_SIM_COMMAND_H
46 std::shared_ptr<SPICE_CIRCUIT_MODEL> aCircuitModel,
47 std::shared_ptr<SPICE_SETTINGS>& aSettings );
97 wxQueueEvent(
m_dcEnable2,
new wxCommandEvent( wxEVT_CHECKBOX ) );
108 wxString
evaluateDCControls( wxChoice* aDcSource, wxTextCtrl* aDcStart, wxTextCtrl* aDcStop,
109 wxTextCtrl* aDcIncr );
119 void updateDCUnits( wxChar aType, wxStaticText* aStartValUnit, wxStaticText* aEndValUnit,
120 wxStaticText* aStepUnit );
122 virtual void onInitDlg( wxInitDialogEvent& event )
override
156 case DECADE:
return wxString(
"dec" );
157 case OCTAVE:
return wxString(
"oct" );
158 case LINEAR:
return wxString(
"lin" );
159 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
wxChoice * m_dcSourceType1
wxSearchCtrl * m_inputSignalsFilter
wxCheckBox * m_fixIncludePaths
wxCheckBox * m_saveAllCurrents
wxCheckBox * m_saveAllVoltages
wxCheckBox * m_saveAllDissipations
wxCheckBox * m_saveAllEvents
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)
void SetPlotSettings(const SIM_TAB *aSimTab)
void SetSimCommand(const wxString &aCommand)
void OnCommandType(wxCommandEvent &event) override
void OnFilterMouseMoved(wxMouseEvent &event) override
wxIntegerValidator< int > m_posIntValidator
void onDCSource2Selected(wxCommandEvent &event) override
void OnUpdateUILockY3(wxUpdateUIEvent &event) override
bool TransferDataFromWindow() override
void updateDCSources(wxChar aType, wxChoice *aSource)
Update DC sweep source with symbols from schematic.
void OnUpdateUILockY1(wxUpdateUIEvent &event) override
std::set< wxString > m_fftInputSignals
SPICE_VALIDATOR m_spiceValidator
void onDCEnableSecondSource(wxCommandEvent &event) override
void ApplySettings(SIM_TAB *aTab)
void SetSimOptions(int aOptions)
SIMULATOR_FRAME * m_simulatorFrame
void onDCSource1Selected(wxCommandEvent &event) override
void parseCommand(const wxString &aCommand)
Parse a Spice directive.
bool TransferDataToWindow() override
void updateDCUnits(wxChar aType, wxStaticText *aStartValUnit, wxStaticText *aEndValUnit, wxStaticText *aStepUnit)
Update units on labels depending on selected source.
void OnFilterText(wxCommandEvent &event) override
const wxString & GetSimCommand() const
std::shared_ptr< SPICE_CIRCUIT_MODEL > m_circuitModel
virtual void onInitDlg(wxInitDialogEvent &event) override
std::shared_ptr< SPICE_SETTINGS > m_settings
void OnUpdateUILockY2(wxUpdateUIEvent &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
The SIMULATOR_FRAME holds the main user-interface for running simulations.
Special netlist exporter flavor that allows one to override simulation commands.
Storage for simulator specific settings.