1. 13 Aug, 2014 1 commit
    • Dick Hollenbeck's avatar
      Modular KiCad Blueprint Milestone B), major portions: · 7e483f69
      Dick Hollenbeck authored
        *) When kicad.exe closes a project, close any open KIFACEs so that they cannot
           get disassociated from their true PROJECT.
        *) Allow loading eeschema library editor from kicad.exe
        *) Allow loading pcbnew library editor from kicad.exe
        *) Rename LIB_COMPONENT to LIB_PART.
        *) Add class PART_LIBS, and PART_LIB.
        *) Make PART_LIBS non-global, i.e. PROJECT specific.
        *) Implement "data on demand" for PART_LIBS
        *) Implement "data on demand" for schematic SEARCH_STACK.
        *) Use RSTRINGs to retain eeschema editor's notion of last library and part being edited.
        *) Get rid of library search on every SCH_COMPONENT::Draw() call, instead use
           a weak pointer.
        *) Remove all chdir() calls so projects don't need to be CWD.
        *) Romove APPEND support from OpenProjectFiles().
        *) Make OpenProjectFiles() robust, even for creating new projects.
        *) Load EESCHEMA colors in the KIWAY::OnKiwayStart() rather in window open,
           and save them in the .eeschema config file, not in the project file.
        *) Fix bug with wxDir() while accessing protected dirs in kicad.exe
        *) Consolidate template copying into PROJECT class, not in kicad.exe source.
        *) Generally untangle eeschema, making its libraries not global but rather
           held in the PROJECT.
      7e483f69
  2. 11 Jun, 2014 1 commit
  3. 03 Apr, 2014 1 commit
  4. 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
  5. 27 Feb, 2014 1 commit
  6. 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
  7. 18 Nov, 2013 2 commits
  8. 17 Nov, 2013 1 commit
  9. 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
  10. 21 Sep, 2013 1 commit
  11. 20 Sep, 2013 1 commit
  12. 06 Sep, 2013 1 commit
  13. 09 Aug, 2013 1 commit
  14. 19 Jul, 2013 1 commit
  15. 19 Jun, 2013 1 commit
  16. 28 May, 2013 1 commit
  17. 26 May, 2013 1 commit
  18. 25 May, 2013 1 commit
  19. 23 May, 2013 1 commit
  20. 22 May, 2013 1 commit
  21. 18 Apr, 2013 2 commits
  22. 09 Apr, 2013 1 commit
  23. 27 Mar, 2013 1 commit
  24. 19 Mar, 2013 1 commit
  25. 18 Feb, 2013 1 commit
  26. 19 Jan, 2013 1 commit
  27. 18 Jan, 2013 1 commit
  28. 10 Jan, 2013 2 commits
  29. 18 Oct, 2012 1 commit
  30. 04 Oct, 2012 1 commit
  31. 11 Jul, 2012 1 commit
  32. 08 Jun, 2012 1 commit
  33. 27 May, 2012 1 commit
  34. 25 Apr, 2012 1 commit
  35. 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
  36. 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
  37. 05 Apr, 2012 1 commit