Maciej Suminski
67573f15be
Do not use double component primitives in Spice netlist exporter
...
Fixes: lp:1617768
* https://bugs.launchpad.net/kicad/+bug/1617768
2016-08-30 14:25:56 +02:00
Johannes Maibaum
b87bac22c7
Simulator: Fix probe and tune cursors on OSX.
2016-08-30 10:48:40 +02:00
jp-charras
69e4231303
Sch editor and Simulator: close the simulator frame when the schematic editor is closed, to avoid crash, due to the fact the simulator can try to access to a no more existing frame..
2016-08-29 19:47:08 +02:00
jp-charras
26b1c732de
Simulator: add simulator icon, and colored icons to identify more easily traces in trace list and cursor list.
2016-08-29 11:39:54 +02:00
Niki Guldbrand
67230ac8e7
Keep Source tree clean
...
* Move all generated files to the build tree during build so the source
tree is kept clean.
Signed-off-by: Niki Guldbrand <niki.guldbrand@gmail.com>
2016-08-26 17:25:12 -04:00
jean-pierre charras
7e3aedda82
Slightly modify the way DIALOG_SIM_SETTINGS m_settingsDlg is created in SIM_PLOT_FRAME frame: for an obscure reason, if it is created in ctor SIM_PLOT_FRAME, m_settingsDlg has an annoying issue on Windows: when shown, the parent SIM_PLOT_FRAME is sent to the background. When created outside the ctor, this issue is gone.
2016-08-20 19:51:33 +02:00
jean-pierre charras
2456db3817
Simulator: Make a few strings translatable.
2016-08-20 17:37:51 +02:00
jean-pierre charras
13cfe74956
Simulator dialogs: fix minimal sizes and best sizes.
2016-08-20 17:25:51 +02:00
jean-pierre charras
c0b1e4cd38
Do not allow spaces in component name (value field) in component library editor, in dialogs (Edit field, Create component).
...
In component libraries, a space in name breaks the library, and is not allowed.
2016-08-19 18:42:39 +02:00
Maciej Suminski
7ea120c2a1
Spice model editor by default looks for libraries in the project directory when there is no library assigned
2016-08-19 17:33:26 +02:00
Maciej Suminski
e1d20dd6e3
NETLIST_EXPORTER_PSPICE skips removed pins when processing a list of sorted pins.
...
NETLIST_EXPORTER marks removed duplicates by setting them to NULL in m_SortedComponentPinList vector.
2016-08-19 17:32:30 +02:00
jean-pierre charras
ea59ce40e1
sch_legacy_plugin.cpp: fix compil warnings about incorrect return type.
2016-08-19 17:31:46 +02:00
Maciej Suminski
42f6cf33a1
Unbind REPORTER from NGSPICE before deleting
2016-08-19 16:39:46 +02:00
Maciej Suminski
fe30985742
Do not delete the NGSPICE singleton
2016-08-19 16:33:31 +02:00
Maciej Suminski
2a6b8f153b
NGSPICE as a singleton
...
One cannot call ngSpice_Init() twice without unloading the dll. When calling
ngSpice_Init, we pass a pointer to a NGSPICE instance and thus it cannot be changed.
When any of the callback function is called with a stale pointer everything crashes.
2016-08-19 15:51:19 +02:00
Wayne Stambaugh
bcfce68daa
Fix debug build warning due to improper debug macro.
2016-08-19 08:53:06 -04:00
Wayne Stambaugh
eaa7f3f114
Eeschema: implement schematic I/O plugin symbol library parser.
...
* Write SCH_LEGACY_PLUGIN_CACHE object for handling the legacy symbol library
file format.
* Write legacy symbol library file parser.
* Write code to transfer cache to PART_LIB object so existing library save
code can be used for round trip testing. This is temporary until Eeschema
is updated to use the plugin for library management rather than PART_LIB.
* Add LIB_XXXX object helper functions where there was no way to set the member
variables of an object.
* Give the cache object friend status to some object where there are incredibly
byzantine ways of setting text in LIB_XXXX objects.
2016-08-18 19:23:10 -04:00
Maciej Suminski
cac571c056
Initialize ngspice only once
2016-08-18 18:10:00 +02:00
Maciej Suminski
ad3c2ac4ea
NGSPICE_NETLIST_EXPORTER: Display a message if there is a missing library. Wrap library file names in quotes.
2016-08-18 18:06:26 +02:00
Simon Richter
bfb6e0bbb2
Convert remaining occurences of stri[n]cmp to str[n]casecmp.
...
This also reverses the substitution logic if strcasecmp is missing (config.h.cmake)
2016-08-16 10:27:09 +02:00
jean-pierre charras
01d3c72dda
Cosmetic enhancement: add a dismiss icon to clarification menu "title" (the "title" is also the close menu command)
2016-08-15 20:22:54 +02:00
Maciej Suminski
41b75f0105
Added a missing header in netlist_exporter_spice.h
2016-08-15 17:16:54 +02:00
Maciej Suminski
43d93682a2
Fix locale in NGSPICE methods using LOCALE_IO instead of setlocale.
...
More information: https://lists.launchpad.net/kicad-developers/msg25763.html
2016-08-15 15:52:07 +02:00
Maciej Suminski
75f8b20493
libngspice is linked at compile time
2016-08-15 13:52:13 +02:00
jean-pierre charras
5ed19b6e82
Dialogs for simulator: cosmetic enhancements, make them translatable and resizable. Remove 2 printf used in debug.
2016-08-15 09:53:15 +02:00
Maciej Suminski
497b2a9442
CMake module for libngspice
2016-08-12 15:56:51 +02:00
jean-pierre charras
6e5628ceaf
Avoid simulator crash if the simulation was not run, when using most of main menu commands, due to a null pointer not tested.
2016-08-12 15:36:43 +02:00
jean-pierre charras
dd395a6854
Fix deprecated and shadowed var compil warnings
2016-08-12 11:00:58 +02:00
Maciej Suminski
18e99fa30f
Fixed a crash with certain shared library versions
2016-08-11 14:42:21 +02:00
Maciej Suminski
6b3584ce9b
fxup system ngspice.h
2016-08-11 14:42:19 +02:00
Maciej Suminski
6bfdfd5226
Look for libraries in the project path
2016-08-11 14:42:19 +02:00
Maciej Suminski
0cb1e80e00
Activate eeschema on tune/probe
2016-08-11 14:42:19 +02:00
Maciej Suminski
dfb5c6bfdd
Do not update values if simulation is rerun Otherwise sometimes the signal list might be cleared and a new list is not yet available, resulting in loss of signals and cursors.
2016-08-11 14:42:19 +02:00
Maciej Suminski
d15eef06f9
Removed redundant debugging info
2016-08-11 14:42:18 +02:00
Maciej Suminski
2c29133c57
Use system ngspice.h file
2016-08-11 14:42:18 +02:00
Maciej Suminski
0667b7ba63
Fixed ngspice freeze when there is an error in the simulated netlist Does not work with current ngspice head, it has to be compiled from the official master branch.
2016-08-11 14:42:18 +02:00
Maciej Suminski
8227cd6d80
Do not recreate the simulator every time simulation is run
2016-08-11 14:42:17 +02:00
Maciej Suminski
eeeb3e0a9a
Simulator code formatting and clean up
2016-08-11 14:42:17 +02:00
Maciej Suminski
957c6ec417
Removed hard limit for ngspice netlist
2016-08-11 14:42:17 +02:00
Maciej Suminski
0a6390701d
NGSPICE uses a more convenient function to generate DLL name
2016-08-11 14:42:16 +02:00
Maciej Suminski
46ecfd8139
Resized simulator dialogs
2016-08-11 14:42:16 +02:00
Johannes Maibaum
c78462c4f5
sim: Modifications to compile the simulator on OSX.
2016-08-11 14:42:15 +02:00
Maciej Suminski
c9a1b45666
Fixed probe & tune cursors under Windows.
2016-08-11 14:42:15 +02:00
Tomasz Wlostowski
80d8dd7205
sim: default to decade frequency sweep for ac analysis
2016-08-11 14:42:15 +02:00
Tomasz Wlostowski
1930cd4d66
sim: display labels on current scale when only currents are added to transient plot
2016-08-11 14:42:14 +02:00
Maciej Suminski
e452992a6c
Cursor centering fix
2016-08-11 14:42:14 +02:00
Maciej Suminski
2b041425e5
Resized Spice model dialog
2016-08-11 14:42:14 +02:00
Maciej Suminski
ca36f15fee
Temporary disable cursor centering
2016-08-11 14:42:14 +02:00
Maciej Suminski
6d7a7a3233
KICAD_SPICE CMake flag
2016-08-11 14:42:13 +02:00
Maciej Suminski
2c576afdf3
Fixed menu entries
2016-08-11 14:42:13 +02:00
Maciej Suminski
ca13dc93b1
Support for simulation workbooks
2016-08-11 14:42:12 +02:00
Maciej Suminski
7b81516b61
Fixed SIM_PLOT_FRAME::CurrentPlot()
2016-08-11 14:42:12 +02:00
Tomasz Wlostowski
b20f941bd0
sim: hopefully final version of plot axis unit/suffix handling.
2016-08-11 14:42:10 +02:00
Maciej Suminski
01d18bad97
Save simulation command directive for every plot
2016-08-11 14:42:10 +02:00
Maciej Suminski
02e4252fcd
A few fixes for DIALOG_SIM_SETTINGS
2016-08-11 14:42:10 +02:00
Maciej Suminski
fb56420654
Do not store Spice vector names, but regenerate them
2016-08-11 14:42:10 +02:00
Maciej Suminski
ed8f555331
Remove plots that are invalid after component removal
2016-08-11 14:42:09 +02:00
Maciej Suminski
672fd76995
Remove tuners for components that were removed
2016-08-11 14:42:09 +02:00
Maciej Suminski
06287e4986
Display an error message for unannotated schematics
2016-08-11 14:42:09 +02:00
Maciej Suminski
741ae10a97
Improved Spice model dialog for sources Now user can specify both DC/AC & transient analysis specifications at once.
2016-08-11 14:42:09 +02:00
Maciej Suminski
53d772989a
Store relative library path if possible
2016-08-11 14:42:08 +02:00
Maciej Suminski
39caddd22b
Parsing sim command directives
2016-08-11 14:42:08 +02:00
Maciej Suminski
dbf0fd6156
Better normalization rules for SPICE_VALUE
2016-08-11 14:42:07 +02:00
Maciej Suminski
bf758dce3e
Tuners are common for all plots
2016-08-11 14:42:07 +02:00
Maciej Suminski
5772938a71
New cursor shows up in the center, can be dragged by its axis
2016-08-11 14:42:07 +02:00
Maciej Suminski
2f8f92cf0a
Closing tabs with middle button click I could not find a way to make tab close button work in wxWidgets..
2016-08-11 14:42:07 +02:00
Maciej Suminski
fccf71aadd
Change 'Run Simulation' button icon when simulation is running
2016-08-11 14:42:06 +02:00
Maciej Suminski
8306cd3b9b
Fixed tuners layout after a tuner is removed
2016-08-11 14:42:06 +02:00
Maciej Suminski
2740556505
Fix for Spice library parser
2016-08-11 14:42:06 +02:00
Tomasz Wlostowski
e691565fe3
sim: updated label generation code to match changes in the mathplot api
2016-08-11 14:42:04 +02:00
Maciej Suminski
7d268d2608
Reset scales upon simulation relaunch
2016-08-11 14:42:04 +02:00
Maciej Suminski
9d8b40b93d
Reset scales when a plot is removed
2016-08-11 14:42:03 +02:00
Maciej Suminski
ba3ce9b566
Fixed tuner autoplacement
2016-08-11 14:42:03 +02:00
Maciej Suminski
bc433764fe
Fixed layout proportions
2016-08-11 14:42:02 +02:00
Tomasz Wlostowski
36297f84c3
sim: further locale hacks, fixed plot/welcome message sizing
2016-08-11 14:42:02 +02:00
Tomasz Wlostowski
8e4ae1968f
sim: working on improved UX [wip]
2016-08-11 14:42:01 +02:00
Tomasz Wlostowski
2bcd8af25c
sim: fix trailing zero removal
2016-08-11 14:42:01 +02:00
Tomasz Wlostowski
bba57097b7
sim: use C locale for SPICE simulation. Added error callback
2016-08-11 14:42:01 +02:00
Tomasz Wlostowski
1cb7f665fb
sim: tuner slider now located in a nested wxPanel
2016-08-11 14:42:00 +02:00
Tomasz Wlostowski
8c14f2f6b1
sim: working on UX
2016-08-11 14:42:00 +02:00
Tomasz Wlostowski
ec1b8be528
sim: fixed build errors & locale issues
2016-08-11 14:41:58 +02:00
Maciej Suminski
7406aad8ea
Display current plots using the current axis
2016-08-11 14:41:57 +02:00
Maciej Suminski
ce59b282d3
Display both axis names in the cursor list
2016-08-11 14:41:56 +02:00
Maciej Suminski
6c53aba680
Validators for Spice model dialog
2016-08-11 14:41:56 +02:00
Maciej Suminski
973a3d7bcb
Fixed a crash when a signal was removed
2016-08-11 14:41:56 +02:00
Maciej Suminski
07b451f4b1
Do not draw cursors outside margins
2016-08-11 14:41:55 +02:00
Maciej Suminski
cdf758b173
Automatically update cursor coordinates
2016-08-11 14:41:55 +02:00
Maciej Suminski
b25781814d
Fixed cursors
2016-08-11 14:41:55 +02:00
Maciej Suminski
65a0327e85
Better normalization rules for SPICE_VALUE
2016-08-11 14:41:55 +02:00
Maciej Suminski
65c7520544
Bulletproof Simulation settings dialog
2016-08-11 14:41:54 +02:00
Maciej Suminski
16fec4d73e
Strip comas from a Spice value
2016-08-11 14:41:54 +02:00
Maciej Suminski
920cf09ac1
Fixed plot for DC sweep analysis
2016-08-11 14:41:53 +02:00
Maciej Suminski
38810930ec
Removed redundant TRACE_* classes
2016-08-11 14:41:53 +02:00
Maciej Suminski
dfeb5385f3
Disable current signals in all analyses but transient
2016-08-11 14:41:53 +02:00
Maciej Suminski
806b862a5e
Corrected Spice vector name for voltages
2016-08-11 14:41:53 +02:00
Maciej Suminski
114e3638e7
Renamed tabs in Spice model dialog
2016-08-11 14:41:52 +02:00
Maciej Suminski
5fdc32b79a
AC analysis plots using linear frequency scale
2016-08-11 14:41:52 +02:00
Maciej Suminski
324d27711a
Hide OP & noise analysis, scale settings for AC in settings dialog
2016-08-11 14:41:52 +02:00
Maciej Suminski
0f993ba98c
Current probing
2016-08-11 14:41:52 +02:00
Maciej Suminski
6e05d1656b
Bugfix for NETLIST_EXPORTER_PSPICE::GetSpiceField()
2016-08-11 14:41:51 +02:00
Maciej Suminski
caef84d622
SPICE_SIMULATOR::GetXAxis()
2016-08-11 14:41:51 +02:00
Maciej Suminski
27a7a9b1a5
Spice fields enum values renamed from SPICE_* to SF_*
2016-08-11 14:41:51 +02:00
Maciej Suminski
3ebc2494a7
Minor fix in NETLIST_EXPOTER_PSPICE
2016-08-11 14:41:51 +02:00
Maciej Suminski
cf28e843ba
Fix for crash when AC simulation is relaunched
2016-08-11 14:41:50 +02:00
Maciej Suminski
e5604fee1c
SPICE_VALUE bugfix
2016-08-11 14:41:50 +02:00
Maciej Suminski
ef45cd696d
Refresh plots after simulation is relaunched
2016-08-11 14:41:50 +02:00
Tomasz Wlostowski
e8d6a42e1a
simulator: working on magnitude/phase plots
2016-08-11 14:41:49 +02:00
Tomasz Wlostowski
e5bf70996b
eeschema: migrate SIM_PLOT_PANEL to improved wxMathPlot [wip]
2016-08-11 14:41:49 +02:00
Maciej Suminski
d869771f04
Display an error message if ngspice DLL is missing
2016-08-11 14:41:48 +02:00
Maciej Suminski
132e30081b
Disabled assert for unknown Spice primitives
2016-08-11 14:41:47 +02:00
Maciej Suminski
a717194b1e
Enable tuner for RLC components only
2016-08-11 14:41:45 +02:00
Maciej Suminski
92a3e405c2
Tuner tool.
2016-08-11 14:41:45 +02:00
Maciej Suminski
fead9ca831
TUNER_SLIDER widget
2016-08-11 14:41:44 +02:00
Maciej Suminski
4f9a418694
Moved SPICE_VALUE to a separate source file
2016-08-11 14:41:43 +02:00
Maciej Suminski
f62a6425a3
Changed the simulator code license to GPLv3+
2016-08-11 14:41:43 +02:00
Maciej Suminski
51f0564119
Signals are added using a separate dialog
2016-08-11 14:41:42 +02:00
Maciej Suminski
b897af7eb9
Added a few checks for SIM_PLOT_FRAME to improve robustness
2016-08-11 14:41:41 +02:00
Maciej Suminski
3999ff1973
Resized DIALOG_SIM_SETTINGS
2016-08-11 14:41:41 +02:00
Maciej Suminski
6bfe6342fc
Simulator fixes for Windows
2016-08-11 14:41:41 +02:00
Maciej Suminski
9acdedcb85
Improved library management in simulator Now it also gathers information from Spice_Lib_File fields
2016-08-11 14:41:40 +02:00
Maciej Suminski
1a6e048afc
Pressing Enter accepts changes in Simulation settings dialog
2016-08-11 14:41:40 +02:00
Maciej Suminski
246a43baf0
Spice model editor dialog
2016-08-11 14:41:40 +02:00
Maciej Suminski
3e2061158e
SIM_PLOT_FRAME: Do not update plots if the just run a different type of simulation
2016-08-11 14:41:39 +02:00
Maciej Suminski
4dc62e061b
SPICE_VALUE class to handle Spice value expressions
2016-08-11 14:41:39 +02:00
Maciej Suminski
63e8e17cce
Added missing class declaration in sch_component.h
2016-08-11 14:41:38 +02:00
Maciej Suminski
3a9dcca32f
Enum SPICE_FIELD
2016-08-11 14:41:38 +02:00
Maciej Suminski
01f40e258c
More elegant way for checking Spice_Netlist_Enabled value
2016-08-11 14:41:37 +02:00
Maciej Suminski
1c74e27366
NETLIST_EXPORTER_PSPICE fix
2016-08-11 14:41:37 +02:00
Maciej Suminski
06463252d7
wxMathPlot: Limited zooming and panning
2016-08-11 14:41:37 +02:00
Maciej Suminski
a83d4802f9
Load Spice directives from schematics when Sim settings dialog is launched
2016-08-11 14:41:36 +02:00
Maciej Suminski
78526ee913
Additional options for netlist exporter (fix passive values, library include paths)
2016-08-11 14:41:36 +02:00
Maciej Suminski
822f436231
Removed unused DIALOG_SIMULATE_PLOT
2016-08-11 14:41:35 +02:00
Maciej Suminski
6580a355ab
Strip 'stdout' & 'stderr' from ngspice log
2016-08-11 14:41:35 +02:00
Maciej Suminski
90b6112c5d
Rearranged SIM_PLOT_FRAME, changed console log from wxRichTextCtrl to wxTextCtrl
2016-08-11 14:41:35 +02:00
Maciej Suminski
e90fcaa6d9
New type of simulation opens a new plot
2016-08-11 14:41:35 +02:00
Maciej Suminski
fe92630f16
Fixes for DC sweep directive generated by Simulator settings dialog
2016-08-11 14:41:34 +02:00
Maciej Suminski
ab8c88f10b
SIM_TYPE enum
2016-08-11 14:41:34 +02:00
Maciej Suminski
ee1adcd92c
Fix for noise directive generated by Simulation settings dialog
2016-08-11 14:41:32 +02:00
Maciej Suminski
0da13052dd
SPICE_SIMULATOR interface allows to obtain different types of plots (mag, phase, real, imag)
2016-08-11 14:41:31 +02:00
Maciej Suminski
183fb24112
Fixed string for transient simulation directive
2016-08-11 14:41:31 +02:00
Maciej Suminski
c5227b7279
Fix: use correct node numbers in noise simulation directive
2016-08-11 14:41:31 +02:00
Maciej Suminski
3c909e2c32
Allow typing zeroes in Simulation settings dialog
2016-08-11 14:41:31 +02:00
Maciej Suminski
d055692cf3
Renamed 'Simulate' to 'Simulator' in menu
2016-08-11 14:41:30 +02:00
Maciej Suminski
2b1784cfc6
Simulation settings combo boxes are filled with net/power source choices
2016-08-11 14:41:30 +02:00
Maciej Suminski
95ca3914ce
Fields in simulation settings dialog are treated as invalid when empty
2016-08-11 14:41:29 +02:00
Maciej Suminski
96dcee81fe
Modified Spice netlist exporter to run in two passes Now it creates a list of Spice items, so they can be used by other objects, instead of directly dumping them.
2016-08-11 14:41:29 +02:00
Maciej Suminski
a2b16ae640
Initial 'Simulation settings' dialog
2016-08-11 14:41:29 +02:00
Maciej Suminski
17294aaf6a
Simulation plot CSV & PNG export
2016-08-11 14:41:28 +02:00
Maciej Suminski
1d4fe279db
Menu entries to toggle legend & coordinates
2016-08-11 14:41:27 +02:00
Maciej Suminski
8c138312fb
Cursors are updated on request instead of using update UI events Previously CPU was busy updating the list of cursors even though nothing was changing.
2016-08-11 14:41:27 +02:00
Maciej Suminski
e364cfdbac
Renamed wxEVT_SIM* events to EVT_SIM*
2016-08-11 14:41:27 +02:00
Maciej Suminski
fa4ba69661
Simplified SIM_PLOT_FRAME layout Removed unnecessary panels & sizers, changed wxAuiNotebook to wxNotebook
2016-08-11 14:41:26 +02:00
Maciej Suminski
433f934dc1
Simulation frame displays a list of cursors and their values
2016-08-11 14:41:26 +02:00
Maciej Suminski
f3fabeb9fb
Right click context menu for signals (including adding cursors)
2016-08-11 14:41:25 +02:00
Maciej Suminski
88adcc894a
SIM_PLOT_FRAME::CurrentPlot() made public
2016-08-11 14:41:25 +02:00
Maciej Suminski
cd25e62052
CURSOR does not take mpWindow* in constructor
2016-08-11 14:41:24 +02:00
Maciej Suminski
0b0885f6cd
Removed 'Parameters' listbox, expanded 'Signals' list
2016-08-11 14:41:24 +02:00
Maciej Suminski
8b61bb4acc
Signals toggling in SIM_PLOT_PANEL
2016-08-11 14:41:24 +02:00
Maciej Suminski
ba99dfdabf
CURSOR class for simulation plot
2016-08-11 14:41:22 +02:00
Maciej Suminski
24bccb00d6
Menu event handlers for simulation plot frame
2016-08-11 14:41:22 +02:00
Maciej Suminski
51906625ee
Replaced sim plotting widget with wxMathPlot
2016-08-11 14:41:21 +02:00
Maciej Suminski
951d16c655
Fixed Spice netlist export options and added a few new flags
2016-08-11 14:41:20 +02:00
Maciej Suminski
5795a2dbf3
Fixed Spice netlist exporter
2016-08-11 14:41:20 +02:00
Maciej Suminski
68e3daec6e
Removed probe-related stuff from NETLIST_EXPORTER_PSPICE
2016-08-11 14:41:20 +02:00
Maciej Suminski
9f3324bac7
Changed the way ngspice is executed Previously it was run in a wxThread, but it did not allow to issue commands while the simulation is running. If you check ngspice shared library source code, then you will discover "bg_*" commands that executes commands in background, so the simulator still can be controlled.
2016-08-11 14:41:19 +02:00
Maciej Suminski
544da3feda
Handle 'Simulate' button label in idle event handler
2016-08-11 14:41:19 +02:00
Maciej Suminski
aea29fc730
Update already plotted signals upon simulation run
2016-08-11 14:41:18 +02:00
Maciej Suminski
38042ac9e0
NGSPICE class minor cleanup
2016-08-11 14:41:17 +02:00
Maciej Suminski
8fdb9e8307
SIM_PLOT_FRAME::NewPlot() -> SIM_PLOT_FRAME::NewPlotPanel()
2016-08-11 14:41:17 +02:00
Maciej Suminski
8a6e6f2d36
Do not add a trace if it is already plotted
2016-08-11 14:41:16 +02:00
Maciej Suminski
cb463f48b1
Add a signal on double click
2016-08-11 14:41:16 +02:00
Maciej Suminski
0d764741f9
Simulation commands moved from eeschema menu to SIM_PLOT_FRAME buttons
2016-08-11 14:41:16 +02:00
Maciej Suminski
751a335503
Minor SIM_PLOT_FRAME redesign
2016-08-11 14:41:16 +02:00
Maciej Suminski
2b1d2d7bd1
Fixed Kiway problems in SIM_PLOT_FRAME
2016-08-11 14:41:15 +02:00
Maciej Suminski
40224f48fb
Minor simulation plot style changes
2016-08-11 14:41:14 +02:00
Maciej Suminski
781a12222c
Fixed simulation plot legend
2016-08-11 14:41:14 +02:00
Maciej Suminski
0261a0e59c
Axis autorange
2016-08-11 14:41:14 +02:00
Maciej Suminski
91d1f7135b
SIM_PLOT_PAINTER class
2016-08-11 14:41:12 +02:00
Maciej Suminski
ae5424c44a
Probe cursor (TODO: has to be discussed)
2016-08-11 14:41:12 +02:00
Maciej Suminski
ac17165947
Initial version of simulator probe tool
2016-08-11 14:41:11 +02:00
Maciej Suminski
aa3e251cdd
Sim plots get consecutive numbers
2016-08-11 14:41:11 +02:00
Maciej Suminski
112cf074f6
Heuristics to correct passive component values
2016-08-11 14:41:11 +02:00
Maciej Suminski
a4868a0e5a
Minor fixes to debug output
2016-08-11 14:41:10 +02:00
Maciej Suminski
b6eab191d0
Added a button to add Spice fields to a schematic component
2016-08-11 14:41:10 +02:00
Maciej Suminski
0d8c095215
Fill the signal list box when a simulation is finished
2016-08-11 14:41:10 +02:00
Maciej Suminski
171e649313
Fixed type names (NET_INDEX_MAP & PROBE_LIST)
2016-08-11 14:41:10 +02:00
Maciej Suminski
402a438339
NETLIST_EXPORTER_PSPICE adjusts paths for .include directives
2016-08-11 14:41:09 +02:00
Maciej Suminski
9ef2cb94bf
Simulation executes in a separate thread
2016-08-11 14:41:07 +02:00
Maciej Suminski
e72b54a6e0
Code cleanup
2016-08-11 14:41:07 +02:00
Maciej Suminski
9e2485ea97
SPICE_SIMULATOR: Code formatting & clean up
2016-08-11 14:41:07 +02:00
Maciej Suminski
9748b65a6d
str[n]icmp -> str[n]casecmp
2016-08-11 14:41:06 +02:00
Maciej Suminski
b4d9e7ee99
Fixed asserts in DIALOG_LIB_EDIT_TEXT_BASE.
2016-08-11 14:41:04 +02:00
Maciej Suminski
9dc681b198
Build fixes (for mathgl2)
2016-08-11 14:41:04 +02:00
Tomasz Wlostowski
7b05dc2a13
Fbp files for simulator
2016-08-11 14:41:04 +02:00
Tomasz Wlostowski
095af6e77a
wip
2016-08-11 14:41:01 +02:00
Tomasz Wlostowski
f1f69979e6
ngspice: something starts to work
2016-08-11 14:41:01 +02:00
Tomasz Wlostowski
2dd53b6a43
spice wip
2016-08-11 14:40:57 +02:00
jean-pierre charras
3ca757b653
Eeschema, new legay plugin reader: ensure component flags (mainly used in edition) are cleared after loading from file.
2016-08-01 09:11:31 +02:00
Wayne Stambaugh
9c5e872a4f
Eeschema: fix complex hierarchy file bug. (fixes lp:1605872)
...
* Add project path to sheet file name and extension so the test to see if a
file is loaded by another sheet works correctly.
2016-07-24 20:52:40 -04:00
Wayne Stambaugh
78e4787297
Eeschema: more schematic part library plugin prep work.
...
* Remove unused sort and make upper case options from PART_LIB::GetEntryNames()
and PART_LIB::GetEntryTypePowerNames() since they were never used anywhere in
the code. All comparisons are case sensitive and the array of names is always
sorted.
2016-07-20 14:11:14 -04:00
jean-pierre charras
defac5272b
refinemenst in dialogs and OSX Cancel button fix
2016-07-18 17:54:41 +02:00
jean-pierre charras
f83a76a970
Eeschema: dialogs: incorrect sizes fixes and osx copy text fix
2016-07-18 09:04:13 +02:00
jean-pierre charras
7253ba28df
Eeschema: dlg size fixes and osx fixes
2016-07-16 13:25:07 +02:00
jean-pierre charras
3cea754d90
Eeschema: dlg size fixes and osx fixes
2016-07-16 12:54:55 +02:00
Wayne Stambaugh
959450beed
Eeschema: component library plugin prep work.
...
* Remove unused functions in the PART_LIB and PART_LIBS objects.
2016-07-13 16:36:16 -04:00
Dick Hollenbeck
c2b8a4ee43
Move from class INSPECTOR as the EDA_ITEM::Visit() callback interface to a std::function
...
callback. This improves conciseness and encourages use of Visit() due to the lower cost
of entry in C++.
2016-07-12 15:05:54 -04:00
Wayne Stambaugh
98ad5096b0
Eeschema: add saving schematic files to schematic plugin.
...
* Add SCH_PLUGIN::Save() for current file format and code for saving all
SCH_XXX objects.
* Add function to SCH_FIELD to get the position of the field in the component
not the position added to the component position which is what GetPosition()
does. This was required because saving the component field expects position
of the field sans the position of the component.
* Remove public members from BITMAP_BASE object and fix all associated
code.
* Fix the never ending coding policy violations found making these changes.
2016-07-11 15:48:46 -04:00
Wayne Stambaugh
3bdca9a821
Eeschema: schematic I/O manager bug fixes.
...
* Create a new dummy root sheet and screen when the schematic fails to load
which was causing Eeschema to crash.
* Remove conversion from UTF8 to wxString left over from a previous change
which hopefully will fix an OSX build error.
* Fix parsing of text objects to handle version 1 schematic files.
* Fix parsing of component fields to handle version 1 schematic files.
* Don't throw a parse error when a version 1 schematic file doesn't end with
$EndSCHEMATC.
2016-07-07 09:09:32 -04:00
Wayne Stambaugh
61e886e956
Eeschema: fix bug in release builds.
...
* Change debug message macro from wxASSERT to wxCHECK so that the primary
object token name gets called instead of compiled away on release builds.
2016-07-06 09:52:47 -04:00
Wayne Stambaugh
4ed346ea64
Eeschema: initial schematic I/O plugin.
...
* Factor out PROPERTIES object from the PCB plugin code and move it into
common so it can be used by both the Pcbnew and Eeschema plugins.
* Add schematic I/O plugin manager for loading and saving schematic and
component library files.
* Add initial attempt at a parser for current schematic file format. This
parser will be infinitely more strict than the current parser which is very
forgiving in what it parses.
* Make minor changes to the base bitmap class to support the new parser.
* Add find root sheet support to sheet object to allow fetching the root
sheet from any sheet in the stack.
2016-07-06 05:22:56 -04:00
Simon Richter
6614e5ef5d
Eeschema: rewrite loop conditions in SCH_SCREEN::SchematicCleanUp().
...
* These are a tiny bit more readable and do not depend on all branches to
correctly advance the loop variable.
2016-06-30 11:15:46 -04:00
Simon Richter
1b2fd6a382
Replace BOOST_FOREACH with C++11 range based for.
2016-06-29 16:07:55 -04:00
Simon Richter
da5699de0a
Replace boost::shared_ptr with std::shared_ptr.
2016-06-29 11:09:55 -04:00
Simon Richter
527c0eff8e
Eeschema: ERC dialog code improvements.
...
* Rename the "net", "lastNet" and "nextNet" variables to "item", "lastItem"
and "nextItem", respectively, because these refer to netlist items, not
nets.
* This adds a suffix "Idx" to the indexes into the list, and introduces local
copies of the pointers to the objects we are looking at, in order to have a
shorter way of addressing them.
* The ERC code depends on netlist items to be sorted by net code, so verify
that in debug builds. While this condition is stricter than necessary, it
should still hold with the current code, and provide a good canary if a
change to the sorting code might break ERC.
2016-06-28 08:52:22 -04:00
Simon Richter
10c8dae794
Eeschema: improve merging of overlapping SCH_LINEs.
...
* Use std::min and std::max to determine the overlapping line end points.
2016-06-27 19:54:46 -04:00
Simon Richter
4bf72be9e4
Eeschema: minor improvements to SCH_LINE::MergeOverlap() function.
...
* Do not statically initialize candidates vector.
* Preset candidates vector allocation size since it is always the same.
2016-06-27 14:17:39 -04:00
Dick Hollenbeck
e47f0df068
Cleanups
...
* coding standard fixes
* library part not library component (no such thing as a library component)
* string concatenation fix
* and an inline harmless debug/dump function
2016-06-24 12:55:54 +02:00
Chris Pavlina
81144c2476
Move hotkey list from Preferences menu to Help menu
2016-06-11 21:22:13 -04:00
Chris Pavlina
9eef653625
Remove legacy option to zoom to selection on middle mouse button
...
This feature was not reliably available: neither pl_editor nor GAL supported
it. It has been replaced over the past few commits with a new zoom-to-selection
tool available in all applications and modes.
2016-06-11 19:37:43 -04:00
Chris Pavlina
c13f80bb49
Remove unneeded compile option KICAD_KEEPCASE
...
Libraries have been 100% case-sensitive for a while now; there is no longer a
need to keep this option around. This will change nothing except for any
stragglers still manually specifying this old option.
2016-06-10 23:15:02 -04:00
Chris Pavlina
8c01318141
Add zoom-to-selection tool
2016-06-08 07:19:53 -04:00
jean-pierre charras
37deba60c3
Fix shadowed vars (in microstrip.cpp) and deprecated compil warnings.
2016-06-08 09:28:19 +02:00
Simon Richter
715eddf68b
Code cleanup: remove dead code, add comment.
2016-06-08 08:32:01 +02:00
Simon Richter
961fe1abe8
Eeschema: fix spelling "propageNetCode" -> "propagateNetCode"
2016-06-07 21:07:49 -04:00
jean-pierre charras
11c369ee1b
Fix minor compil warnings (deprecated warnings and shadowed local vars warnings)
2016-06-07 17:33:12 +02:00
jean-pierre charras
6d1e904334
Code cleanup: Remove outdated decimils to/from iu defines and conversion functions (decimils are no more in use since a long time).
...
Remove convert_from_iu.h file, only used for one define, and containing brokenand duplicate defines. Only convert_to_biu.h is now used.
2016-06-05 13:49:25 +02:00
jean-pierre charras
93e61e7a2e
Minors fixes: dialog_print_using_printer.cpp: fix a Coverity warning and very minor coding style issue. xsl scripts: add bom2grouped_csv.xsl (from a contributor) and fix minor issues.
2016-06-03 08:32:24 +02:00
Wayne Stambaugh
0ccd3bb3c2
Remove deleted plugin file bom_cvs.xsl from install list.
2016-06-01 20:34:24 -04:00
jean-pierre charras
0a6245e5cc
Remove not working bom_cvs.xsl file. Fix minor compil warnings in x3dmodelparser.cpp.
2016-06-01 18:42:01 +02:00
Marvin Schmidt
92a3743590
Avoid C99 style compound statement
2016-05-28 12:57:24 -04:00
Simon Richter
96ec9db5d6
Add missing C++ stdlib headers
...
The GCC standard library headers often include other headers, which makes
some code compile that forgets to include several headers.
2016-05-28 12:46:29 -04:00
jean-pierre charras
1e0a72df0b
Eeschema: fix a minor issue: when deleting a connection, the screen was not always redrawn, and the deleted objects were still shown, until the next screen redraw.
2016-05-20 10:09:08 +02:00
jean-pierre charras
e2d4118470
Eechema, Component editor: Fix a bug in Pin properties dialog: a parameter used to draw the pin in preview canvas was incorrect, due to code change in draw pin.
2016-05-19 18:38:36 +02:00
Simon Wells
74611440b5
Fix mirrored graphics when moving SCH_BITMAP on OS X
...
Fixes: https://bugs.launchpad.net/kicad/+bug/1529163
2016-05-17 17:56:20 -04:00
Dick Hollenbeck
daa0d391de
Enhancement in eeschema: Footprint field immediately updated after footprint picking (from footprint viewer) in the eeschema LIB_PART or component text field properties editors
2016-05-17 20:02:49 +02:00
Dick Hollenbeck
544554086e
Eeschema: make footprint and datasheet initially invisible, when creating a component
2016-05-16 20:59:35 +02:00
Chris Pavlina
0f407a756c
Pull existing settings into Doxygen module
2016-05-12 15:45:47 -04:00
Chris Pavlina
84d3fbfd68
Remove MaxUndoItems, make devel option DevelMaxUndoItems
...
Begin documenting configuration keys in Doxygen
2016-05-12 12:51:32 -04:00
jean-pierre charras
6a7544a2ca
Fix a few deprecated compil warnings in dialogs generated by wxformbuilder
2016-05-11 10:51:07 +02:00
Chris Pavlina
540275fe44
OS X: Disable full-screen cursor
...
This feature cannot work reliably for reasons explained in lp:1463505. Remove
the option on OS X builds and force cursor to the small one.
https://bugs.launchpad.net/kicad/+bug/1463505
> Bernhard Stegmaier (stegmaier) wrote on 2016-01-14:
>
> As far as I see from the code this is no bug but done on intention.
>
> The reason probably is that on OSX in the legacy canvas you don't have the
> XOR-drawing as on other platforms. To the best of my knowledge, this would
> mean that on every mouse move you would have to repaint the whole window just
> to get rid of the "old" cross.
>
> So, I would say this is a clear "won't fix".
> We could think of just removing/disabling the button in the legacy canvas.
2016-05-10 23:33:24 -04:00
jean-pierre charras
ec096cc1d2
Fix an issue in LOCALE_IO class, used to switch to/back locale "C" when reading/writing files: the back to locale was broken, and created issues in countries using the ',' as fp separator, especially when the non default language was used.
...
It was reported in many bugs.
2016-05-10 09:11:09 +02:00
jean-pierre charras
bfeb61abef
Fix a few shadowed local variables and deprecated warnings in dialogs (using a very recent wxformbuilder version).
2016-05-10 08:56:03 +02:00
Matthew Petroff
db54f3e7a7
Correct multiple UI spelling errors
2016-05-02 10:01:43 -04:00
Wayne Stambaugh
18c8f50b1d
Component library editor field properties dialog improvements.
...
* Remove fixed dialog size setting to allow sizers to do thier job.
* General spacing and layout improvements.
2016-04-29 13:37:36 -04:00
Wayne Stambaugh
0a263d2f2b
Fix value field editing bug in component library editor. (fixes lp:1576363)
...
* Allow editing value field for power components in the component library editor.
2016-04-29 12:01:09 -04:00
jean-pierre charras
c1f0ab91a2
Code cleaning and coding style fix.
2016-04-23 17:44:17 +02:00
Mikael Arguedas
5d6f8d1edc
Eeschema: unify schematic and component library block mirror commands.
2016-04-22 10:15:16 -04:00
Wayne Stambaugh
ce593f9784
Eeschema: fix broken component reference field in hierarchies. (fixes lp:1572812)
2016-04-22 09:29:47 -04:00
jean-pierre charras
53c031257d
Fix a few shadowed local vars, and coding style issues.
2016-04-22 12:44:08 +02:00
jean-pierre charras
32fc9198c3
Minor fix: dialog_edit_component: Fix incorrect tool tip for the button which runs the footprint browser or the datasheet browser (previous was the same tooltip, regardless the purpose of this button), depending on the selected field.
2016-04-17 17:15:26 +02:00
jean-pierre charras
f0e2628e40
Very minor changes: remove a few local shadowed variables (mainly local variables having the same name in the same function) detected using " -Wshadow" gcc compil option ( No bug, just a better code readability )
2016-04-16 11:57:42 +02:00
unknown
698197ec8d
Eeschema: better position of texts (pin texts and labels), taking in account the line thickness.
2016-04-16 09:49:17 +02:00
jean-pierre charras
95962cd2ba
Very minor changes: minor coding style fixes, and remove a few local shadowed variables (mainly local variables having the same name in the same function) detected using " -Wshadow" gcc compil option ( No bug, just a better code readability )
2016-04-12 17:50:42 +02:00
Wayne Stambaugh
0f89576f72
Eeschema: fix wxFileDialog assertion when importing component. (fixes lp:1558486)
...
* wxFileDialog ctor was setting the file name using the most recently used
path which was incorrect. Set the file path parameter to the most recently
used path and the file name parameter to an empty string.
* Remove last used import path and use the application wide most recently
path instead.
* Remove last used export path and use the application wide most recently
path instead.
2016-04-08 09:05:07 -04:00
jean-pierre charras
5e41763d83
Fix a few Coverity warnings and typo is dialogs
2016-04-07 13:09:31 +02:00
Wayne Stambaugh
30f5a7a7e1
Eeschema: fix field edit dialog power component warning bug.
...
* Prevent power component warning from being shown when edit normal component
fields.
* Make text edit dialog size itself instead of using a fixed size.
* Improve the alignment and spacing in the text edit dialog.
2016-04-04 10:31:34 -04:00
Wayne Stambaugh
76d099b337
Eeschema: fix illegal field characters causing corrupt schematic files on Linux. (fixes lp:1529358)
...
* Refactor edit one field dialogs to use validators and transfer data to and
from window functions.
* Add code to DIALOG_SHIM to handle validation and transfer functions since
the base dialog class code is not called by EndQuasiModal().
* Add custom validator class for filtering field text control characters.
* Add new field validator to edit schematic component dialog field text
control.
* Add new field validator to edit fields in library editor dialog field
text control.
* Make a few LIB_PART member functions const.
2016-04-02 08:25:44 -04:00
unknown
78d96afe28
Eeschema: enhancement on Windows: adds a show console option for BOM plugin execution (needed for instance by python plugins which are run with pythonw)
2016-03-31 08:28:16 +02:00
Chris Pavlina
5ff3bbb96e
eeschema: move part by a point on the grid (lp:1563587)
2016-03-30 14:19:32 -04:00
Chris Pavlina
fd3835eb4f
eeschema: fix component search result ranking
2016-03-30 10:23:37 -04:00
Chris Pavlina
67b4ba0225
eeschema: improve RemoveBacktracks() algorithm (lp:1562521)
...
Still isn't perfect, but removes an actual bug. It's still possible to get
weird things if you try hard, but they're not corrupt and don't trip
assertions. Consider a temporary fix.
2016-03-29 20:25:15 -04:00
jean-pierre charras
92ce9c1193
Rework on class EDA_TEXT and related classes and draw text functions. More work: remove useless or duplicate code (from legacy graphic text plot functions). Move basic_gal code to separate files.
2016-03-25 09:26:11 +01:00
jean-pierre charras
df1d10c824
Eeschema: Fix issue in multiline text properties dialog editor: on wxWidgets 3.1, the enter key closes the dialog instead of inserting a new line in text.
2016-03-24 13:28:50 +01:00
jean-pierre charras
bc699c8d8f
Rework on class EDA_TEXT and related classes and draw functions. More work. Eechema: in rotate texts: redraw the full screen to avoid garbage on screen.
2016-03-23 13:16:27 +01:00
jean-pierre charras
30d72045e7
Rework on class EDA_TEXT and related classes and draw functions (Note: this is a work in progress):
...
* remove duplicate code between draw functions and STROKE_FONT used in GAL. Use only STROKE_FONT methods in draw, plot and test DRC function for texts. It remove slightly different shapes between GAL and other calculations.
* fix incorrect bounding box for texts with overbar. Especially noticeable for texts with overbar inside a copper zone in Pcbnew.
* fix a few minor other bugs related to graphic texts.
2016-03-23 08:41:47 +01:00
jean-pierre charras
8a753adc33
eeschema: Remove incorrect assert on Edit with Library Editor
2016-03-23 08:05:59 +01:00
Chris Pavlina
db8c72cc9d
Fix mistake in r6642 / git:bb9f1b0
2016-03-22 21:35:44 -04:00
Chris Pavlina
bb9f1b00cd
Fix graphics rendering on RTL systems (lp:1559545)
...
wx mirrors graphics by default on RTL systems; it is necessary to individually
set graphics canvases to LTR mode to avoid this.
2016-03-22 14:53:50 -04:00
Chris Pavlina
d618585269
eeschema: fix printf format string
2016-03-22 11:17:02 -04:00
jean-pierre charras
99d18faca9
Change the way main editor frames are managed by Kicad: before this change, they had the Kicad manager frame as parent frame, and it creates a few issues:
...
- When the Kicad manager is iconized, all other child frames are iconized (normal wxWidgets behavior)
- For viewer frames in modal mode, there is a more annoying issue: they have the wxFLOAT_ON_PARENT frame style on unix, and wxSTAY_ON_TOP on Windows.
wxFLOAT_ON_PARENT frame style is incorrect (although on most WM it works) because the parent frame (Kicad manager Frame) is not the caller. It is usually a main editor frame.
It does not work on Windows (wx STAY_ON_TOP is used).
* Now each editor frame has a null parent.
Therefore iconizing the Kicad manager frame does not iconize other frames.
* Viewer frames have null parent in normal mode and the caller parent in modal mode (therefore wxFLOAT_ON_PARENT frame style is always and correctly used)
* References to opened/closed main frames are no more managed by the (complicated) kicad code. Instead of, a non critical and more easy to understand code just uses FindWindowByName to know if a main window exists or not.
These changes do not fix all issues about Kicad frames brought to the foreground or the background, but it fixes a few issues, and AFAIK do not add other issues.
2016-03-21 17:36:06 +01:00
unknown
82b3744ddd
fix very minor issue: Eeschema creating extra whitespace in .lib
2016-03-20 15:53:02 +01:00
jean-pierre charras
b116318df9
Eeschema: fix a stupid bug which prevents the netlister to output the right pin electrical type in netlist.
2016-03-15 12:29:16 +01:00
Wayne Stambaugh
b7c974b2c4
MinGW64 build warning fixes.
...
* On MinGW64 and possibly other 64-bit platforms, time_t is defined as a long
long unsigned integer but all of the scanf and printf format specifiers used
to save and load the schematic files are %lX which is a long unsigned integer
which causes compile warnings. Add casts and temporary variables to eliminate
the compile type warnings.
2016-03-14 14:20:19 -04:00
Chris Pavlina
b521c91a6b
Display "Finished" message for eeschema ERC
...
pcbnew DRC displays this as well; a user pointed out that when there are no
errors, it can be hard to tell that ERC ran at all.
2016-03-11 19:23:44 -05:00
Simon Wells
145cd47d5c
Move copy version information code to about dialog.
2016-03-11 11:40:24 -05:00
jean-pierre charras
99e81aeb9c
Fix incorrect (too small) bounding box EDA_TEXT, noticeable when chars like j or { are used in zone fill functions.
...
I tried to merge some constants used both in legacy mode and gal mode (which were, before this patch, separate constants).
There is still a serious work to avoid different calculation code for the same text in draw and plot functions.
Work in progress to merge these calculation functions.
2016-03-11 13:08:34 +01:00
Wayne Stambaugh
92f5ab8589
Eeschema: SCH_SHEET_LIST improvements.
...
* Derive SCH_SHEET_LIST from std::vector rather than using internal array
management. Change all internal code to use iterators or array operator
in loops.
* Allow creation of empty SCH_SHEET_LIST for external population for plotting
and printing.
* Clean up print an plot code to take advantage of new SCH_SHEET_LIST behavior.
* Make BuildSheetList() public so list can be populated after creation.
* Update all instances of SCH_SHEET_LIST with the appropriate SCH_SHEET
object on initialization.
* Create const and non-const version of SCH_SHEET_PATH::GetSheet().
2016-03-06 16:22:01 -05:00
jean-pierre charras
0d1395ee08
Fix coverity warnings:
...
CID 135848: Memory - illegal accesses
CID 135846: Class hierarchy inconsistencies
2016-03-06 09:31:00 +01:00
Simon Wells
4d2a05856f
Minor CMake configuration file fixes.
...
* Move add_directory()s in main CMakeList.txt after all find_package()
macros are run so all flags in the main CMakeList.txt are propagated
to the sub-folder CMakeList.txt files.
* Remove commented out include of config.h
* Make the link maps only build on linux as -${TO_LINKER},-cref
-${TO_LINKER},-Map=blah just gives warnings on osx w/ clang
* Make the link maps only build with flag -DKICAD_MAKE_LINK_MAPS is
defined during CMake configuration as they are highly specific.
* Moved the code for setting link maps into the main CMakeList.txt
file to avoid duplication.
* Removed -D__ASSERTMACRO__ from osx as its no longer needed
* Removed a couple of other OSX only things that wouldn't work anyway
* Moved set (BU_CHMOD_BUNDLE_ITEMS) to the main CMakeList.txt as
otherwise it would only work for the KiCad build not the other
applications
* Made KICAD_SCRIPTING_MODULES enable KICAD_SCRIPTING as currently if
you have modules enabled without the scripting base it will on build.
This could be changed to a fatal error saying you need to also enable
scripting but it seems unnecessary.
* Removed duplication of pcbnew.py install code under modules and
scripting since you can't have modules without scripting now
2016-02-29 14:08:03 -05:00
jean-pierre charras
8522b0deb7
Rename enum TypeSheetLabel to PINSHEETLABEL_SHAPE (Better name, and in accordance with our coding style policy)
2016-02-28 19:16:59 +01:00
unknown
4b103baa3a
Enum refactoring and shiny icons in dialog_lib_edit_pin_table
2016-02-28 18:33:29 +01:00
Wayne Stambaugh
b7e56ae1cb
Eeschema: SCH_SHEET_PATH refactor.
...
* Derive SCH_SHEET_PATH from std::vector< SCH_SHEET* > and remove unnecessary
assignment operator and list management functions.
* Remove function BuildSheetPathInfoFromSheetPathValue() since it was
effectively an assignment operation.
* Replace all calls to BuildSheetPathInfoFromSheetPathValue() with assignment
operator.
* Replace list management functions with vector management functions.
* Fix a error message that wasn't translatable.
2016-02-27 14:35:45 -05:00
jean-pierre charras
a28b1cefc3
CvPcb: serious code cleanup (work in progress): Remove dead or outdated code. Fix a lot of coding style issues. Use better code in many places. No new features.
2016-02-25 10:52:29 +01:00
Bernhard Stegmaier
f8abe9c191
Add support for optional touchpad panning.
2016-02-24 14:53:02 -05:00
unknown
d7e2ffe8fb
Update comments (ElectricPinType -> ELECTRICAL_PINTYPE)
2016-02-20 20:07:05 +01:00
unknown
79422f929e
Update comments (ElectricPinType -> ELECTRICAL_PINTYPE)
2016-02-20 20:00:22 +01:00
Wayne Stambaugh
9685b3812d
Eeschema: decouple SCH_SCREEN::SchematicCleanUp() from wxDC and EDA_DRAW_FRAME.
...
* Remove wxDC and EDA_DRAW_FRAME parameters from SCH_SCREEN::SchematicCleanUp()
function call.
* Update all code that calls SCH_SCREEN::SchematicCleanUp() with wxDC and/or EDA_DRAW_FRAME
parameters.
* Fix a display refresh bug when incrementally inserting bus entries created in my last commit.
IsDanglingStateChanged() appears to be broke for bus entries.
2016-02-20 09:59:42 -05:00
Simon Richter
e220a50958
Eeschema: minor dialog fixes.
...
* Fix parent of elements in wxSizers.
* Update old dialog with recent version of wxFormBuilder.
* Add wxALIGN_CENTER_VERTICAL flag to some dialogs.
* Update wxFormBuilder timestamp in generated sources.
2016-02-19 18:25:03 -05:00
Wayne Stambaugh
ce9d9afed5
Fix bug in component library editor. (fixes lp:1547299)
...
* Use temporary storage of new pins to prevent corruption of the library part draw items
list when adding alternater body style pins to existing component which caused segfault.
2016-02-19 16:29:56 -05:00
jean-pierre charras
37c26cba71
Eeschema: Do not use ElectricPinType for SheetLabel items. ERC does not use ElectricPinType to test sheet labels, which do net have an actual electrical type property
...
Replace ElectricPinType by ELECTRICAL_PINTYPE as enum name to be compliant with coding style.
Enforce ELECTRICAL_PINTYPE control in methods.
2016-02-19 17:51:23 +01:00
unknown
8a9c6f71b7
Make pin position and pin type columns sortable in dialog_lib_edit_pin_table.
2016-02-19 16:59:31 +01:00
Wayne Stambaugh
306b964b40
Eeschema: decouple SCH_SCREEN::TestDanglingEnds() from wxDC and EDA_DRAW_PANEL.
...
* Remove wxDC and EDA_DRAW_PANEL as parameters from function
SCH_SCREEN::TestDanglingEnds().
* Change SCH_SCREEN::TestDanglingEnds() to return the connection change state
rather than the dangling end status which wasn't used anywhere.
* Update all calls to SCH_SCREEN::TestDanglingEnds() to remove wxDC and
EDA_DRAW_PANEL parameters and refresh connection indicators only if a
connection state change occurred.
2016-02-19 10:41:32 -05:00
jean-pierre charras
ca5e66a57f
Fix Bug #1545708 (global bus labels ignored). This is a very old bug.
2016-02-18 08:40:45 +01:00
Wayne Stambaugh
0ac8aad082
Revert Eeschema refactoring work due to broken handling of complex hierarchies.
2016-02-16 10:28:27 -05:00
Wayne Stambaugh
97949ffde9
Undo commit -r 6353.
2016-02-15 15:24:59 -05:00
Wayne Stambaugh
03bf559465
Undo commit -r 6368.
2016-02-15 15:22:45 -05:00
Wayne Stambaugh
af2e19d7d9
Undo commit -r 6380.
2016-02-15 15:21:18 -05:00
Wayne Stambaugh
3d963166c7
Undo commit -r 6389.
2016-02-15 15:19:22 -05:00
Wayne Stambaugh
73dc53dc35
Undo commit -r 6413.
2016-02-15 15:18:32 -05:00
Wayne Stambaugh
4007317606
Undo commit -r 6428.
2016-02-15 15:17:51 -05:00
Wayne Stambaugh
1866b61a56
Undo commit -r 6457.
2016-02-15 15:16:54 -05:00
Wayne Stambaugh
8587488984
Undo commit -r 6595.
2016-02-15 15:15:51 -05:00
Wayne Stambaugh
27b587025d
Undo commit -r 6506.
2016-02-15 15:14:48 -05:00
Wayne Stambaugh
5a5fffb349
Undo commit -r6509.
2016-02-15 15:14:07 -05:00
Wayne Stambaugh
663394749d
Undo commit -r 6533.
2016-02-15 15:13:27 -05:00
Wayne Stambaugh
7b5823185a
Undo commit -r 6535.
2016-02-15 15:12:42 -05:00
Wayne Stambaugh
9eda45a97e
Undo commit -r 6539
2016-02-15 15:11:50 -05:00
Wayne Stambaugh
ee23342e31
Undo commit -r6541.
2016-02-15 15:10:57 -05:00
jean-pierre charras
5b1a5cbdce
Eeschema: Files menu: better name and better comment for the Import sheet content from a project in the current sheep command.
2016-02-15 16:58:35 +01:00
jean-pierre charras
2284228c35
HPGL plot dialog: remove no more in use Pen Overlap parameter. Fix incorrect polygon fill by setting the hpgl pen thickness in hpgl file. Add filled circle (previously, a circle was never filled)
2016-02-11 13:14:46 +01:00
Wayne Stambaugh
61454bf04c
Eeschema: fix annotation bugs. (fixes lp:1542579)
...
* Ensure proper SCH_SHEET object page numbering which caused annotation to
calculate incorrect reference designators when annotating by using page offsets.
* Added SetPageNumbers to SCH_SHEET for setting sheet page numbers after
schematic is loaded.
2016-02-07 09:01:28 -05:00
Wayne Stambaugh
cb13e57973
Eeschema: move find sheet by name from SCH_SHEET_PATH to SCH_SHEET.
...
* Move FindSheetByName() function from SCH_SHEEET_PATH to SCH_SHEET object
and update calls to FindSheetByName() accordingly.
* Remove SCH_SHEET_PATH::FindSheet() which was unused.
* Add sorting option to SCH_SHEET::GetSheets().
2016-02-05 08:33:28 -05:00
Wayne Stambaugh
0ef1eee2c6
Eeschema: move recursion check from SCH_SHEET_PATH to SCH_SHEET.
...
* Add const and non-const version of GetRootSheet() to SCH_SHEET.
* Add GetSheetPaths() function to SCH_SHEET which behaves the same way
as SCH_SHEET_LIST except it uses standard C++ containers and is a much
simpler design.
2016-02-02 19:45:43 -05:00
Wayne Stambaugh
783f818f19
Eeschema: fix segfault when drawing new sheet after deleting existing sheet with the same file. (fixes lp:1538510)
2016-02-02 11:54:54 -05:00
jean-pierre charras
ce7ce77d80
Very minor fix: double shortcut key fix in dialog_schematic_find_base.cpp
2016-02-01 11:42:33 +01:00
Tomasz Wlostowski
ee3418e90b
One-click PCB update improvements
...
- Fix repetitive undo/redo segfaults & assertions.
- Add Update menu entry on PCB side.
- Fix Python build error
- Add spread footprints after updating
2016-01-29 15:43:40 +01:00
Tomasz Wlostowski
689072c0e1
PCB updater: open PCBnew automagically, minor fixes to the dialog
2016-01-29 11:36:51 +01:00
Tomasz Wlostowski
867a0444bd
eeschema: single click PCB update feature added
2016-01-29 11:24:39 +01:00
Simon Richter
23e8c3ebf3
Executable icon resource build configuration fixes.
...
* The resource setting for bitmap2component is too late in the CMakeLists.txt,
and is being ignored. Bitmap2component does not have an icon resource on
Windows. Moving the entire section resolves the issue.
* The other programs only have the mingw special case listed, not the generic
declaration for the resource file so added them.
2016-01-28 11:53:24 -05:00
Chris Pavlina
ac54b7d114
libedit: fix iterator off end of vector (lp:1537946)
2016-01-25 20:52:13 -05:00
Wayne Stambaugh
2aac71700b
Eeschema: move is complex hierarchy and find next item from SCH_SHEET_PATH to SCH_SHEET.
...
* Add function to get a list pointers to this sheet and all of it's sub-sheets
to SCH_SHEET.
* Remove unused function SetFootprintField() from SCH_SHEET_PATH.
2016-01-24 15:46:14 -05:00
Martin d'Allens
d18baf1487
Eeschema: Set modified flag after "Append Schematic Sheet"
2016-01-23 10:25:07 -05:00
Wayne Stambaugh
ac30be332f
Eeschema: move get multi-unit components from SCH_SHEET_PATH to SCH_SHEET.
2016-01-21 19:01:34 -05:00
Chris Pavlina
8e8e126dcd
Regression fix: hotkeys in eeschema not saved
...
Regression introduced in bzr 6474 / git 5173699
2016-01-21 10:17:55 -05:00
Chris Pavlina
c490e7dd06
Fix typing problems with GR_KB_* constants
2016-01-20 07:11:17 -05:00
Wayne Stambaugh
cf9a9a09ad
Eeschema: decouple SCH_COMPONENT from SCH_SHEET_PATH.
...
* All reference paths except netlist objects are retrieve from the parent
sheet of the component rather than the external sheet path object.
2016-01-18 18:47:55 -05:00
Chris Pavlina
5d805e94eb
Remove last vestiges of DIALOG_COLOR_CONFIG
...
The color config dialog in libedit edits the same settings as the one in
eeschema, so there's no reason for it - it's just duplicated.
2016-01-16 18:51:56 -05:00
Chris Pavlina
b891fa4358
Remove separate color configuration dialog
2016-01-16 18:51:48 -05:00
Chris Pavlina
bf03642220
Pull colors widget into preferences dialog
2016-01-16 18:51:38 -05:00
Chris Pavlina
9513741816
Rename WIDGET_COLOR_CONFIG -> WIDGET_EESCHEMA_COLOR_CONFIG
2016-01-16 18:51:27 -05:00
Chris Pavlina
8c2427d3fa
Add and use WIDGET_COLOR_CONFIG::InstallOnPanel
2016-01-16 18:50:55 -05:00
Chris Pavlina
c4694e029d
Move color configuration into a separate widget
2016-01-16 18:50:45 -05:00
Chris Pavlina
2ed78cf84b
Move import/export button back into menu
2016-01-15 21:06:41 -05:00
Chris Pavlina
80fae7161e
Coding style fixes
2016-01-15 21:06:25 -05:00
Chris Pavlina
73faa8238e
Adjust options window
2016-01-15 21:06:15 -05:00
Chris Pavlina
4dad12794a
Add and use WIDGET_HOTKEY_LIST::InstallOnPanel
2016-01-15 20:58:39 -05:00
Chris Pavlina
af042628ff
Refactor WIDGET_HOTKEY_LIST out of DIALOG_HOTKEYS_EDITOR
2016-01-15 20:56:57 -05:00
Chris Pavlina
9663060f97
Recreate menu bar after changing hotkeys
2016-01-15 20:56:23 -05:00
Chris Pavlina
2e4bb307dc
Fix dialog sizing issue on Windows
2016-01-15 20:56:16 -05:00
Chris Pavlina
db178dcdaf
Eeschema options+hotkeys fixes
...
Fix wxTreeListCtrl column sizing
Minor: fix signed/unsigned comparison
Remove unnecessary m_parent direct access
2016-01-15 20:56:00 -05:00
Chris Pavlina
5173699eec
Pull hotkey editor into eeschema preferences
2016-01-15 20:55:50 -05:00
Simon Wells
e5f3edf0f1
Eeschema: minor coding policy fix
2016-01-15 20:26:34 -05:00
Simon Richter
769104d542
pin table: Support flat table
2016-01-14 21:26:42 -05:00
Chris Pavlina
ca01527d20
Coding style fix in the previous patch
2016-01-14 21:21:54 -05:00
Simon Richter
64782736ac
pin table: Add GetString() to retrieve string value for column
...
This is in anticipation of the introduction of icons -- retrieving all the
icons and throwing them away during sorting takes ages.
2016-01-14 21:21:26 -05:00
Simon Richter
5af18e553c
Compress consecutive numbers in pin summary.
...
For pin numbers ending in digits, consecutive numbers are collapsed to
ranges for a better overview.
2016-01-13 14:18:05 -05:00
Simon Richter
3c5a4a3505
Add pin number summary
...
Below the pin table, display which pins are currently defined, in order to
find gaps.
2016-01-13 14:17:54 -05:00
Chris Pavlina
f7c7920b0b
Add missing files from 6461 and 6462
2016-01-13 14:13:38 -05:00
Simon Richter
9e8acdc71a
Move container functionality
...
The "set of pin numbers" functionality is also useful outside the pin table
dialog, so create a wrapper class that exposes the relevant interfaces.
2016-01-13 14:09:24 -05:00
Simon Richter
a7b102c366
Move comparison helper class to generic header
...
This class wraps the comparison function in a way that is compatible with
std::map and std::set. This, too is generally useful, so it should be moved
to the generic header.
At the same time, the criterium for less-than is changed from "equal to -1"
to "smaller than 0", because technically the comparison function may return
other values.
2016-01-13 14:09:18 -05:00