1. 30 Apr, 2014 1 commit
  2. 25 Apr, 2014 1 commit
    • Lorenzo Marcantonio's avatar
      TRACK/SEGVIA cleanup · 3f2c0e1a
      Lorenzo Marcantonio authored
      - SEGVIA becomes VIA
      - Drill size moved from TRACK to VIA
      - Removed shape from TRACK, becomes ViaType in VIA
      - GetTrace becomes GetTrack, for uniformity
      - Some minor constification and typo fixes
      3f2c0e1a
  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. 06 Mar, 2014 1 commit
  5. 03 Mar, 2014 1 commit
  6. 26 Jan, 2014 1 commit
  7. 07 Jan, 2014 1 commit
  8. 02 May, 2013 1 commit
  9. 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
  10. 13 Jan, 2013 1 commit
  11. 05 Oct, 2012 1 commit
  12. 22 Sep, 2012 1 commit
  13. 15 Sep, 2012 1 commit
  14. 29 Aug, 2012 3 commits
  15. 03 Jul, 2012 1 commit
  16. 03 May, 2012 1 commit
  17. 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
  18. 05 Apr, 2012 1 commit
  19. 16 Feb, 2012 1 commit
  20. 23 Jan, 2012 1 commit
  21. 22 Dec, 2011 1 commit
  22. 12 Dec, 2011 1 commit
  23. 08 Nov, 2011 1 commit
    • Wayne Stambaugh's avatar
      Minor fixes, dead code removal, and coding policy fixes. · cd0b2316
      Wayne Stambaugh authored
      * Use version of DateAndTime that returns a wxString and delete the
        version that takes a char* as it is no longer required.
      * Merge StrNumICmp() and StrLenNumICmp() into StrLenNumCmp() to create a
        single function for comparing strings with integers and remove a lot
        of duplicate code.
      * Remove unused strupper from string.cpp.
      * Use wxArrayString for sorting the EDA_LIST_DIALOG contents.
      cd0b2316
  24. 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
  25. 23 Sep, 2011 1 commit
    • Wayne Stambaugh's avatar
      PCB common library header rationalization. · edd35b4e
      Wayne Stambaugh authored
      * All header files used to create the PCB common library now compile as
        stand alone code.  This prevents the need to define them in a specific
        order to make source code compile properly.  It should also now be
        possible to relocate the source code to build the common PCB library
        to a separate folder.
      edd35b4e
  26. 06 Sep, 2011 1 commit
  27. 19 Aug, 2011 1 commit
  28. 01 Mar, 2011 1 commit
    • Wayne Stambaugh's avatar
      PCBNew control update bug fixes, fixes lp:725963. · 1010601a
      Wayne Stambaugh authored
      * Fix grid select box update bug on context menu.
      * Fix via size and track width select box update bugs.
      * Fix layer pair indicator button update bug.
      * Fix auto track width tool bar control enable bug.
      * Fix via size and track width select status bug in context menu.
      * Fix layer select box and layer control widget select bug when current
        layer is removed.
      * Add virtual function to notify objects derived from EDA_DRAW_FRAME that
        the units setting has changed.
      * Coding policy class naming fixes.
      1010601a
  29. 28 Feb, 2011 1 commit
  30. 20 Jan, 2011 1 commit
    • Wayne Stambaugh's avatar
      Schematic object encapsulation and other minor improvements. · e560573c
      Wayne Stambaugh authored
      * Encapsulate file name member of base screen object.
      * Encapsulate associated screen member of schematic sheet object.
      * Create add screen method to schematic sheet object to simplify setting
        the associated screen.
      * Move the change file name code in the schematic sheet object to the edit
        sheet method in the schematic editor frame object to eliminate message
        dialogs.
      * Improve reference counting in schematic screen object.
      * Add helper type definitions for changing schematic object storage to C++
        containers.
      e560573c
  31. 14 Dec, 2010 1 commit
  32. 29 Nov, 2010 1 commit
  33. 24 Nov, 2010 2 commits
  34. 30 Apr, 2010 1 commit
  35. 31 Jan, 2010 1 commit
  36. 05 Jan, 2010 1 commit
  37. 07 Dec, 2009 1 commit
    • dickelbeck's avatar
      ++pcbnew & gerbview · 860fbb16
      dickelbeck authored
        * Moved ReturnLayerName() to static BOARD::GetDefaultLayerName() and migrated
          to a Specctra DSN compatible default layer naming scheme:
              Component becomes Front, Copper becomes Back.
        * set_color.h: Cmp becomes Front, Cu becomes Back.
        * D_PAD::DisplayInfo() changed to use actual copper layer names.
        * more layer setup dialog work, moved all programmatic wxControl instantiation
          into the wxFormbuilder environment, but this is fraught with danger:
          wxFlexGridSizer used the tallest control to establish the row heights, so
          be careful about changing control borders in the scroll panel. The vertical
          size can explode since just a couple of pixels times the number of rows
          is substantial.  Currently I am setting a 5 pixel border only left, top, and right
          but not bottom.
        * Set copper layer count is back in place as a hack until I can get the enabled
          layer bit map fully operational.
      
      860fbb16