- 27 Apr, 2012 1 commit
-
-
jean-pierre charras authored
-
- 26 Apr, 2012 2 commits
-
-
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 1 commit
-
-
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.
-
- 24 Apr, 2012 1 commit
-
-
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 2 commits
-
-
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; }
-
- 17 Apr, 2012 3 commits
-
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
- 16 Apr, 2012 5 commits
-
-
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.
-
Wayne Stambaugh authored
* Move all convert from user to internal units into base_units.cpp. * Remove internal units parameters from all moved conversion functions. * Revise all source code that calls the moved conversion functions. * Remove internal units from all dialog text control helper classes.
-
jean-pierre charras authored
Kicad manager: code cleaning. Dead code removed and minor fixes. support of new .kicad_brd extension.
-
Dick Hollenbeck authored
-
Wayne Stambaugh authored
* Scale page reference border and title block, grid sizes, and zoom factors correctly for nanometers.
-
- 15 Apr, 2012 1 commit
-
-
lajos kamocsay authored
Other minor fixes.
-
- 13 Apr, 2012 2 commits
-
-
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.
-
jean-pierre charras authored
drawframe.cpp: commit a fix about scrollbars from lajos kamocsay
-
- 12 Apr, 2012 2 commits
-
-
Wayne Stambaugh authored
* Move EDA_TEXT object into separate header and source file. * Compile EDA_TEXT class separately for BOARD_ITEM and SCH_ITEM units. * Compile PAGE_INFO class separately for BOARD_ITEM and SCH_ITEM units. * Minor formatting tweaks to Pcbnew s-expression file. * Move internal unit formatting functions into BOARD_ITEM and SCH_ITEM.
-
lajos kamocsay authored
-
- 11 Apr, 2012 1 commit
-
-
jean-pierre charras authored
If enable in preference menu, allow the pan with drag mouse with middle button down. both unlimited and limited pan is allowed.
-
- 09 Apr, 2012 2 commits
-
-
jean-pierre charras authored
Enhancements in AddMenuItem (that accepts now a menu type) Partial use of the Edwin van den Oetelaar's patch (patch not fully working or correct)
-
Miguel Angel Ajo authored
-
- 08 Apr, 2012 1 commit
-
-
Alexander Zakamaldin authored
But when using raw printing (for linux - 'lpr some_file.ps') the bug gets out. Alexander.
-
- 07 Apr, 2012 2 commits
-
-
Wayne Stambaugh authored
* Save dialog now supports saving boards to new file format. * Add CMake option to build s-expression file save. * Add check to main CMakeList.txt file to make sure nanometers are enables when the new file format is built. * Minor tweaks to object format functions for improved output. * Rename kicad_plugin.h/cpp to legacy_plugin.h/cpp.
-
jean-pierre charras authored
-
- 05 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 02 Apr, 2012 1 commit
-
-
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
-
- 01 Apr, 2012 1 commit
-
-
Wayne Stambaugh authored
* Add s-expression Format() function to all objects derived from BOARD_ITEM. * Add s-expression Format() function to base objects as required. * Add functions to convert coordinates from base internal units (nanometers) to millimeter string for writing to s-expression file. * Add temporary dummy conversion functions to prevent link errors until schematic and board object and action code can be separated into DSO/DLL. * Add CMake build option to build Pcbnew with nanometer internal units.
-
- 27 Mar, 2012 1 commit
-
-
jean-pierre charras authored
Eeschema: one string with a bad char (\a, not useable in internationalized strings). Dialog_page_settings: use not translated strings in code, so strings can be freely translated for the UI. (Initial code was not working with existing translations) Update 2 icons.
-
- 26 Mar, 2012 2 commits
-
-
Wayne Stambaugh authored
* BLOCK_SELECTOR class is not longer derived from EDA_ITEM. * Encapsulate BLOCK_SELECTOR class member variables and add access methods. * Move HandleBlockBegin() function from block_commande.cpp to drawframe.cpp. * Remove virtual methods from top level derived objects per future coding policy change. * Remove Doxygen copydoc statement from objects derived from EDA_ITEM since the comments are automatically copied to the derived object. * Removed copy and pasted Doxygen comments from objects derived from EDA_ITEM.
-
Alexander Zakamaldin authored
-
- 24 Mar, 2012 1 commit
-
-
jean-pierre charras authored
class EDA_RECT: is no more derived from EDA_ITEM, just from EDA_RECT (reason: does not use anything in EDA_ITEM) issue in cast to wxRect fixed (EDA_RECT accepts negative size, but not wxRect, so the wxRectcast is normalized now). This fixes some bugs. A minor other bug fix in Pcbnew.
-
- 22 Mar, 2012 1 commit
-
-
Dick Hollenbeck authored
Add include/dialog_shim.h and common/dialog_shim.cpp for use by wxformbuilder's "subclass a wxDialog" support. This works, but in my version of wxformbuilder there is a bug which does not properly show the subclass property, even though it is still in play. This happens after saving then loading the *.fbp file. So it is a nuisance bug, but does not affect functionality.
-
- 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 2 commits
-
-
Joe Ferner authored
-
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.
-