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 );
 
   99        wxQueueEvent( 
m_dcEnable2, 
new wxCommandEvent( wxEVT_CHECKBOX ) );
 
 
  110    wxString 
evaluateDCControls( wxChoice* aDcSource, wxTextCtrl* aDcStart, wxTextCtrl* aDcStop,
 
  111                                 wxTextCtrl* aDcIncr );
 
  121    void updateDCUnits( wxChar aType, wxStaticText* aStartValUnit, wxStaticText* aEndValUnit,
 
  122                        wxStaticText* aStepUnit );
 
  124    virtual void onInitDlg( wxInitDialogEvent& event )
 override 
 
  158        case DECADE: 
return wxString( 
"dec" );
 
  159        case OCTAVE: 
return wxString( 
"oct" );
 
  160        case LINEAR: 
return wxString( 
"lin" );
 
  161        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...
 
wxChoice * m_dcSourceType2
 
DIALOG_SIM_COMMAND_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Simulation Analysis"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
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 refreshUIControls()
Generate events to update UI state.
 
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
 
DIALOG_SIM_COMMAND(SIMULATOR_FRAME *aParent, std::shared_ptr< SPICE_CIRCUIT_MODEL > aCircuitModel, std::shared_ptr< SPICE_SETTINGS > &aSettings)
 
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.