- 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.
-
- 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; }
-
- 18 Apr, 2012 1 commit
-
-
jean-pierre charras authored
-
- 17 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 16 Apr, 2012 1 commit
-
-
Wayne Stambaugh authored
* Scale page reference border and title block, grid sizes, and zoom factors correctly for nanometers.
-
- 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 1 commit
-
-
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)
-
- 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
-
- 26 Mar, 2012 1 commit
-
-
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.
-
- 20 Mar, 2012 1 commit
-
-
jean-pierre charras authored
Remove 2 duplicate icons. Minor cosmetic enhancements and fixes in popup menus.
-
- 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.
-
- 28 Feb, 2012 1 commit
-
-
jean-pierre charras authored
Pcbnew: Hight contrast mode: commit last patch from Miguel Angel Ajo Pelayo, which also fixes an old bug. All: prepare better compatibility with wxWidgets 2.9.4. Works fine with 2.8.x (I hope...)
-
- 26 Feb, 2012 1 commit
-
-
Wayne Stambaugh authored
-
- 20 Feb, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 17 Feb, 2012 1 commit
-
-
jean-pierre charras authored
Design rules: increase number of vias and tracks sizes Pcbnew: netlist reader: change from my recent commits to keep netnames in pads for footprints not in netlist (allow an user to place some footprints by hand, set pads netnames and do not lost these netnames when loading a netlsit) Fix other very minor issues.
-
- 16 Feb, 2012 1 commit
-
-
jean-pierre charras authored
Code cleaning and other minor fixes.
-
- 24 Jan, 2012 1 commit
-
-
marco. authored
-
- 23 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 22 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 17 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 13 Jan, 2012 1 commit
-
-
jean-pierre charras authored
Gebview: fix issue in export to pcbnew (Track arc shapes are now exported, approximated by segments)
-
- 10 Jan, 2012 1 commit
-
-
jean-pierre charras authored
Pcbnew: fix issue when KICAD_NANOMETER is defined: when zones use htcth to show zones areas, hatch lines were incorrectly calculated (hunded of thousand lines created) Eeschema: fix issue in search: search not made in reference strings. Minor fixes, code cleaning and comment enhancements.
-
- 03 Jan, 2012 1 commit
-
-
Wayne Stambaugh authored
-
- 31 Dec, 2011 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.
-
- 22 Dec, 2011 2 commits
-
-
Dick Hollenbeck authored
-
Wayne Stambaugh authored
* EDA_DRAW_FRAME completely encapsulated. * Encapsulate the the low hanging fruit in EDA_DRAW_PANEL.
-
- 21 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
* EDA_RECT and EDA_ITEM completely encapsulated. * Removed unnecessary EDA_ITEM member m_Selected and replaced functionality with SELECTED flag bit.
-
- 17 Dec, 2011 1 commit
-
-
jean-pierre charras authored
Minor cosmetic enhancements. Pcbnew: more workd abput connection algorithms (work in progress)
-
- 16 Dec, 2011 2 commits
-
-
Wayne Stambaugh authored
-
Wayne Stambaugh authored
* EDA_DRAW_FRAME completely encapsulated except for DrawFrame member. * Moved members specific to Pcbnew from EDA_DRAW_FRAME to PCB_BASE_FRAME or PCB_EDIT_FRAME as appropriate. * Replace EDA_TOOLBAR with wxAuiToolBar as EDA_TOOL bar provided no additional functionality and made code less readable. * Remove EDA_TOOLBAR class definition from wxstruct.h and delete file wineda_toolbar.cpp. * Rename tool bar members to something more descriptive since the horizontal and vertical references wont mean anything once the tool bars are movable. * Lots of dead code removal.
-
- 14 Dec, 2011 3 commits
-
-
Wayne Stambaugh authored
-
Dick Hollenbeck authored
-
Dick Hollenbeck authored
-
- 12 Dec, 2011 2 commits
-
-
Wayne Stambaugh authored
-
Dick Hollenbeck authored
-
- 05 Dec, 2011 1 commit
-
-
Dick Hollenbeck authored
* Removed Pcb_Frame argument from BOARD() constructor, since it precludes having a BOARD being edited by more than one editor, it was a bad design. And this meant removing m_PcbFrame from BOARD. * removed BOARD::SetWindowFrame(), and BOARD::m_PcbFrame * Removed the global BOARD_DESIGN_SETTINGS which was in class_board.cpp * added BOARD_DESIGN_SETTINGS to the BOARD class, a full instance * a couple dialogs now only change BOARD_DESIGN_SETTINGS when OK is pressed, such as dialog_mask_clearance, dialog_drc, etc. * Removed common/pcbcommon.cpp's int g_CurrentVersionPCB = 1 and replaced it with build_version.h's #define BOARD_FILE_VERSION, although there may be a better place for this constant. * Made the public functions in PARAM_CFG_ARRAY be type const. void SaveParam(..) const and void ReadParam(..) const * PARAM_CFG_BASE now has virtual destructor since we have various way of destroying the derived class and boost::ptr_vector must be told about this. * Pass const PARAM_CFG_ARRAY& instead of PARAM_CFG_ARRAY so that we can use an automatic PARAM_CFG_ARRAY which is on the stack.\ * PCB_EDIT_FRAME::GetProjectFileParameters() may no longer cache the array, since it has to access the current BOARD and the BOARD can change. Remember BOARD_DESIGN_SETTINGS are now in the BOARD. * Made the m_BoundingBox member private, this was a brutally hard task, and indicative of the lack of commitment to accessors and object oriented design on the part of KiCad developers. We must do better. Added BOARD::GetBoundingBox, SetBoundingBox(), ComputeBoundingBox(). * Added PCB_BASE_FRAME::GetBoardBoundingBox() which calls BOARD::ComputeBoundingBox()
-
- 29 Nov, 2011 1 commit
-
-
Dick Hollenbeck authored
the GetPosition() and SetPosition() changes. It also starts towards making m_Orientation and m_Thickness fields private with accessors, but does not complete this latter goal.
-
- 28 Nov, 2011 1 commit
-
-
Dick Hollenbeck authored
-