- 25 May, 2012 1 commit
-
-
Andrey Fedorushkov authored
-
- 24 May, 2012 1 commit
-
-
brian. authored
-
- 03 May, 2012 1 commit
-
-
jean-pierre charras authored
Add patch from Lorenzo Marcantonio. Fix some warning issues, and zlib issue under Windows (zlib sources added)
-
- 19 Apr, 2012 1 commit
-
-
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; }
-
- 13 Apr, 2012 1 commit
-
-
Wayne Stambaugh authored
* Move all convert from internal to user units functions into separate file. * Remove internal units parameter from all moved conversion functions. * Revise all source code that calls the moved conversion functions. * Compile these conversion routines separately for the appropriate pcb or schematic internal units. * Move internal units specific status bar update code into the appropriate application for updating the status bar. * Move millimeter user units rounding function to common.cpp.
-
- 19 Mar, 2012 1 commit
-
-
jean-pierre charras authored
Eeschema: fix a bug in bool SCH_LINE::MergeOverlap( SCH_LINE* aLine ): ends point of resulting segment incorrects. remove unused icon files.
-
- 17 Mar, 2012 1 commit
-
-
Wayne Stambaugh authored
* Remove double Clone() function calls from all classes derived from EDA_ITEM. * Lots of Doxygen comment warning fixes.
-
- 15 Mar, 2012 1 commit
-
-
Wayne Stambaugh authored
* All objects derived from EDA_ITEM now have consistent hit test method definitions. * Remove double function calls from all classes derived from SCH_ITEM. * Lots of Doxygen comment fixes.
-
- 26 Feb, 2012 1 commit
-
-
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.
-
- 23 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 29 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
* EDA_DRAW_PANEL completely encapsulated. * Moved OSX m_overlay member from EDA_DRAW_PANEL to EDA_DRAW_FRAME where it is used. * Doxygen comment warning fixes.
-
- 07 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
-
- 06 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
-
- 19 Oct, 2011 1 commit
-
-
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
-
- 11 Oct, 2011 1 commit
-
-
Wayne Stambaugh authored
* Define function to allow schematic objects to create their own net list objects. * Add net list object creation functions to schematic line, junction, and no connect objects. * Add license statements to all modified files that required one.
-
- 30 Sep, 2011 1 commit
-
-
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.
-
- 29 Aug, 2011 1 commit
-
-
Dick Hollenbeck authored
-
- 17 Jun, 2011 1 commit
-
-
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.
-
- 29 Mar, 2011 1 commit
-
-
Wayne Stambaugh authored
* Rename EDA_Rect class to EDA_RECT. * Rename EDA_TextStruct class to EDA_TEXT. * Remove duplicate Doxygen comments from sch_sheet_path.cpp.
-
- 26 Mar, 2011 1 commit
-
-
jean-pierre charras authored
-
- 28 Feb, 2011 1 commit
-
-
jean-pierre charras authored
Use UTF-8 encoding only in kicad files. Under Linux, this was already the case. Under Windows, texts with non ascii characters must be corrected. This ensure compatibility between platforms.
-
- 25 Jan, 2011 1 commit
-
-
jean-pierre charras authored
This was due to a duplicate constants ( with sligtly different values) used to select items in some seach functions that broke filtering. Old definitions removed.
-
- 21 Jan, 2011 1 commit
-
-
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.
-
- 20 Jan, 2011 1 commit
-
-
jean-pierre charras authored
Other minor fixes
-
- 07 Jan, 2011 1 commit
-
-
Wayne Stambaugh authored
* Move schematic select block from global variable to SCH_EDIT_FRAME. * Remove redundant schematic drawing code for eeredraw.cpp. * Move block select code into SCH_SCREEN object. * Simpilify block item select code. * Fix bug in SCH_LINE selection state test. * Add test to schematic objects for connectability. * Make copy block items function a private method in SCH_EDIT_FRAME.
-
- 21 Dec, 2010 1 commit
-
-
Wayne Stambaugh authored
-