Dick Hollenbeck
64232ce10c
Comment out kiway from python preliminary work.
2016-09-20 12:00:09 -04:00
Dick Hollenbeck
7311f07eaf
SWIG Improvements
...
*) Extend SWIG support deeper into the BOARD class.
*) Move swig *.i files into a directory identified for SWIG, in preparation
for a parallel universe involving Phoenix's SIP.
*) Move swig files which will be common to both eeschema and pcbnew into
common/swig.
*) Sketch out a "common" python module, and plan on dovetailing that into a
libkicad_shared.{dll,so}
*) Add common/swig/ki_exceptions.i and define a macro HANDLE_EXCEPTIONS()
which is to be applied to any function which needs C++ to python
exception translation.
*) Move the test for SWIG tool into top level CMakeLists.txt file for use
in all python modules beyond pcbnew, i.e. eeschema and common.
*) Add SWIG_MODULE_pcbnew_EXTRA_DEPS which generates a better Makefile, one
which rebuilds the swig generated *.cxx file when one of its dependencies
change.
*) Re-architect the board.i file so that it can be split into multiple *.i
files easily.
*) Make some KIWAY from python progress, in preparation for Modular KiCad
phase III.
2016-09-20 11:59:43 -04:00
Dick Hollenbeck
9ad49dc2d1
Split IO_ERROR out of richio.* and store Problem() and Where() separately
2016-09-20 11:56:18 -04:00
Simon Wells
a2116ae070
Removed wxPaintDC from EDA_DRAW_PANEL_GAL::onPaint()
2016-09-19 15:17:18 +02:00
jean-pierre charras
6edee2ae1d
Prepare Plot Gerber file to include advanced aperture and net attributes.
...
This option is not yet activated because the net attributes are not yet fully fixed by Ucamco, in Gerber file format specifications.
(To activate it, see dialog_plot.cpp, line 43)
2016-09-19 13:01:36 +02:00
decimad
f78721b451
Multichannel Signed Distance Field text rendering for OpenGL GAL
2016-09-14 10:00:49 +02:00
Maciej Suminski
6481ff75c9
Changed one of COMMIT::Stage() methods to COMMIT::Modified()
2016-09-12 13:45:57 +02:00
Maciej Suminski
65b1225231
Added CHT_DONE flag to COMMIT::Stage to skip add/remove step
2016-09-12 13:45:57 +02:00
Maciej Suminski
74d53e517c
VIEW_GROUP objects redraw itself after a change
2016-09-12 11:50:06 +02:00
Maciej Suminski
acd7214586
Moved commit.h to 'include' directory
2016-09-12 11:50:06 +02:00
Maciej Suminski
38177b70b9
Comments for COMMIT class
2016-09-12 11:50:06 +02:00
Maciej Suminski
940765f4b3
COMMIT class: removed m_committed flag, added clear() and Empty() methods.
2016-09-12 11:50:06 +02:00
Maciej Suminski
b8350f037b
COMMIT: Added an interface to store items that already have a copy created.
2016-09-12 11:50:06 +02:00
Maciej Suminski
0223425d30
COMMIT: changed BOOST_FOREACH to for.
2016-09-12 11:50:06 +02:00
Maciej Suminski
dac7c5aa1f
Store parent object when creating a COMMIT.
2016-09-12 11:50:06 +02:00
Tomasz Wlostowski
9588a7974c
Added classes COMMIT & BOARD_COMMIT.
2016-09-12 11:50:06 +02:00
Maciej Suminski
b5bfa14057
Removed unused EDA_ITEM::m_Image field.
2016-09-12 11:50:06 +02:00
Maciej Suminski
1dd43d1d98
Unified undo buffer handling code for PCB & module editor.
...
Replaced UR_MODEDIT with UR_CHANGED.
2016-09-12 11:50:06 +02:00
Maciej Suminski
09e0311d4e
Replaced Copy() method with operator=. Removed Copy() where default copy ctor was enough.
2016-09-12 11:50:06 +02:00
Maciej Suminski
f95628c132
Switched to default constructor and operator= for EDA_TEXT.
2016-09-12 11:50:06 +02:00
Ian Roth
7ad2f37391
Add %L formatter to worksheets to print layer name.
2016-09-10 14:23:59 -04:00
Chris Pavlina
7318238daa
Update version string formatting after git migration
...
It is no longer necessary (or sensible) to include a simulated bzr
revision number, and we can reliably get a branch name now. Therefore,
the new version strings look like:
(2016-08-26 revision 67230ac
)-master
| | |
| | branch name, "HEAD" if not on a branch,
| | or "unknown" if no .git present
| |
| abbreviated commit hash, or no-git if no .git
| present
|
date of commit, or date of build if no .git present
Signed-off-by: Chris Pavlina <pavlina.chris@gmail.com>
2016-09-09 20:19:54 -04:00
Nick Østergaard
76f78bb48b
Remove unused version info
...
USE_FP_LIB_TABLE is not used anywhere in the code when grepping
2016-09-04 19:14:26 -04:00
Nick Østergaard
c784d45ed7
Add new development build swtiches to version info
...
Add:
* KICAD_USE_SCH_IO_MANAGER
* KICAD_USE_OCE
2016-09-04 19:13:05 -04:00
Wayne Stambaugh
cbcb3b896b
Fix incorrect string translation macros.
...
* Replace _T() with _() for translatable strings.
* Don't translate debug messages.
* Don't translate copyright symbol.
2016-09-03 12:10:49 -04:00
Chris Pavlina
4b6d28333e
Revert "Memoize SHAPE_LINE_CHAIN bounding box computation"
...
This reverts commit 30566de69a
, which
caused some issues in PNS.
2016-09-01 12:09:06 -04:00
Wayne Stambaugh
9287b42648
Revert commit 67230ac8e7
.
2016-08-30 09:04:25 -04: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
Maciej Suminski
7f5bce3772
More robust condition for checking sufficient space in CACHED_CONTAINER
...
Having enough space is not enough, we need a continuous block of memory.
2016-08-18 17:18:13 +02:00
Maciej Suminski
9f0b42cb35
pns: fixed a few memleaks & conditional jumps depending on uninitalized variables
2016-08-17 15:09:48 +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
Tomasz Wlostowski
e5524832a9
pcbnew: added diff pair gap & width to Design Rules dialog & PCB file format.
2016-08-15 17:16:49 +02:00
Maciej Suminski
9714ece53f
Initialize bestStep (wxMathPlot)
2016-08-15 10:53:36 +02:00
Simon Richter
eec632a651
Remove definition of log10(double) in wxMathPlot widget
2016-08-15 10:19:42 +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
jean-pierre charras
42f9be4019
uncrustify mathplot.cpp, make debug strings not translatable, and remove not compilable debug lines (due to changes in internal code). No actual change in code.
2016-08-12 10:10:33 +02:00
Chris Pavlina
30566de69a
Memoize SHAPE_LINE_CHAIN bounding box computation
...
For a specific project+system combination, this gives a 38% speedup on
the pcbnew side of netlist sync.
2016-08-11 09:34:58 -04:00
Maciej Suminski
557f9270c7
wxMathPlot basic code formatting
2016-08-11 14:42:18 +02:00
jp charras
b2f60009a6
wxWidgets 3.1/Win7 fixes
2016-08-11 14:42:15 +02:00
Maciej Suminski
67e283c3af
Removed 'Lock aspect' from wxMathPlot widget context menu
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
63bdb3995e
Fixes for limited view panning
2016-08-11 14:42:08 +02:00
Tomasz Wlostowski
e9609fe19d
mathplot: removed some warnings, fixes to labelling code
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
Tomasz Wlostowski
f4033f776f
mathplot: fix freeze in scale ticks calculation
2016-08-11 14:42:02 +02:00
Tomasz Wlostowski
d0e1f2e412
mathplot: silence debugging messages
2016-08-11 14:42:01 +02:00
Maciej Suminski
5c32e35d27
Minor fixes to wxMathPlot
2016-08-11 14:41:56 +02:00
Maciej Suminski
b25781814d
Fixed cursors
2016-08-11 14:41:55 +02:00
Tomasz Wlostowski
e8d6a42e1a
simulator: working on magnitude/phase plots
2016-08-11 14:41:49 +02:00
Tomasz Wlostowski
b9e31f6d3a
mathplot: further improvements for simulator [wip]
2016-08-11 14:41:49 +02:00
Tomasz Wlostowski
30c87527da
mathplot: slave scale locking [wip]
2016-08-11 14:41:48 +02:00
Tomasz Wlostowski
d2f4d5c2fb
mathplot: various improvements, added log scale [wip]
2016-08-11 14:41:48 +02:00
Maciej Suminski
06463252d7
wxMathPlot: Limited zooming and panning
2016-08-11 14:41:37 +02:00
Maciej Suminski
f634cff206
wxMathPlot: Removed mouse help related functions
2016-08-11 14:41:36 +02:00
Maciej Suminski
fd08f45bd2
Corrected bounding box calculation in mpLayer
2016-08-11 14:41:36 +02:00
Maciej Suminski
a35e324c3f
Mouse controls in simulation plot made coherent with the rest of KiCad
2016-08-11 14:41:27 +02:00
Maciej Suminski
9c65d0d281
wxMathPlot: fixed crash when one of its dimensions == 0
2016-08-11 14:41:26 +02:00
Maciej Suminski
51906625ee
Replaced sim plotting widget with wxMathPlot
2016-08-11 14:41:21 +02:00
Maciej Suminski
549a96da0b
License for KIWAY_HOLDER
2016-08-11 14:41:15 +02:00
Tomasz Wlostowski
f1f69979e6
ngspice: something starts to work
2016-08-11 14:41:01 +02:00
Maciej Suminski
cdc951d0a3
Fixed a crash when dragging a line was interrupted
...
Crash was caused by removing an element from m_activeTools list, causing other iterators to be invalidated.
2016-08-08 17:20:02 +02:00
Maciej Suminski
c6e4f67589
Fixed cached container data corruption on resize (OpenGL GAL)
2016-08-08 14:18:25 +02:00
Maciej Suminski
9f5f0ab31b
Minor OpenGL GAL code changes
2016-08-08 14:17:40 +02:00
Michael Steinberg
86496d3141
Pcbnew: fix dangling board reference crash in GAL. (fixes lp:1584489)
2016-08-05 13:45:14 -04:00
jean-pierre charras
498c8ce61d
Fix issue: When left-clicking on the "window frame" (blue top area on Windows) (Any editor), the window jumps to bottom half of the screen, if a context menu is currently opened (could be Windows specific)
2016-08-05 16:10:45 +02:00
Maciej Suminski
c9a41be774
Added licence for the GAL bitmap font
2016-08-03 17:02:43 +02:00
decimad
532634abf2
fix reentrant tool state crash
2016-08-02 10:34:27 +02:00
Mrio Luzeiro
d8eab321f7
3D Viewer: complete refactor of the 3D viewer.
...
* Split and rewrite the preview window and canvas.
* Create a new class for handling the board information.
* Adds new render targets: openGL, legacy, and ray tracing.
* Render targets take full advantage of the new 3D plugins system and 3D cache
for a fast 3D model loading.
* Faster board loading.
* New OpenGL render is faster than the old one.
* New ray tracing render target with a post processing shader.
* Use of new 3D plugins (WRL, X3D, STEP and IGES) and 3D model caching.
* Preview of 3D model while browsing the file name.
* 3D preview of the footprint while adding / align 3D shapes.
* Render of 3D models according to attributes: Normal, Normal+Insert, Virtual.
* Pivot rotation centered in one point over the PCB board.
* Shortcuts keys improved for XYZ orientation..
* Animated camera.
2016-07-19 13:35:25 -04:00
jean-pierre charras
ee40137de7
more about dlg size fixes and osx fixes
2016-07-14 19:30:25 +02:00
jean-pierre charras
98bc4d3ba1
Fix dialog size issues (some widgets have a incorrect size when initialized inside a TransferToWindow() method because the SetSizeHints() method was called before the init) and fix OS X copy/close bug in a few dialogs.
2016-07-14 16:25:35 +02: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
Jon Neal
095063dbd9
Remove code since minimum wxwidgets version is 3.0.0.
...
This issue was fixed in 2.9.2 according to
https://lists.launchpad.net/kicad-developers/msg06421.html
2016-07-10 23:10:03 -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
Michael Steinberg
06d4894fdb
boost::context fixes to make it compatible with boost 1.61
2016-07-05 00:14:32 +02:00
Maciej Suminski
33e7fe6211
Fix a crash caused by invalid iterator (thanks to Michael Steinberg)
...
TOOL_MANAGER::finishTool() caused iterator to become invalid when an element was removed from the m_activeTools deque.
2016-07-04 16:12:21 +02:00
jean-pierre charras
4a20f376a3
Move call of SetSizeHints in a few dialogs form the dlg ctor to a wxInitDialogEvent event, because some widgets sizes are not fully initialized before this event is fired.
...
It is especially true in some Window Managers like KDE, but can be true in any WM, when initializations are made by TransferDataToWindow() method, called by the default wxInitDialogEvent handler.
2016-07-02 18:32:03 +02:00
jean-pierre charras
1ab1dca46c
Try to fix initial widgets size calculations on KDE, when using notebooks in dialogs
2016-07-02 16:13:10 +02:00
jean-pierre charras
0eea3cffcf
DIALOG_SHIM: add void FinishDialogSettings() method which calls the usual methods at end of a dialog, to ensure proper size and position, the first time the dialog is called.
...
Fix an incorrect size of dialog_pcb_text_properties (due to the fact the dialog was not really initialized when its min size was calculated)
2016-07-02 11:35:52 +02: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
Michael Steinberg
fde12ebd25
Replace boost::function and boost::bind with their std:: counterparts
2016-06-29 12:23:11 +02:00
jean-pierre charras
7fd30e6dc0
Fix a (minor) issue in Kicad manager: when the schematic editor or the board editor are run from the project tree frame to edit files of the current project, editors are opened on the background.
2016-06-17 19:58:14 +02:00
Maciej Suminski
b82ccc3b4e
Reverted 6912 with minor changes (LockCtx requires to specify canvas that locks a context).
2016-06-13 16:43:33 +02:00
jean-pierre charras
c4b22b55a0
Bug fix: When using the %Y variable placeholder in a worksheet template, the %Y variable content overwrite the whole string.
2016-06-13 21:02:10 +02:00
Maciej Suminski
57d4e8d51d
Fixed OpenGL crash on canvas switch.
2016-06-13 09:35:36 +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
d49ecb1b91
Add zoom-to-selection and block move to pl_editor
2016-06-11 09:51:05 -04:00
Wayne Stambaugh
21595f48d3
KiCad: fix crash when kiface libraries are missing. (fixes lp:1577786)
...
* An assumption was made that wxDynamicLibrary.Load() would always result in
a wxLogSystemError on failure which was not always true. The code now throws
an exception which is caught by KiCad and an error message is displayed. In
the case where the wxLogSystemError is shown, there will be an annoying two
error messages but that is better than a crash.
2016-06-10 13:47:19 -04:00
Maciej Suminski
b7ec4ea160
Corrected the last instance check in OPENGL_GAL.
2016-06-10 17:07:12 +02:00
Maciej Suminski
5850b1ced0
GL_CONTEXT_MANAGER: Call SetCurrent() only when a different context is used.
2016-06-10 17:06:54 +02:00
Simon Richter
eb45f02138
Avoid pointer truncation in debug message
2016-06-10 11:06:47 +02:00
Maciej Suminski
aa9681e979
GL_CONTEXT_MANAGER: Call SetCurrent() only when a different context is used.
2016-06-09 13:44:59 +02:00
jean-pierre charras
cdf2b6950e
Legacy mode: Pan with mouse middle button fix an unwanted displacement of the drawings (half width of scroll bars) when starting the pan (due to a parameter (new reference position of scroll bars in IU) which was stored with an incorrect value)
...
Minor enhancement during pan: the mouse cursor shape is modified.
2016-06-09 10:43:32 +02:00
Chris Pavlina
8c01318141
Add zoom-to-selection tool
2016-06-08 07:19:53 -04:00
Chris Pavlina
ce3ccec528
Fix incorrect scaling in scrollbar fix (r6895, 35883bb
)
...
...how did this ever look like it worked?
2016-06-08 06:26:39 -04:00
Simon Richter
2928cb7419
Replace unshared boost::shared_array with std::unique_ptr
2016-06-08 09:43:07 +02:00
Chris Pavlina
35883bb74b
Account for scrollbars when centering
2016-06-07 20:28:11 -04:00