1. 13 Dec, 2013 1 commit
  2. 24 Nov, 2013 1 commit
  3. 06 Apr, 2013 1 commit
  4. 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
  5. 01 Apr, 2013 1 commit
  6. 28 Sep, 2012 1 commit
  7. 02 Sep, 2012 2 commits
  8. 01 Sep, 2012 1 commit
  9. 24 May, 2012 1 commit
  10. 03 May, 2012 1 commit
  11. 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
  12. 17 Mar, 2012 1 commit
  13. 15 Mar, 2012 1 commit
  14. 26 Feb, 2012 1 commit
    • Wayne Stambaugh's avatar
      Eeschema object list and other minor improvements. · aaa1cc3e
      Wayne Stambaugh authored
      * Convert Eeschema from manually linked list to DLIST for storing
        SCH_ITEM objects.
      * Add helper functions to SCH_SCREEN for appending list of SCH_ITEM
        objects.
      * Fix bug in wire editing code for accurate undo/redo behavior.
      * Add member to DLIST to append another DLIST.
      * Other minor code cleaning.
      aaa1cc3e
  15. 23 Jan, 2012 1 commit
  16. 09 Jan, 2012 1 commit
    • Wayne Stambaugh's avatar
      Eeschema schematic object improvements. · 409d6e8e
      Wayne Stambaugh authored
      * Remove unnecessary copy constructors from schematic and component
        library objects.
      * Add comment to class definitions where the default copy constructor
        generated by the compiler was adequate.
      * Add assignment operator to EDA_ITEM, SCH_ITEM, and all schematic
        objects where the default assignment operator generated by the
        compiler would not be adequate.
      409d6e8e
  17. 29 Dec, 2011 1 commit
  18. 18 Dec, 2011 1 commit
  19. 07 Dec, 2011 1 commit
  20. 06 Dec, 2011 1 commit
  21. 19 Oct, 2011 1 commit
    • Wayne Stambaugh's avatar
      Eeschema schematic item move code unification. · 6a4e8aa9
      Wayne Stambaugh authored
      * Add get and set position methods to all schematic items.
      * Encapsulate schematic item position members.
      * Add swap data method to schematic items that lacked one.
      * Remove global swap data function used by undo and redo functions.
      * Unify as many schematic move methods as possible.
      * Remove unnecessary place schematic item methods.
      * All schematic items are now moved in the same event handler.
      * Fixed bug in hierarchical sheet get menu item string method.
      * Make no connect and junction items movable, fixes lp:804048
      6a4e8aa9
  22. 16 Oct, 2011 1 commit
  23. 30 Sep, 2011 1 commit
    • Wayne Stambaugh's avatar
      Application name capitalization fixes. · 4b853ded
      Wayne Stambaugh authored
      * Correct all user strings and comments for the correct capitalization of
        application names according to JP.  They are KiCad, Pcbnew, CvPcb,
        Eeschema, and GerbView.
      * Add a note the the user interface policy about the correct capitalization.
      4b853ded
  24. 17 Jun, 2011 1 commit
    • Wayne Stambaugh's avatar
      Schematic object plot code refactoring and CMake required version changes. · c1802037
      Wayne Stambaugh authored
      * Change the minimum required CMake version to 2.6.4 for all build platforms
        except Windows and OSX.
      * Move all schematic plot code from plot.cpp into the appropriate schematic
        objects.
      * Create SCH_SCREEN plot method to plot all objects in the schematic
        screen.
      * Delete plot.cpp and remove it from the CMakeList file.
      c1802037
  25. 29 Mar, 2011 1 commit
  26. 28 Feb, 2011 1 commit
  27. 21 Jan, 2011 1 commit
    • Wayne Stambaugh's avatar
      EESchema code refactoring and coding policy naming fixes. · 73e38ce9
      Wayne Stambaugh authored
      * Move schematic wire and bus break code into schematic screen object.
      * Move schematic test for dangling ends into schematic screen object.
      * Remove left over debugging output in schematic screen object.
      * Remove unused file eeschema/cleanup.cpp.
      * Fix bug in schematic line object hit test algorithm.
      * Fix a string concatenation compile error added in r2752.
      * Rename class WinEDA_BasicFrame to EDA_BASE_FRAME.
      * Rename class WinEDA_DrawFrame to EDA_DRAW_FRAME.
      * Rename class WinEDA_DrawPanel to EDA_DRAW_PANEL.
      73e38ce9
  28. 21 Dec, 2010 1 commit