- 06 May, 2012 5 commits
-
-
Dick Hollenbeck authored
-
jean-pierre charras authored
-
jean-pierre charras authored
-
jean-pierre charras authored
Eeschema (also Libedit and Libview) now starts always to the default grid (50 mils) Gerbview starts with the last selected grid, but the validity is tested. In Pcbnew the grid value is always displayed, so it should always be good.
-
jean-pierre charras authored
Eeschema (also Libedit and Libview) starts always to the default grid (50 mils) Gerbview starts with the last selected grid, but the validity is tested. In Pcbnew the grid value is always displayed, so it should always be good.
-
- 05 May, 2012 4 commits
-
-
Dick Hollenbeck authored
-
Jerry Jacobs authored
-
Jerry Jacobs authored
-
Dick Hollenbeck authored
Delete LEGACY_PLUGIN cache after deleting library of same name. Remove automatically generted freerouter help header. Add Normalize() to BOX2. Clamp some values in the virtual space of drawframe.cpp
-
- 04 May, 2012 3 commits
-
-
jean-pierre charras authored
-
jean-pierre charras authored
Should allow Pcbnew code easier to change and Gerbview code more understandable and easier to maintain. Code cleaning (remove dead code, add comments). Minor other enhancements.
-
jean-pierre charras authored
Should allow Pcbnew code easier to change and Gerbview code more understandable and easier to maintain. Code cleaning (remove dead code, add comments). Minor other enhancements.
-
- 03 May, 2012 3 commits
-
-
Lorenzo Marcantonio authored
Fix some warning compil issues. Add zlib sources to avoid build issues under Windows (zlib not installed with mingw).
-
jean-pierre charras authored
-
jean-pierre charras authored
Add patch from Lorenzo Marcantonio. Fix some warning issues, and zlib issue under Windows (zlib sources added)
-
- 02 May, 2012 1 commit
-
-
Frank Bennett authored
to Kicad from other EDA tools. edif2kicad / EDIF to EEschema schematic import Tools with EDIF out writer: o OrCad o DataXpress o Viewlogic o IntuSoft ICAP o Protel nVisage o PADS ? o P-CAD ? o EDIF viewer (www.cimmetry.com) o EDIF translator (www.elgris.com/content/edif_overview.html) pcb123net2kicad / converts a pcb123 netlist to Kicad default format
-
- 01 May, 2012 1 commit
-
-
jean-pierre charras authored
-
- 30 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
generation tool. For now, it is just an s-expression beautifier using our "non-specctra mode" version of s-expressions.
-
- 27 Apr, 2012 3 commits
-
-
jean-pierre charras authored
-
jean-pierre charras authored
-
jean-pierre charras authored
-
- 26 Apr, 2012 4 commits
-
-
jean-pierre charras authored
-
jean-pierre charras authored
All: change MILS_TO_IU_SCALING_FACTOR constant to IU_PER_MILS ( and MM_TO_IU_SCALING_FACTOR to IU_PER_MM) Also fix bug 985654.
-
jean-pierre charras authored
All: change MILS_TO_IU_SCALING_FACTOR constant to IU_PER_MILS ( and MM_TO_IU_SCALING_FACTOR to IU_PER_MM) Also fix bug 985654.
-
jean-pierre charras authored
All: change MILS_TO_IU_SCALING_FACTOR constant to MILS_PER_IU ( and MM_TO_IU_SCALING_FACTOR to MM_PER_IU) Also fix bug 985654.
-
- 25 Apr, 2012 3 commits
-
-
jean-pierre charras authored
-
jean-pierre charras authored
Other scaling factors (MILS_TO_IU_SCALING_FACTOR and DECIMILS_TO_IU_SCALING_FACTOR) also defined only in convert_to_biu.h. Allows different scaling value for Gerbview. Needs more tests.
-
Dick Hollenbeck authored
solution to see that it was not pre-computing constants when used in static initializers. So we have two use cases, and need two solutions to be optimal, since the compiler is too stupid to do the right thing. I think we need something else for compile time computable constants, to be optimal in both use cases. There is quite a bit of code savings by using a macro for that situation from my testing. To fully capitalize on this, we need to go back and make Mm2mils() and what not macros also, or have MACRO versions of them too.
-
- 24 Apr, 2012 2 commits
-
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
- 23 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
as a starting point * Make double Distance() take double arguments and remove internal range checking. * Start on EDA_DRAW_FRAME::AdjustScrollBars() and use "double" for most all calculations in anticipation of setting INT_MAX INT_MIN limits eventually.
-
- 22 Apr, 2012 1 commit
-
-
Wayne Stambaugh authored
* Move board item object Format() functions into PCB_IO object. * Change file format to use layer names instead of numbers. * Change file extension to kicad_pcb.
-
- 19 Apr, 2012 3 commits
-
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
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; }
-
- 18 Apr, 2012 2 commits
-
-
Dick Hollenbeck authored
-
jean-pierre charras authored
-
- 17 Apr, 2012 3 commits
-
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-