1. 01 May, 2013 2 commits
    • jean-pierre charras's avatar
      3D viewer: Modify yhe way board items shapes are built: · 4ac7dd58
      jean-pierre charras authored
      * All items shapes  are converted to polygons.
      * Polygons are merged layer by layer (for calculation time reasons,zones are not merged)
      * for copper layers, vias and pads holes are substracted from polygons (but, for calculation time reasons,  not inside zones areas).
      * the look is better, mainly when displaying the copper thickness
      * solder and paste layers are now shown in 3D viewer.
      * the code was seriously cleaned (but still needs to be enhanced).
      * Note this is a work in progress which needs refinements.
      4ac7dd58
    • Lorenzo Marcantonio's avatar
      Angle and distances cleanup (preparing for angles in doubles) · 0e903dba
      Lorenzo Marcantonio authored
      - Removed spurious int casts (these are truncated anyway and will break
        doubles)
      
      - Applied the Distance, GetLineLength, EuclideanNorm, DEG2RAD, RAD2DEG
        ArcTangente and NORMALIZE* functions where possible
      
      - ArcTangente now returns double and handles the 0,0 case like atan2, so
        it's no longer necessary to check for it before calling
      
      - Small functions in trigo moved as inline
      0e903dba
  2. 29 Apr, 2013 1 commit
    • Wayne Stambaugh's avatar
      Pcbnew bug and warning fixes. · 218fb338
      Wayne Stambaugh authored
      * Fixed a bug in PCB_EDIT_FRAME::loadFootprints when no footprint libraries
        are found when attempting to load footprints.
      * Add a warning to PCB_EDIT_FRAME::loadFootprints to inform the user when
        a footprint library file cannot be found in any of the standard library
        search paths.
      * Changed FOOTPRINT_INFO::m_padCount to unsigned to prevent signed/unsigned
        comparison compiler warnings.
      * Put NestedSpace() function in netlist_reader.cpp inside conditional debug
        build statement to prevent warning in release builds.
      218fb338
  3. 28 Apr, 2013 2 commits
  4. 25 Apr, 2013 1 commit
    • Wayne Stambaugh's avatar
      Pcbnew NETLIST_READER improvements. · 61b4f8a9
      Wayne Stambaugh authored
      * Create separate NETLIST object to hold contents of netlist files.
      * Read entire netlist and footprint link files before making applying
        changes to board.
      * Add BOARD::ReplaceNetlist() function to eliminate the calls between the
        NETLIST_READER, PCB_EDIT_FRAME, and BOARD objects.
      * Change placement of new components below the center of the current board
        or in the center of the page if the BOARD is empty.
      * Add dry run option to netlist dialog to print changes to message control
        without making changes.
      * Add button to netlist dialog to allow saving contents of message control
        to a file.
      * Eliminate the need to compile netlist_reader_*.cpp in both CvPcb and Pcbnew.
      * Add netlist_reader_*.cpp to the pcbcommon library.
      * Remove redundant load component link file code from CvPcb.
      * Modify CvPcb new to work with the new NETLIST_READER object.
      * Add compare() function and < and == operators to FPID object.
      * Add REPORTER class to hide an underlying string writing implementation for
        use in low level objects.  Thank you Dick for the idea.
      * Lots of minor coding policy, Doxygen comment, and missing license fixes.
      61b4f8a9
  5. 11 Apr, 2013 2 commits
  6. 10 Apr, 2013 1 commit
  7. 09 Apr, 2013 2 commits
  8. 08 Apr, 2013 1 commit
    • Dick Hollenbeck's avatar
      Implement "KiCad s-epression" support for boost::property_tree's ptree, the 8 · 6bf3d7cd
      Dick Hollenbeck authored
      bit string version of property_tree. The ram resident structure of the ptree is
      mostly compatible with one created using the xml_parser from
      boost::property_tree, with slight differences in the way atoms are stored. The
      result is you can use Format() to convert from xml to s-expression, but not the
      other way around. You can write a simple s-expression beautifier in just a few
      lines of code.
      
      The main value however is the s-expression parser, i.e. Scan(), which is an
      alternative to crafting a custom recursive descent parser for a particular
      grammar. The tipping point depends on whether you want to read only a small
      portion of a much larger document. If so, then using the ptree will likely be a
      "faster to code" route. Documentation on how to navigate a ptree can be found on
      the boost website and there are a number of examples in the
      pcbnew/eagle_plugin.cpp file in this project. Powerful path navigation support
      makes it easy to extract a subset of a ptree.
      6bf3d7cd
  9. 07 Apr, 2013 2 commits
  10. 06 Apr, 2013 2 commits
  11. 05 Apr, 2013 4 commits
  12. 04 Apr, 2013 1 commit
    • Lorenzo Marcantonio's avatar
      More work on EDA_COLOR_T and layers. · d12a4592
      Lorenzo Marcantonio authored
      In particular the new mechanism for handling extended color palettes is in place,
      included renaming the ini keys and saving the color name instead of its index; this means better forward compatibility with palette changes.
      
      Since ini keys are changed, colors will be reset
      d12a4592
  13. 01 Apr, 2013 2 commits
  14. 31 Mar, 2013 2 commits
  15. 30 Mar, 2013 3 commits
  16. 29 Mar, 2013 1 commit
  17. 28 Mar, 2013 2 commits
  18. 27 Mar, 2013 2 commits
  19. 26 Mar, 2013 1 commit
  20. 19 Mar, 2013 1 commit
  21. 18 Mar, 2013 1 commit
    • Wayne Stambaugh's avatar
      More encapsulation work. · 7d0ec1a1
      Wayne Stambaugh authored
      * Complete encapsulation of the MODULE class.
      * Complete encapsulation of the EDA_TEXT class.
      * Encapsulate most of the ZONE_CONTAINER class.
      * Add pcbcommon library as a dependency for reSWIGging the scripting
        support.  This should cover most dependency cases.
      7d0ec1a1
  22. 13 Mar, 2013 1 commit
    • Wayne Stambaugh's avatar
      Pcbnew encapsulation and code cleaning. · 42d7bf6c
      Wayne Stambaugh authored
      * Encapsulate most of the MODULE class.
      * Start encapsulating the DIMENSION class.
      * Lay some groundwork for EDA_TEXT encapsulation.
      * Move cleverly hidden MODULE functions into class_module.cpp.
      * Use std::swap to exchange TEXTE_PCB values for undo/redo.
      * Remove unused members from MODULE class.
      * The usual coding policy and documentation fixes.
      42d7bf6c
  23. 08 Mar, 2013 1 commit
  24. 07 Mar, 2013 1 commit
    • Wayne Stambaugh's avatar
      Documentation and coding policy fixes. · 2ab86e74
      Wayne Stambaugh authored
      * Fix all Doxygen warnings except polygon files.
      * Add footprint library table tasks to TODO.txt.
      * Add definition to drag.h to prevent nesting.
      * Coding policy fixes.
      2ab86e74
  25. 01 Mar, 2013 1 commit