|
KiCad PCB EDA Suite
|
The SIMULATOR_FRAME_UI holds the main user-interface for running simulations. More...
#include <simulator_frame_ui.h>
Classes | |
| struct | MULTI_RUN_STATE |
| struct | MULTI_RUN_STEP |
| struct | MULTI_RUN_TRACE |
Public Member Functions | |
| SIMULATOR_FRAME_UI (SIMULATOR_FRAME *aSimulatorFrame, SCH_EDIT_FRAME *aSchematicFrame) | |
| ~SIMULATOR_FRAME_UI () | |
| SIM_TAB * | NewSimTab (const wxString &aSimCommand) |
| Create a new simulation tab for a given simulation type. | |
| std::vector< wxString > | SimPlotVectors () const |
| std::vector< wxString > | Signals () const |
| const std::map< int, wxString > & | UserDefinedSignals () |
| void | SetUserDefinedSignals (const std::map< int, wxString > &aSignals) |
| void | CreateNewCursor () |
| Creates a column at the end of m_signalsGrid named "Cursor n" ( n = m_customCursorsCnt ), increases m_customCursorsCnt, emplaces a vector to m_cursorFormatsDyn, and update widgets. | |
| void | DeleteCursor () |
| Deletes last m_signalsGrid "Cursor n" column, removes vector's m_cursorFormatsDyn last entry, reduces m_customCursorsCnt by one, and update widgets. | |
| void | AddTrace (const wxString &aName, SIM_TRACE_TYPE aType) |
| Add a new trace to the current plot. | |
| SPICE_VALUE_FORMAT | GetCursorFormat (int aCursorId, int aValueCol) const |
| Get/Set the number of significant digits and the range for formatting a cursor value. | |
| void | SetCursorFormat (int aCursorId, int aValueCol, const SPICE_VALUE_FORMAT &aFormat) |
| void | AddTuner (const SCH_SHEET_PATH &aSheetPath, SCH_SYMBOL *aSymbol) |
| Add a tuner for a symbol. | |
| void | RemoveTuner (TUNER_SLIDER *aTuner) |
| Remove an existing tuner. | |
| void | UpdateTunerValue (const SCH_SHEET_PATH &aSheetPath, const KIID &aSymbol, const wxString &aRef, const wxString &aValue) |
| Safely update a field of the associated symbol without dereferencing the symbol. | |
| void | AddMeasurement (const wxString &aCmd) |
| Add a measurement to the measurements grid. | |
| void | DeleteMeasurement (int aRow) |
| Delete a row from the measurements grid. | |
| SPICE_VALUE_FORMAT | GetMeasureFormat (int aRow) const |
| Get/Set the format of a value in the measurements grid. | |
| void | SetMeasureFormat (int aRow, const SPICE_VALUE_FORMAT &aFormat) |
| void | UpdateMeasurement (int aRow) |
| Update a measurement in the measurements grid. | |
| void | DoFourier (const wxString &aSignal, const wxString &aFundamental) |
| const SPICE_CIRCUIT_MODEL * | GetExporter () const |
| Return the netlist exporter object used for simulations. | |
| bool | IsSimConsoleShown () |
| void | ToggleSimConsole () |
| bool | IsSimSidePanelShown () |
| void | ToggleSimSidePanel () |
| bool | DarkModePlots () const |
| void | ToggleDarkModePlots () |
| Toggle the current S-parameter tab between Smith chart and amplitude/phase views. | |
| void | ToggleSmithChart () |
| void | ShowChangedLanguage () |
| void | InitWorkbook () |
| Load the currently active workbook stored in the project settings. | |
| bool | LoadWorkbook (const wxString &aPath) |
| Load plot, signal, cursor, measurement, etc. | |
| bool | SaveWorkbook (const wxString &aPath) |
| Save plot, signal, cursor, measurement, etc. | |
| void | LoadSettings (EESCHEMA_SETTINGS *aCfg) |
| void | SaveSettings (EESCHEMA_SETTINGS *aCfg) |
| void | ApplyPreferences (const SIM_PREFERENCES &aPrefs) |
| Called when settings are changed via the common Preferences dialog. | |
| void | SetSubWindowsSashSize () |
| Adjust the sash dimension of splitter windows after reading the config settings must be called after the config settings are read, and once the frame is initialized (end of the Ctor) | |
| SIM_TAB * | GetCurrentSimTab () const |
| Return the currently opened plot panel (or NULL if there is none). | |
| SIM_TAB * | GetSimTab (SIM_TYPE aType) const |
| int | GetSimTabIndex (SIM_TAB *aPlot) const |
| bool | IsPlotOwnedByOtherTab (const SIM_TAB *aExcept, const wxString &aPlotName) const |
Return true if a tab other than aExcept records aPlotName as its ngspice plot. | |
| void | OnPlotSettingsChanged () |
| void | OnSimUpdate () |
| void | OnSimRefresh (bool aFinal) |
| void | FlushSimConsole () |
| void | OnModify () |
| void | m_splitterLeftRightOnIdle (wxIdleEvent &) |
| void | m_splitterPlotAndConsoleOnIdle (wxIdleEvent &) |
| void | m_splitterSignalsOnIdle (wxIdleEvent &) |
| void | m_splitterCursorsOnIdle (wxIdleEvent &) |
| void | m_splitterMeasurementsOnIdle (wxIdleEvent &) |
Public Attributes | |
| int | m_SuppressGridEvents |
Protected Attributes | |
| wxSplitterWindow * | m_splitterLeftRight |
| wxPanel * | m_panelLeft |
| wxBoxSizer * | m_sizer11 |
| wxSplitterWindow * | m_splitterPlotAndConsole |
| wxPanel * | m_plotPanel |
| wxBoxSizer * | m_sizerPlot |
| wxAuiNotebook * | m_plotNotebook |
| wxPanel * | m_panelConsole |
| wxBoxSizer * | m_sizerConsole |
| wxTextCtrl * | m_simConsole |
| wxPanel * | m_sidePanel |
| wxBoxSizer * | m_sideSizer |
| wxSplitterWindow * | m_splitterSignals |
| wxPanel * | m_panelSignals |
| wxSearchCtrl * | m_filter |
| WX_GRID * | m_signalsGrid |
| wxPanel * | m_panelCMT |
| wxSplitterWindow * | m_splitterCursors |
| wxPanel * | m_panelCursors |
| WX_GRID * | m_cursorsGrid |
| wxPanel * | m_panelMT |
| wxSplitterWindow * | m_splitterMeasurements |
| wxPanel * | m_panelMeasurements |
| WX_GRID * | m_measurementsGrid |
| wxPanel * | m_panelTuners |
| wxBoxSizer * | m_sizerTuners |
Private Member Functions | |
| wxString | vectorNameFromSignalName (SIM_PLOT_TAB *aPlotTab, const wxString &aSignalName, int *aTraceType) |
| Get the simulator output vector name for a given signal name and type. | |
| void | updateTrace (const wxString &aVectorName, int aTraceType, SIM_PLOT_TAB *aPlotTab, std::vector< double > *aDataX=nullptr, bool aClearData=false, SIM_VIEW *aView=nullptr) |
| Update a trace in a particular SIM_PLOT_TAB. | |
| double | getSmithPortImpedance (const wxString &aVectorName) |
| void | TogglePanel (wxPanel *aPanel, wxSplitterWindow *aSplitterWindow, int &aSashPosition) |
| A common toggler for the two main wxSplitterWindow s. | |
| void | CustomCursorsInit () |
| Init handler for custom cursors. | |
| void | rebuildSignalsList () |
| Rebuild the list of signals available from the netlist. | |
| void | rebuildSignalsGrid (wxString aFilter) |
| Rebuild the filtered list of signals in the signals grid. | |
| void | updateSignalsGrid () |
| Update the values in the signals grid. | |
| void | updatePlotCursors () |
| Update the cursor values (in the grid) and graphics (in the plot window). | |
| void | updateSmithCursorColumns (bool aSmithMode) |
| Add or remove the Smith-only cursor columns, carrying their shown/hidden state across. | |
| void | fillSmithCursorRow (int aRow, CURSOR *aCursor, TRACE *aTrace) |
| void | setSmithCursorColumnLabels () |
| void | rememberSmithCursorColumns () |
| void | applySmithCursorColumns () |
| template<typename T, typename U, typename R> | |
| void | signalsGridCursorUpdate (T t, U u, R r) |
| Updates m_signalsGrid cursor widget, column rendering and attributes. | |
| void | applyUserDefinedSignals () |
| Apply user-defined signals to the SPICE session. | |
| void | rebuildMeasurementsGrid () |
| Rebuild the measurements grid for the current plot. | |
| void | updateMeasurementsFromGrid () |
| void | autoSizeGridColumn (WX_GRID *aGrid, int aCol, int aMinWidth, int aExtraPadding=0) |
| Grow (but never shrink below aMinWidth) a grid column to fit its current contents. | |
| wxArrayString | getViewChoices (SIM_PLOT_TAB *aPlotTab) const |
| The Signals grid's "Plot" column label for a given view ("Disabled" if null). | |
| wxString | getViewLabel (SIM_PLOT_TAB *aPlotTab, SIM_VIEW *aView) const |
| The views a trace's Y-axis scale could be linked to: every view except its own (since linking to its own view is equivalent to – and represented by – "Default"). | |
| std::vector< SIM_VIEW * > | getYScaleTargetViews (SIM_PLOT_TAB *aPlotTab, SIM_VIEW *aOwnView) const |
| The Signals grid's "Y Scale" column choices: "Default" plus one entry per eligible view. | |
| wxArrayString | getYScaleChoices (SIM_PLOT_TAB *aPlotTab, SIM_VIEW *aOwnView) const |
| The Signals grid's "Y Scale" column label for a trace ("Default" if not explicitly linked). | |
| wxString | getYScaleLabel (SIM_PLOT_TAB *aPlotTab, TRACE *aTrace) const |
| void | applyTuners () |
| Apply component values specified using tuner sliders to the current netlist. | |
| SIM_TRACE_TYPE | getXAxisType (SIM_TYPE aType) const |
| Return X axis for a given simulation type. | |
| void | clearMultiRunState (bool aClearTraces) |
| void | prepareMultiRunState () |
| std::vector< MULTI_RUN_STEP > | calculateMultiRunSteps (const std::vector< TUNER_SLIDER * > &aTuners) const |
| std::string | multiRunTraceKey (const wxString &aVectorName, int aTraceType) const |
| void | recordMultiRunData (const wxString &aVectorName, int aTraceType, const std::vector< double > &aX, const std::vector< double > &aY) |
| bool | hasMultiRunTrace (const wxString &aVectorName, int aTraceType) const |
| wxString | getNoiseSource () const |
| void | parseTraceParams (SIM_PLOT_TAB *aPlotTab, TRACE *aTrace, const wxString &aSignalName, const wxString &aParams) |
| std::shared_ptr< SPICE_SIMULATOR > | simulator () const |
| std::shared_ptr< SPICE_CIRCUIT_MODEL > | circuitModel () const |
| void | onPlotClose (wxAuiNotebookEvent &event) override |
| void | onPlotClosed (wxAuiNotebookEvent &event) override |
| void | onPlotChanging (wxAuiNotebookEvent &event) override |
| void | onPlotChanged (wxAuiNotebookEvent &event) override |
| void | onPlotDragged (wxAuiNotebookEvent &event) override |
| void | OnFilterText (wxCommandEvent &aEvent) override |
| void | OnFilterMouseMoved (wxMouseEvent &aEvent) override |
| void | onSignalsGridCellChanged (wxGridEvent &aEvent) override |
| void | onCursorsGridCellChanged (wxGridEvent &aEvent) override |
| void | onMeasurementsGridCellChanged (wxGridEvent &aEvent) override |
| void | OnUpdateUI (wxUpdateUIEvent &event) override |
| bool | loadLegacyWorkbook (const wxString &aPath) |
| bool | loadJsonWorkbook (const wxString &aPath) |
| void | SaveCursorToWorkbook (nlohmann::json &aTraceJs, TRACE *aTrace, int aCursorId) |
| void | onPlotCursorUpdate (wxCommandEvent &aEvent) |
The SIMULATOR_FRAME_UI holds the main user-interface for running simulations.
It contains a workbook with multiple tabs, each tab holding a SIM_PLOT_TAB, a specific simulation command (.TRAN, .AC, etc.), and simulation settings (save all currents, etc.).
Each plot can have multiple TRACEs. While internally each TRACE can have multiple cursors, the GUI supports only two cursors (and a differential cursor) for each plot.
TRACEs are identified by a signal (V(OUT), I(R2), etc.) and a type (SPT_VOLTAGE, SPT_AC_PHASE, etc.).
The simulator outputs simple signals in a vector of the same name. Complex signals (such as V(OUT) / V(IN)) are stored in vectors of the format "user%d".
Definition at line 65 of file simulator_frame_ui.h.
| SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI | ( | SIMULATOR_FRAME * | aSimulatorFrame, |
| SCH_EDIT_FRAME * | aSchematicFrame ) |
Definition at line 571 of file simulator_frame_ui.cpp.
References _, COL_CURSOR_NAME, COL_CURSOR_SIGNAL, COL_CURSOR_Y, COL_MEASUREMENT_VALUE, COL_SIGNAL_NAME, CustomCursorsInit(), SIM_PLOT_COLORS::FillDefaultColorList(), KIUI::GetStatusFont(), ID_SIM_REFRESH, LoadSettings(), SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_darkMode, SIMULATOR_FRAME_UI_BASE::m_filter, SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_plotNumber, m_refreshTimer, m_schematicFrame, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, m_simulatorFrame, m_SuppressGridEvents, OnModify(), onPlotCursorUpdate(), OnSimRefresh(), rebuildSignalsGrid(), REFRESH_INTERVAL, SIMULATOR_FRAME_UI_BASE::SIMULATOR_FRAME_UI_BASE(), and updatePlotCursors().
| SIMULATOR_FRAME_UI::~SIMULATOR_FRAME_UI | ( | ) |
Definition at line 645 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, and SIMULATOR_FRAME_UI_BASE::m_signalsGrid.
| void SIMULATOR_FRAME_UI::AddMeasurement | ( | const wxString & | aCmd | ) |
Add a measurement to the measurements grid.
Definition at line 1976 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT, GetCurrentSimTab(), SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, OnModify(), UpdateMeasurement(), and updateMeasurementsFromGrid().
| void SIMULATOR_FRAME_UI::AddTrace | ( | const wxString & | aName, |
| SIM_TRACE_TYPE | aType ) |
Add a new trace to the current plot.
| aName | is the device/net name. |
| aType | describes the type of trace. |
Definition at line 2034 of file simulator_frame_ui.cpp.
References _, SPICE_CIRCUIT_MODEL::CommandToSimType(), GetCurrentSimTab(), SIM_TAB::IsPlottable(), SIMULATOR_FRAME_UI_BASE::m_simConsole, OnModify(), SPT_AC_GAIN, SPT_AC_PHASE, SPT_SP_AMP, SPT_SP_SMITH, ST_AC, ST_SP, ST_UNKNOWN, updateSignalsGrid(), and updateTrace().
| void SIMULATOR_FRAME_UI::AddTuner | ( | const SCH_SHEET_PATH & | aSheetPath, |
| SCH_SYMBOL * | aSymbol ) |
Add a tuner for a symbol.
Definition at line 1871 of file simulator_frame_ui.cpp.
References _, DisplayErrorMessage(), GetCurrentSimTab(), GetExporter(), SCH_SYMBOL::GetRef(), SIMULATOR_FRAME_UI_BASE::m_panelTuners, SIMULATOR_FRAME_UI_BASE::m_sizerTuners, m_tuners, OnModify(), and KI_PARAM_ERROR::What().
| void SIMULATOR_FRAME_UI::ApplyPreferences | ( | const SIM_PREFERENCES & | aPrefs | ) |
Called when settings are changed via the common Preferences dialog.
Definition at line 823 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_plotNotebook, and m_preferences.
|
private |
Definition at line 3894 of file simulator_frame_ui.cpp.
References COL_CURSOR_SMITH_FIRST, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_smithCursorColumns, and SMITH_CURSOR_COLS.
Referenced by updateSmithCursorColumns().
|
private |
Apply component values specified using tuner sliders to the current netlist.
Definition at line 2692 of file simulator_frame_ui.cpp.
References _, SPICE_SIMULATOR::Command(), DisplayErrorMessage(), NETLIST_EXPORTER_SPICE::FindItem(), GetExporter(), SIM_MODEL::GetTunerParam(), m_tunerOverrides, m_tuners, SPICE_ITEM::model, reporter, SCH_SHEET_PATH::ResolveItem(), simulator(), SIM_MODEL::SpiceGenerator(), and SPICE_GENERATOR::TunerCommand().
Referenced by OnSimUpdate().
|
private |
Apply user-defined signals to the SPICE session.
Definition at line 2581 of file simulator_frame_ui.cpp.
References SPICE_SIMULATOR::Command(), m_netnames, m_userDefinedSignals, simulator(), and ToStdString().
Referenced by OnSimRefresh(), and SetUserDefinedSignals().
|
private |
Grow (but never shrink below aMinWidth) a grid column to fit its current contents.
| aExtraPadding | additional width to reserve beyond the content, e.g. for a combo box column's dropdown arrow so it doesn't crowd the text. The Signals grid's "Plot" column choices: "Disabled" plus one entry per current view. |
Definition at line 1099 of file simulator_frame_ui.cpp.
Referenced by rebuildMeasurementsGrid(), rebuildSignalsGrid(), and updatePlotCursors().
|
private |
Definition at line 4568 of file simulator_frame_ui.cpp.
References ADVANCED_CFG::GetCfg(), ADVANCED_CFG::m_SimulatorMultiRunCombinationLimit, and SIMULATOR_FRAME_UI::MULTI_RUN_STEP::overrides.
Referenced by prepareMultiRunState().
|
private |
Definition at line 3816 of file simulator_frame_ui.cpp.
References m_simulatorFrame.
Referenced by GetExporter(), getNoiseSource(), getSmithPortImpedance(), InitWorkbook(), OnSimRefresh(), rebuildSignalsList(), and updateTrace().
|
private |
Definition at line 4490 of file simulator_frame_ui.cpp.
References m_multiRunState, and m_tunerOverrides.
Referenced by prepareMultiRunState(), and RemoveTuner().
| void SIMULATOR_FRAME_UI::CreateNewCursor | ( | ) |
Creates a column at the end of m_signalsGrid named "Cursor n" ( n = m_customCursorsCnt ), increases m_customCursorsCnt, emplaces a vector to m_cursorFormatsDyn, and update widgets.
Definition at line 696 of file simulator_frame_ui.cpp.
References _, COL_CURSOR_2, m_cursorFormatsDyn, m_customCursorsCnt, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, OnModify(), updatePlotCursors(), and updateSignalsGrid().
Referenced by loadJsonWorkbook().
|
private |
Init handler for custom cursors.
Called once in class's body
Definition at line 654 of file simulator_frame_ui.cpp.
References _, index, m_cursorFormats, m_cursorFormatsDyn, m_customCursorsCnt, and SIMULATOR_FRAME_UI_BASE::m_signalsGrid.
Referenced by SIMULATOR_FRAME_UI().
|
inline |
Definition at line 179 of file simulator_frame_ui.h.
References m_darkMode.
| void SIMULATOR_FRAME_UI::DeleteCursor | ( | ) |
Deletes last m_signalsGrid "Cursor n" column, removes vector's m_cursorFormatsDyn last entry, reduces m_customCursorsCnt by one, and update widgets.
Definition at line 721 of file simulator_frame_ui.cpp.
References COL_CURSOR_2, m_cursorFormatsDyn, m_customCursorsCnt, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, OnModify(), onSignalsGridCellChanged(), updatePlotCursors(), and updateSignalsGrid().
| void SIMULATOR_FRAME_UI::DeleteMeasurement | ( | int | aRow | ) |
Delete a row from the measurements grid.
Definition at line 1679 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_measurementsGrid.
| void SIMULATOR_FRAME_UI::DoFourier | ( | const wxString & | aSignal, |
| const wxString & | aFundamental ) |
Definition at line 2018 of file simulator_frame_ui.cpp.
References SPICE_SIMULATOR::Command(), and simulator().
Definition at line 3908 of file simulator_frame_ui.cpp.
References COL_CURSOR_R, COL_CURSOR_REACTANCE, COL_CURSOR_RL, COL_CURSOR_SMITH_END, COL_CURSOR_SMITH_FIRST, COL_CURSOR_VSWR, SMITH_MATH::GammaToImpedance(), TRACE::GetDataX(), SMITH_CURSOR::GetGamma(), SMITH_TRACE::GetReferenceImpedance(), SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, SMITH_MATH::ReturnLoss(), and SMITH_MATH::VSWR().
Referenced by updatePlotCursors().
| void SIMULATOR_FRAME_UI::FlushSimConsole | ( | ) |
Definition at line 4190 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_simConsole, and m_simulatorFrame.
Referenced by OnSimRefresh().
|
inline |
Return the currently opened plot panel (or NULL if there is none).
Definition at line 223 of file simulator_frame_ui.h.
References SIMULATOR_FRAME_UI_BASE::m_plotNotebook.
Referenced by AddMeasurement(), AddTrace(), AddTuner(), getNoiseSource(), loadJsonWorkbook(), loadLegacyWorkbook(), onCursorsGridCellChanged(), onMeasurementsGridCellChanged(), onPlotChanged(), onPlotClosed(), onSignalsGridCellChanged(), OnSimRefresh(), OnSimUpdate(), OnUpdateUI(), rebuildMeasurementsGrid(), rebuildSignalsGrid(), rebuildSignalsList(), signalsGridCursorUpdate(), ToggleSmithChart(), UpdateMeasurement(), updateMeasurementsFromGrid(), and updatePlotCursors().
|
inline |
Get/Set the number of significant digits and the range for formatting a cursor value.
| aValueCol | 0 indicates the X value column; 1 the Y value. |
Definition at line 112 of file simulator_frame_ui.h.
References m_cursorFormatsDyn.
| const SPICE_CIRCUIT_MODEL * SIMULATOR_FRAME_UI::GetExporter | ( | ) | const |
Return the netlist exporter object used for simulations.
Definition at line 2028 of file simulator_frame_ui.cpp.
References circuitModel().
Referenced by AddTuner(), and applyTuners().
| SPICE_VALUE_FORMAT SIMULATOR_FRAME_UI::GetMeasureFormat | ( | int | aRow | ) | const |
Get/Set the format of a value in the measurements grid.
Definition at line 1665 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT_FORMAT, SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, and result.
Referenced by UpdateMeasurement().
|
private |
Definition at line 3374 of file simulator_frame_ui.cpp.
References circuitModel(), GetCurrentSimTab(), SPICE_CIRCUIT_MODEL::ParseNoiseCommand(), and scale.
Referenced by vectorNameFromSignalName().
Definition at line 228 of file simulator_frame_ui.h.
References SIM_TAB::GetSimType(), and SIMULATOR_FRAME_UI_BASE::m_plotNotebook.
|
inline |
Definition at line 241 of file simulator_frame_ui.h.
References SIMULATOR_FRAME_UI_BASE::m_plotNotebook.
|
private |
Definition at line 2162 of file simulator_frame_ui.cpp.
References circuitModel(), SMITH_MATH::ParseSParamPorts(), SIM_VALUE::ToDouble(), SIM_VALUE::ToSpice(), and SIM_MODEL::PARAM::value.
Referenced by updateTrace().
|
private |
The Signals grid's "Plot" column label for a given view ("Disabled" if null).
Definition at line 1116 of file simulator_frame_ui.cpp.
References _, SIM_PLOT_TAB::GetViewCount(), and UNPLOTTED.
Referenced by onSignalsGridCellChanged(), rebuildSignalsGrid(), and signalsGridCursorUpdate().
|
private |
The views a trace's Y-axis scale could be linked to: every view except its own (since linking to its own view is equivalent to – and represented by – "Default").
Definition at line 1131 of file simulator_frame_ui.cpp.
References _, SIM_PLOT_TAB::GetViewIndex(), index, and UNPLOTTED.
Referenced by getYScaleChoices(), getYScaleLabel(), rebuildSignalsGrid(), and signalsGridCursorUpdate().
|
private |
Return X axis for a given simulation type.
Definition at line 3355 of file simulator_frame_ui.cpp.
References SPT_LIN_FREQUENCY, SPT_SWEEP, SPT_TIME, SPT_UNKNOWN, ST_AC, ST_DC, ST_FFT, ST_NOISE, ST_SP, and ST_TRAN.
Referenced by updateTrace().
|
private |
The Signals grid's "Y Scale" column label for a trace ("Default" if not explicitly linked).
Definition at line 1159 of file simulator_frame_ui.cpp.
References _, getViewLabel(), and getYScaleTargetViews().
Referenced by onSignalsGridCellChanged(), rebuildSignalsGrid(), and signalsGridCursorUpdate().
|
private |
Definition at line 1171 of file simulator_frame_ui.cpp.
References _, getViewLabel(), TRACE::GetYScaleView(), and TRACE::IsYScaleDefault().
Referenced by rebuildSignalsGrid(), and signalsGridCursorUpdate().
|
private |
The Signals grid's "Y Scale" column choices: "Default" plus one entry per eligible view.
Definition at line 1142 of file simulator_frame_ui.cpp.
References SIM_PLOT_TAB::GetViews().
Referenced by getYScaleChoices(), and onSignalsGridCellChanged().
|
private |
Definition at line 4681 of file simulator_frame_ui.cpp.
References m_multiRunState, multiRunTraceKey(), SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::xValues, and SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::yValues.
Referenced by updateTrace().
| void SIMULATOR_FRAME_UI::InitWorkbook | ( | ) |
Load the currently active workbook stored in the project settings.
If there is none, generate a filename for the currently active workbook and store it in the project settings.
Definition at line 835 of file simulator_frame_ui.cpp.
References _, circuitModel(), SPICE_CIRCUIT_MODEL::GetSchTextSimCommand(), SPICE_SETTINGS::GetWorkbookFilename(), LoadWorkbook(), SIMULATOR_FRAME_UI_BASE::m_filter, m_schematicFrame, m_simulatorFrame, NewSimTab(), NETLIST_EXPORTER_SPICE::OPTION_DEFAULT_FLAGS, rebuildSignalsGrid(), rebuildSignalsList(), SIM_TAB::SetSimOptions(), SPICE_SIMULATOR::Settings(), SPICE_SETTINGS::SetWorkbookFilename(), WX_INFOBAR::ShowMessageFor(), and simulator().
|
inline |
Return true if a tab other than aExcept records aPlotName as its ngspice plot.
Guards plot destruction so a rerun never frees a plot another tab still references (e.g. an FFT that consumes a TRAN plot, or a run that produced no new plot and reported a stale one).
Definition at line 252 of file simulator_frame_ui.h.
References SIM_TAB::GetSpicePlotName(), and SIMULATOR_FRAME_UI_BASE::m_plotNotebook.
| bool SIMULATOR_FRAME_UI::IsSimConsoleShown | ( | ) |
Definition at line 3413 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_panelConsole.
| bool SIMULATOR_FRAME_UI::IsSimSidePanelShown | ( | ) |
Definition at line 3425 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_sidePanel.
|
private |
Definition at line 2778 of file simulator_frame_ui.cpp.
References SIM_PLOT_TAB::AddView(), CreateNewCursor(), cursor, SIM_PLOT_TAB::EnableCursor(), SIM_PLOT_TAB::EnsureThirdYAxisExists(), GetCurrentSimTab(), SIM_PLOT_TAB::GetPlotWin(), mpWindow::LockY(), m_cursorFormatsDyn, m_customCursorsCnt, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_simulatorFrame, m_userDefinedSignals, SIM_PLOT_TAB::Measurements(), name, NewSimTab(), NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS, NETLIST_EXPORTER_SPICE::OPTION_ADJUST_PASSIVE_VALS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_EVENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES, SIM_PLOT_TAB::SetDottedSecondary(), SIM_PLOT_TAB::SetLegendPosition(), mpWindow::SetMargins(), SIM_TAB::SetSimOptions(), SIM_PLOT_TAB::SetSmithMode(), SIM_PLOT_TAB::SetSmithView(), TRACE::SetTraceColour(), SIM_PLOT_TAB::SetY1Scale(), SIM_PLOT_TAB::SetY2Scale(), SIM_PLOT_TAB::SetY3Scale(), TRACE::SetYScaleView(), SIM_PLOT_TAB::ShowGrid(), SIM_PLOT_TAB::ShowLegend(), SIM_PLOT_TAB::SmithStashedCursors(), SIM_PLOT_TAB::SmithStashedTraces(), SPT_UNKNOWN, traceSettings, and vectorNameFromSignalName().
Referenced by LoadWorkbook().
|
private |
Definition at line 111 of file legacy_workbook.cpp.
References _, EXPECTING, GetCurrentSimTab(), SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_simulatorFrame, m_userDefinedSignals, measurement, SIM_PLOT_TAB::Measurements(), name, NewSimTab(), NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS, NETLIST_EXPORTER_SPICE::OPTION_DEFAULT_FLAGS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES, parseTraceParams(), SIM_TAB::SetLastSchTextSimCommand(), SIM_TAB::SetSimOptions(), SPT_UNKNOWN, UnescapeString(), and vectorNameFromSignalName().
Referenced by LoadWorkbook().
| void SIMULATOR_FRAME_UI::LoadSettings | ( | EESCHEMA_SETTINGS * | aCfg | ) |
Definition at line 788 of file simulator_frame_ui.cpp.
References EESCHEMA_SETTINGS::SIMULATOR::VIEW::cursors_panel_height, m_darkMode, m_preferences, EESCHEMA_SETTINGS::m_Simulator, m_smithCursorColumns, m_splitterCursorsSashPosition, m_splitterLeftRightSashPosition, m_splitterPlotAndConsoleSashPosition, m_splitterSignalsSashPosition, m_splitterTuneValuesSashPosition, EESCHEMA_SETTINGS::SIMULATOR::VIEW::measurements_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::plot_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::plot_panel_width, EESCHEMA_SETTINGS::SIMULATOR::preferences, EESCHEMA_SETTINGS::SIMULATOR::VIEW::signal_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::smith_cursor_columns, EESCHEMA_SETTINGS::SIMULATOR::view, and EESCHEMA_SETTINGS::SIMULATOR::VIEW::white_background.
Referenced by SIMULATOR_FRAME_UI().
| bool SIMULATOR_FRAME_UI::LoadWorkbook | ( | const wxString & | aPath | ) |
Load plot, signal, cursor, measurement, etc.
settings from a file.
Definition at line 2734 of file simulator_frame_ui.cpp.
References dummy, loadJsonWorkbook(), loadLegacyWorkbook(), SIMULATOR_FRAME_UI_BASE::m_filter, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_schematicFrame, m_userDefinedSignals, rebuildMeasurementsGrid(), rebuildSignalsGrid(), rebuildSignalsList(), SPICE_SIMULATOR::Settings(), SPICE_SETTINGS::SetWorkbookFilename(), simulator(), updatePlotCursors(), and updateSignalsGrid().
Referenced by InitWorkbook().
|
inlineinherited |
Definition at line 103 of file simulator_frame_ui_base.h.
References m_splitterCursors, and m_splitterCursorsOnIdle().
Referenced by m_splitterCursorsOnIdle(), and SIMULATOR_FRAME_UI_BASE().
|
inlineinherited |
Definition at line 85 of file simulator_frame_ui_base.h.
References m_splitterLeftRight, and m_splitterLeftRightOnIdle().
Referenced by m_splitterLeftRightOnIdle(), and SIMULATOR_FRAME_UI_BASE().
|
inlineinherited |
Definition at line 109 of file simulator_frame_ui_base.h.
References m_splitterMeasurements, and m_splitterMeasurementsOnIdle().
Referenced by m_splitterMeasurementsOnIdle(), and SIMULATOR_FRAME_UI_BASE().
|
inlineinherited |
Definition at line 91 of file simulator_frame_ui_base.h.
References m_splitterPlotAndConsole, and m_splitterPlotAndConsoleOnIdle().
Referenced by m_splitterPlotAndConsoleOnIdle(), and SIMULATOR_FRAME_UI_BASE().
|
inlineinherited |
Definition at line 97 of file simulator_frame_ui_base.h.
References m_splitterSignals, and m_splitterSignalsOnIdle().
Referenced by m_splitterSignalsOnIdle(), and SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 4641 of file simulator_frame_ui.cpp.
Referenced by hasMultiRunTrace(), recordMultiRunData(), and updateTrace().
| SIM_TAB * SIMULATOR_FRAME_UI::NewSimTab | ( | const wxString & | aSimCommand | ) |
Create a new simulation tab for a given simulation type.
| aSimCommand | is requested simulation command. |
Definition at line 1323 of file simulator_frame_ui.cpp.
References _, SIM_PLOT_TAB::ApplyPreferences(), SPICE_CIRCUIT_MODEL::CommandToSimType(), SIM_TAB::IsPlottable(), SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_plotNumber, m_preferences, and simulator().
Referenced by InitWorkbook(), loadJsonWorkbook(), and loadLegacyWorkbook().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1594 of file simulator_frame_ui.cpp.
References _, COL_CURSOR_NAME, COL_CURSOR_X, cursor, CURSOR::GetCoords(), GetCurrentSimTab(), SIM_PLOT_TAB::GetTraces(), SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_customCursorsCnt, m_SuppressGridEvents, name, OnModify(), CURSOR::SetCoordX(), text, SPICE_VALUE::ToDouble(), and updatePlotCursors().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1354 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_filter.
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1348 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_filter, and rebuildSignalsGrid().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1686 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT, GetCurrentSimTab(), SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, OnModify(), UpdateMeasurement(), and updateMeasurementsFromGrid().
| void SIMULATOR_FRAME_UI::OnModify | ( | ) |
Definition at line 4695 of file simulator_frame_ui.cpp.
References m_simulatorFrame.
Referenced by AddMeasurement(), AddTrace(), AddTuner(), CreateNewCursor(), DeleteCursor(), onCursorsGridCellChanged(), onMeasurementsGridCellChanged(), onPlotClose(), onPlotCursorUpdate(), onSignalsGridCellChanged(), OnUpdateUI(), RemoveTuner(), SetUserDefinedSignals(), SIMULATOR_FRAME_UI(), and ToggleSmithChart().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 3765 of file simulator_frame_ui.cpp.
References SPICE_SIMULATOR::Command(), GetCurrentSimTab(), OnPlotSettingsChanged(), simulator(), and updateSignalsGrid().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 3744 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_measurementsGrid.
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 3694 of file simulator_frame_ui.cpp.
References OnModify().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 3700 of file simulator_frame_ui.cpp.
References SCHEMATIC::ClearOperatingPoints(), GetCurrentSimTab(), SIM_TAB::GetSimType(), SIMULATOR_FRAME_UI_BASE::m_filter, m_schematicFrame, rebuildSignalsGrid(), rebuildSignalsList(), ST_OP, updatePlotCursors(), and updateSignalsGrid().
|
private |
Definition at line 4165 of file simulator_frame_ui.cpp.
References OnModify(), and updatePlotCursors().
Referenced by SetCursorFormat(), and SIMULATOR_FRAME_UI().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 3805 of file simulator_frame_ui.cpp.
| void SIMULATOR_FRAME_UI::OnPlotSettingsChanged | ( | ) |
Definition at line 3752 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_filter, SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, rebuildMeasurementsGrid(), rebuildSignalsGrid(), rebuildSignalsList(), UpdateMeasurement(), and updatePlotCursors().
Referenced by onPlotChanged().
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1470 of file simulator_frame_ui.cpp.
References COL_CURSOR_1, COL_CURSOR_2, COL_SIGNAL_COLOR, COL_SIGNAL_NAME, COL_SIGNAL_SHOW, COL_Y_SCALE, SIM_PLOT_TAB::DeleteTrace(), SIM_PLOT_TAB::DisableCursor(), SIM_PLOT_TAB::EnableCursor(), GetCurrentSimTab(), SIM_PLOT_TAB::GetTrace(), SIM_PLOT_TAB::GetTraces(), SIM_PLOT_TAB::GetView(), TRACE::GetView(), getViewChoices(), SIM_PLOT_TAB::GetViews(), getYScaleChoices(), getYScaleTargetViews(), TRACE::HasCursor(), m_cursorFormats, m_cursorFormatsDyn, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, m_SuppressGridEvents, name, OnModify(), SIM_PLOT_TAB::ResetScales(), TRACE::SetTraceColour(), TRACE::SetYScaleView(), SPT_UNKNOWN, text, KIGFX::COLOR4D::ToColour(), SIM_PLOT_TAB::UpdatePlotColors(), updatePlotCursors(), updateSignalsGrid(), updateTrace(), SIM_PLOT_TAB::UpdateTraceStyle(), and vectorNameFromSignalName().
Referenced by DeleteCursor().
| void SIMULATOR_FRAME_UI::OnSimRefresh | ( | bool | aFinal | ) |
Definition at line 4230 of file simulator_frame_ui.cpp.
References _, applyUserDefinedSignals(), circuitModel(), SPICE_SIMULATOR::Command(), SPICE_SIMULATOR::CurrentPlotName(), SIM_PLOT_TAB::DeleteTrace(), FlushSimConsole(), GetCurrentSimTab(), SPICE_SIMULATOR::GetRealVector(), SIM_TAB::GetSimType(), SIM_TAB::GetSpicePlotName(), SIM_PLOT_TAB::GetTrace(), SIM_PLOT_TAB::GetTraces(), SIM_PLOT_TAB::GetViews(), info, SIM_TAB::IsPlottable(), SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, m_multiRunState, m_refreshTimer, m_schematicFrame, m_signals, SIMULATOR_FRAME_UI_BASE::m_simConsole, m_simulatorFrame, m_tunerOverrides, m_userDefinedSignals, name, SIM_PLOT_TAB::ResetScales(), SIM_TAB::SetSpicePlotName(), simulator(), SPT_AC_GAIN, SPT_AC_PHASE, SPT_CURRENT, SPT_POWER, SPT_SP_AMP, SPT_SP_MASK, SPT_SP_SMITH, SPT_UNKNOWN, SPT_VOLTAGE, ST_AC, ST_FFT, ST_NOISE, ST_OP, ST_PZ, ST_SP, SPICE_VALUE::ToSpiceString(), UpdateMeasurement(), updatePlotCursors(), updateSignalsGrid(), updateTrace(), vectorNameFromSignalName(), and SPICE_CIRCUIT_MODEL::VectorToSignal().
Referenced by SIMULATOR_FRAME_UI().
| void SIMULATOR_FRAME_UI::OnSimUpdate | ( | ) |
Definition at line 4172 of file simulator_frame_ui.cpp.
References applyTuners(), GetCurrentSimTab(), m_refreshTimer, SIMULATOR_FRAME_UI_BASE::m_simConsole, m_simulatorFrame, prepareMultiRunState(), and REFRESH_INTERVAL.
|
overrideprivatevirtual |
Reimplemented from SIMULATOR_FRAME_UI_BASE.
Definition at line 1732 of file simulator_frame_ui.cpp.
References GetCurrentSimTab(), and OnModify().
|
private |
Definition at line 35 of file legacy_workbook.cpp.
References CURSOR, cursor, TRACE::GetView(), m_cursorFormats, TRACE::SetCursor(), SIM_PLOT_TAB::SetDottedSecondary(), TRACE::SetTraceColour(), SIM_PLOT_TAB::ShowGrid(), and SIM_PLOT_TAB::UpdateTraceStyle().
Referenced by loadLegacyWorkbook().
|
private |
Definition at line 4508 of file simulator_frame_ui.cpp.
References calculateMultiRunSteps(), clearMultiRunState(), m_multiRunState, m_tunerOverrides, m_tuners, TUNER_SLIDER::MULTI, and SIMULATOR_FRAME_UI::MULTI_RUN_STEP::overrides.
Referenced by OnSimUpdate().
|
private |
Rebuild the measurements grid for the current plot.
Definition at line 3779 of file simulator_frame_ui.cpp.
References autoSizeGridColumn(), COL_MEASUREMENT, COL_MEASUREMENT_FORMAT, COL_MEASUREMENT_VALUE, GetCurrentSimTab(), SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, measurement, ST_AC, ST_DC, ST_SP, and ST_TRAN.
Referenced by LoadWorkbook(), and OnPlotSettingsChanged().
|
private |
Rebuild the filtered list of signals in the signals grid.
Definition at line 917 of file simulator_frame_ui.cpp.
References _, autoSizeGridColumn(), COL_CURSOR_1, COL_CURSOR_2, COL_SIGNAL_COLOR, COL_SIGNAL_NAME, COL_SIGNAL_SHOW, COL_Y_SCALE, CTX_SIGNAL, EDA_COMBINED_MATCHER::Find(), GetCurrentSimTab(), TRACE::GetCursor(), mpLayer::GetPen(), SIM_TAB::GetSimCommand(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::GetTrace(), TRACE::GetView(), getViewChoices(), getViewLabel(), getYScaleChoices(), getYScaleLabel(), SIM_PLOT_TAB::IsSmithMode(), m_customCursorsCnt, m_signals, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, m_userDefinedSignals, sortSignals(), SPT_UNKNOWN, ST_AC, ST_FFT, ST_SP, KIGFX::COLOR4D::ToCSSString(), and vectorNameFromSignalName().
Referenced by InitWorkbook(), LoadWorkbook(), OnFilterText(), onPlotClosed(), OnPlotSettingsChanged(), SetUserDefinedSignals(), SIMULATOR_FRAME_UI(), and ToggleSmithChart().
|
private |
Rebuild the list of signals available from the netlist.
Note: this is not the filtered list. See rebuildSignalsGrid() for that.
Definition at line 1180 of file simulator_frame_ui.cpp.
References _, circuitModel(), GetCurrentSimTab(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::IsSmithMode(), m_netnames, m_signals, m_simulatorFrame, name, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES, ST_AC, ST_DC, ST_FFT, ST_NOISE, ST_SP, ST_TRAN, ST_UNKNOWN, and SIM_VALUE::ToSpice().
Referenced by InitWorkbook(), LoadWorkbook(), onPlotClosed(), OnPlotSettingsChanged(), SetUserDefinedSignals(), and ToggleSmithChart().
|
private |
Definition at line 4647 of file simulator_frame_ui.cpp.
References index, m_multiRunState, multiRunTraceKey(), SPT_SP_SMITH, SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::traceType, SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::xRuns, SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::xValues, and SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::yValues.
Referenced by updateTrace().
|
private |
Definition at line 3881 of file simulator_frame_ui.cpp.
References COL_CURSOR_SMITH_END, COL_CURSOR_SMITH_FIRST, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, and m_smithCursorColumns.
Referenced by SaveSettings(), and updateSmithCursorColumns().
| void SIMULATOR_FRAME_UI::RemoveTuner | ( | TUNER_SLIDER * | aTuner | ) |
Remove an existing tuner.
Definition at line 1958 of file simulator_frame_ui.cpp.
References clearMultiRunState(), m_multiRunState, SIMULATOR_FRAME_UI_BASE::m_panelTuners, m_tunerOverrides, m_tuners, and OnModify().
|
private |
Definition at line 3098 of file simulator_frame_ui.cpp.
References cursor, TRACE::GetCursor(), and m_cursorFormatsDyn.
Referenced by SaveWorkbook().
| void SIMULATOR_FRAME_UI::SaveSettings | ( | EESCHEMA_SETTINGS * | aCfg | ) |
Definition at line 805 of file simulator_frame_ui.cpp.
References EESCHEMA_SETTINGS::SIMULATOR::VIEW::cursors_panel_height, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_darkMode, EESCHEMA_SETTINGS::m_Simulator, m_smithCursorColumns, SIMULATOR_FRAME_UI_BASE::m_splitterCursors, SIMULATOR_FRAME_UI_BASE::m_splitterLeftRight, SIMULATOR_FRAME_UI_BASE::m_splitterMeasurements, SIMULATOR_FRAME_UI_BASE::m_splitterPlotAndConsole, SIMULATOR_FRAME_UI_BASE::m_splitterSignals, EESCHEMA_SETTINGS::SIMULATOR::VIEW::measurements_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::plot_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::plot_panel_width, rememberSmithCursorColumns(), EESCHEMA_SETTINGS::SIMULATOR::VIEW::signal_panel_height, EESCHEMA_SETTINGS::SIMULATOR::VIEW::smith_cursor_columns, smithColumnsShown(), EESCHEMA_SETTINGS::SIMULATOR::view, and EESCHEMA_SETTINGS::SIMULATOR::VIEW::white_background.
| bool SIMULATOR_FRAME_UI::SaveWorkbook | ( | const wxString & | aPath | ) |
Save plot, signal, cursor, measurement, etc.
settings to a file.
Definition at line 3130 of file simulator_frame_ui.cpp.
References _, SIM_TAB::GetLastSchTextSimCommand(), mpWindow::GetMarginBottom(), mpWindow::GetMarginLeft(), mpWindow::GetMarginRight(), mpWindow::GetMarginTop(), SIM_TAB::GetSimCommand(), SIM_TAB::GetSimOptions(), SIM_TAB::GetSimType(), m_cursorFormatsDyn, m_customCursorsCnt, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_schematicFrame, m_userDefinedSignals, measurement, name, NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_EVENTS, NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES, res, SaveCursorToWorkbook(), SPICE_SIMULATOR::Settings(), SPICE_SETTINGS::SetWorkbookFilename(), simulator(), KIGFX::COLOR4D::ToCSSString(), SPICE_SIMULATOR::TypeToName(), updateMeasurementsFromGrid(), vectorNameFromSignalId(), and FILEEXT::WorkbookFileExtension.
|
inline |
Definition at line 117 of file simulator_frame_ui.h.
References dummy, m_cursorFormatsDyn, and onPlotCursorUpdate().
| void SIMULATOR_FRAME_UI::SetMeasureFormat | ( | int | aRow, |
| const SPICE_VALUE_FORMAT & | aFormat ) |
Definition at line 1673 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT_FORMAT, SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, and SPICE_VALUE_FORMAT::ToString().
Referenced by UpdateMeasurement().
|
private |
Definition at line 3869 of file simulator_frame_ui.cpp.
References _, COL_CURSOR_R, COL_CURSOR_REACTANCE, COL_CURSOR_RL, COL_CURSOR_VSWR, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, and smithColumnsShown().
Referenced by ShowChangedLanguage(), and updateSmithCursorColumns().
| void SIMULATOR_FRAME_UI::SetSubWindowsSashSize | ( | ) |
Adjust the sash dimension of splitter windows after reading the config settings must be called after the config settings are read, and once the frame is initialized (end of the Ctor)
Definition at line 882 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_splitterCursors, m_splitterCursorsSashPosition, SIMULATOR_FRAME_UI_BASE::m_splitterLeftRight, m_splitterLeftRightSashPosition, SIMULATOR_FRAME_UI_BASE::m_splitterMeasurements, SIMULATOR_FRAME_UI_BASE::m_splitterPlotAndConsole, m_splitterPlotAndConsoleSashPosition, SIMULATOR_FRAME_UI_BASE::m_splitterSignals, m_splitterSignalsSashPosition, and m_splitterTuneValuesSashPosition.
| void SIMULATOR_FRAME_UI::SetUserDefinedSignals | ( | const std::map< int, wxString > & | aSignals | ) |
Definition at line 2091 of file simulator_frame_ui.cpp.
References applyUserDefinedSignals(), SIM_PLOT_TAB::DeleteTrace(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::GetTrace(), SIMULATOR_FRAME_UI_BASE::m_filter, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, m_simulatorFrame, m_userDefinedSignals, OnModify(), rebuildSignalsGrid(), rebuildSignalsList(), SPT_AC_GAIN, SPT_AC_PHASE, SPT_SP_AMP, SPT_SP_SMITH, SPT_UNKNOWN, ST_AC, ST_SP, updatePlotCursors(), updateSignalsGrid(), and vectorNameFromSignalName().
| void SIMULATOR_FRAME_UI::ShowChangedLanguage | ( | ) |
Definition at line 752 of file simulator_frame_ui.cpp.
References _, COL_CURSOR_1, COL_CURSOR_2, COL_CURSOR_NAME, COL_CURSOR_SIGNAL, COL_CURSOR_X, COL_CURSOR_Y, COL_SIGNAL_COLOR, COL_SIGNAL_NAME, COL_SIGNAL_SHOW, COL_Y_SCALE, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, SIMULATOR_FRAME_UI_BASE::m_filter, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, m_tuners, setSmithCursorColumnLabels(), simulator(), and updatePlotCursors().
| std::vector< wxString > SIMULATOR_FRAME_UI::Signals | ( | ) | const |
Definition at line 4214 of file simulator_frame_ui.cpp.
References m_signals, m_userDefinedSignals, and sortSignals().
|
private |
Updates m_signalsGrid cursor widget, column rendering and attributes.
| t | is the type of the enum that holds m_signalsGrid column indexing |
| u | a cursor "ID". Applies a 2 integer offset against the enum indexing |
| r | is a wxGrid widget's row |
Definition at line 2448 of file simulator_frame_ui.cpp.
References COL_CURSOR_1, COL_CURSOR_2, COL_SIGNAL_COLOR, COL_SIGNAL_NAME, COL_SIGNAL_SHOW, COL_Y_SCALE, GetCurrentSimTab(), mpLayer::GetPen(), SIM_PLOT_TAB::GetTrace(), TRACE::GetView(), getViewChoices(), getViewLabel(), getYScaleChoices(), getYScaleLabel(), TRACE::HasCursor(), SIMULATOR_FRAME_UI_BASE::m_signalsGrid, SPT_UNKNOWN, T, KIGFX::COLOR4D::ToCSSString(), and vectorNameFromSignalName().
Referenced by updateSignalsGrid().
| std::vector< wxString > SIMULATOR_FRAME_UI::SimPlotVectors | ( | ) | const |
Definition at line 4203 of file simulator_frame_ui.cpp.
References simulator().
|
private |
Definition at line 3810 of file simulator_frame_ui.cpp.
References m_simulatorFrame.
Referenced by applyTuners(), applyUserDefinedSignals(), DoFourier(), InitWorkbook(), LoadWorkbook(), NewSimTab(), onPlotChanged(), OnSimRefresh(), SaveWorkbook(), ShowChangedLanguage(), SimPlotVectors(), UpdateMeasurement(), and updateTrace().
| void SIMULATOR_FRAME_UI::ToggleDarkModePlots | ( | ) |
Toggle the current S-parameter tab between Smith chart and amplitude/phase views.
Definition at line 3437 of file simulator_frame_ui.cpp.
References SIM_PLOT_COLORS::FillDefaultColorList(), m_darkMode, SIMULATOR_FRAME_UI_BASE::m_plotNotebook, and SIM_PLOT_TAB::UpdatePlotColors().
|
private |
A common toggler for the two main wxSplitterWindow s.
Definition at line 3395 of file simulator_frame_ui.cpp.
Referenced by ToggleSimConsole(), and ToggleSimSidePanel().
| void SIMULATOR_FRAME_UI::ToggleSimConsole | ( | ) |
Definition at line 3419 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_panelConsole, SIMULATOR_FRAME_UI_BASE::m_splitterPlotAndConsole, m_splitterPlotAndConsoleSashPosition, and TogglePanel().
| void SIMULATOR_FRAME_UI::ToggleSimSidePanel | ( | ) |
Definition at line 3431 of file simulator_frame_ui.cpp.
References SIMULATOR_FRAME_UI_BASE::m_sidePanel, SIMULATOR_FRAME_UI_BASE::m_splitterLeftRight, m_splitterLeftRightSashPosition, and TogglePanel().
| void SIMULATOR_FRAME_UI::ToggleSmithChart | ( | ) |
Definition at line 3459 of file simulator_frame_ui.cpp.
References cursor, SIM_PLOT_TAB::DeleteTrace(), SIM_PLOT_TAB::EnableCursor(), GetCurrentSimTab(), TRACE::GetCursor(), SIM_PLOT_TAB::GetDefaultView(), mpLayer::GetName(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::GetTrace(), SIM_PLOT_TAB::GetTraces(), SIM_PLOT_TAB::GetViews(), SIM_PLOT_TAB::IsSmithMode(), SIMULATOR_FRAME_UI_BASE::m_filter, OnModify(), SMITH_MATH::ParseSParamPorts(), rebuildSignalsGrid(), rebuildSignalsList(), SIM_PLOT_TAB::SetSmithMode(), SIM_PLOT_TAB::SmithStashedCursors(), SIM_PLOT_TAB::SmithStashedTraces(), SPT_AC_GAIN, SPT_AC_PHASE, SPT_SP_AMP, SPT_SP_MASK, SPT_SP_SMITH, SPT_UNKNOWN, ST_SP, SMITH_STASHED_CURSOR::subType, updatePlotCursors(), updateSignalsGrid(), updateTrace(), and vectorNameFromSignalName().
| void SIMULATOR_FRAME_UI::UpdateMeasurement | ( | int | aRow | ) |
Update a measurement in the measurements grid.
The user measurement looks something like: MAX V(out)
We need to send ngspice a "MEAS" command with the analysis type, an output variable name, and the signal name. For our example above, this looks something like: MEAS TRAN meas_result_0 MAX V(out)
This is also a good time to harvest the signal name prefix so we know what units to show on the result. For instance, for: MAX P(out) we want to show: 15W
Definition at line 1759 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT, COL_MEASUREMENT_VALUE, SPICE_SIMULATOR::Command(), GetCurrentSimTab(), SPICE_SIMULATOR::GetGainVector(), GetMeasureFormat(), SIM_TAB::GetSimType(), SIMULATOR_FRAME_UI_BASE::m_measurementsGrid, m_simulatorFrame, result, SetMeasureFormat(), simulator(), ST_AC, ST_DC, ST_DISTO, ST_FFT, ST_NOISE, ST_OP, ST_PZ, ST_SENS, ST_SP, ST_TF, ST_TRAN, text, SPICE_VALUE::ToString(), SPICE_SIMULATOR::TypeToName(), updateMeasurementsFromGrid(), and SPICE_VALUE_FORMAT::UpdateUnits().
Referenced by AddMeasurement(), onMeasurementsGridCellChanged(), OnPlotSettingsChanged(), and OnSimRefresh().
|
private |
Definition at line 3724 of file simulator_frame_ui.cpp.
References COL_MEASUREMENT, COL_MEASUREMENT_FORMAT, GetCurrentSimTab(), and SIMULATOR_FRAME_UI_BASE::m_measurementsGrid.
Referenced by AddMeasurement(), onMeasurementsGridCellChanged(), SaveWorkbook(), and UpdateMeasurement().
|
private |
Update the cursor values (in the grid) and graphics (in the plot window).
Definition at line 3952 of file simulator_frame_ui.cpp.
References _, autoSizeGridColumn(), COL_CURSOR_NAME, COL_CURSOR_SIGNAL, COL_CURSOR_X, COL_CURSOR_Y, cursor, fillSmithCursorRow(), CURSOR::GetCoords(), GetCurrentSimTab(), SIM_PLOT_TAB::GetLabelX(), SIM_PLOT_TAB::GetLabelY1(), SIM_PLOT_TAB::GetLabelY2(), SIM_PLOT_TAB::GetLabelY3(), mpLayer::GetName(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::GetTraces(), SIM_PLOT_TAB::GetUnitsX(), SIM_PLOT_TAB::GetUnitsY1(), SIM_PLOT_TAB::GetUnitsY2(), SIM_PLOT_TAB::GetUnitsY3(), SIM_PLOT_TAB::IsSmithMode(), m_cursorFormatsDyn, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_customCursorsCnt, m_simulatorFrame, name, SPT_AC_PHASE, SPT_CURRENT, SPT_POWER, SPT_SP_SMITH, ST_AC, ST_SP, SPICE_VALUE::ToString(), and updateSmithCursorColumns().
Referenced by CreateNewCursor(), DeleteCursor(), LoadWorkbook(), onCursorsGridCellChanged(), onPlotClosed(), onPlotCursorUpdate(), OnPlotSettingsChanged(), onSignalsGridCellChanged(), OnSimRefresh(), SetUserDefinedSignals(), ShowChangedLanguage(), SIMULATOR_FRAME_UI(), and ToggleSmithChart().
|
private |
Update the values in the signals grid.
Definition at line 2558 of file simulator_frame_ui.cpp.
References COL_CURSOR_1, COL_CURSOR_2, COL_SIGNAL_COLOR, COL_SIGNAL_SHOW, COL_Y_SCALE, m_customCursorsCnt, SIMULATOR_FRAME_UI_BASE::m_signalsGrid, and signalsGridCursorUpdate().
Referenced by AddTrace(), CreateNewCursor(), DeleteCursor(), LoadWorkbook(), onPlotChanged(), onPlotClosed(), onSignalsGridCellChanged(), OnSimRefresh(), SetUserDefinedSignals(), and ToggleSmithChart().
|
private |
Add or remove the Smith-only cursor columns, carrying their shown/hidden state across.
Definition at line 3822 of file simulator_frame_ui.cpp.
References applySmithCursorColumns(), COL_CURSOR_R, COL_CURSOR_REACTANCE, COL_CURSOR_RL, COL_CURSOR_SMITH_END, COL_CURSOR_SMITH_FIRST, COL_CURSOR_VSWR, SIMULATOR_FRAME_UI_BASE::m_cursorsGrid, m_smithCursorWidths, rememberSmithCursorColumns(), setSmithCursorColumnLabels(), SMITH_CURSOR_COLS, and smithColumnsShown().
Referenced by updatePlotCursors().
|
private |
Update a trace in a particular SIM_PLOT_TAB.
If the panel does not contain the given trace, then add it.
| aVectorName | is the SPICE vector name, such as "I(Net-C1-Pad1)". |
| aTraceType | describes the type of plot. |
| aPlotTab | is the tab that should receive the update. |
| aView | is the view the trace should be plotted on; if null, the trace's existing view is kept (or the tab's default view is used, for a new trace). Reference impedance of the response port for an S-parameter vector, zero when unresolved. |
Definition at line 2200 of file simulator_frame_ui.cpp.
References circuitModel(), SPICE_SIMULATOR::Command(), SPICE_CIRCUIT_MODEL::CommandToSimType(), SIM_PLOT_TAB::GetDefaultView(), SPICE_SIMULATOR::GetGainVector(), SPICE_SIMULATOR::GetImaginaryVector(), SIM_PLOT_TAB::GetOrAddTrace(), SPICE_SIMULATOR::GetPhaseVector(), SPICE_SIMULATOR::GetRealVector(), SIM_TAB::GetSimCommand(), getSmithPortImpedance(), TUNER_SLIDER::GetSymbolRef(), SIM_PLOT_TAB::GetTrace(), TRACE::GetView(), getXAxisType(), hasMultiRunTrace(), SIM_TAB::IsPlottable(), KiROUND(), m_multiRunState, m_simulatorFrame, SPICE_DC_PARAMS::m_source, SPICE_DC_PARAMS::m_vend, SPICE_DC_PARAMS::m_vincrement, SPICE_DC_PARAMS::m_vstart, multiRunTraceKey(), SIMULATOR_FRAME_UI::MULTI_RUN_STEP::overrides, recordMultiRunData(), SIM_PLOT_TAB::SetTraceData(), simulator(), SPT_AC_GAIN, SPT_AC_PHASE, SPT_POWER, SPT_SP_AMP, SPT_SP_SMITH, SPT_Y_AXIS_MASK, ST_AC, ST_DC, ST_FFT, ST_NOISE, ST_SP, ST_TRAN, SPICE_VALUE::ToDouble(), SPICE_VALUE::ToSpiceString(), ToStdString(), SIM_PLOT_TAB::UpdateSmithReferenceImpedance(), SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::xRuns, SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::xValues, and SIMULATOR_FRAME_UI::MULTI_RUN_TRACE::yValues.
Referenced by AddTrace(), onSignalsGridCellChanged(), OnSimRefresh(), and ToggleSmithChart().
| void SIMULATOR_FRAME_UI::UpdateTunerValue | ( | const SCH_SHEET_PATH & | aSheetPath, |
| const KIID & | aSymbol, | ||
| const wxString & | aRef, | ||
| const wxString & | aValue ) |
Safely update a field of the associated symbol without dereferencing the symbol.
| aSymbol | id of the symbol needing updating |
| aId | id of the symbol field |
| aValue | new value of the symbol field |
Definition at line 1910 of file simulator_frame_ui.cpp.
References _, LIB_SYMBOL::AppendParentEmbeddedFiles(), SIM_LIB_MGR::CreateModel(), DisplayErrorMessage(), SCHEMATIC::GetCurrentVariant(), SCH_SYMBOL::GetEmbeddedFiles(), SCH_SYMBOL::GetFields(), SCH_SYMBOL::GetLibSymbolRef(), SIM_MODEL::PARAM::info, m_schematicFrame, model, SIM_MODEL::PARAM::INFO::name, SCH_SHEET_PATH::ResolveItem(), and SIM_LIB_MGR::SetFilesStack().
|
inline |
Definition at line 82 of file simulator_frame_ui.h.
References m_userDefinedSignals.
|
private |
Get the simulator output vector name for a given signal name and type.
For user-defined signals we display the user-oriented signal name such as "V(out)-V(in)", but the simulator vector we actually have to plot will be "user0" or some-such.
Definition at line 1381 of file simulator_frame_ui.cpp.
References _, getNoiseSource(), SIM_TAB::GetSimType(), SIM_PLOT_TAB::IsSmithMode(), m_userDefinedSignals, name, SPT_AC_GAIN, SPT_AC_PHASE, SPT_CURRENT, SPT_POWER, SPT_SP_AMP, SPT_SP_MASK, SPT_SP_SMITH, SPT_VOLTAGE, ST_NOISE, ST_SP, and vectorNameFromSignalId().
Referenced by loadJsonWorkbook(), loadLegacyWorkbook(), onSignalsGridCellChanged(), OnSimRefresh(), rebuildSignalsGrid(), SetUserDefinedSignals(), signalsGridCursorUpdate(), and ToggleSmithChart().
|
private |
Definition at line 449 of file simulator_frame_ui.h.
|
private |
Definition at line 489 of file simulator_frame_ui.h.
Referenced by CustomCursorsInit(), onSignalsGridCellChanged(), and parseTraceParams().
|
private |
Definition at line 492 of file simulator_frame_ui.h.
Referenced by CreateNewCursor(), CustomCursorsInit(), DeleteCursor(), GetCursorFormat(), loadJsonWorkbook(), onSignalsGridCellChanged(), SaveCursorToWorkbook(), SaveWorkbook(), SetCursorFormat(), and updatePlotCursors().
|
protectedinherited |
Definition at line 57 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::applySmithCursorColumns(), SIMULATOR_FRAME_UI::fillSmithCursorRow(), SIMULATOR_FRAME_UI::onCursorsGridCellChanged(), SIMULATOR_FRAME_UI::rememberSmithCursorColumns(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::setSmithCursorColumnLabels(), SIMULATOR_FRAME_UI::ShowChangedLanguage(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), SIMULATOR_FRAME_UI_BASE(), SIMULATOR_FRAME_UI::updatePlotCursors(), SIMULATOR_FRAME_UI::updateSmithCursorColumns(), SIMULATOR_FRAME_UI::~SIMULATOR_FRAME_UI(), and ~SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 509 of file simulator_frame_ui.h.
Referenced by CreateNewCursor(), CustomCursorsInit(), DeleteCursor(), loadJsonWorkbook(), onCursorsGridCellChanged(), rebuildSignalsGrid(), SaveWorkbook(), updatePlotCursors(), and updateSignalsGrid().
|
private |
Definition at line 503 of file simulator_frame_ui.h.
Referenced by DarkModePlots(), LoadSettings(), SaveSettings(), SIMULATOR_FRAME_UI(), and ToggleDarkModePlots().
|
protectedinherited |
Definition at line 52 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::InitWorkbook(), SIMULATOR_FRAME_UI::LoadWorkbook(), SIMULATOR_FRAME_UI::OnFilterMouseMoved(), SIMULATOR_FRAME_UI::OnFilterText(), SIMULATOR_FRAME_UI::onPlotClosed(), SIMULATOR_FRAME_UI::OnPlotSettingsChanged(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), SIMULATOR_FRAME_UI::ShowChangedLanguage(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), SIMULATOR_FRAME_UI_BASE(), SIMULATOR_FRAME_UI::ToggleSmithChart(), and ~SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 61 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::AddMeasurement(), SIMULATOR_FRAME_UI::DeleteMeasurement(), SIMULATOR_FRAME_UI::GetMeasureFormat(), SIMULATOR_FRAME_UI::onMeasurementsGridCellChanged(), SIMULATOR_FRAME_UI::onPlotChanging(), SIMULATOR_FRAME_UI::OnPlotSettingsChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::rebuildMeasurementsGrid(), SIMULATOR_FRAME_UI::SetMeasureFormat(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), SIMULATOR_FRAME_UI_BASE(), SIMULATOR_FRAME_UI::UpdateMeasurement(), SIMULATOR_FRAME_UI::updateMeasurementsFromGrid(), SIMULATOR_FRAME_UI::~SIMULATOR_FRAME_UI(), and ~SIMULATOR_FRAME_UI_BASE().
|
private |
SPICE expressions need quoted versions of the netnames since KiCad allows '-' and '/' in netnames.
Definition at line 483 of file simulator_frame_ui.h.
Referenced by clearMultiRunState(), hasMultiRunTrace(), OnSimRefresh(), prepareMultiRunState(), recordMultiRunData(), RemoveTuner(), and updateTrace().
|
private |
Definition at line 487 of file simulator_frame_ui.h.
Referenced by applyUserDefinedSignals(), and rebuildSignalsList().
|
protectedinherited |
Definition at line 54 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 45 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::IsSimConsoleShown(), SIMULATOR_FRAME_UI_BASE(), and SIMULATOR_FRAME_UI::ToggleSimConsole().
|
protectedinherited |
Definition at line 56 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 39 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 60 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 58 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 51 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 62 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::AddTuner(), SIMULATOR_FRAME_UI::RemoveTuner(), and SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 44 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::ApplyPreferences(), SIMULATOR_FRAME_UI::DeleteCursor(), SIMULATOR_FRAME_UI::GetCurrentSimTab(), SIMULATOR_FRAME_UI::GetSimTab(), SIMULATOR_FRAME_UI::GetSimTabIndex(), SIMULATOR_FRAME_UI::IsPlotOwnedByOtherTab(), SIMULATOR_FRAME_UI::loadJsonWorkbook(), SIMULATOR_FRAME_UI::loadLegacyWorkbook(), SIMULATOR_FRAME_UI::LoadWorkbook(), SIMULATOR_FRAME_UI::NewSimTab(), SIMULATOR_FRAME_UI::SaveWorkbook(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), SIMULATOR_FRAME_UI::ShowChangedLanguage(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), SIMULATOR_FRAME_UI_BASE(), SIMULATOR_FRAME_UI::ToggleDarkModePlots(), and ~SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 504 of file simulator_frame_ui.h.
Referenced by NewSimTab(), and SIMULATOR_FRAME_UI().
|
protectedinherited |
Definition at line 42 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 506 of file simulator_frame_ui.h.
Referenced by ApplyPreferences(), LoadSettings(), and NewSimTab().
|
private |
Definition at line 505 of file simulator_frame_ui.h.
Referenced by OnSimRefresh(), OnSimUpdate(), and SIMULATOR_FRAME_UI().
|
private |
Definition at line 450 of file simulator_frame_ui.h.
|
private |
Definition at line 447 of file simulator_frame_ui.h.
Referenced by InitWorkbook(), LoadWorkbook(), onPlotClosed(), OnSimRefresh(), SaveWorkbook(), SIMULATOR_FRAME_UI(), and UpdateTunerValue().
|
protectedinherited |
Definition at line 48 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::IsSimSidePanelShown(), SIMULATOR_FRAME_UI_BASE(), and SIMULATOR_FRAME_UI::ToggleSimSidePanel().
|
protectedinherited |
Definition at line 49 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 452 of file simulator_frame_ui.h.
Referenced by OnSimRefresh(), rebuildSignalsGrid(), rebuildSignalsList(), and Signals().
|
protectedinherited |
Definition at line 53 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::CreateNewCursor(), SIMULATOR_FRAME_UI::CustomCursorsInit(), SIMULATOR_FRAME_UI::DeleteCursor(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIMULATOR_FRAME_UI::ShowChangedLanguage(), SIMULATOR_FRAME_UI::signalsGridCursorUpdate(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), SIMULATOR_FRAME_UI_BASE(), SIMULATOR_FRAME_UI::updateSignalsGrid(), SIMULATOR_FRAME_UI::~SIMULATOR_FRAME_UI(), and ~SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 47 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::AddTrace(), SIMULATOR_FRAME_UI::FlushSimConsole(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::OnSimUpdate(), and SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 446 of file simulator_frame_ui.h.
Referenced by circuitModel(), FlushSimConsole(), InitWorkbook(), loadJsonWorkbook(), loadLegacyWorkbook(), OnModify(), OnSimRefresh(), OnSimUpdate(), rebuildSignalsList(), SetUserDefinedSignals(), simulator(), SIMULATOR_FRAME_UI(), UpdateMeasurement(), updatePlotCursors(), and updateTrace().
|
protectedinherited |
Definition at line 40 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 46 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 43 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 63 of file simulator_frame_ui_base.h.
Referenced by SIMULATOR_FRAME_UI::AddTuner(), and SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 494 of file simulator_frame_ui.h.
Referenced by applySmithCursorColumns(), LoadSettings(), rememberSmithCursorColumns(), and SaveSettings().
|
private |
Definition at line 495 of file simulator_frame_ui.h.
Referenced by updateSmithCursorColumns().
|
protectedinherited |
Definition at line 55 of file simulator_frame_ui_base.h.
Referenced by m_splitterCursorsOnIdle(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::SetSubWindowsSashSize(), and SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 501 of file simulator_frame_ui.h.
Referenced by LoadSettings(), and SetSubWindowsSashSize().
|
protectedinherited |
Definition at line 38 of file simulator_frame_ui_base.h.
Referenced by m_splitterLeftRightOnIdle(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::SetSubWindowsSashSize(), SIMULATOR_FRAME_UI_BASE(), and SIMULATOR_FRAME_UI::ToggleSimSidePanel().
|
private |
Definition at line 498 of file simulator_frame_ui.h.
Referenced by LoadSettings(), SetSubWindowsSashSize(), and ToggleSimSidePanel().
|
protectedinherited |
Definition at line 59 of file simulator_frame_ui_base.h.
Referenced by m_splitterMeasurementsOnIdle(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::SetSubWindowsSashSize(), and SIMULATOR_FRAME_UI_BASE().
|
protectedinherited |
Definition at line 41 of file simulator_frame_ui_base.h.
Referenced by m_splitterPlotAndConsoleOnIdle(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::SetSubWindowsSashSize(), SIMULATOR_FRAME_UI_BASE(), and SIMULATOR_FRAME_UI::ToggleSimConsole().
|
private |
Definition at line 499 of file simulator_frame_ui.h.
Referenced by LoadSettings(), SetSubWindowsSashSize(), and ToggleSimConsole().
|
protectedinherited |
Definition at line 50 of file simulator_frame_ui_base.h.
Referenced by m_splitterSignalsOnIdle(), SIMULATOR_FRAME_UI::SaveSettings(), SIMULATOR_FRAME_UI::SetSubWindowsSashSize(), and SIMULATOR_FRAME_UI_BASE().
|
private |
Definition at line 500 of file simulator_frame_ui.h.
Referenced by LoadSettings(), and SetSubWindowsSashSize().
|
private |
Definition at line 502 of file simulator_frame_ui.h.
Referenced by LoadSettings(), and SetSubWindowsSashSize().
| int SIMULATOR_FRAME_UI::m_SuppressGridEvents |
Definition at line 443 of file simulator_frame_ui.h.
Referenced by onCursorsGridCellChanged(), onSignalsGridCellChanged(), and SIMULATOR_FRAME_UI().
|
private |
Definition at line 455 of file simulator_frame_ui.h.
Referenced by applyTuners(), clearMultiRunState(), OnSimRefresh(), prepareMultiRunState(), and RemoveTuner().
|
private |
Definition at line 454 of file simulator_frame_ui.h.
Referenced by AddTuner(), applyTuners(), prepareMultiRunState(), RemoveTuner(), and ShowChangedLanguage().
|
private |
Definition at line 453 of file simulator_frame_ui.h.
Referenced by applyUserDefinedSignals(), loadJsonWorkbook(), loadLegacyWorkbook(), LoadWorkbook(), OnSimRefresh(), rebuildSignalsGrid(), SaveWorkbook(), SetUserDefinedSignals(), Signals(), UserDefinedSignals(), and vectorNameFromSignalName().