Cirilo Bernardo
968a18a859
Sync with main branch r6620
2016-03-14 19:00:24 +11: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
Cirilo Bernardo
317ec48e1b
Sync with main branch r6608
2016-03-05 10:00:32 +11:00
jean-pierre charras
ba038ac507
Pcbnew, File menu: break Open (board) into 2 menu items: Open (only for Kicad board files) and Import (only for non Kicad board files)
2016-03-04 19:48:08 +01:00
Cirilo Bernardo
ae104a2b77
Sync to main branch r6607
2016-03-04 16:30:42 +11:00
jean-pierre charras
8dc0a33cc7
Remove a old useless font file (the Cyrillic fonte is, since a long time, in the current font file)
2016-03-03 18:51:38 +01:00
unknown
eea52027cc
Use _WIN32 instead of __MINGW32__ in 2 conditional compilations which are Windows specific, not especially mingw32 specific.
2016-03-01 16:55:44 +01:00
Tomasz Wlostowski
0fa71d8d8f
more accurate pushout force calculation for circle-segment collisions
2016-03-01 14:26:08 +01:00
Cirilo Bernardo
d0a2080823
Merge with main branch r6601
2016-03-01 11:44:15 +11: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
Simon Wells
1c0a0c4bfe
Kicad: clean up include files.
2016-02-24 16:36:52 -05:00
Bernhard Stegmaier
f8abe9c191
Add support for optional touchpad panning.
2016-02-24 14:53:02 -05:00
lukasz.iwaszkiewicz@gmail.com
0829446c86
Add CvPcb footprint search and filter by name.
2016-02-24 17:30:35 +01:00
Cirilo Bernardo
d051a8f47e
Changed IFSG* log reports from stderr/stdout to wxLogTrace
2016-02-23 16:28:41 +11:00
Cirilo Bernardo
a4861a0d64
Sync with main r6555
2016-02-14 09:16:40 +11:00
jean-pierre charras
d902c2716a
Add Slovak entry in language menu.
2016-02-11 20:12:37 +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
jean-pierre charras
5658ed9c8e
Prepare rounded rect and custom shaped pads: add plot functions. It fixes also a pcbnew crash in HPGL mode when plotting trapezoidal pads.
2016-02-10 17:02:40 +01:00
Cirilo Bernardo
99aba8f261
Changed handling of ambientIntensity; change of major version in SG* lib
2016-02-07 08:41:27 +11:00
Cirilo Bernardo
06e766b8b2
Sync with main branch r6532
2016-02-02 17:25:14 +11:00
Cirilo Bernardo
8dd744f635
Improved 3D cache manager's ability to replace outdated cache models
2016-01-31 13:21:12 +11: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
867a0444bd
eeschema: single click PCB update feature added
2016-01-29 11:24:39 +01:00
Tomasz Wlostowski
9e609acae3
made netlist entries and netlist update undoable
2016-01-29 11:21:13 +01:00
Cirilo Bernardo
dddc3d91e9
Cleaned up 3D SceneGraph API by removing references to wxString
2016-01-29 11:52:42 +11:00
Cirilo Bernardo
fc5556c811
Sync with main branch r6513
2016-01-26 10:35:16 +11:00
Bernhard Stegmaier
3e2b4244f9
OSX: add support for wxMagnifyEvent on OSX builds using wxWidgets 3.1.0 or greater.
2016-01-24 19:18:29 -05:00
jean-pierre charras
d24bd85bf5
Minor code cleanup.
2016-01-22 13:30:44 +01:00
Chris Pavlina
4c1d9af0a4
Fix Python regression from rev 6496
...
SWIG does not export contants defined "static const" in a header; it is
instead necessary to use #define.
2016-01-20 19:32:50 -05:00
Maciej Suminski
74b498d92d
Remove redundant forward declarations.
2016-01-20 15:22:58 +01:00
Maciej Suminski
4951285a67
GAL::DrawPolygon() and GAL::DrawPolyline() variants that work with VECTOR2D array.
2016-01-20 15:16:39 +01:00
Chris Pavlina
c490e7dd06
Fix typing problems with GR_KB_* constants
2016-01-20 07:11:17 -05:00
Simon Wells
edc47c3f8e
Clean up includes in confirm.cpp, confirm.h
2016-01-18 00:17:56 -05:00
Simon Richter
ff4febc7a8
Clarify atan2 overloads
...
In the C++ standard, this function is only defined for floating point
types, and integers cannot be implicitly converted. Using explicit
conversions avoids a GCC specific extension to the standard library.
2016-01-17 10:59:24 -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
Cirilo Bernardo
e185b29baa
Resync with main branch r6482
2016-01-16 19:10:53 +11:00
Chris Pavlina
14008321fe
Dynamically size horizontal column if necessary.
2016-01-15 21:06:51 -05:00
Chris Pavlina
06add0d130
Add context menu
2016-01-15 20:58:53 -05:00
Chris Pavlina
4dad12794a
Add and use WIDGET_HOTKEY_LIST::InstallOnPanel
2016-01-15 20:58:39 -05:00
Chris Pavlina
7d30eaf13a
Refactor keycode lookup
2016-01-15 20:58:31 -05:00
Chris Pavlina
a16b2c6eba
New hotkey press acquirer
2016-01-15 20:57:10 -05:00
Chris Pavlina
af042628ff
Refactor WIDGET_HOTKEY_LIST out of DIALOG_HOTKEYS_EDITOR
2016-01-15 20:56:57 -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
Chris Pavlina
b30a461ee9
Pcbnew: fix Flip hotkey for blocks in legacy (fixes lp:1534120)
2016-01-14 12:52:27 -05:00
Dick Hollenbeck
f527b29e68
GitHub plugin: fix threading issues when libcurl is build against openssl.
...
* Dick Hollenbeck also contributed commit r6440. I inadvertently forgot to set
the Bazaar author tag before I committed it. My apologies.
* Switch to static linking of libcurl and on linux and windows and also
statically link in only required portions of openssl.
* Add the required thread locks which openssl needs.
* Remove the get curl version call from BASEFRAME since it pulls in curl and
openssl into every derived wxFrame class link image.
* Remove curl function from PGM_BASE, switch to atexit() instead. Anything in
PGM_BASE made the singletops bigger.
* Tested on Linux, Windows, and OSX.
2016-01-14 10:17:13 -05:00
Tomasz Wlostowski
991b9d509a
GAL: apply grid offset when board is loaded and respect grid color setting. (fixes lp:1533168)
2016-01-13 13:37:52 -05:00
Simon Wells
09ef795a02
Minor coding style fixes in headers
2016-01-12 11:33:33 -05:00
Chris Pavlina
ee2752827a
Remove old, empty header
2016-01-12 10:35:27 -05:00
Cirilo Bernardo
217a5f39e1
Resync with main branch r6449
2016-01-12 10:36:31 +11:00
Wayne Stambaugh
5c6c2a0661
GitHub plugin: fix potential multiple initialization of libcurl bug.
...
* Prevent libcurl from inadvertently being initialized twice.
* Dynamically load libcurl only when required.
* Reduce the number of worker threads when loading footprint libraries to
prevent issues with the GitHub plugin.
2016-01-10 16:44:37 -05:00
Jon Neal
f309eaab00
Pcbnew: spread and pick up new footprints when loaded.
2016-01-10 16:24:13 -05:00
Chris Pavlina
a298e18d6d
Fix enum comparison warnings
2016-01-08 17:28:21 -05:00
jean-pierre charras
dda957a048
Minor fixes: rename cvframe.cpp to cvpcb_mainframe.cpp to be consistent with other similar files are named.
...
* Better name for a cvpcb_mainframe function.
* Minor fixes in comments
* Minor code cleaning and fixes
2016-01-06 08:36:08 +01:00
Cirilo Bernardo
9d55ad375f
Removing redundant sg/ifsg colorindex files and references
2016-01-06 18:19:20 +11:00
Cirilo Bernardo
6b873ed46b
Work in progress: implementing SG translation for VRML1 models
2016-01-06 15:34:14 +11:00
Chris Pavlina
89cfef99c1
Convert to single page hotkeys editor.
2016-01-05 13:46:45 -05:00
Chris Pavlina
ed2a1d5955
Hotkey dialog refactor.
...
* Replace the wxListCtrl with a wxTreeListCtrl, allowing expandable categories
in a future change.
* Clean up the code to make HOTKEY_LIST_CTRL function a bit better on its own.
* Migrate the hotkey dialog to TransferData{To,From}Window, use matching
TransferData{To,From}Control methods on HOTKEY_LIST_CTRL so it is easy to
embed.
2016-01-04 19:31:35 -05:00
Cirilo Bernardo
c798f8b545
Added support for FreeCAD VRML files
2016-01-04 18:10:15 +11:00
Cirilo Bernardo
fad73f0e85
VRML2 3D plugin is now functional
2016-01-02 12:21:02 +11:00
Cirilo Bernardo
b426740195
Removed dead code modules
2016-01-01 16:23:21 +11:00
Cirilo Bernardo
548b54d75d
+ resync with main branch r6409
...
+ work in progress: new VRML2 3D plugin
2015-12-31 09:28:39 +11:00
jean-pierre charras
9d994663f1
Fix Bug #1527446 (Flipping a block in pcbnew doesn't flip inner layers nor their connected microvias).
...
Also fix a few typos and remove dead code.
2015-12-27 16:51:13 +01:00
unknown
e506a4354b
Replace avhttp with libcurl: Some fixes:
...
1. Fixed an assumption somebody originally made in the plugin that std::string had contiguous storage. This is not specced behavior pre C++11 so we gamble by calling .reserve() which should give a far better guarantee.
2. Added copy to clipboard information for curl
3. Removed some openssl references in compiling.md
4. Renamed struct vars to be uppercase to match "public var" code style policy
2015-12-22 15:19:00 +01:00
Cirilo Bernardo
07bd4cbc04
+ Resync with main r6397
...
+ Work in progress: VRML parser
2015-12-22 11:08:39 +11:00
Mark Roszko
e47bc6883d
Replace the avhttp library used by the github plugin with libcurl.
2015-12-21 15:30:33 -05:00
Wayne Stambaugh
96832a5185
Fix build error cause by previous commit when KICAD_SCRIPTING_WXPYTHON is not enabled.
2015-12-21 10:39:36 -05:00
jean-pierre charras
a11bbffe9b
Code reorganization, and change the way 3D viewer frame is managed (now using wxWidgets wxWindow::FindWindowByName() to know if it is existing) , to prepare others fixes.
2015-12-21 12:52:00 +01:00
Chris Pavlina
769e18d376
Eeschema: add wildcard and regular expression search to componet select dialog.
...
* Create base class EDA_PATTERN_MATCH to hand multiple pattern matching methods.
* Create classes for regular expression and wildcard pattern matching.
* Add new pattern matching semantics to component select dialog.
* Thanks to Henner Zellar <h.zeller@acm.org> for improvments to the original patch.
2015-12-20 15:52:39 -05:00
jean-pierre charras
e175a96be4
Pcbnew: Enhancement: in Get footprint (hotkey 'T') : better footprint selector dialog.
2015-12-20 19:47:52 +01:00
Cirilo Bernardo
2c4b220f3c
Resync with main branch r6383
2015-12-19 15:02:52 +11:00
Cirilo Bernardo
008d8a540a
+ Fixed bug in SGSHAPE::Prepare() : bad assignment of color pointer
...
+ Reworked s3d_plugin_demo2.cpp to use per-vertex-per-face normals
+ Reworked s3d_plugin_idf.cpp to use per-vertex-per-face normals
2015-12-17 13:55:35 +11:00
Cirilo Bernardo
eab70be17b
Changed cache->Prepare() to cache->GetModel()
2015-12-17 09:21:30 +11:00
Cirilo Bernardo
c0fcb15e3a
+ Rework S3D_CACHE::Prepare() to take only a filename and return
...
non-transformed S3DMODEL for rendering.
+ S3D_CACHE now caches S3DMODEL and returns a pointer to a single
instance of the S3DMODEL for repeated calls to Prepare()
+ Beginning the VRML Plugin
2015-12-16 20:01:44 +11:00
Cirilo Bernardo
c251fbac75
+ Improved the normals calculations (however it's still buggy)
...
+ Reworked 3D plugins to use normals calculations
2015-12-16 14:25:46 +11:00
jean-pierre charras
178cf0dc25
Polygon calculation (zones filling): use fast mode when possible (in fact most of time) and strictly simple polygon option only in critical cases (in fact in plot Gerber functions mainly).
...
In polygon calculations (combining polygons, fracture) the mode of calculation (fast or strictly simple polygon option) as no more a default value, because choosing the best mode is better to optimize the calculation time.
2015-12-15 21:21:25 +01:00
Cirilo Bernardo
304cd81ebd
+ Bugfix: changed Plugin Loader to expect 'GetPluginVersion' instead of
...
'GetVersion'.
+ Introduced normal calculations. This is buggy due to multiple equal
face normals distorting the vertex normal; this will be fixed by
removing the redundant face normals from the calculations.
2015-12-15 18:53:03 +11:00
Simon Wells
cccc314524
Remove unnecessary include to Carbon.h in fctsys.h.
2015-12-14 19:21:51 -05:00
Cirilo Bernardo
1940bd71e4
Resync with main branch + fix MSWin build (accidental inclusion of dlfcn.h)
2015-12-15 10:56:11 +11:00
Cirilo Bernardo
6294e507f9
Changed function name to avoid name clash with MinGW system call
2015-12-15 09:17:10 +11:00
Cirilo Bernardo
aff84eab52
Using stdint.h rather than cstdint on MSWin
2015-12-15 08:44:20 +11:00
Cirilo Bernardo
b7d44368bd
Build fix: do not include cstdint under MSYS/MinGW
2015-12-15 07:52:37 +11:00
Cirilo Bernardo
a2fe783f53
Finished refactor and introduction of generic Plugin scheme
2015-12-14 14:51:28 +11:00
Cirilo Bernardo
3ff8ca0caf
Refactored to use new generic plugin base
2015-12-14 08:45:22 +11:00
Chris Pavlina
50c418a332
Eeschema: add field automatic placement feature.
2015-12-13 11:56:47 -05:00
Simon Wells
b21b5513fd
removed wx carbon include in fctsys as it is unnecessary
2015-12-12 23:03:35 +13:00
Cirilo Bernardo
4e12999fa8
Removed some trailing white space. Fixed FindGLM.
2015-12-10 11:31:44 +11:00
Cirilo Bernardo
ac3acb0061
Moving headers to facilitate support for building 3D plugins out-of-tree
2015-12-09 18:30:48 +11:00
Maciej Suminski
231eaecf34
Removed the included GLM library, switched to the system one.
2015-12-08 10:56:53 +01:00
Mario Luzeiro
69cc788e8e
+ Removed glm source from kicad tree (Maciej / Cirilo)
...
+ Added renderer for 3D model preview (Mario)
+ Added 3d_cache including name resolver and modifications to 3D model dialogs (Cirilo)
2015-12-08 18:31:57 +11:00
jean-pierre charras
c99f6722df
Messages created by IO_ERROR and PARSE_ERROR: the short filename of the kicad source file is printed instead of the full filename.
...
The full filename of a Kicad source file has no meaning for users.
2015-12-03 16:53:36 +01:00
jean-pierre charras
4749921bbc
Remove confirmation dialog when deleting footprints.
...
Very minor other fixes.
2015-11-18 19:59:24 +01:00
Damien Espitallier
16c2c398e9
CvPcb: count unique pin numbers when filtering by pin count. (fixes:1300719)
2015-11-11 13:35:26 -05:00
jean-pierre charras
6cc91a074b
Remove a few conditional compilation for wxWidgets version < 3.0
...
Update a old .fbp file.
2015-11-09 13:14:28 +01:00
jean-pierre charras
ade51289a7
All: use solid lines instead of dashed lines to draw X and Y axis in legacy canvas (like in Gal canvas). The main reason: on OSX axis using dashed lines are very very slow to draw (looks like a wxWidget issue when the wxDC scale factor is very small)
2015-10-25 17:58:04 +01:00
jean-pierre charras
184eff0e69
Remove duplicate id for 2 buttons in dialog hotkeys editor and use better button label (Cancel instead of Close, because changes are actually cancelled by closing the editor).
2015-10-16 10:53:57 +02:00
jean-pierre charras
2a4f8db792
Pcbnew, archive footprints: fix bug #1495321 . The user can now save the footprints in a library in fp lib table, or in a new library.
2015-09-28 10:46:00 +02:00
Wayne Stambaugh
a6a9d8eedf
Default and most recently used path fixes. (fixes: 1494210)
...
* Rename Eda_FileSelector to EDA_FILE_SELECTOR.
* Add optional pointer to wxString to save the most recently used path to EDA_FILE_SELECTOR.
* Rename Eda_DirectorySelector to EDA_PATH_SELECTOR.
* Replace wxGetCwd() with wxStandardPaths::GetDocumentsDir(). This fixes the windows issue
where wxGetCwd() returns the path where the executable files are located.
* Add code to handle most recently used path to EDA_BASE_FRAME.
* Fix string formatting error in kicad/files-io.cpp.
* Remove setting and restoring current working directory when launching GerbView. Setting the CWD
has no effect on the launched executable which starts with it's own CWD.
* Allow project path to be passed to GerbView when launched from KiCad.
* Note: this is a work in progress. Do not expect every path and/or file selection dialog to properly
update the most recently used path. The correct solution to this problem requires a much more
well though out solution which will not happen until after the next stable release.
2015-09-25 15:38:09 -04:00
Wayne Stambaugh
66a9b04487
Fix windows help path bug. (fixes lp:1313412)
...
* SearchHelpFileFullPath(): clean up platform specific path code, add executable path sans bin
directory on non-osx platforms, and move KICAD path variable to the beginning of the search
list.
* Minor search stack debug output improvements.
2015-09-20 14:23:17 -04:00