- 30 Apr, 2014 1 commit
-
-
Lorenzo Marcantonio authored
- Converted the Next/Prev C casts to static casts and removed the type unsafe ones - Splitted as virtual the VIA::Flip member instead of using RTTI - Heavily refactored the 'unconnected track' cleanup routine - Misc constification
-
- 25 Apr, 2014 1 commit
-
-
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
-
- 20 Mar, 2014 1 commit
-
-
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.
-
- 06 Mar, 2014 1 commit
-
-
Wayne Stambaugh authored
-
- 03 Mar, 2014 1 commit
-
-
Martin Janitschke authored
-
- 26 Jan, 2014 1 commit
-
-
jean-pierre charras authored
Pcbnew: fix bug #1272714 . Code cleanup: use 2 different enums for pad shapes and pad drill shapes. Remove never used pad shape.
-
- 07 Jan, 2014 1 commit
-
-
jean-pierre charras authored
-
- 02 May, 2013 1 commit
-
-
Lorenzo Marcantonio authored
New conversion routines and sin/cos implementation for angles in decidegrees
-
- 18 Mar, 2013 1 commit
-
-
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.
-
- 13 Jan, 2013 1 commit
-
-
Heikki Pulkkinen authored
-
- 05 Oct, 2012 1 commit
-
-
jean-pierre charras authored
Pcbnew: drill files creation: better dialog to create driil files, map files and report file. Code cleaning
-
- 22 Sep, 2012 1 commit
-
-
jean-pierre charras authored
All: remove macros MAX, MIN, ABS from macros.h and replace these macros by std::max, std::min and std::abs (mainly found in old code).
-
- 15 Sep, 2012 1 commit
-
-
jean-pierre charras authored
Mainly to plot drill maps, but can be used to plot boards, for documentation. The print svg still exists, but the plot SVG has more options (mirroring, holes in pads), however print svg allows color print, and full board printing, and plot does not.
-
- 29 Aug, 2012 3 commits
-
-
Lorenzo Marcantonio authored
-
Lorenzo Marcantonio authored
-
jean-pierre charras authored
Kicad manager: shows now svg files in tree files. Pcbnew: fix incorrect printing (board out of page) when creating drill map in postscript format ( noticeable mainly for small boards)
-
- 03 Jul, 2012 1 commit
-
-
jean-pierre charras authored
Coordinates were using always 3 digits (1/1000 inch for mantissa). Uses now 4 digits max in inches and 3 digits max in mm The resolution is therefore 1/10000 inch or 1/1000 mm. Note this is a limitation of Excellon format.
-
- 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; }
-
- 05 Apr, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 16 Feb, 2012 1 commit
-
-
jean-pierre charras authored
Code cleaning and other minor fixes.
-
- 23 Jan, 2012 1 commit
-
-
Dick Hollenbeck authored
-
- 22 Dec, 2011 1 commit
-
-
Dick Hollenbeck authored
-
- 12 Dec, 2011 1 commit
-
-
Wayne Stambaugh authored
-
- 08 Nov, 2011 1 commit
-
-
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.
-
- 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.
-
- 23 Sep, 2011 1 commit
-
-
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.
-
- 06 Sep, 2011 1 commit
-
-
Wayne Stambaugh authored
-
- 19 Aug, 2011 1 commit
-
-
jean-pierre charras authored
Minor fixes and enhancements.
-
- 01 Mar, 2011 1 commit
-
-
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.
-
- 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.
-
- 20 Jan, 2011 1 commit
-
-
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.
-
- 14 Dec, 2010 1 commit
-
-
Wayne Stambaugh authored
-
- 29 Nov, 2010 1 commit
-
-
jean-pierre charras authored
minor cleanup. minor enhancements. Finish file housekeeping. add Bug 682586 fix from Mark van Doesburg.
-
- 24 Nov, 2010 2 commits
-
-
jean-pierre charras authored
-
jean-pierre charras authored
-
- 30 Apr, 2010 1 commit
-
-
jean-pierre charras authored
-
- 31 Jan, 2010 1 commit
-
-
charras authored
removed global variables and a lot of redundancies
-
- 05 Jan, 2010 1 commit
-
-
charras authored
-
- 07 Dec, 2009 1 commit
-
-
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.
-