1. 27 May, 2012 1 commit
  2. 25 May, 2012 3 commits
  3. 24 May, 2012 1 commit
  4. 23 May, 2012 1 commit
  5. 16 May, 2012 1 commit
  6. 13 May, 2012 1 commit
  7. 10 May, 2012 1 commit
  8. 06 May, 2012 2 commits
  9. 05 May, 2012 2 commits
  10. 04 May, 2012 1 commit
  11. 03 May, 2012 2 commits
  12. 27 Apr, 2012 1 commit
  13. 26 Apr, 2012 2 commits
  14. 25 Apr, 2012 1 commit
  15. 19 Apr, 2012 1 commit
    • Dick Hollenbeck's avatar
      // Dick Hollenbeck's KiROUND R&D · c24863c0
      Dick Hollenbeck authored
      // This provides better project control over rounding to int from double
      // than wxRound() did.  This scheme provides better logging in Debug builds
      // and it provides for compile time calculation of constants.
      
      
      #include <stdio.h>
      #include <assert.h>
      #include <limits.h>
      
      //-----<KiROUND KIT>------------------------------------------------------------
      
      /**
       * KiROUND
       * rounds a floating point number to an int using
       * "round halfway cases away from zero".
       * In Debug build an assert fires if will not fit into an int.
       */
      
      #if defined( DEBUG )
      
      // DEBUG: a macro to capture line and file, then calls this inline
      
      static inline int KiRound( double v, int line, const char* filename )
      {
          v = v < 0 ? v - 0.5 : v + 0.5;
          if( v > INT_MAX + 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' > 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          else if( v < INT_MIN - 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' < 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          return int( v );
      }
      
      #define KiROUND( v )    KiRound( v, __LINE__, __FILE__ )
      
      #else
      
      // RELEASE: a macro so compile can pre-compute constants.
      
      #define KiROUND( v )  int( (v) < 0 ? (v) - 0.5 : (v) + 0.5 )
      
      #endif
      
      
      //-----</KiROUND KIT>-----------------------------------------------------------
      
      // Only a macro is compile time calculated, an inline function causes a static constructor
      // in a situation like this.
      // Therefore the Release build is best done with a MACRO not an inline function.
      int Computed = KiROUND( 14.3 * 8 );
      
      
      int main( int argc, char** argv )
      {
          for( double d = double(INT_MAX)-1;  d < double(INT_MAX)+8;  d += 2.0 )
          {
              int i = KiROUND( d );
      
              printf( "t: %d  %.16g\n", i, d );
          }
      
          return 0;
      }
      c24863c0
  16. 16 Apr, 2012 4 commits
    • Wayne Stambaugh's avatar
      Removal of internal units. · bf5802f1
      Wayne Stambaugh authored
      * Remove internal units from BASE_SCREEN and it's derivatives.
      * Remove internal units from EDA_DRAW_FRAME and it's derivatives.
      * Use build time code to replace internal units conversions.
      * Fix scaling bug in page layout sample window that I created in my
        last commit.
      bf5802f1
    • Wayne Stambaugh's avatar
      More internal unit improvements. · 6468805c
      Wayne Stambaugh authored
      * Move all convert from user to internal units into base_units.cpp.
      * Remove internal units parameters from all moved conversion functions.
      * Revise all source code that calls the moved conversion functions.
      * Remove internal units from all dialog text control helper classes.
      6468805c
    • Dick Hollenbeck's avatar
      work on footprint plugin API · a42490e0
      Dick Hollenbeck authored
      a42490e0
    • Wayne Stambaugh's avatar
      Pcbnew nanometer internal unit fixes. · 8c0dc01f
      Wayne Stambaugh authored
      * Scale page reference border and title block, grid sizes, and zoom factors
        correctly for nanometers.
      8c0dc01f
  17. 15 Apr, 2012 1 commit
  18. 13 Apr, 2012 2 commits
    • Wayne Stambaugh's avatar
      More internal unit improvements. · 57d75a75
      Wayne Stambaugh authored
      * Move all convert from internal to user units functions into separate file.
      * Remove internal units parameter from all moved conversion functions.
      * Revise all source code that calls the moved conversion functions.
      * Compile these conversion routines separately for the appropriate pcb or
        schematic internal units.
      * Move internal units specific status bar update code into the appropriate
        application for updating the status bar.
      * Move millimeter user units rounding function to common.cpp.
      57d75a75
    • jean-pierre charras's avatar
      Eeschema: BOM list generation: some fixes and enhancements. · b28e976e
      jean-pierre charras authored
      drawframe.cpp: commit a fix about scrollbars  from lajos kamocsay
      b28e976e
  19. 12 Apr, 2012 1 commit
    • Wayne Stambaugh's avatar
      Internal unit improvements and Pcbnew s-expression file format changes. · bed96be7
      Wayne Stambaugh authored
      * Move EDA_TEXT object into separate header and source file.
      * Compile EDA_TEXT class separately for BOARD_ITEM and SCH_ITEM units.
      * Compile PAGE_INFO  class separately for BOARD_ITEM and SCH_ITEM units.
      * Minor formatting tweaks to Pcbnew s-expression file.
      * Move internal unit formatting functions into BOARD_ITEM and SCH_ITEM.
      bed96be7
  20. 11 Apr, 2012 2 commits
  21. 09 Apr, 2012 1 commit
  22. 07 Apr, 2012 1 commit
  23. 05 Apr, 2012 1 commit
  24. 01 Apr, 2012 1 commit
    • Wayne Stambaugh's avatar
      Initial Pcbnew s-expression file format commit. · d7feb9ab
      Wayne Stambaugh authored
      * Add s-expression Format() function to all objects derived from
        BOARD_ITEM.
      * Add s-expression Format() function to base objects as required.
      * Add functions to convert coordinates from base internal units
        (nanometers) to millimeter string for writing to s-expression
        file.
      * Add temporary dummy conversion functions to prevent link errors
        until schematic and board object and action code can be separated
        into DSO/DLL.
      * Add CMake build option to build Pcbnew with nanometer internal
        units.
      d7feb9ab
  25. 28 Mar, 2012 1 commit
  26. 27 Mar, 2012 1 commit
    • jean-pierre charras's avatar
      Fix issues about translations: · e356e6dc
      jean-pierre charras authored
      Eeschema: one string with a bad char (\a, not useable in internationalized strings).
      Dialog_page_settings: use not translated strings in code, so strings can be freely translated for the UI.
      (Initial code was not working with existing translations)
      Update 2 icons.
      e356e6dc
  27. 26 Mar, 2012 2 commits
    • Wayne Stambaugh's avatar
      Minor code improvements and coding policy fixes. · 45445dd8
      Wayne Stambaugh authored
      * BLOCK_SELECTOR class is not longer derived from EDA_ITEM.
      * Encapsulate BLOCK_SELECTOR class member variables and add access methods.
      * Move HandleBlockBegin() function from block_commande.cpp to drawframe.cpp.
      * Remove virtual methods from top level derived objects per future
        coding policy change.
      * Remove Doxygen copydoc statement from objects derived from EDA_ITEM
        since the comments are automatically copied to the derived object.
      * Removed copy and pasted Doxygen comments from objects derived from
        EDA_ITEM.
      45445dd8
    • Alexander Zakamaldin's avatar
      625e964c
  28. 24 Mar, 2012 1 commit