1. 11 Jun, 2014 1 commit
  2. 03 Apr, 2014 1 commit
  3. 20 Mar, 2014 1 commit
    • Dick Hollenbeck's avatar
      * KIWAY Milestone A): Make major modules into DLL/DSOs. · 2c67c3ff
      Dick Hollenbeck authored
      !   The initial testing of this commit should be done using a Debug build so that
          all the wxASSERT()s are enabled.  Also, be sure and keep enabled the
          USE_KIWAY_DLLs option.  The tree won't likely build without it.  Turning it
          off is senseless anyways.  If you want stable code, go back to a prior version,
          the one tagged with "stable".
      
      *   Relocate all functionality out of the wxApp derivative into more finely
          targeted purposes:
          a) DLL/DSO specific
          b) PROJECT specific
          c) EXE or process specific
          d) configuration file specific data
          e) configuration file manipulations functions.
      
          All of this functionality was blended into an extremely large wxApp derivative
          and that was incompatible with the desire to support multiple concurrently
          loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
          An amazing amount of organization come from simply sorting each bit of
          functionality into the proper box.
      
      *   Switch to wxConfigBase from wxConfig everywhere except instantiation.
      *   Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
          PGM_SINGLE_TOP,
      *   Remove "Return" prefix on many function names.
      *   Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
      *   Fix building boost for use in a DSO on linux.
      *   Remove some of the assumptions in the CMakeLists.txt files that windows had
          to be the host platform when building windows binaries.
      *   Reduce the number of wxStrings being constructed at program load time via
          static construction.
      *   Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
          these functions are useful even when the wxConfigBase comes from another
          source, as is the case in the KICAD_MANAGER_FRAME.
      *   Move the setting of the KIPRJMOD environment variable into class PROJECT,
          so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
      *   Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
          its child wxFrames and wxDialogs now have a Kiway() member function which
          returns a KIWAY& that that window tree branch is in support of.  This is like
          wxWindows DNA in that child windows get this member with proper value at time
          of construction.
      *   Anticipate some of the needs for milestones B) and C) and make code
          adjustments now in an effort to reduce work in those milestones.
      *   No testing has been done for python scripting, since milestone C) has that
          being largely reworked and re-thought-out.
      2c67c3ff
  4. 27 Feb, 2014 1 commit
  5. 09 Dec, 2013 1 commit
    • Dick Hollenbeck's avatar
      *) Change FOOTPRINT_LIST::ReadFootprintFiles( FP_LIB_TABLE*, const wxString*) · dba4fcce
      Dick Hollenbeck authored
         To use multiple working threads.  This entailed adding KiCad typedefs:
      *) Add typedefs for MUTEX and MUTLOCK which mask the actual choices for the project.
      *) Add FOOTPRINT_LIST::DisplayErrors( wxWindow* ) which is a single strategy for
         showing aggregated load errors.  Although what's there is only scaffolding
         and needs a volunteer who knows HTML pretty well.
      *) Ensure all callers of ReadFootprintFiles() use the new DisplayErrors() function.   
      *) Push utf8.cpp and utf8.h into common library for open use.
      dba4fcce
  6. 18 Nov, 2013 2 commits
  7. 17 Nov, 2013 1 commit
  8. 11 Oct, 2013 1 commit
    • jean-pierre charras's avatar
      Remove wxUSE_UNICODE definition from CMakeLists.txt, because this define comes... · a8e57e10
      jean-pierre charras authored
      Remove wxUSE_UNICODE definition from CMakeLists.txt, because this define comes from wxWidgets and should not be made inside kicad
      Remove KICAD_GOST option because it is  now useless: the 2 GOST options are now selectable at run time and are:
      * specific page layouts (now user definable, and the GOST page layouts are available in template folder)
      * notation for multiple parts per package (made in eeschema, preference menu)
      a8e57e10
  9. 21 Sep, 2013 1 commit
  10. 20 Sep, 2013 1 commit
  11. 06 Sep, 2013 1 commit
  12. 09 Aug, 2013 1 commit
  13. 19 Jul, 2013 1 commit
  14. 19 Jun, 2013 1 commit
  15. 28 May, 2013 1 commit
  16. 26 May, 2013 1 commit
  17. 25 May, 2013 1 commit
  18. 23 May, 2013 1 commit
  19. 22 May, 2013 1 commit
  20. 18 Apr, 2013 2 commits
  21. 09 Apr, 2013 1 commit
  22. 27 Mar, 2013 1 commit
  23. 19 Mar, 2013 1 commit
  24. 18 Feb, 2013 1 commit
  25. 19 Jan, 2013 1 commit
  26. 18 Jan, 2013 1 commit
  27. 10 Jan, 2013 2 commits
  28. 18 Oct, 2012 1 commit
  29. 04 Oct, 2012 1 commit
  30. 11 Jul, 2012 1 commit
  31. 08 Jun, 2012 1 commit
  32. 27 May, 2012 1 commit
  33. 25 Apr, 2012 1 commit
  34. 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
  35. 16 Apr, 2012 1 commit
    • 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
  36. 05 Apr, 2012 1 commit
  37. 02 Apr, 2012 1 commit
    • jean-pierre charras's avatar
      pcb_calculator: enhancement in Regulators page dialog: · 7ce97878
      jean-pierre charras authored
      * support for 3 terminal regulators
      * add a data file management to store parameters for regulators ( name, vref value, Iadj value, type)
      Needs some refinements, but it is already very useable.
      
       Commit dialog page setting patch from Alexander Zakamaldin
      7ce97878