Jeff Young
129042f8a6
Convert timestamps to UUIDs.
6 years ago
Seth Hillbrand
7c28c3838a
Comment-only changes
Makes class comments conform to coding standards
6 years ago
Seth Hillbrand
daac749927
eagle import: Convert to new eeschema units
This adjusts most (hopefully all) of the eagle conversion hard-coded mil
values into the new eeschema internal unit values
6 years ago
Seth Hillbrand
b5f021ff9f
Cleanup: Replace push_back with emplace_back
In cases where we create a new item and immediately push into a
container, the emplace idiom is faster and more efficient.
6 years ago
Seth Hillbrand
4d2e953f42
Cleanup: Replace C-only deprecated headers
This replaces headers deprecated by C++14 with their equivalent
replacement
6 years ago
Seth Hillbrand
d7272b7f5e
eagle: Handle DRC rule-based pad shapes
Circles and Squares are handled correctly. Octagons are converted to
circles. Pad 1 is identified by the "1" string in the Eagle name.
Fixes: lp:1784126
* https://bugs.launchpad.net/kicad/+bug/1784126
7 years ago
Mark van Doesburg
91e3d21d68
Eeschema: Copy attributes from eagle.
Eagle allows for variants of components to be listed in the schematic.
This patch copies the variant data into the imported schematic item,
prefixing the alternate variant names with "VARIANT_" and keeping the
alternate values.
7 years ago
Wayne Stambaugh
7343e78347
Fix some Coverity uninitialized field warnings.
Fixes Coverity CIDs:
- 175824
- 169337
- 163191
- 175827
- 175440
- 175438
- 157136
7 years ago
Seth Hillbrand
ced0fcee1e
Updating Eagle Importer to take curved zones
Fixes: lp:1755879
* https://bugs.launchpad.net/kicad/+bug/1755879
8 years ago
Maciej Suminski
4055c435a5
Eagle PCB import: unified code for handling pad properties
8 years ago
Maciej Suminski
4c9be316dd
Eagle import: minor ECOORD refactor
- changed EAGLE_UNIT enum names from EAGLE_* to EU_*
- renamed ToNanoMeters() to ConvertToNm() and added a comment
- added ToMils() and ToNanoMeters() method
8 years ago
Seth Hillbrand
ea4cee3393
Set Eagle import generated timestamps to KiCad std
8 years ago
Maciej Suminski
30a78f00bc
Use 32-bit timestamps for imported Eagle files
Fixes: lp:1754610
* https://bugs.launchpad.net/kicad/+bug/1754610
8 years ago
Maciej Suminski
24fcdb00cc
Eagle importer: convert special characters in net names
Convert '!' to '~' to reflect overbar toggling and change '~' to '~~'.
Now it matches the net names in schematics import plugin.
8 years ago
Maciej Suminski
c95340fbaf
Eagle importer: replace invalid character with '_' to match PCB<->SCH
8 years ago
Mark Roszko
b98cc0b937
Some coverity fixes
8 years ago
Maciej Suminski
f039e0bb6d
Eagle parser: declare Convert() specialization for wxString in eagle_parser.h
8 years ago
Maciej Suminski
2e00169ae7
Explicitly cast wxString to std::string when throwing std::exception
8 years ago
Maciej Suminski
378846c2e3
Eagle Schematics Importer: support for UTF-8
Fixes: lp:1736083
* https://bugs.launchpad.net/kicad/+bug/1736083
8 years ago
Tomasz Włostowski
9932ff32ae
refactoring: wrapped boost::optional in OPT<> class for the purpose of easier transition to C++17 in the future
8 years ago
Maciej Suminski
5eb56dd8b0
Coverity fixes
CIDs:
102571
168696
168701
168704
168706
168708
168710
168713
168716
168717
8 years ago
jean-pierre charras
2d6496c7f6
Replace UNIT by EAGLE_UNIT in Eagle plugin to avoid having a lot of useless hits when grep for "UNIT"
8 years ago
Maciej Suminski
7d7303215b
Eagle PCB import plugin: more descriptive warning messages
8 years ago
Maciej Suminski
ee8012a5cc
Eagle import plugin: Code clean-up and formatting
8 years ago
Maciej Suminski
25b8111341
Modified Eagle import plugins to use nanometers as the internal unit
8 years ago
Maciej Suminski
ce11e9a264
Eeschema Eagle Import: Changed convertTextSize() to ETEXT::ConvertSize()
8 years ago
Russell Oliver
2a0a999350
Eeschema Eagle Import: Code clean-up and formatting
8 years ago
Russell Oliver
3b0855d204
Eagle Project Import: Code cleanup and documentation.
- Also makes the project and file import functions filetype dependent.
- The change from IO_MGR::KICAD to IO_MGR::KICAD_SEXP removes a conflict from a compile definition for KICAD when compiling kicad/import_project.cpp
8 years ago
Russell Oliver
230e8978f5
Eagle Parser: Fix overwritten changes
8 years ago
Russell Oliver
a8fa64f158
Eeschema Eagle Import: Shift convertTextSize to common eagle parser.
8 years ago
Maciej Suminski
08907d4fe8
Eeschema Eagle Import: generate unique timestamps for multiunit parts
8 years ago
Russell Oliver
956ef0fa61
Eeschema Eagle Import: WIP trying to fix indirect memory leaks
8 years ago
Maciej Suminski
2adc3d48b4
Eeschema Eagle Import: Assign timestamps for modules
8 years ago
Russell Oliver
bb754b33d0
Eeschema Eagle Import: Parse instance attributes for value and refererence positions and alignment.
8 years ago
Russell Oliver
c274a21548
WIP: Symbols are imported and displayed, and save to cache file on schematic save.
8 years ago
Russell Oliver
b9edfe4fe4
WIP: Refactor symbol importation to account for multiple gates and device connect pin maps.
8 years ago
Russell Oliver
82cc0c7e2e
Common: Eagle parser add EPART, EINSTANCE, EGATE, ECONNECT, EDEVICE
8 years ago
Russell Oliver
96317fb7c3
Common: Reorder some functions in eagle_parser.*
8 years ago
Maciej Suminski
e03bc32e49
Eagle plugin: Code formatting
8 years ago
Maciej Suminski
f049b01a59
Eagle plugin: Added 'static' and 'const T&' as applicable
8 years ago
Russell Oliver
ea8f7ed02d
Eeschema: Eagle plugin> work on schematic and symbol elements
8 years ago
Maciej Suminski
c727423979
Work in progress
- !! Eeschema uses Eagle plugin for loading schematics (i.e. it does not
use KiCad format anymore)
- Fixed build errors
- Fixed a few crashes
- Code formatting
9 years ago
Maciej Suminski
f5b2a2ea57
Code formatting and cleanup
9 years ago
Maciej Suminski
2ac8ab2a8f
Eagle layers as enums
9 years ago
Maciej Suminski
99f65f4dbf
Added const T& to Eagle PCB import plugin methods
9 years ago
Alejandro García Montoro
9cf934ef17
Moves Eagle XML parser to common, replacing boost with wx.
All E'STRUCTS' are moved to common except for ERULES (which is
specific to pcbnew and needs its internal units), still in
pcbnew/eagle_plugin.{h,cpp}
In order to get rid of another boost dependency, this also changes
the parsing of the XML from Boost.PropertyTree to wxXml.
To replace boost::optional, an OPTIONAL_XML_ATTRIBUTE class has
been implemented. This could be replaced with std::optional when
C++17 is ready.
9 years ago