Jeff Young
8b1318c92f
Update associated data structures after changing trace colour.
Also removes likely benign but never-the-less useless grid even processing
during rebuilding of the grids.
Fixes https://gitlab.com/kicad/code/kicad/issues/13956
3 years ago
Jeff Young
9ce18dffdd
Better startup experience for simulator.
Pre-load signals list (and plot panel if there is an schText simulation
command).
Also fixes a bug where the workbook was getting dirtied on open because
the events would fire after the dirty flag had been cleared.
3 years ago
Jeff Young
1e756dbdd8
Save cursor positions in sim workbook.
3 years ago
Jeff Young
83dd06e5d1
Allow opening of workbook when simulation frame is opened.
This involved splitting creation of traces from setting of trace
data.
Also renamed SIM_WORKBOOK to SIM_NOTEBOOK. This class is a subclass
of wxAiuNotebook and represents the collection of simulation plot tabs.
It is NOT the same thing as a simulation workbook, which contains other
stuff such as measurements, plotted signals, colours, etc.
This also removes a bunch of "friend" declarations.
3 years ago
Jeff Young
84c72b087c
Simplify (and fix) logic for starting new simulations.
Fixes https://gitlab.com/kicad/code/kicad/issues/13853
3 years ago
Jeff Young
9d3a3d705d
ADDED simulation measurements.
3 years ago
Jeff Young
2a5bb71fbd
ADDED operating point text variables for labels and symbols.
ADDED formatting for cursors and operationg points
Also fixes a bunch of bugs to make the new cursors work with .ac sims.
Fixes https://gitlab.com/kicad/code/kicad/issues/11253
Fixes https://gitlab.com/kicad/code/kicad/issues/6965
3 years ago
Jeff Young
09822c7f18
ADDED direct access to signals & cursors.
ADDED differential cursors.
Fixes https://gitlab.com/kicad/code/kicad/issues/4447
Fixes https://gitlab.com/kicad/code/kicad/issues/6221
3 years ago
Jeff Young
6bc89ee180
Don't disable run when there's no command: just ask for a command.
3 years ago
Jeff Young
a1a1a49729
On-the-fly language updates for simulator window.
Fixes https://gitlab.com/kicad/code/kicad/issues/13357
3 years ago
Jeff Young
b000d68def
Move simulator to tool framework.
3 years ago
Jeff Young
0e778f17db
Add context menu for simulation cursors.
Fixes https://gitlab.com/kicad/code/kicad/issues/13580
3 years ago
Jeff Young
098d2b30a2
Support for simulation options in workbook and simulation command dlg.
Fixes https://gitlab.com/kicad/code/kicad/issues/13524
Fixes https://gitlab.com/kicad/code/kicad/issues/13523
Fixes https://gitlab.com/kicad/code/kicad/issues/13431
3 years ago
Jeff Young
7fbad183db
Gracefully handle Quit when simulator window is open.
3 years ago
Jeff Young
ef6001bfe6
Use consistent terminology: opposite of Add is Remove.
Note: violating string freeze because this change should ease translation,
not make it harder.
3 years ago
Jeff Young
3767716f20
Menu IDs of 0 don't work on Mac.
3 years ago
Jeff Young
6f44468385
Fix more lifetime issues in simulator tuning.
Fixes https://gitlab.com/kicad/code/kicad/issues/13257
3 years ago
Jeff Young
bfd3b40672
Bug fixes for tuning.
1) Don't save SCH_ITEM pointers in long-lived structures. Use KIIDs
instead.
2) Use the correct sheet for the referenced item, not the current sheet.
3 years ago
Jeff Young
9c129ed03f
More dialog adjustments for wx 3.2. Also renames files to match dialog.
3 years ago
Jeff Young
8e4cd1e1a6
Check for sheet directive changes when running simulations.
Fixes https://gitlab.com/kicad/code/kicad/issues/10486
3 years ago
Mikolaj Wielgus
9b6cc6c505
Sim: Fix tuners
3 years ago
Mikolaj Wielgus
6450ec6b85
Sim: Spice netlist exporter rewrite
Rewrite the spice exporter to work with the new simulation model
architecture and data model, with many bugfixes related to the latter
two along the way.
4 years ago
Sylwester Kocjan
05fbe47a1b
eeschema: two fixes for simulation tuners
- fix irrelevant warning message box when tuners moved
too quickly and simulation was slow
- fix for rerun simulation when tuning and result tab was changed
4 years ago
Sylwester Kocjan
4719fdc9bf
eeschema: rename m_exporter to m_circuitModel
4 years ago
Sylwester Kocjan
f5dedd77c6
eeschema,sim: add SIMULATOR and SIM_MODEL interface
SIMULATOR has now an Attach() method, which should be called
with proper SIMULATION_MODEL that should be simulated, before calling Run()
Concrete class of SIMULATION_MODEL for ngspice is NGSPICE_CIRCUIT_MODEL,
renamed from NETLIST_EXPORTER_PSPICE_SIM. DIALOG_SIM_SETTINGS relies
on above mentioned object, so it was added as an argument of the constructor.
4 years ago
Sylwester Kocjan
53ccd8bd67
eeschema,sim: refactor NETLIST_EXPORTER_PSPICE_SIM creation
4 years ago
Mikolaj Wielgus
2dbc6ef6ca
If present, tune Spice_Model instead of Value
Fixes https://gitlab.com/kicad/code/kicad/issues/9880
4 years ago
Seth Hillbrand
9e760512ac
Update schematic when saving tuned value
Also avoids a known(!) crash when the existing item has been deleted
while tuning.
Fixes https://gitlab.com/kicad/code/kicad/issues/9502
4 years ago
Sylwester Kocjan
f9c5c97f74
eeschema, sim: fix wrong names of the signals
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9062
4 years ago
Mikolaj Wielgus
44ea3a75f2
Simulator: Use last workbook path stored in .kicad_pro as initial path in dialogs
Previously this was done using a static variable, which was not loaded
from .kicad_pro on simulator launch, causing unexpected behavior
Fixes https://gitlab.com/kicad/code/kicad/issues/8799
4 years ago
Mikolaj Wielgus
c6a4f25538
Use wx events to update simulator title, start tools and menu items grayed out
4 years ago
Mikolaj Wielgus
3bafe6d6c9
Gray out unavailable simulator menu items, use wxUpdateUIEvent
4 years ago
Mikolaj Wielgus
4f2856b345
Gray out unavailable tools in simulator toolbar
Cures some of the dialogitis plaguing the simulator.
4 years ago
Mikolaj Wielgus
4f384085e2
Remove m_simulator null-check -- most of code already assumes it exists
4 years ago
Mikolaj Wielgus
28531a982d
Simulator: Use SIM_WORKBOOK in place of wxAuiNotebook
SIM_WORKBOOK is now a subclass of wxAuiNotebook, removing the problem of
having to maintain two separate workbook states.
4 years ago
Wayne Stambaugh
fbc135e69f
Rename SCH_COMPONENT to SCH_SYMBOL.
4 years ago
Sylwester Kocjan
917e329bdf
eeschema: remove TRACE_DESC from SIM_WORKBOOK
5 years ago
Mikolaj Wielgus
33c6bdd121
Preserve plot panel order in simulator notebook
5 years ago
Mikolaj Wielgus
b9fd18d150
Minor UI changes, display workbook in title and some fixes
5 years ago
Mikolaj Wielgus
5410510bd4
Spice sim: remember last simulation, remove welcome page
Fixes https://gitlab.com/kicad/code/kicad/issues/8019
5 years ago
Wayne Stambaugh
acec6ad7fc
Spice simulator: add Ngspce model behavior mode settings.
ADDED: Ngspice simulator model behavior mode settings for PSpice, LTSpice,
PSpice and LTSpice, and HSpice.
Fixes https://gitlab.com/kicad/code/kicad/issues/5810
5 years ago
Sylwester Kocjan
959ae73a01
Eeschema,sim: extract plot colors to new class
5 years ago
Wayne Stambaugh
4619d5e112
Fix more broken Doxygen comment specifiers.
5 years ago
Sylwester Kocjan
6a48e21eb2
simulator: update dialog to handle R, I & TEMP DC sweeps
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2370
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6195
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2386
5 years ago
Jeff Young
6654c03041
Embarking on the next adventure: component -> symbol.
5 years ago
Mark Roszko
89e74140eb
Save file / window states for kicad project locally
5 years ago
Sylwester Kocjan
fdccdd5cb9
Eeschema: adding .op SPICE simulation support
ADDED new tab on simulation settings dialog, which allows to run .op analysis.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2368
6 years ago
Jeff Young
d69ebfae49
Push tool framework base down into TOOL_HOLDER.
This allows us to use it outside of EDA_BASE_FRAMEs (in this case, in
PANEL_PREVIEW_3D.)
6 years ago
Jon Evans
e59a3d981e
Implement a new settings framework across all of KiCad
CHANGED: Settings are now stored in versioned sub-directories
ADDED: First-run dialog for migrating settings from a previous version
CHANGED: Settings are now stored as JSON files instead of wxConfig-style INI files
CHANGED: Color settings are now all stored in a separate settings file
CHANGED: The symbol editor and footprint editor now have their own settings files
CHANGED: Color settings are no longer exposed through BOARD object
CHANGED: Page layout editor now uses Eeschema's color scheme
Settings are now managed through a central SETTINGS_MANAGER held by PGM_BASE.
Existing settings will be migrated from the wxConfig format on first run of each application.
Per-application settings are now stored in one class for each application.
6 years ago
jean-pierre charras
0e51ed32f9
ADDED: Sim plot panel: option to plot on a white background or a black background.
6 years ago