Commit Graph

898 Commits

Author SHA1 Message Date
Wayne Stambaugh aeb6dd8cc7 Minor schematic object improvements and code cleaning. 2010-11-03 10:13:15 -04:00
jean-pierre charras 8724386be2 fix minor issues in internationalized strings 2010-11-01 19:33:44 +01:00
jean-pierre charras 527de3e5aa Minor enhancements, and minor code cleanup. Eeschema: added hotkey J to place junctions 2010-10-30 12:03:41 +02:00
Wayne Stambaugh 2c69cd319b Fix bug in EESchema when testing for overlapped lines. 2010-10-29 13:23:41 -04:00
jean-pierre charras 787ca931f1 Fix bug in PolyLine.cpp, Fix bug in DRC calculations (see changelog).
Cvpcb and Gerbview: move dialog files in dialogs/.
Eeschema: fix bug in libedit: crashes with import a symbol.
2010-10-28 18:30:48 +02:00
jean-pierre charras fd1c159a59 Fix bug in PolyLine.cpp, Fix bug in DRC calculations (see changelog). Cvpcb: move dialog files in dialogs/ 2010-10-28 15:02:07 +02:00
Wayne Stambaugh 1e7d95d58e Begin schematic object rationalization and other minor improvements 2010-10-26 16:25:48 -04:00
jean-pierre charras e0f8b04c20 Eeschema: added dialog_plot_schematic_DXF_base.* 2010-10-26 11:24:31 +02:00
jean-pierre charras 4f0273b09a Eeschema: converted HPGL plot dialog from Dialogblocks to wxFormBuilder 2010-10-26 10:22:38 +02:00
jean-pierre charras 64be6fd26a Eeschema: converted plot PS dialog from Dialogblocks to wxFormBuilder Fixed a minor bug when plotting shapes with filled in background option. Pcbnew: Added locked modules block patch 2010-10-25 18:14:36 +02:00
Wayne Stambaugh 6566b0c5fa Schematic component library object improvements and other minor fixes. 2010-10-25 11:43:42 -04:00
jean-pierre charras bd022c23a3 Libedit: fixed draw artefacts when editing a graphic symbol. fixed minor issues in undo and abort commands when editing graphic items. 2010-10-23 15:49:14 +02:00
jean-pierre charras 0c24113dc0 Libedit: minor enhancements. Update Boost::Polygon 2010-10-23 12:09:23 +02:00
Vovanium 15652d8d34 Make option not uppercasing component names. I'm so bored with my Eeschema is convert ADuC, Si, component names to ADUC, SI etc., so I contribute this patch so anyone now may keep components 2010-10-22 19:02:11 +04:00
Wayne Stambaugh 185a2544b5 Component library editor bug fixes and other minor fixes.
* Fix bug that prevented component from being replaced in library when
  the component root name was changed.
* Fix drawing bug when changing text or field item string while move in
  progress.
* Fix drawing bug when rotating text item while move in progress.
* Prevent undo or redo when editing a component draw item.
* Fix assert bug when replacing component in library when the component
  root name was changed.
* Fix bug in field editor caused by new root alias implementation that
  prevented any field from being changed.
* Fix minor spacing issues with EESchema find dialog.
* Deprecate remaining internal linked list code from component library
  objects.
* Rename pin object files to match new library object file naming
  scheme.
* Move LIB_TEXT object definition into it's own header file.
2010-10-22 08:11:52 -04:00
jean-pierre charras 62916eb28f Fixed bug 664795 (not connected electrical pin type) 2010-10-22 09:52:55 +02:00
jean-pierre charras 796eca5c64 Eeschema: added hotkeys in libedit. Update Boost::polygon 2010-10-21 21:01:37 +02:00
Dick Hollenbeck c3924e6fc9 fix bug lp:663929 2010-10-20 19:18:42 -05:00
Wayne Stambaugh 285d9b649d Major component library ojbect editing code refactor.
* All library component object editing is now performed with the ojbect
  except LIB_PIN (coming soon).
* Added TRANFORM class to handle coordinate transforms.
* Remove old transform matrix functions.
* More file renaming to align them with the other component library
  object file names.
* Fix hot key bugs in library editor to disable edit keys while an item
  is being edited.
* Fixed bug when cancelling rotation of text and field objects while
  being moved.
2010-10-20 16:24:26 -04:00
jean-pierre charras 4cdc2c5048 Eeschema: added pin names in search function. Fixed minor issues in search function. Known bug: "search next" searches for pins in next component, not the next pin in the same component.
Pcbnew: fixed an old minor issue when moving the layer manager window (not fully fixed, but  wxAuiManager seems have minor bugs and lacks).
2010-10-20 21:43:58 +02:00
jean-pierre charras 9ec8d53604 Gerbview: Added support for gerber command SR (Step and Repeat) and multiple MOIN and MOMM in file 2010-10-15 20:59:26 +02:00
Wayne Stambaugh e8bb7d1ef5 Fix segfault when replacing an existing component in a library. 2010-10-12 16:44:39 -04:00
jean-pierre charras 2ddcbe1a01 Eedchema: class_libentry.* : wxString GetLibraryName() is now virtual 2010-10-12 12:28:30 +02:00
Wayne Stambaugh fc0864befa Schematic component library object code cleaning and refactoring.
* Break classes_body_item.cpp(.h) into more reasonable size bites.
* Rename classes_body_item.cpp(.h) to lib_draw_item.cpp(.h)
* Fix some unsatisfied header file dependencies.
* Add stubs to component library draw item base classe to handle editing
  internally.
* Lots of code cleaning.
2010-10-08 16:40:57 -04:00
Wayne Stambaugh 3335ccd98d Initial work on new component library stucture.
* Use C++ map in component library instead of boost::ptr_vector.
* Drop Boost pointer containers for standard C++ containers.
* Moved duplicate name user interface elements from library object to
  library editor.
* Added code to support direct addition and replacement of component
  alias objects into libraries.
* Removed temporary strings used to add and remove alias objects.
* Libraries only store alias objects, components now accessed thru alias.
* Simplify library API for adding, removing, and replacing components.
* Updated edit component in library dialog and library editor to reflect
  component library object changes.
* Fixed bug in library viewer when displaying alias name.
* Made a few header files compile stand alone per the new coding policy.
* Remove some dead code and the usual code formatting fixes.
2010-10-04 14:54:14 -04:00
jean-pierre charras a188f9d06e added orto2 patch 2010-10-04 14:58:07 +02:00
Andrey Fedorushkov d247025d19 minor improvement for russian GOST build BOM 2010-09-30 18:19:09 +04:00
Dick Hollenbeck 2dc5327634 pieces of Amir's 2010-09-28 patch 2010-09-29 13:19:26 -05:00
Andrey Fedorushkov 3ae0df15ee add new pin style to schema file, minor change kicad command frame icon 2010-09-26 09:35:29 +04:00
Vovanium cd778c125e Added two pin shapes:
* reverted clock ( --<| ) as it is commonly used for inverted clock in x-USSR
* nonlogic       ( ---X ) for non-logic pins of logic ICs (commonly used for power and timing RC pins).
2010-09-24 20:00:40 +04:00
Marco Serantoni e149951bba OSX - should resolve problems on case sensitive filesystem 2010-09-19 13:06:30 +02:00
jean-pierre charras 59f25e7f3c fixed bugs 639774 and 639586 2010-09-15 19:50:47 +02:00
jean-pierre charras 658ca2a21e Fixed some issues about trapezoidal pads. Better pad editor dialog. fixed other (very) minor bugs. Code cleaning 2010-09-11 18:33:43 +02:00
Wayne Stambaugh 0c3541b7c1 Component library object refactoring and minor code cleaning. 2010-09-09 13:37:25 -04:00
jean-pierre charras 363548f266 Due to (minor) problems in block rotate/mirror (display and undo/redo) go back to old behavior (command immediately executed , and do not entering a move block aftera block mirror/rotate) 2010-09-06 11:10:12 +02:00
jean-pierre charras 352dcb3823 added eeschema rotate block patch from pascal baerten. Uncrustify files. fixed some issues. 2010-09-05 19:01:48 +02:00
jean-pierre charras b45a35b719 Switch to new Kicad about dialog: removing old code. 2010-09-03 19:39:57 +02:00
Dick Hollenbeck fe6591b287 formatting cleanups 2010-08-31 05:44:38 -05:00
Yury Khalyavin b2a09cc26d https://lists.launchpad.net/kicad-developers/msg05013.html 2010-08-31 05:43:10 -05:00
jean-pierre charras 4264ddb061 netform.cpp added in intermediate netlist the pin list for each component in schematic. Some netlist formats (spice, orcadpcb2) are very simple to create with this pins list. 2010-08-29 21:33:29 +02:00
Marco Mattila 9936bef7f8 https://lists.launchpad.net/kicad-developers/msg05202.html 2010-08-29 13:15:19 -05:00
Marco Mattila 356835c87f https://lists.launchpad.net/kicad-developers/msg05228.html 2010-08-29 11:09:07 -05:00
jean-pierre charras f77121a57a Fixed compatibility with wxWidegets 2.9.1.
Added hotkeys editor from David Turner, with a lot of enhancements and fixes
Added pins connections info in intermediate netlist for each compoment. This is redundant, but some netlist formats (ORCADPCB, PSPICE) are very easy to create with this redundant info.
2010-08-28 20:02:24 +02:00
Wayne Stambaugh 91530e7a60 Added help menu item to copy bug report information to clipboard. 2010-08-24 13:26:51 -04:00
jean-pierre charras 8921272a2f fixed libedit regression 2010-08-22 19:42:55 +02:00
jean-pierre charras c108af9841 Added a plugin to create cadstar netlist, using the new intermediate file.
fixed issues in pads-pcb xsl converter
2010-08-20 15:41:36 +02:00
Dick Hollenbeck 92d58ffea4 XML tweaks 2010-08-19 09:02:49 -05:00
Dick Hollenbeck 36575c0e1a go back to XML from S-expressions in WriteGENERICNetList() 2010-08-11 14:54:22 -05:00
Dick Hollenbeck 0ceb19879b implement OUTPUTFORMATTER::Quoted() 2010-08-11 14:52:44 -05:00
Dick Hollenbeck 0980306f2a fix stylesheet 2010-08-11 10:32:44 -05:00
Dick Hollenbeck 97767241e4 fix path bug, use lower case local variable names please 2010-08-11 09:47:16 -05:00
Dick Hollenbeck b3f13be336 https://lists.launchpad.net/kicad-developers/msg05157.html 2010-08-11 00:58:34 -05:00
Wayne Stambaugh 3c878aecdd MSVC compile error and memory leak fixes.
* Fixed multiple line strings causing MSVC compile errors.
* Fixed memory leak when attempting to add duplicate library component.
* Added recent cmake generated files to bazaar ignore list.
* Minor code cleaning.
2010-08-10 11:42:26 -04:00
Dick Hollenbeck 6c5927c536 ++CMakeModules:
Revise TokenList2DsnLexer.cmake to take outCppFile and outHeaderFile optinally
    and enum mandatorily.  Standardize the script's invocation technique within
    all the CMakeLists.txt files.
2010-08-09 11:56:00 -05:00
Dick Hollenbeck fb0bb79a8d TokenList2DsnLexer.cmake, netform.cpp enhancements 2010-08-08 21:03:16 -05:00
Dick Hollenbeck f285c8295b S-expression in xnode.cpp 2010-08-07 19:31:07 -05:00
Dick Hollenbeck b615939120 change to XNODE and XATTR classes 2010-08-07 10:31:32 -05:00
Dick Hollenbeck 2c44d8175f add XNODE and XATTR classes 2010-08-07 10:25:18 -05:00
Dick Hollenbeck c36bc5510d add *.xsl pluging, fix eeschema/plugins/CMakeLists.txt to install it. 2010-08-05 09:38:20 -05:00
Dick Hollenbeck b9eca9454e Change Node() to node(), changed top level element from <netlist> to <export>, version 'D' 2010-08-05 09:20:12 -05:00
Dick Hollenbeck 42f710a945 XML export work 2010-08-04 14:14:51 -05:00
Jason Oster 86a6c4de3b Fix EESchema crash bug on Mac with wxWidgets 2.9 2010-08-03 09:19:55 -04:00
Dick Hollenbeck df9dae6d8e rename NETLIST_HELP to EXPORT_HELP to generalize it a bit 2010-08-03 00:16:13 -05:00
Dick Hollenbeck 2213a347e9 netlist export speed optimizations, bug fix in NETLIST_HELP::FindAllInstancesOfComponent that I put in there yesterday. 2010-08-03 00:11:05 -05:00
Dick Hollenbeck 5d7410c9ea Put netform.cpp functions into a class so scratch memory objects can be freed.
Improve code performance and appearance
2010-08-02 21:13:33 -05:00
Dick Hollenbeck a2b3a4cf94 more work on generic netlist export 2010-07-31 18:57:36 -05:00
Dick Hollenbeck 81bcc8d73a trying to reduce the imporantance of field ids for user defined fields in eeschema 2010-07-31 12:20:34 -05:00
Dick Hollenbeck 43d7b7237e user defined fields should fill next available component field slot 2010-07-31 11:19:51 -05:00
Dick Hollenbeck 1f18ff2812 merge from testing 2010-07-31 10:48:11 -05:00
Dick Hollenbeck 8d777fc6d9 Merge new generic netlist work, code cleaning, and BOM fixes 2010-07-30 16:55:02 -05:00
Dick Hollenbeck 4eb80203bb ++eeschema:
* Now link with XML support within wxWidgets.
  * Start of export the generic netlist in XML.  Still need to rework the chain
    loaded netlist plugin.
  * OBJ_CMP_TO_LIST class now uses a std::string to hold the 8 bit string m_Ref,
    but hides this behind accessors which provide for both Unicode and 8 bit
    set and get functions.
  * build_BOM.cpp retains the selected filename on subsequent runs as a default.
  * Code cleaning, especially in build_BOM.cpp.
2010-07-30 16:41:55 -05:00
jean-pierre charras f9b3ecc4fa fixed bug 611580 (EESchema: Negative Repeat Insert Impossible) 2010-07-30 21:31:05 +02:00
jean-pierre charras 0a63587342 added " pcbnew module editor toolbar items now in menubar" patch from Jerry Jacobs. Fixed TODO.
minor code cleaning. fixed minor warnings in debug mode.
2010-07-29 22:00:24 +02:00
jean-pierre charras 1794a2ae73 Updated boost to version 1.34. Added boost::polygon (experimental).
Fixed some issues with wxWidgets 2.9.1 (fixed Gerbview and Pcbnew crashes under Linux when starting. Could explain also crashes under MACOSX)
Code cleaning.
pcbnew:
    Added experimental zone fill calculations with boost::polygon
    old file zones_convert_brd_items_to_polygons.cpp has now 2 versions:
    zones_convert_brd_items_to_polygons_with_Boost.cpp use boost::polygon to calculate filled areas
    zones_convert_brd_items_to_polygons_with_BKbool.cpp use kbool (code cleaned).
    >>> to use boost polygon version:
        call cmake with option: -DUSE_BOOST_POLYGON_LIBRARY=ON
Eeschema: added patches from Yuri Khalyavin
2010-07-27 20:36:16 +02:00
jean-pierre charras 141d5b5f3c fixed somes issues with wxWidgets 2.9.1 2010-07-27 14:47:08 +02:00
jean-pierre charras 1d9c3cce7f fixed minor issues. 2010-07-27 11:01:26 +02:00
jean-pierre charras 90621bef00 Updated boost to version 1.34
Added boost::polygon (experimental)
Added experimental zone fill calculations with boost::polygon
Added patches from Yury Khalyavin
2010-07-26 19:06:36 +02:00
Dick Hollenbeck 5ae97bb3e4 [Kicad-developers] Add close shortcut to Library Editor -- from Yuri 2010-07-23 09:12:37 -05:00
Yury Khalyavin 0191ee9a6e Set focus in library edit item dialog so escape key closes dialog in wxGTK. 2010-07-22 16:12:40 -04:00
jean-pierre charras 3c3727039f minor enhancements. fixed issues in microwave tools.
finished replacement of Get_Message (not very useful) by wxTextEntryDialog
2010-07-21 10:15:54 +02:00
Marco Mattila 42022cfc6b https://lists.launchpad.net/kicad-developers/msg04976.html 2010-07-20 20:37:34 -05:00
jean-pierre charras e286b6f81d fixed very minor compil warning 2010-07-20 20:20:06 +02:00
jean-pierre charras b102776b5f merge diff from Launchpad 2010-07-20 20:16:29 +02:00
Yury Khalyavin 4fc3e40712 This path select next item in "Component library files" after deleted
item.
2010-07-20 12:05:11 -05:00
jean-pierre charras 5605ce89ff Fixed very minor issues.
Fixed compil warning under wxWidgets 2.9.1.
File beautification
Statring using wxTextEntryDialog instead of Get_Message (because Get_Message does not handle properly cancel option)
2010-07-20 12:30:40 +02:00
Dick Hollenbeck 2fb1de809f Running cmake with -DCMAKE_BUILD_TYPE="Debug" causes build errors at:
/pcbnew/class_netclass.cpp:324
eeschema/class_sch_component.cpp:933
2010-07-19 10:40:54 -05:00
jean-pierre charras 6292dcba76 minor fix 2010-07-17 14:04:42 +02:00
jean-pierre charras 28a3e5840f Added grag labels patch 2010-07-17 13:14:57 +02:00
Mathew Beckler 6c9f6ed760 https://lists.launchpad.net/kicad-developers/msg04973.html 2010-07-15 09:18:11 -05:00
jean-pierre charras f45c260a00 Code cleaning. Minor fixes. Better link to gnucap.
Fixed a minor issue when creating a netlist. for nets having global labels, global label names were ignored when naming this net.
2010-07-14 15:24:36 +02:00
Dick Hollenbeck bc14e66d78 A little useful feature: even if the default unit can be changed between
inches and mm, the industry is crazy enough to force us with mixed
design. For example I routinely use imperial units for track size and
clearance, but drilling is strictly a metric issue...

So I added a little parser to recognize a suffix specification in the
unit text boxes... so you can put in things like:
1in (1 inch)
1" (idem)
25th (25 thou)
25mi (25 mils, the same)
6mm (6 mm, obviously)

The rules are: spaces between the number and the unit are accepted, only
the first two letters are significant.

As a bonus, it also recognize the period (.) as a decimal point
substituting it with the correct locale character (there was a wishlist
for it, IIRC). Most useful for number pad fans :D
2010-07-12 09:07:09 -05:00
jean-pierre charras 0d530fb353 dialog_edit_component_in_schematic: moved "Reset to Library Default" Button. This command is now undoable. 2010-07-11 19:26:03 +02:00
jean-pierre charras 052876079a fixed bug 603481. Better bitmap2component look. fixed some locate problems for footprints using polygons (mainly created by bitmap2component) 2010-07-11 18:24:44 +02:00
Dick Hollenbeck ce0eec899c fix comment to proper English 2010-06-30 08:08:50 -05:00
jean-pierre charras 1872a80836 Cleaning code: moved some help strings used both in toolbars and menus in a single file help_common_strings.h,
in order to avoid slightly different help strings for the same command, and avoid some not needed  translations.
2010-06-30 13:15:34 +02:00
jean-pierre charras c580d5d72c fixed a serious bug in zone filling, for pads with drill but not on all layers 2010-06-28 15:11:14 +02:00
Wayne Stambaugh e1b5d49f1b EESchema component library and hierarchical sheet label object improvements.
* Continue component library class clean up and encapsulation work.
* Change hierarchical sheet label container to boost::vector_ptr.
* Encapsulate hierarchical label handling in hierarchical sheet class.
* Convert some missed occurrences of wxString::GetData() to GetChars( wxString ).
* Fix some minor code formatting issues.
2010-06-24 14:31:43 -04:00
jean-pierre charras 3543ba65de ++eeschema:
In netlist generation, changed the rule to calculate netnames of nets with labels:
    Previously, named nets (i.e. nets with local, hierarchical or global labels) have their name
    defined by the first label found in list.
    So net names could be changed without really changing the schematic.
    Now the names are calculated from the rules (by priority order) :
    1 - use the most top level labels in hierarchies.
    2 - use global labels first, local labels next (hidden power pins names are global labels).
    3 - use alphabetic sort (so, if GND and AGND are connected, the net will be always named AGND,
    and adding a VSS connection cannot change the net name)
    So power nets and nets that have more than one label cannot have their netname changed
    if there is no actual change relative to these nets names in schematic
2010-06-23 19:00:12 +02:00
jean-pierre charras 9cf56261b6 give an icon to bitmapt2component frame 2010-06-20 16:47:30 +02:00
jean-pierre charras c22c0bada9 merging last changes from repository 2010-06-19 15:52:32 +02:00